﻿/* 整個內容方塊 */
.index活動花絮3 {
    /*height : 300px;   --- if simpleBar (i.e. scroll bar) is set on the whole block, change the number.*/
}

    /* 內容方塊標題文字 (h2) */
    .index活動花絮3 .blockTitle {
        text-align: center;
    }

        .index活動花絮3 .blockTitle h2 {
        }

        /* 內容方塊標題超連結 */
        .index活動花絮3 .blockTitle a {
        }

    /* 活動容器，每個活動都放在裡面 */
    .index活動花絮3 .loopElementList {
        height: 600px;  /*--- if simpleBar (i.e. scroll bar) is set on the content, change the number.*/
    }

    /* 活動容器 */
    .index活動花絮3 .elementContainer {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items : stretch;
        padding: 0;
    }

    /*單一活動*/
    .index活動花絮3 .eachActivity {
        margin: 0 0 2em 0;
    }

    .index活動花絮3 .innerShell {
        border: solid 2px #dddddd; /* Change */
        padding: var(--r-el-padding, 1rem);
        background-color: #edecea;
        position: relative;
        box-shadow: 2px 2px 8px -2px rgba(148,146,148,0.4);
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: stretch;
        height : 100%;
    }

    /*圖片容器*/
    .index活動花絮3 .thumbList {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
    }

    /*圖片*/
    .index活動花絮3 .eachActivity .themePic {
        width: 100%; /* 這是每個圖片佔每個活動的闊度百分比，如果活動顯示多於一個圖片，要修改這個 */
        align-self: flex-start;
    }

    /*標題超連結*/
    .index活動花絮3 .eachActivity .heading {
        font-weight: bold;
        background-color: #ffffff;
        border: solid 10px transparent;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .index活動花絮3 .eachActivity .link {
        position: absolute;
        z-index: 1;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
    }

    .index活動花絮3 .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活動花絮3 .eachActivity {
        flex-basis: 100%;
    }

    /* 只顯示頭 5 個活動 
    .index活動花絮3 .eachActivity {
        display: none;
    }

        .index活動花絮3 .eachActivity:nth-child(-n+5) {
            display: block;
        }*/
}

@media (min-width: 481px) and (max-width: 767px) {
    .index活動花絮3 .eachActivity {
        flex-basis: calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }

    /* 只顯示頭 4 個活動 
    .index活動花絮3 .eachActivity {
        display: none;
    }

        .index活動花絮3 .eachActivity:nth-child(-n+4) {
            display: block;
        }*/
}

@media (min-width: 768px) and (max-width: 979px) {
    .index活動花絮3 .eachActivity {
        flex-basis: calc(100%/1 - 0rem);
        max-width: calc(100%/1 - 0rem);
    }

    /* 只顯示頭 6 個活動 
    .index活動花絮3 .eachActivity {
        display: none;
    }

        .index活動花絮3 .eachActivity:nth-child(-n+6) {
            display: block;
        }*/
}

@media (min-width: 980px) and (max-width:1199px) {
    .index活動花絮3 .eachActivity {
        flex-basis: calc(100%/2 - 1rem);
        max-width: calc(100%/2 - 1rem);
    }

    /* 只顯示頭 6 個活動 
    .index活動花絮3 .eachActivity {
        display: none;
    }

        .index活動花絮3 .eachActivity:nth-child(-n+6) {
            display: block;
        }*/
}

@media (min-width: 1200px) and (max-width:1919px) {
    .index活動花絮3 .eachActivity {
        flex-basis: calc(100%/2 - 1.5rem);
        max-width: calc(100%/2 - 1.5rem);
    }
}

@media (min-width: 1920px) {
    .index活動花絮3 .eachActivity {
        flex-basis: calc(100%/3 - 2rem);
        max-width: calc(100%/3 - 2rem);
    }
}
