﻿/* 整個內容方塊 */
.index校園動態6 {
    
}

    /* 內容方塊標題文字 (h2) */
    .index校園動態6 .blockTitle {
        margin-left : 2rem;   /*SettingA*/
    }

    /* 活動容器，每個活動都放在裡面 */
    .index校園動態6 .activityList {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: stretch;
        margin: auto;
        justify-content: center;
    }

    /*單一活動*/
    .index校園動態6 .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校園動態6 .eachActivity:last-child {
            border-right: none 0; /* 最後一個活動不顯示點點的右邊框 */
        }

        .index校園動態6 .eachActivity .text
        {
            padding-bottom : 2rem;
        }

        .index校園動態6 .eachActivity .date {
            font-size: 0.8rem;
            line-height: 2em;
        }

        .index校園動態6 .eachActivity .heading {
            font-weight: bold;
            line-height: 2em;
        }

        .index校園動態6 .eachActivity .themePic {
            width: 100%;
            height: auto;
            background-position: 50% 50%;
            background-size: cover;
        }

            .index校園動態6 .eachActivity .themePic:after {
                padding-bottom: 100%;
                content: " ";
                display: block;
                box-sizing: border-box;
            }

@media (max-width: 480px) {
    .index校園動態6 .eachActivity {
        flex-basis: 100%;
        border-right: none 0;
    }

    /* 只顯示頭 2 個活動 */
    .index校園動態6 .activityList .eachActivity {
        display: none;
    }
.index校園動態6 .activityList .eachActivity:nth-child(-n+2) {
            display: block;
        }
}
@media (min-width: 481px) and (max-width: 767px) {
    .index校園動態6 .eachActivity {
        flex-basis: calc(100%/2);
    }

        .index校園動態6 .eachActivity:nth-child(2) {
            border-right: none 0;
        }

    /* 只顯示頭 2 個活動 */
    .index校園動態6 .activityList .eachActivity {
        display: none;
    }

        .index校園動態6 .activityList .eachActivity:nth-child(-n+2) {
            display: flex;
        }
}

@media (min-width: 768px) and (max-width: 979px) {
    .index校園動態6 .eachActivity {
        flex-basis: calc(100%/2);
    }

        .index校園動態6 .eachActivity:nth-child(2) {
            border-right: none 0;
        }

    /* 只顯示頭 2 個活動 */
    .index校園動態6 .activityList .eachActivity {
        display: none;
    }

        .index校園動態6 .activityList .eachActivity:nth-child(-n+2) {
            display: flex;
        }
}

@media (min-width: 980px) and (max-width:1199px) {
    .index校園動態6 .eachActivity {
        flex-basis: calc(100%/3);
    }

    .index校園動態6 .eachActivity:nth-child(3) {
        border-right: none 0;
    }

    /* 只顯示頭 3 個活動 */
    .index校園動態6 .activityList .eachActivity {
        display: none;
    }

    .index校園動態6 .activityList .eachActivity:nth-child(-n+3) {
        display: flex;
    }
}
@media (min-width: 1200px) and (max-width:1919px) 
{
    .index校園動態6 .eachActivity {
        flex-basis: calc(100%/5);
    }
    .index校園動態6 .eachActivity:nth-child(5) {
        border-right: none 0;
    }

    /* 只顯示頭 5 個活動 */
    .index校園動態6 .activityList .eachActivity {
        display: none;
    }

    .index校園動態6 .activityList .eachActivity:nth-child(-n+5) {
        display: flex;
    }
}

@media (min-width: 1920px)
{
    .index校園動態6 .eachActivity {
        flex-basis: calc(100%/6);
    }
}

