﻿/* 整個內容方塊 */
.index校園相簿6 {
    /*height : 300px;   --- if simpleBar (i.e. scroll bar) is set on the whole block, change the number.*/
}

    /* 內容方塊標題文字 (h2) */
    .index校園相簿6 .blockTitle {
        text-align: center;
    }

        .index校園相簿6 .blockTitle h2 {
        }

        /* 內容方塊標題超連結 */
        .index校園相簿6 .blockTitle a {
        }

    /* 活動容器，每個活動都放在裡面 */
    .index校園相簿6 .loopElementList {
        /*height : 300px;   --- if simpleBar (i.e. scroll bar) is set on the content, change the number.*/
    }

        /* 活動容器，每個活動都放在裡面 */
        .index校園相簿6 .elementContainer {
            display: flex;
            flex-direction: row;
            align-items: flex-start;
            flex-wrap: wrap;
            padding: var(--r-container-padding, 1em);
        }

    .index校園相簿6 .eachActivity {
        
        
        flex-basis: calc(100% / 5);
        aspect-ratio: 4 / 3;
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
        margin-bottom: 4em;
    }

    .index校園相簿6 .innerShell {
        position: relative;
        width : 100%;
        height : 100%;
    }

    .index校園相簿6 .eachActivity .date {
        border-radius: 50% 50%;
        background-color: #0094ff;
        color: #FFFFFF;
        position: absolute;
        bottom: 0;
        left: 50%;
        z-index: 0;
        aspect-ratio: 1 / 1;
        width: 4em;
        text-align: center;
        transform: translateX(-50%) translateY(50%);
        transition-duration: 1s;
        opacity: 1;
    }

    .index校園相簿6 .eachActivity .dayOfMonth {
        font-size: 1.5em;
    }

    .index校園相簿6 .eachActivity .month {
        font-size: var(--r-smaller-font, 0.8em);
    }

    .index校園相簿6 .eachActivity .link {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: -2;
    }

    .index校園相簿6 .eachActivity .heading {
        position: absolute;
        bottom: 0;
        left: 0;
        background-color: rgba(0,0,0,0.5);
        color: #FFFFFF;
        opacity: 0;
        transition-duration: 1s;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        padding: 0;
        border: solid 5px transparent;
    }

    .index校園相簿6 .eachActivity:hover .heading {
        opacity: 1;
    }

    .index校園相簿6 .eachActivity:hover .date {
        opacity: 0;
    }

    .index校園相簿6 .eachActivity:hover .link {
        z-index: 1;
    }

    .index校園相簿6 .more {
        text-align: right;
        font-weight: 700;
        font-size: 1.5em;
        margin-right: 2em;
        font-style: italic;
        line-height: 2;
    }

@media (max-width:480px) {
    .index校園相簿6 .eachActivity .date {
        border-radius: inherit;
        color: #FFFFFF;
        position: absolute;
        bottom: 0;
        right: 0;
        left: inherit;
        display: inline-block;
        transform: none;
    }
    .index校園相簿6 .elementContainer {
        display: block;
    }
    /* 只顯示頭 5 個活動 
    .index校園相簿6 .eachActivity {
        display: none;
    }

        .index校園相簿6 .eachActivity:nth-child(-n+5) {
            display: block;
        }*/
}

@media (min-width: 481px) and (max-width: 767px) {
    .index校園相簿6 .loopElementList .elementContainer {
        flex-wrap: wrap;
    }

    .index校園相簿6 .eachActivity {
        flex-basis: calc(100% / 2);
        margin: 0 0 3em 0;
    }
    /* 只顯示頭 4 個活動 
    .index校園相簿6 .eachActivity {
        display: none;
    }

        .index校園相簿6 .eachActivity:nth-child(-n+4) {
            display: block;
        }*/
}

@media (min-width: 768px) and (max-width: 979px) {
    .index校園相簿6 .loopElementList .elementContainer {
        flex-wrap: wrap;
    }

    .index校園相簿6 .eachActivity {
        flex-basis: calc(100% / 3);
        margin: 0 0 3em 0;
    }
    /* 只顯示頭 6 個活動 
    .index校園相簿6 .eachActivity {
        display: none;
    }

        .index校園相簿6 .eachActivity:nth-child(-n+6) {
            display: block;
        }*/
}

@media (min-width: 980px) and (max-width:1199px) {
    .index校園相簿6 .eachActivity {
        flex-basis: calc(100% / 4);
    }
    /* 只顯示頭 6 個活動 
    .index校園相簿6 .eachActivity {
        display: none;
    }

        .index校園相簿6 .eachActivity:nth-child(-n+6) {
            display: block;
        }*/
}

@media (min-width: 1200px) and (max-width:1919px) {
}

@media (min-width: 1920px) {
}
