﻿/* 整個內容方塊 */
.index活動相集6 {
    /*height : 300px;   --- if simpleBar (i.e. scroll bar) is set on the whole block, change the number.*/
    --height-ratio: calc(3 / 4);
    --aspect-ratio: 1 / var(--height-ratio);
    --frame-color-01: #E0D056;
    --frame-color-02: #56E0D0;
    --frame-color-03: #D056E0;
    --frame-width: 0.5em;
    --dark-transparent-bg: rgba(0,0,0,0.2);
    --max-number-of-line: 2;
    --image-border-width: 2px;
    --caption-font-color: #FFFFFF;
    --date-font-color: #FFFFFF;
}

    /* 內容方塊標題文字 (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.*/
        height : 100%;  /* For ios */
    }

        /* 活動容器，每個活動都放在裡面 */
        .index活動相集6 .elementContainer {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: stretch;
            padding: var(--r-container-padding, 1em);
            height: 100%; /* For ios */
        }

    .index活動相集6 .eachActivity {
        flex-basis: 30%;
        aspect-ratio: var(--aspect-ratio);
        margin: 0 0 3em 0;
        height: 100%; /* For ios */
    }

    .index活動相集6 .glide .eachActivity {
        margin: 0 0 0 0;
    }

    .index活動相集6 .innerShell {
        position: relative;
        width: 100%;
        height: 100%; /* For ios */
        overflow : hidden;
    }

    .index活動相集6 .bg {
        width: calc(100% - var(--frame-width));
        aspect-ratio: var(--aspect-ratio);
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: -2;
        height: calc(100% - var(--frame-width)); /* For ios */
    }

    .index活動相集6 .eachActivity:nth-child(3n+0) .bg {
        background-color: var(--frame-color-01);
    }

    .index活動相集6 .eachActivity:nth-child(3n+1) .bg {
        background-color: var(--frame-color-02);
    }

    .index活動相集6 .eachActivity:nth-child(3n+2) .bg {
        background-color: var(--frame-color-03);
    }

    .index活動相集6 .themePic {
        aspect-ratio: var(--aspect-ratio);
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
        width: calc(100% - var(--frame-width));
        position: absolute;
        top: 0;
        right: 0;
        z-index: -1;
        border-left: solid var(--image-border-width) #FFFFFF;
        border-bottom: solid var(--image-border-width) #FFFFFF;
        height: calc(100% - var(--frame-width)); /* For ios */
      transition: all .5s;
    }

.index活動相集6 .eachActivity:has(.link:hover) .themePic
{
  transform: scale(1.1);
}

    .index活動相集6 .date {
        display: inline-block;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 0;
        background-color: var(--dark-transparent-bg);
        color: var(--date-font-color);
        padding: 5px;
    }

    .index活動相集6 .heading {
        width: 70%;
        z-index: 0;
        background-color: var(--dark-transparent-bg);
        color: var(--caption-font-color);
        position: absolute;
        bottom: calc((var(--frame-width) * 2) + var(--image-border-width));
        left: calc((var(--frame-width) * 2) + var(--image-border-width));
        border: solid 5px transparent;
        border-left-width : 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: var(--max-number-of-line);
        -webkit-box-orient: vertical;
    }

    .index活動相集6 .link {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        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;
    }

    /* glide */
    .index活動相集6 .glide .glide__slide {
        height: fit-content;
        border: none 0;
        padding: 0;
        border-radius: 0;
    }

    

@media (max-width: 480px) {
    .index活動相集6 .eachActivity {
        flex-basis: 100%;
    }

        /* glide */
    .index活動相集6 .glide .eachActivity {
        height: calc(80vw * var(--height-ratio));
        max-width: 80%;
    }

        .index活動相集6 .heading {
            width: 95%;
            -webkit-line-clamp: 1;
            font-size: 0.8em;
        }

        .index活動相集6 .date {
            font-size: 0.8em;
        }

    /* 只顯示頭 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: 100%;
    }

        /* glide */
        .index活動相集6 .glide .eachActivity {
            height: calc(80vw * var(--height-ratio));
            max-width: 80%;
        }

        .index活動相集6 .heading {
            width: calc(100% - (var(--frame-width) * 3) - var(--image-border-width));
        }

    /* 只顯示頭 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: 48%; /* For ios */
    }

        .index活動相集6 .heading {
            width: calc(100% - (var(--frame-width) * 3) - var(--image-border-width));
        }

    /* 只顯示頭 6 個活動 
    .index活動相集6 .eachActivity {
        display: none;
    }

        .index活動相集6 .eachActivity:nth-child(-n+6) {
            display: block;
        }*/
}

@media (min-width: 980px) and (max-width:1199px) {
    /* 只顯示頭 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) {

}
