﻿/* 整個內容方塊 */
.index活動相片4 {
    /*height : 300px;   --- if simpleBar (i.e. scroll bar) is set on the whole block, change the number.*/
}

    /* 內容方塊標題文字 (h2) */
    .index活動相片4 .blockTitle {
    }

        /* 內容方塊標題超連結 */
        .index活動相片4 .blockTitle a {
        }

    /* 活動容器，每個活動都放在裡面 */
    .index活動相片4 .loopElementList {
        /*height : 300px;   --- if simpleBar (i.e. scroll bar) is set on the content, change the number.*/
    }

    /* 活動容器，每個活動都放在裡面 */
        .index活動相片4 .loopElementList .elementContainer {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: stretch;
            margin: auto;
            justify-content: center;
        }

    /*單一活動*/
    .index活動相片4 .eachActivity {
        border-right: dashed 1px #808080;
        padding: 0 2rem; /*SettingA*/
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: space-between;
        flex-basis: calc(100%/4); /* 預設一行顯示4個活動 */
    }

        .index活動相片4 .eachActivity:last-child {
            border-right: none 0; /* 最後一個活動不顯示點點的右邊框 */
        }

        .index活動相片4 .eachActivity .text
        {
            padding-bottom : 2rem;
        }

        .index活動相片4 .eachActivity .date {
            font-size: 0.8rem;
            line-height: 2em;
        }

        .index活動相片4 .eachActivity .heading {
            font-weight: bold;
            line-height: 2em;
        }

        .index活動相片4 .eachActivity .themePic {
            width: 100%;
            height: auto;
            background-position: 50% 50%;
            background-size: cover;
            border: 1px solid #fff;
            box-shadow: 0 0 2px rgba(0,0,0,.4);
        }

            .index活動相片4 .eachActivity .themePic:after {
                padding-bottom: 100%;
                content: " ";
                display: block;
                box-sizing: border-box;
            }



@media (max-width: 480px) {
    .index活動相片4 .eachActivity {
        flex-basis: 100%;
        border-right: none 0;
    }

    /* 只顯示頭 2 個活動 */
    .index活動相片4 .activityList .eachActivity {
        display: none;
    }

        .index活動相片4 .activityList .eachActivity:nth-child(-n+6) {
            display: block;
        }
}

@media (min-width: 481px) and (max-width: 767px) {
    .index活動相片4 .eachActivity {
        flex-basis: calc(100%/2);
    }

        .index活動相片4 .eachActivity:nth-child(2), .index活動相片4 .eachActivity:nth-child(4), .index活動相片4 .eachActivity:nth-child(6) {
            border-right: none 0;
        }

    /* 只顯示頭 2 個活動 */
    .index活動相片4 .eachActivity {
        display: none;
    }

        .index活動相片4 .eachActivity:nth-child(-n+6) {
            display: flex;
        }
}

@media (min-width: 768px) and (max-width: 979px) {
    .index活動相片4 .eachActivity {
        flex-basis: calc(100%/2);
    }

        .index活動相片4 .eachActivity:nth-child(2), .index活動相片4 .eachActivity:nth-child(4), .index活動相片4 .eachActivity:nth-child(6) {
            border-right: none 0;
        }

    /* 只顯示頭 2 個活動 */
    .index活動相片4 .eachActivity {
        display: none;
    }

        .index活動相片4 .eachActivity:nth-child(-n+6) {
            display: flex;
        }
}

@media (min-width: 980px) and (max-width:1199px) {
    .index活動相片4 .eachActivity {
        flex-basis: calc(100%/3);
    }

        .index活動相片4 .eachActivity:nth-child(3), .index活動相片4 .eachActivity:nth-child(6) {
            border-right: none 0;
        }

    /* 只顯示頭 3 個活動 */
    .index活動相片4 .eachActivity {
        display: none;
    }

        .index活動相片4 .eachActivity:nth-child(-n+6) {
            display: flex;
        }
}

@media (min-width: 1200px) {
    .index活動相片4 .eachActivity {
        flex-basis: calc(100%/4);
    }
}
