.banner-title {
    position: absolute;
    top: 40%;
    color: #fff;
    max-width: 1440px;
    margin: 0 auto;
    left: 0px;
    right: 0px;
    font-size: 36px;
    /*     font-family: "Noto Serif TC", serif; */
    letter-spacing: 10px;
    font-weight: 700;
    padding: 0px 100px;
    text-shadow: 0px 0px 6px rgba(0, 0, 0, .35);
}

.top-banner .banner {
    height: 550px;
}


.banner-cover {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    margin: 0 auto;
    width: 100%;
    background-image: url('../images/banner-cover.png');
    background-size: 100%;
    background-repeat: no-repeat;
    height: 120px;
}

.l-main {
    margin: 0px auto 50px;
    /*    padding: 30px 20px;
   background-color: #f6f4ec;
    width: 90%;*/
}

.row {
    display: flex;
    flex-wrap: wrap;
}


.info-page {
    padding: 0px 0px 0px;
    position: relative;
    z-index: 3;
}

.info-page .container {
    max-width: 1220px;
}

.bg-img {
    margin: 0 auto;
    width: 90%;
}

.bg-img::before {
    padding-top: calc(100 / 1300 * 1500 * 1%);
}



.categoryTabs {
    margin: 0px 0 40px;
    justify-content: center;
}

.categoryTabs {
    margin: 0 0 30px 0;
    justify-content: center;
    overflow: auto;
    white-space: nowrap;
    text-align: center;
}

.categoryTab {
    /*     padding: 0.5em 1em; */
    padding-bottom: 3px;

    font-size: 22px;
    /*     margin-left: 10px; */
    margin-right: 20px;
    margin-bottom: 20px;
    /* background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.3); */
    cursor: pointer;
    /*     border-bottom: 1px solid #5E4040; */
    color: #5E4040;
    /*     font-family: "Noto Serif TC", serif; */
    font-weight: 400;
    transition: all .1s ease-in-out;
}

.categoryTab a {
    color: #5E4040;
}

.categoryTab.active,
.categoryTab:hover {
    border-bottom: 1px solid#5E4040;
    color: #5E4040;
    font-weight: 700;
    transition: all .1s ease-in-out;
}

#idesa {
    justify-content: flex-start;
    margin-left: calc(var(--gutter)/2*-1px);
    margin-right: calc(var(--gutter)/2*-1px);
    --gutter: 30px;
    margin-left: -15px;
    margin-right: -15px;
}

.idea {
    position: relative;
    margin-bottom: var(--gutter);
    padding-left: calc(var(--gutter)/2);
    padding-right: calc(var(--gutter)/2);
    display: none;
    box-sizing: border-box;
    display: block;
}

.idea__inner {
    position: relative;
    background-color: #fff;
}

.idea__img {
    position: relative;
    overflow: hidden;
}

.idea__img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-object-fit: cover;
    object-fit: cover;
}

.idea__img::before {
    display: block;
    content: '';
    padding-top: 70%;
}

.idea__cont {
    padding: 15px 0px 15px 0px
}

.idea__tag {
    font-size: 0.875rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.idea__tit {
    font-size: 21px;
    margin-bottom: 1rem;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #f26990;
    line-height: 1.5;
}

p.idea__txt {
    line-height: 160%;
    font-size: 18px;
    font-weight: 400;


    display: -webkit-box;
    /* 設定為 WebKit 盒模型 */
    -webkit-box-orient: vertical;
    /* 設定內容方向為垂直 */
    -webkit-line-clamp: 2;
    /* 限制顯示 3 行 */
    overflow: hidden;
    /* 隱藏超出部分 */


}



.idea__img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-object-fit: cover;
    object-fit: cover;
}


.idea__link {
    text-align: right;
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #423A3A;
}

.idea__link span {
    display: inline-block;
    margin-left: 3px;
}


.idea__img img {
    transform: scale(1);
    transition: all .5s ease-in-out;
}

.idea__inner:hover .idea__img img {
    transform: scale(1.1);
    transition: all .5s ease-in-out;
}


.page_number {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 80px auto;
}

.original-Page {}

.prev-page {}

.page-number {
    margin: 0px 15px;
}

.next-page {}

.last-Page {}


.original-Page span {
    display: inline-block;
    background-image: url('../images/page-arrow2.png');
    width: 25px;
    height: 25px;
    background-size: 100%;
    background-repeat: no-repeat;
    vertical-align: middle;
    opacity: 0.5;



}

.original-Page span {
    transform: rotate(180deg) translateY(1px);
    margin-right: 5px;
}


.prev-page span {
    display: inline-block;
    background-image: url('../images/page-arrow.png');
    width: 25px;
    height: 25px;
    background-size: 100%;
    background-repeat: no-repeat;
    vertical-align: middle;
    transform: rotate(180deg) translateY(1px);
    opacity: 0.5;

}




.next-page span {
    display: inline-block;
    background-image: url('../images/page-arrow.png');
    width: 25px;
    height: 25px;
    background-size: 100%;
    background-repeat: no-repeat;
    vertical-align: middle;
    transform: translateY(-1px);



}

.last-Page span {
    display: inline-block;
    background-image: url('../images/page-arrow2.png');
    width: 25px;
    height: 25px;
    background-size: 100%;
    background-repeat: no-repeat;
    vertical-align: middle;
    transform: translateY(-1px);


}


.page-number span {
    margin: 0px 10px;
    display: inline-block;
    padding: 2px 10px;
    box-sizing: border-box;
}



.page-number span.active {
    border: 1px solid #000;
}



/*=======popup=========*/

.close {
    width: 30px;
    height: 30px;
    background: transparent;
    position: absolute;
    z-index: 999;
    cursor: pointer;
    right: 0px;
    top: -5%;
    opacity: 1;
    border: 1px solid #fff;
    border-radius: 100px;
}

.close::before,
.close::after {
    content: "";
    display: block;
    width: 60%;
    height: 2px;
    background: #fff;
    border-radius: 10px;
    transform: rotate(45deg);
    margin-top: 15px;
    margin-left: 20%;
}

.close::after {
    transform: rotate(-45deg);
    margin-top: -2px;
}

.black {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    background: #000;
    z-index: 100;
    opacity: 0.9;
    display: ;
    cursor: pointer;
    display: none;
    z-index: 99;
}

.popup {
    position: fixed;
    top: 10%;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 99999;
    max-width: 750px;

    display: none;


}

.popup-content {
    border-radius: 12px;
    box-sizing: border-box;
    background: #fff;
    height: 95%;
    padding: 32px;

}

.article-content {
    overflow: scroll;
}


.popup-content {
    width: 90%;
    margin: 0 auto;
    height: 580px;
    overflow: hidden;
}

.article-content {
    overflow: scroll;
    height: 400px;
    /*     padding: 10px; */
    padding-bottom: 50px;
}

.popup-content .idea__cont .idea__txt {
    height: inherit;
    font-size: 32px;
    font-weight: 500;
}

.popup .category-typ {
    color: #A48B78;
    font-size: 16px;
    letter-spacing: 0px;
    text-align: left;
    font-family: 'Noto Sans TC';
    font-weight: 500;
}


.popup .text p {
    font-size: 14px;
}

.popup-content #popup-subtitle {
    font-size: 24px;
    font-weight: 500;
}

.popup-content .ck-content p {
    font-size: 18px;
    font-weight: 400;
}



.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #444;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.swiper {
    width: 100%;
    height: 300px;
    margin-left: auto;
    margin-right: auto;
}

.swiper-slide .photo {
    background-size: cover;
    background-position: center;
}

.popSwiper2 {
/*     height: 80%; */
    width: 100%;
    height: 360px ;
}




.popSwiper2 .swiper-button-next {
    height: 100%;
    top: 0px;

    margin-top: 0px;
    right: 0px;
    width: 15%;
}




.popSwiper2 .swiper-button-prev {
    height: 100%;
    top: 0px;

    margin-top: 0px;
    left: 0px;
    width: 15%;
}




.popSwiper {
    height: 20%;
    box-sizing: border-box;
    padding: 10px 0;
    margin-top: 3%;
}

.popSwiper .swiper-slide {
    width: 60px !important;
    height: 100%;
    opacity: 0.4;
    padding: 0px;
}
.popSwiper .swiper-slide:last-child {
    margin-right: 0px !important;
}

.popSwiper .swiper-slide .photo {
    background-size: cover;
    background-position: center;
    width: 60px;
    height: 60px;
    overflow: hidden;
    object-fit: cover;
    padding: 0px;
    object-position: center;
}

.popSwiper .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #5e4040;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* .popSwiper .swiper-slide{
    width: 50px !important;
} */
.popSwiper .swiper-wrapper {
    justify-content: flex-end;
    margin-right: -10px
}

.popSwiper .swiper-slide img {}




.popSwiper2:before {
    content: "";
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ffffff+0,ffffff+100&1+0,0+100;White+to+Transparent */
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    height: 100%;
    display: block;
    width: 20%;
    z-index: 2;
    position: absolute;
    top: 0px;
    left: 0px;
    display: none;
}



.popSwiper2:after {
    content: "";
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ffffff+0,ffffff+100&0+0,1+100 */
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    height: 100%;
    display: block;
    width: 20%;
    z-index: 2;
    position: absolute;
    right: 0px;
    top: 0px;
    display: none;
}


.swiper-button-next:after,
.swiper-button-prev:after {
    color: #000;
    font-size: 18px;
}




@media (min-width: 992px) {
    .row-lg {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (min-width: 680px) {
    .idea {
        position: relative;
        flex: 0 0 auto;
        width: calc(100% / 2);
        z-index: 0
    }

    .idea::before {
        position: absolute;
        content: '';
        top: 0;
        left: calc(var(--gutter)/2);
        right: calc(var(--gutter)/2);
        bottom: 0;
        z-index: -1;
        background-color: #fff;
    }

    .idea__inner {
        background: none;
    }

    .row-md {
        display: flex;
        flex-wrap: wrap;
    }
}


@media (min-width: 992px) {
    .wrapper .categoryTabs {
        margin-bottom: 30px;
    }

    .idea {
        /*  position: relative;
    flex: 0 0 auto; */
        width: calc(100% / 3);
        /* z-index: 0 */
    }



}

@media screen and (orientation: landscape) {}



@media screen and (max-width: 1380px) {}

@media screen and (max-width: 1200px) {
    .top-banner .banner {
        height: 100%;
    }

    .banner-cover {
        height: 80px;
    }

}

@media screen and (max-width: 1170px) {}

@media screen and (max-width: 960px) {
    .idea {
        width: calc(100% / 2);
    }




}

@media screen and (max-width: 992px) {
    .row-lg {
        display: flex;
    }

    .categoryTabs {
        justify-content: center;
    }
}

@media screen and (max-width:787px) {
    .idea {

        width: calc(100% / 1);
        margin-bottom: 40px;

    }

    .info-page .container {
        padding: 0px 20px;
    }

    .banner-title {
        padding: 0px 20px;
    }



    .banner img {
        transform: scale(1.5);
        margin-top: 5%;
    }

    .banner-title {
        text-align: center;

    }

    .banner-cover {
        bottom: -50px;
        background-image: url('../images/case-mb-cover.png');
    }

    .popup-content {
        width: 100%;
        margin: 0 auto;
        height: 90%;
        overflow: hidden;
        padding: 20px;
    }

    .article-content {
        overflow: scroll;
        height: 82%;
        padding-right: 10px;
        padding-bottom: 20px;
    }

    .popup {
        top: 57px;
        padding: 0px 20px;
    }

    .close {
        top: 92%;
        margin: 0 auto;
        left: 0px;
        right: 0px;
    }

    #idesa {
        --gutter: 0px;
    }

    .categoryTabs {
        overflow-x: scroll;
        justify-content: flex-start;
        /*         padding-left: 80px !important; */
        margin-bottom: 5px !important;

    }

    .categoryTabs::-webkit-scrollbar {
        display: none;
    }

    .top-banner .banner {}

    .banner-title {
        top: 40%;
    }

    .banner-cover {
        bottom: 0px;
    }

    .top-banner {
        height: 380px;

    }

    #idesa {
        margin-right: 0;
        margin-left: 0;
    }

    .popup-content .idea__cont .idea__txt {
        font-size: 24px;
        font-weight: 500;
    }

    .idea__cont {
/*         padding: 0px 0px 15px 0px; */
    }

    .popup-content #popup-subtitle {
        font-size: 22px;
        font-weight: 500;
    }

    .popup-content .ck-content p {
        font-size: 16px;
        font-weight: 400;
    }
    .page_number {
        margin: 50px auto;
    }


}



@media screen and (max-width:640px) {
    .banner img {
        transform: scale(2);
        margin-top: 10%;
    }

    .banner-cover {
        bottom: 0%;
    }

    .banner-title {
        top: 25%;
    }
    

}

@media screen and (max-width:480px) {

    /* .top-banner {
        height: 28vh;
        margin-top: 80px;
    } */

    .top-banner {
        height: 320px;
    }
    .banner-title {
        top: 20%;
    }

    .banner-cover {
        bottom: 0%;
    }

}

@media screen and (max-width:420px) {
    .banner img {
        margin-top: 20%;
    }
    .popSwiper2 {
        height: 200px;
    }


}

@media screen and (max-width:320px) {}