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