﻿/* 整個內容方塊 */
.index校園相簿6 {
    
    
}

    /* 內容方塊標題文字 (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;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: stretch;
            padding: var(--r-container-padding, 1em);
        }

    .index校園相簿6 .eachActivity {
        
        
        
    }

    .index校園相簿6 .innerShell {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
    }

        .index校園相簿6 .eachActivity:nth-child(odd) {
            margin: 0 0 2em 0;
        }

        .index校園相簿6 .eachActivity:nth-child(even) {
            margin: 2em 0 2em 0;
        }

        .index校園相簿6 .eachActivity .themePic {
            max-width: 100%;
            width: 100%;
            aspect-ratio: 4 / 3;
            background-repeat: no-repeat;
            background-size: cover;
            background-position: center center;
            border-radius: 5px;
        }

        .index校園相簿6 .eachActivity .title {
            background-color: rgba(245, 40, 145, 1);
            color: #FFFFFF;
            border: solid 5px transparent;
            border-radius: 5px;
            width: 90%;
            text-align: center;
            margin-top: -1em;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .index校園相簿6 .eachActivity:nth-child(2n) .title {
            background-color: rgba(236, 185, 39, 1);
        }

        .index校園相簿6 .eachActivity:nth-child(3n) .title {
            background-color: rgba(209, 236, 39, 1);
        }

        .index校園相簿6 .eachActivity:nth-child(4n) .title {
            background-color: rgba(102, 236, 39, 1);
        }

        .index校園相簿6 .eachActivity:nth-child(5n) .title {
            background-color: rgba(39, 236, 197, 1);
        }

        .index校園相簿6 .eachActivity:nth-child(6n) .title {
            background-color: rgba(39, 164, 236, 1);
        }

        .index校園相簿6 .eachActivity:nth-child(7n) .title {
            background-color: rgba(39, 82, 236, 1);
        }

        .index校園相簿6 .eachActivity .link {
            display: block;
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
        }

    .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 .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 .eachActivity {
        flex-basis: calc((100% / 2) - 1em);
    }
    /* 只顯示頭 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 .eachActivity {
        flex-basis: calc((100% / 2) - 2em);
    }
    /* 只顯示頭 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% / 2) - 2em);
    }
    /* 只顯示頭 6 個活動 
    .index校園相簿6 .eachActivity {
        display: none;
    }

        .index校園相簿6 .eachActivity:nth-child(-n+6) {
            display: block;
        }*/
}

@media (min-width: 1200px) and (max-width:1919px) {
    .index校園相簿6 .eachActivity {
        flex-basis: calc((100% / 3) - 2em);
    }
}

@media (min-width: 1920px) {
    .index校園相簿6 .eachActivity {
        flex-basis: calc((100% / 4) - 2em);
    }
}
