﻿/* 整個內容方塊 */
.index活動4 {
    --title-align: left;

    /* --For simpleBar Start-- */
    --content-height-without-heading: auto;
    --whole-block-height: auto;
    /* --For simpleBar End-- */

    --caption-bg-color-01: rgba(39, 164, 236, 1);
    --caption-bg-color-02: rgba(236, 185, 39, 1);
    --caption-bg-color-03: #90b840;
    --caption-bg-color-04: #7b97d1;
    --caption-bg-color-05: #b86535;
    --caption-bg-color-06: rgba(39, 164, 236, 1);
    --caption-bg-color-07: rgba(39, 82, 236, 1);
    --vertical-displacement: 2em;
    --picture-aspect-ratio: 4 / 3;
    --round-corner-radius: 5px;
    --hover-enlarge-ratio: 1.05;
    --hover-top-border-width: 4px;
    --font-color: #FFFFFF;
    --caption-width: 90%;
    --text-align: center;
    --caption-line-number : 2;
    --caption-move-down : -1em;
    
    height: var(--whole-block-height);
}

    /* 內容方塊標題文字 (h2) */
    .index活動4 .blockTitle {
        text-align: var(--r-index-block-title-align, --title-align);
    }

        .index活動4 .blockTitle h2 {
        }

        /* 內容方塊標題超連結 */
        .index活動4 .blockTitle a {
        }

    /* 活動容器，每個活動都放在裡面 */
    .index活動4 .loopElementList {
        height: var(--content-height-without-heading);
    }

        /* 活動容器，每個活動都放在裡面 */
        .index活動4 .elementContainer {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: space-evenly; 
            align-items: stretch;
            padding: var(--r-container-padding, 1em);
        }

    .index活動4 .eachActivity {
        position : relative;
    }

    .index活動4 .innerShell {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;

        /* 2024-11-02 */
        transition: all .5s;
        border-top-style : solid;
        border-top-width : 0px;
    }

        .index活動4 .eachActivity:nth-child(odd) {
            margin: 0 0 var(--vertical-displacement) 0;
        }

    .index活動4 .eachActivity:nth-child(even) {
        margin: var(--vertical-displacement) 0 var(--vertical-displacement) 0;
    }

    .index活動4 .eachActivity .themePic {
        max-width: 100%;
        width: 100%;
        aspect-ratio: var(--picture-aspect-ratio);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
        border-radius: var(--round-corner-radius);
    }

    .index活動4 .eachActivity:has(.absoluteCoverLinks:hover) .innerShell {
        transform: scale(var(--hover-enlarge-ratio));
        border-top-width : var(--hover-top-border-width);
    }

        .index活動4 .eachActivity .title {
            background-color: var(--caption-bg-color-01);
            color: var(--font-color);
            border: solid 5px transparent;
            border-radius: var(--round-corner-radius);
            width: var(--caption-width);
            text-align: var(--text-align);
            margin-top: var(--caption-move-down);
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: var(--caption-line-number);
            -webkit-box-orient: vertical;
        }

    .index活動4 .eachActivity .innerShell {
        border-top-color: var(--caption-bg-color-01);
    }

            .index活動4 .eachActivity:nth-child(2n) .title {
                background-color: var(--caption-bg-color-02);
            }

    .index活動4 .eachActivity:nth-child(2n) .innerShell {
        border-top-color : var(--caption-bg-color-02);
    }

        .index活動4 .eachActivity:nth-child(3n) .title {
            background-color: var(--caption-bg-color-03);
        }

    .index活動4 .eachActivity:nth-child(3n) .innerShell {
        border-top-color: var(--caption-bg-color-03);
    }

        .index活動4 .eachActivity:nth-child(4n) .title {
            background-color: var(--caption-bg-color-04);
        }

    .index活動4 .eachActivity:nth-child(4n) .innerShell {
        border-top-color : var(--caption-bg-color-04);
    }

        .index活動4 .eachActivity:nth-child(5n) .title {
            background-color: var(--caption-bg-color-05);
        }

    .index活動4 .eachActivity:nth-child(5n) .innerShell {
        border-top-color: var(--caption-bg-color-05);
    }

        .index活動4 .eachActivity:nth-child(6n) .title {
            background-color: var(--caption-bg-color-06);
        }

    .index活動4 .eachActivity:nth-child(6n) .innerShell {
        border-top-color: var(--caption-bg-color-06);
    }

        .index活動4 .eachActivity:nth-child(7n) .title {
            background-color: var(--caption-bg-color-07);
        }

    .index活動4 .eachActivity:nth-child(7n) .innerShell {
        border-top-color: var(--caption-bg-color-07);
    }

    .index活動4 .showMoreLoopElements {
    }

@media (max-width: 480px) {
    .index活動4 .elementContainer {
        display: block;
    }
    /* 只顯示頭 5 個活動 
    .index活動4 .eachActivity {
        display: none;
    }

        .index活動4 .eachActivity:nth-child(-n+5) {
            display: block;
        }*/
}

@media (min-width: 481px) and (max-width: 767px) {
    .index活動4 .eachActivity {
        flex-basis: calc((100% / 2) - 1em);
    }
    /* 只顯示頭 4 個活動 
    .index活動4 .eachActivity {
        display: none;
    }

        .index活動4 .eachActivity:nth-child(-n+4) {
            display: block;
        }*/
}

@media (min-width: 768px) and (max-width: 979px) {
    .index活動4 .eachActivity {
        flex-basis: calc((100% / 2) - 2em);
    }
    /* 只顯示頭 6 個活動 
    .index活動4 .eachActivity {
        display: none;
    }

        .index活動4 .eachActivity:nth-child(-n+6) {
            display: block;
        }*/
}

@media (min-width: 980px) and (max-width:1199px) {
    .index活動4 .eachActivity {
        flex-basis: calc((100% / 2) - 2em);
    }
    /* 只顯示頭 6 個活動 
    .index活動4 .eachActivity {
        display: none;
    }

        .index活動4 .eachActivity:nth-child(-n+6) {
            display: block;
        }*/
}

@media (min-width: 1200px) and (max-width:1919px) {
    .index活動4 .eachActivity {
        flex-basis: calc((100% / 2) - 2em);
    }
}

@media (min-width: 1920px) {
    .index活動4 .eachActivity {
        flex-basis: calc((100% / 2) - 2em);
    }
}

/* Glide Settings Start ===================================================*/
.index活動4 .glide .glide__slide {
    border: none 0;
    padding: 0;
    border-radius: initial;
}

    .index活動4 .glide .glide__slide:nth-child(odd) {
        margin: 0 0 2em 0;
    }

    .index活動4 .glide .glide__slide:nth-child(even) {
        margin: 2em 0 2em 0;
    }

    .index活動4 .glide .glide__slide .innerShell {
        border-top-color: rgba(39, 164, 236, 1);
    }

    .index活動4 .glide .glide__slide:nth-child(2n) .title {
        background-color: rgba(236, 185, 39, 1);
    }

    .index活動4 .glide .glide__slide:nth-child(2n) .innerShell {
        border-top-color: rgba(236, 185, 39, 1);
    }

    .index活動4 .glide .glide__slide:nth-child(3n) .title {
        background-color: rgba(209, 236, 39, 1);
    }

    .index活動4 .glide .glide__slide:nth-child(3n) .innerShell {
        border-top-color: rgba(209, 236, 39, 1);
    }

    .index活動4 .glide .glide__slide:nth-child(4n) .title {
        background-color: rgba(102, 236, 39, 1);
    }

    .index活動4 .glide .glide__slide:nth-child(4n) .innerShell {
        border-top-color: rgba(102, 236, 39, 1);
    }

    .index活動4 .glide .glide__slide:nth-child(5n) .title {
        background-color: rgba(39, 236, 197, 1);
    }

    .index活動4 .glide .glide__slide:nth-child(5n) .innerShell {
        border-top-color: rgba(39, 236, 197, 1);
    }

    .index活動4 .glide .glide__slide:nth-child(6n) .title {
        background-color: rgba(39, 164, 236, 1);
    }

    .index活動4 .glide .glide__slide:nth-child(6n) .innerShell {
        border-top-color: rgba(39, 164, 236, 1);
    }

    .index活動4 .glide .glide__slide:nth-child(7n) .title {
        background-color: rgba(39, 82, 236, 1);
    }

    .index活動4 .glide .glide__slide:nth-child(7n) .innerShell {
        border-top-color: rgba(39, 82, 236, 1);
    }
/* Glide Settings End ===================================================*/
