﻿/* 整個內容方塊 */
.index活動35 {
    --title-align: left;

    /* --For simpleBar Start-- */
    --content-height-without-heading: auto;
    --whole-block-height: auto;
    /* --For simpleBar End-- */

    height: var(--whole-block-height);
}

    /* 內容方塊標題文字 (h2) */
    .index活動35 .blockTitle {
        text-align: var(--r-index-block-title-align, --title-align);
    }

        .index活動35 .blockTitle h2 {
        }

        /* 內容方塊標題超連結 */
        .index活動35 .blockTitle a {
        }

    /* 活動容器，每個活動都放在裡面 */
    .index活動35 .loopElementList {
        height: var(--content-height-without-heading);
    }

        /* 活動容器，每個活動都放在裡面 */
        .index活動35 .elementContainer {
            display: flex;
            flex-direction: row;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: 2em;
            padding: var(--r-container-padding, 1em);
        }

    .index活動35 .eachActivity {
        flex-basis: calc(((100% - 4em) / 3));
        aspect-ratio: 4 / 3;
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;

        /* 2024-11-02 */
        transition: all .5s;
        border-width: 0px;
        border-color: #FFFFFF;
        border-style: solid;
    }

        .index活動35 .eachActivity:has(.absoluteCoverLinks:hover) {
            transform: scale(0.98);
            box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
            border-width: 2px;
        }

    .index活動35 .innerShell {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .index活動35 .eachActivity:nth-child(2n) {
        margin-top: 100px;
    }

    .index活動35 .eachActivity:nth-child(2n+1) {
        margin-top: 0px;
    }

    .index活動35 .eachActivity .date {
        position: absolute;
        top: -5px;
        left: -5px;
        display: inline-block;
        background-color: #3e9cdb;
        color: #FFFFFF;
        padding: 0.5em 1em;
        text-align: center;
    }

    .index活動35 .eachActivity .heading {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(0,0,0,0.5);
        color: #FFFFFF;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        padding: 0;
        border: solid 15px transparent;
        transform: skewX(-10deg);

        /* 2024-11-02 */
        transition: all .5s;

    }

    .index活動35 .eachActivity:has(.absoluteCoverLinks:hover) .heading {
        transform: skewX(0deg);
    }

    .index活動35 .showMoreLoopElements {
    }

@media (max-width: 480px) {
    .index活動35 .elementContainer {
        display: block;
    }

    .index活動35 .eachActivity {
        width: 95%;
        margin: 0 auto;
    }

        .index活動35 .eachActivity:nth-child(2n) {
            margin: 0 auto 3em auto;
        }

        .index活動35 .eachActivity:nth-child(2n+1) {
            margin: 0 auto 3em auto;
        }
    /* 只顯示頭 5 個活動 
    .index活動35 .eachActivity {
        display: none;
    }

        .index活動35 .eachActivity:nth-child(-n+5) {
            display: block;
        }*/
}

@media (min-width: 481px) and (max-width: 767px) {

    .index活動35 .eachActivity {
        flex-basis: calc(((100% - 4em) / 2) - 0px);
    }

    .index活動35 .elementContainer {
        justify-content: space-around;
    }
    /* 只顯示頭 4 個活動 
    .index活動35 .eachActivity {
        display: none;
    }

        .index活動35 .eachActivity:nth-child(-n+4) {
            display: block;
        }*/
}

@media (min-width: 768px) and (max-width: 979px) {
    .index活動35 .elementContainer {
        justify-content: space-around;
    }

    .index活動35 .eachActivity {
        flex-basis: calc(((100% - 4em) / 2) - 0px);
    }
    /* 只顯示頭 6 個活動 
    .index活動35 .eachActivity {
        display: none;
    }

        .index活動35 .eachActivity:nth-child(-n+6) {
            display: block;
        }*/
}

@media (min-width: 980px) and (max-width:1199px) {
    /* 只顯示頭 6 個活動 
    .index活動35 .eachActivity {
        display: none;
    }

        .index活動35 .eachActivity:nth-child(-n+6) {
            display: block;
        }*/
}

@media (min-width: 1200px) and (max-width:1919px) {
}

@media (min-width: 1920px) {
}
