﻿/* 整個內容方塊 */
.index學生成就5 {
    /*height : 300px;   --- if simpleBar (i.e. scroll bar) is set on the whole block, change the number.*/
}

    /* 內容方塊標題 */
    .index學生成就5 .blockTitle {
        text-align: center;
    }

        .index學生成就5 .blockTitle h2 {
        }

        /* 內容方塊標題超連結 */
        .index學生成就5 .blockTitle a {
        }

    /* 比賽容器，每個比賽都放在裡面 */
    .index學生成就5 .loopElementList {
        /*height : 300px;   --- if simpleBar (i.e. scroll bar) is set on the content, change the number.*/
    }

    .index學生成就5 .elementContainer {
    }

/*單一比賽*/
    .index學生成就5 .eachCompetition {
    }

    .index學生成就5 .innerShell {
        border-bottom: var(--r-el-border-bottom, solid 1px #dddddd);
        padding: var(--r-el-padding, 1rem);
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: flex-start;
        position: relative;
    }

    .index學生成就5 .glide .innerShell {
        display: block;
        border-bottom: none 0;
        padding: 0;
    }

.index學生成就5 .hasPic .thumbContainer
{
    flex-grow : 0;
    flex-shrink : 0;
}

    .index學生成就5 .noPic .thumbContainer {
        display: none;
    }

    /*圖片*/
    .index學生成就5 .themePic {
        height: auto;
        max-width: 100%;
    }

    /*右方*/
    .index學生成就5 .right {
        flex-grow: 1;
        flex-shrink: 1;
        padding-left: var(--r-hori-gap, 2em);
    }

    .index學生成就5 .glide .right {
        padding-left: 0;
    }

    .index學生成就5 .noPic .right {
        padding-left : 0;
    }

        /*日期*/
        .index學生成就5 .date {
            font-size: var(--r-smaller-font, 0.8rem);
        }

    /*標題*/
    .index學生成就5 .heading {
        font-weight: var(--r-heading-font-weight, 700);
        font-size: var(--r-heading-font-size, 1.2em);
    }

    /*所有獎項的容器*/
    .index學生成就5 .eachAward {
        margin: 0.5em 0 0.5em 0;
    }

    /*獎項名稱*/
    .index學生成就5 .award {
    }

    .index學生成就5 .allWinners {
        padding-left : 1rem;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content : flex-start;
        align-items : flex-start;
        align-content : flex-start;
    }

    /*得獎人*/
    .index學生成就5 .winner {
        font-size: var(--r-smaller-font, 0.8rem);
        padding : 5px 10px;
    }

    .index學生成就5 .eachCompetition .link {
        position: absolute;
        z-index: 1;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
    }

    .index學生成就5 .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學生成就5 .innerShell{
        display : block;
    }
    .index學生成就5 .right {
        padding-left: 0;
    }
    .index學生成就5 .eachCompetition {
        display: none;
    }

        .index學生成就5 .eachCompetition:nth-child(-n+6) {
            display: block;
        }
}
@media (min-width: 481px) and (max-width: 767px) {

    .index學生成就5 .hasPic .thumbContainer {
        flex-basis: 50%;
        max-width: 300px;
    }
    .index學生成就5 .hasPic .right {
        flex-basis: 50%;
    }
    .index學生成就5 .eachCompetition {
        display: none;
    }

        .index學生成就5 .eachCompetition:nth-child(-n+6) {
            display: block;
        }
}
@media (min-width: 768px) and (max-width: 979px) {

    .index學生成就5 .hasPic .thumbContainer {
        flex-basis: 35%;
        max-width: 340px;
    }

    .index學生成就5 .hasPic .right {
        flex-basis: 65%;
    }
    .index學生成就5 .eachCompetition {
        display: none;
    }

        .index學生成就5 .eachCompetition:nth-child(-n+8) {
            display: block;
        }
}
@media (min-width: 980px) and (max-width:1199px) {

    .index學生成就5 .hasPic .thumbContainer {
        flex-basis: 30%;
        max-width: 340px;
    }

    .index學生成就5 .hasPic .right {
        flex-basis: 70%;
    }
    .index學生成就5 .eachCompetition {
        display: none;
    }

        .index學生成就5 .eachCompetition:nth-child(-n+8) {
            display: block;
        }
}
@media (min-width: 1200px) and (max-width:1919px) {
    .index學生成就5 .hasPic .thumbContainer {
        flex-basis: 30%;
        max-width: 360px;
    }

    .index學生成就5 .hasPic .right {
        flex-basis: 70%;
    }
}

@media (min-width: 1920px) {
    .index學生成就5 .hasPic .thumbContainer {
        flex-basis: 20%;
        max-width: 400px;
    }

    .index學生成就5 .hasPic .right {
        flex-basis: 80%;
    }
}
