﻿/* 整個內容方塊 */
.index最新消息2 {
    /*height : 300px;   --- if simpleBar (i.e. scroll bar) is set on the whole block, change the number.*/
}

    /* 內容方塊標題 */
    .index最新消息2 .blockTitle {
    }

        /* 內容方塊標題超連結 */
        .index最新消息2 .blockTitle a {
        }

    /* 最新消息容器，每個最新消息都放在裡面 */
    .index最新消息2 .loopElementList {
        /*height : 300px;   --- if simpleBar (i.e. scroll bar) is set on the content, change the number.*/
    }

/*單一最新消息*/
    .index最新消息2 .eachNews {
        border-bottom: solid 1px #dddddd;
        padding: 1rem;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: flex-start;
    }

    /* 有圖片 */
    .index最新消息2 .hasPic .left {
        flex-grow: 1;
        flex-shrink: 1;
        padding-right: 2rem;
    }

    .index最新消息2 .hasPic .right {
        display: block;
        flex-grow: 0;
        flex-shrink: 1;
        max-width: 400px;
    }

    .index最新消息2 .noPic .left {
        flex-basis: 100%;
    }

    /* 無圖片 */
    .index最新消息2 .noPic .right {
        display: none;
    }

/*日期*/
    .index最新消息2 .date {
        font-size: 0.8rem;
        margin-bottom : 1rem;
    }

/*標題文字*/
    .index最新消息2 .heading {
        font-weight: 700;
    }

/*小圖示*/
    .index最新消息2 .newIcon {
    }
.index最新消息2 .themePic
{
    max-width : 100%;
    height : auto;
}

@media (max-width: 480px) {
    /* 只顯示頭 5 個最新消息 */
    .index最新消息2 .eachNews
    {
        display : none;
    }
    .index最新消息2 .eachNews:nth-child(-n+5)
    {
        display : block;
    }
    .index最新消息2 .hasPic .right {
        max-width: initial;
    }

    .index最新消息2 .hasPic .left {
        padding-right: 0;
    }
}
@media (min-width: 481px) and (max-width: 767px) {
    /* 只顯示頭 6 個最新消息 */
    .index最新消息2 .eachNews
    {
        display : none;
    }
    .index最新消息2 .eachNews:nth-child(-n+6)
    {
        display : flex;
    }
    .index最新消息2 .hasPic .left {
        flex-basis: 65%;
    }

    .index最新消息2 .hasPic .right {
        flex-basis: 35%;
        max-width: 200px;
    }
}
@media (min-width: 768px) and (max-width: 979px) {
    /* 只顯示頭 6 個最新消息 */
    .index最新消息2 .eachNews
    {
        display : none;
    }
    .index最新消息2 .eachNews:nth-child(-n+6)
    {
        display : flex;
    }
    .index最新消息2 .hasPic .right {
        flex-basis: 30%;
        max-width: 200px;
    }

    .index最新消息2 .hasPic .left {
        flex-basis: 70%;
    }
}
@media (min-width: 980px) and (max-width:1199px) {
    /* 只顯示頭 8 個最新消息 */
    .index最新消息2 .eachNews
    {
        display : none;
    }
    .index最新消息2 .eachNews:nth-child(-n+8)
    {
        display : flex;
    }
    .index最新消息2 .hasPic .right {
        flex-basis: 100%;
        max-width: 300px;
    }

    .index最新消息2 .hasPic .left {
        flex-basis: 78%;
    }
}
@media (min-width: 1200px) and (max-width:1919px) {
    .index最新消息2 .hasPic .right {
        flex-basis: 50%;
        max-width: 400px;
    }

    .index最新消息2 .hasPic .left {
        flex-basis: 80%;
    }
}

@media (min-width: 1920px) {
    .index最新消息2 .hasPic .right {
        flex-basis: 30%;
        max-width: 400px;
    }

    .index最新消息2 .hasPic .left {
        flex-basis: 80%;
    }
}
