﻿/* 整個內容方塊 */
.index最新消息3 {
    /*height : 300px;   --- if simpleBar (i.e. scroll bar) is set on the whole block, change the number.*/
    --event-name-num-of-line: 5;
    --date-bg-color: #0026ff;
    --date-font-color: #FFFFFF;
}

    /* 內容方塊標題 */
    .index最新消息3 .blockTitle {
        text-align: center;
    }

        .index最新消息3 .blockTitle h2 {
        }

        /* 內容方塊標題超連結 */
        .index最新消息3 .blockTitle a {
        }

    /* 最新消息容器，每個最新消息都放在裡面 */
    .index最新消息3 .loopElementList {
        /*height : 300px;   --- 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-around;
        align-items: stretch;
        padding : 1em;
    }

    /*單一最新消息*/
    .index最新消息3 .eachNews {
    }

    .index最新消息3 .innerShell {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: flex-start;
        border-bottom: var(--r-el-border-bottom, solid 1px #dddddd);
        padding: var(--r-el-padding, 1rem);
        position: relative;
        overflow: hidden;
        background-color: rgba(255,255,255,0.5);
        border-radius: 10px;
        height: 100%;
        width: 100%;
    }

    .index最新消息3 .glide .innerShell {
        border-bottom: none 0;
        padding: 0;
    }

        .index最新消息3 .innerShell:hover {
            background-color: #c6d9f5;
            border: solid 1px #FFFFFF;
        }

    .index最新消息3 .glide .innerShell:hover {
        border: none 0;
    }

    .index最新消息3 .date {
        aspect-ratio: 1 / 1;
        width: 4em;
        padding: 10px 0;
        border-radius: 5px;
        background-color: var(--date-bg-color);
        color: var(--date-font-color);
        text-align: center;
        flex-shrink: 0;
        margin: 0 2em 0 0;
    }

    .index最新消息3 .dayOfMonth {
        font-size: 1.5em;
        line-height: 1em;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-style: italic;
    }

    .index最新消息3 .month {
        font-size: 0.8em;
    }

    .index最新消息3 .text {
    }

    .index最新消息3 .heading {
        font-weight: var(--r-heading-font-weight, 700);
        font-size: var(--r-heading-font-size, 1.2em);
    }

    .index最新消息3 .details {
        line-height: 1.5;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        height: calc(1.5em * 3);
    }

    /*小圖示*/
    .index最新消息3 .newIcon {
    }

    .index最新消息3 .details * {
        max-width: 100%;
    }

    /*無詳情*/
    .index最新消息3 .details:empty {
        display: none;
    }

    .index最新消息3 .link {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        z-index: 1;
    }

    .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:400px) {
        .index最新消息3 .glide__arrow {
            top: auto;
            transform: none;
        }

    .index最新消息3 .innerShell {
        flex-wrap: wrap;
    }

    .index最新消息3 .date {
        aspect-ratio: auto;
        width: auto;
        padding: 5px 10px;
    }

    .index最新消息3 .dayOfMonth {
        display: inline-block;
        font-size: 1em;
    }

    .index最新消息3 .month {
        display: inline-block;
    }
    .index最新消息3 .eachNews {
        display: none;
    }

        .index最新消息3 .eachNews:nth-child(-n+6) {
            display: block;
        }
}

@media (max-width: 767px) {
    .index最新消息3 .eachNews {
        flex-basis: 100%;
    }
}

@media (min-width: 481px) and (max-width: 767px) {

    .index最新消息3 .eachNews {
        display: none;
    }

        .index最新消息3 .eachNews:nth-child(-n+6) {
            display: block;
        }
}

@media (min-width: 768px) and (max-width: 979px) {
    .index最新消息3 .eachNews {
        flex-basis: 48%;
    }

    .index最新消息3 .elementContainer {
        justify-content: space-between;
    }
    .index最新消息3 .eachNews {
        display: none;
    }

        .index最新消息3 .eachNews:nth-child(-n+8) {
            display: block;
        }
}

@media (min-width: 980px) and (max-width:1199px) {
    .index最新消息3 .eachNews {
        flex-basis: 45%;
    }

    .index最新消息3 .elementContainer {
        justify-content: space-between;
    }
    .index最新消息3 .eachNews {
        display: none;
    }

        .index最新消息3 .eachNews:nth-child(-n+8) {
            display: block;
        }
}

@media (min-width: 1200px) and (max-width:1919px) {
    .index最新消息3 .eachNews {
        flex-basis: 30%;
    }
}

@media (min-width: 1920px) {
    .index最新消息3 .eachNews {
        flex-basis: 30%;
    }
}
