﻿/* 整個內容方塊 */
.index校園生活照片4 {
    /*height : 300px;   --- if simpleBar (i.e. scroll bar) is set on the whole block, change the number.*/
}

        .index校園生活照片4 .glide .glide__slides {
            justify-content: space-between;
        }

    /* 內容方塊標題文字 (h2) */
    .index校園生活照片4 .blockTitle {
        text-align: center;
    }

        .index校園生活照片4 .blockTitle h2 {
        }

        /* 內容方塊標題超連結 */
        .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;
            align-items: stretch;
            margin: auto;
            justify-content: center;
            padding: var(--r-container-padding, 1em);
        }

    .index校園生活照片4 .glide .glide__slide {
        border: none 0;
        padding: 0;
        border-radius: 0;
    }

    /*單一活動*/
    .index校園生活照片4 .eachActivity {
        flex-basis: calc(100%/4); /* 預設一行顯示4個活動 */
    }

    .index校園生活照片4 .innerShell {
        border-right: dashed 1px #808080;
        padding: 0 2rem; /*SettingA*/
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: space-between;
        /*height: 100%;*/
    }

    .index校園生活照片4 .glide .innerShell {
        padding: 0 0;
    }

    .index校園生活照片4 .eachActivity:last-child .innerShell {
        border-right: none 0; /* 最後一個活動不顯示點點的右邊框 */
    }

    .index校園生活照片4 .eachActivity .text {
        padding-bottom: 1em;
    }

    .index校園生活照片4 .eachActivity .date {
        font-size: var(--r-smaller-font, 0.8rem);
        line-height: 2em;
    }

    .index校園生活照片4 .eachActivity .heading {
        font-weight: var(--r-heading-font-weight, 700);
        line-height: 1.3em;
        font-size: var(--r-heading-font-size, 1.2em);
        /*height: 2.6em;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;*/
    }

    .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;
        }

    .index校園生活照片4 .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校園生活照片4 .glide {
        width: 100%;
    }
    .index校園生活照片4 .glide__slide {
        flex-basis: calc(100vw);
    }
    .index校園生活照片4 .eachActivity .text {
        padding-bottom: 1em;
    }
    .index校園生活照片4 .eachActivity {
        flex-basis: 100%;
        margin-bottom: 2em;
    }

    .index校園生活照片4 .innerShell {
        border-right: none 0;
    }

    /* 只顯示頭 3 個活動 */
    /*.index校園生活照片4 .activityList .eachActivity {
        display: none;
    }

        .index校園生活照片4 .activityList .eachActivity:nth-child(-n+3) {
            display: block;
        }*/
}

@media (min-width: 481px) and (max-width: 767px) {
    .index校園生活照片4 .glide {
        width: 100%;
    }

    .index校園生活照片4 .glide__slide {
        flex-basis: calc(80vw / 2);
    }

    .index校園生活照片4 .eachActivity {
        flex-basis: calc(100%/2);
        margin-bottom: 2em;
        display: none;
    }

    .index校園生活照片4 .eachActivity:nth-child(-n+6) {
        display: block;
    }

    .index校園生活照片4 .eachActivity .text {
        padding-bottom: 1em;
    }

    .index校園生活照片4 .eachActivity:nth-child(2) .innerShell, .index校園生活照片4 .eachActivity:nth-child(4) .innerShell, .index校園生活照片4 .eachActivity:nth-child(6) .innerShell {
        border-right: none 0;
    }

    .index校園生活照片4 .glide .glide__arrow--left {
        left: 0;
    }

    .index校園生活照片4 .glide .glide__arrow--right {
        right: 0;
    }

    /* 只顯示頭 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 .glide {
        width: 90%;
    }

    .index校園生活照片4 .glide__slide {
        flex-basis: calc(80vw / 3);
    }

    .index校園生活照片4 .eachActivity {
        flex-basis: calc(100%/2);
        margin-bottom: 2em;
        display: none;
    }

    .index校園生活照片4 .eachActivity:nth-child(-n+6) {
        display: block;
    }

    .index校園生活照片4 .eachActivity .text {
        padding-bottom: 1em;
    }

    .index校園生活照片4 .eachActivity:nth-child(2) .innerShell, .index校園生活照片4 .eachActivity:nth-child(4) .innerShell, .index校園生活照片4 .eachActivity:nth-child(6) .innerShell {
        border-right: none 0;
    }
    /* 只顯示頭 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 .glide__slide {
        flex-basis: calc(80vw / 3);
    }

    .index校園生活照片4 .eachActivity {
        flex-basis: calc(100%/3);
        margin-bottom: 2em;
        display: none;
    }

    .index校園生活照片4 .eachActivity:nth-child(-n+6) {
        display: block;
    }

    .index校園生活照片4 .eachActivity:nth-child(3) .innerShell, .index校園生活照片4 .eachActivity:nth-child(6) .innerShell {
        border-right: none 0;
    }
    /* 只顯示頭 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 .glide__slide {
        flex-basis: calc(80vw / 4);
    }

    .index校園生活照片4 .eachActivity {
        flex-basis: calc(100%/5);
        display: none;
    }

    .index校園生活照片4 .eachActivity:nth-child(-n+5) {
        display: block;
    }

    .index校園生活照片4 .eachActivity:nth-child(5) .innerShell {
        border-right: none 0;
    }
    /*.index校園生活照片4 .eachActivity {
        display: none;
    }

        .index校園生活照片4 .eachActivity:nth-child(-n+5) {
            display: block;
        }*/
}

@media (min-width: 1920px) {
    .index校園生活照片4 .glide__slide {
        flex-basis: calc(80vw / 6);
    }

    .index校園生活照片4 .eachActivity {
        flex-basis: calc(100%/7);
    }
}
