﻿.cb005 {
    overflow: hidden;
}

.cb005 .container--banner.banner-text .block-banner .cover-content-wrapper .banner-content .description {
    color: #222;
    font-family: Thongterm-Bold;
    font-size: 24px;
    line-height: 12px;
}

@media (max-width: 767px) {
    .cb005 .container--banner.banner-height-360px .block-banner .banner-content .h1 {
        color: #fff;
        font-size: 24px;
        line-height: 42px;
        margin-bottom: 4px !important;
    }
    .cb005 .container--banner.banner-height-360px .block-banner .banner-content .description {
        color: #fff;
        font-size: 18px !important;
        line-height: 36px !important;
    }
    .cb005 .css-description-banner {
        /* K13 ให้ค่านี้จาก image_banner.css (@media max-width:767px) ซึ่งหน้า XbyK ไม่ได้โหลด
           กฎ .cb002 .css-description-banner ใน widget.css เป็นบล็อกเปล่า จึงต้องเติมตรงนี้ */
        margin-top: 6%;
    }
}

/* Swiper 10 ใช้ class root ว่า .swiper แต่ view ยังใช้ .swiper-container แบบ Swiper 6 ของ K13
   bundle จึงไม่ได้ให้ position/overflow มา ทำให้ .swiper-pagination (absolute) หลุดออกนอกกรอบ
   K13 ชดเชยด้วย swiper.custom.css ซึ่งหน้า XbyK ไม่ได้โหลด */
.cb005 .swiper-container {
    position: relative;
    overflow: hidden;
}

.cb005 .text-bottom {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 300px;
}

.cb005.cb005 .text-bottom {
    margin-bottom: 33px !important;
}

.cb005.cb005 .hb-text-bottom {
    margin-bottom: 40px !important;
}

.cb005.cb005 .btn-yellow {
    height: 44px;
    width: 175px;
    border-radius: 5px;
    background-color: #ffd400;
    border: unset;
    color: #554242;
    font-family: "Krungsri-Condensed-Bold";
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0;
    padding-top: 1%;
    margin-top: 27px;
}

.cb005.cb005 .btn-brown {
    height: 44px;
    width: 175px !important;
    border-radius: 5px;
    background-color: #6F5F5E;
    border: unset;
    color: #ffd400;
    font-family: "Krungsri-Condensed-Bold";
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0;
    padding-top: 0.5%;
    margin-top: 27px;
}

.cb005 .hb-text-top {
    margin-bottom: 90px !important;
}

@media (max-width: 767px) {
    .cb005 .text-moongry-all {
        color: #554242;
    }
}

@media (max-width: 767px) {
    .cb005 .btn-yellow {
        background-color: #ffd400;
        font-family: Krungsri-Condensed-Bold;
        font-size: 16px;
        line-height: 27px;
        text-shadow: none;
        height: 44px !important;
        padding: 7px !important;
        width: 170px;
        margin-top: 27px;
        text-align: center;
        border-radius: 5px;
    }
}

.cb005 .text-moongry-all {
    color: #554242;
}

.cb005 .btn-yellow {
    background-color: #ffd400;
    font-family: Krungsri-Condensed-Bold;
    font-size: 16px;
    line-height: 27px;
    text-shadow: none;
    height: 44px !important;
    padding: 7px !important;
    width: 194px !important;
    margin-top: 27px;
    text-align: center;
}

@media (max-width: 767px) {
    .cb005 .cb .container--banner .swiper-pagination {
        bottom: 40px !important;
    }
}

.cb005 .cb .swiper-pagination {
    position: absolute;
    width: 100%;
    bottom: 40px !important;
}

.cb005 .cb .hb-text-bottom {
    margin-top: 33% !important;
}

@media screen and (max-width: 767px) {
    .cb005 .cover-content-wrapper {
        height: unset !important;
    }
    .cb005 .banner-content {
        top: auto !important;
    }
}

@media (max-width: 320px) {
    .cb005 .btn-brown {
        height: 44px;
        width: 270px !important;
        border-radius: 5px;
        background-color: #554242;
        border: unset;
        color: #ffd400;
        font-family: "Krungsri-Condensed-Bold";
        font-size: 16px;
        font-weight: bold;
        letter-spacing: 0;
         padding-top: 2.5% !important; 
    }
}

.cb005 .swiper {
    width: 100%;
    height: 100%;
    max-height: 360px;
}

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

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

.cb005 .swiper-pagination-bullet {
    background-color: transparent;

    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 50%;
    border: 2px solid #fff;
    width: 13px;
    height: 13px;
    margin: 5px 7px !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
}

.cb005 .swiper-pagination-bullet-active {
    background-color: #FDD400;
    
    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 50%;
    border: 2px solid #FDD400;
}

.cb005 .swiper-pagination.has-border .swiper-pagination-bullet-active {
    background-color: #FDD400;
    border: 2px solid #6f5f5e !important;
}

.cb005 .swiper-pagination-bullet:hover {
    background: #FDD400;
}

.cb005 .text-top {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 300px;
}

.cb005 .text-middle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.cb005.cb360 .text-centermb {
    margin-bottom: 75px !important;
}

.cb005 .text-btn-top {
    height: 0px;
}

.cb005 .text-btn-centermb {
    margin-top: 70px;
}

.cb005 .text-btn-bottom {
    margin-top: 116px;
}

.cb005 .btn-brown {
    height: 44px;
    min-width: 175px !important;
    width: auto !important;
    border-radius: 5px;
    background-color: #6F5F5E;
    border: unset;
    color: #ffd400;
    font-family: "Krungsri-Condensed-Bold";
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0;
    padding-top: 0.5%;
    margin-top: 32px;
}

.cb005 .btn-yellow {
    height: 44px;
    min-width: 175px;
    width: auto;
    border-radius: 5px;
    background-color: #ffd400;
    border: unset;
    color: #554242;
    font-family: "Krungsri-Condensed-Bold";
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0;
    padding-top: 1%;
    margin-top: 32px;
}

.cb005 .btn-primary {
    height: 44px;
    min-width: 175px;
    width: auto;
    border-radius: 3px;
    background-color: #ffd400;
    border: unset;
    color: #554242;
    font-family: "Krungsri-Condensed-Bold";
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0;
    padding-top: 1%;
    margin-top: 32px;
}

.cb005 .btn-MaroonGrey {
    height: 44px;
    min-width: 175px;
    width: auto;
    border-radius: 3px;
    background-color: #554242;
    border: unset;
    color: #ffd400;
    font-family: "Krungsri-Condensed-Bold";
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0;
    padding-top: 1%;
    margin-top: 32px;
}

.cb005 .description {
    line-height: 36px !important;
}

.cb005 .description {
    font-family: Thongterm-Roman;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0;

}

.cb005.cb005 .hb-text-centermb {
    margin-bottom: 56px !important;
}

.cb005.cb360 .hb-text-centermb {
    top: -20px;
    position: relative;
}

.cb005 .hb-text-bottom {
    padding-top: 50%;
}

.cb005 .container--cover {
    margin: 0 auto;
    margin-bottom: unset;
    position: relative;
    width: 100%;
    max-width: 100% !important;
}

.cb005 .swiper-horizontal>.swiper-pagination-bullets,
.cb005 .swiper-pagination-bullets.swiper-pagination-horizontal,
.cb005 .swiper-pagination-custom,
.cb005 .swiper-pagination-fraction {
    bottom: var(--swiper-pagination-bottom, 8px);
    top: var(--swiper-pagination-top, auto);
    left: 0;
    width: 100%;
    position: absolute;
    width: 100%;
    bottom: 44px !important;
}

@media (max-width: 767px) {
    .cb005.cb360 .hb-text-bottom {
        margin-bottom: 48px !important;
        padding: 0%
    }
}

@media(max-width: 768px) {
    .cb005 .description {
            line-height: 9px !important;
        }
}

.cb005 .h1 {
        color: #222;
        font-family: Krungsri-Condensed-Bold;
        font-size: 40px;
        line-height: 60px;
        text-shadow: 1px 2px 0 rgba(0, 0, 0, .2);
        margin-bottom: 16px;
    }

@media screen and (max-width: 320px) {
    .cb005 .swiper-horizontal > .swiper-pagination-bullets, .cb005 .swiper-pagination-bullets.swiper-pagination-horizontal, .cb005 .swiper-pagination-custom, .cb005 .swiper-pagination-fraction {
            bottom: var(--swiper-pagination-bottom, 8px);
            top: var(--swiper-pagination-top, auto);
            left: 0;
            width: 100%;
            position: absolute;
            width: 100%;
            
        }
}

.cb005 .block-banner .text-align-top,
    .cb005 .block-banner .text-align-centermb,
    .cb005 .block-banner .text-align-bottom {
        display: flex;
        width: 100%;
        height: 100%;
        overflow: hidden;
        position: relative;
        flex-direction: column;
    }

@media only screen and (max-width: 767px) {
    .cb005 .block-banner .text-align-top,
        .cb005 .block-banner .text-align-centermb,
        .cb005 .block-banner .text-align-bottom {
            margin: 0;
            padding: 24px 0; 
            display: flex;
            flex-direction: column;
            width: 100%;
            text-align: center; 
        }
    .cb005 .block-banner .text-align-top {
            justify-content: flex-start; 
        }
    .cb005 .block-banner .text-align-centermb {
            justify-content: center; 
        }
    .cb005 .block-banner .text-align-bottom {
            justify-content: flex-end; 
        }
    .cb005 .block-banner .text-align-top div,
            .cb005 .block-banner .text-align-centermb div,
            .cb005 .block-banner .text-align-bottom div {
                font-size: 14px; 
            }
}

.cb005.cb005 .text-top {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        height: 340px;
        padding-top: 24px;
    }

.cb005.cb005 .text-middle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 300px;
        padding-bottom: 56px;
    }

.cb005.cb005 .text-bottom {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        height: 300px;
        padding-bottom: 24px;
    }

.cb-005-modal .modal-content {
    height: 542px;
    width: 970px;
    background-color: transparent;
    border: none !important;
}

@media screen and (max-width: 767px) {
    .cb-005-modal .modal-content {
        height: 300px !important;
    }
    .cb-005-modal .modal-content {
        width: 100%;
        background-color: transparent;
        border: none !important;
    }
    .cb-005-modal iframe {
        width: 100%;
        height: 273px;
        border: none;
    }
    .cb-005-modal .modal-dialog {
        max-width: 700px; 
        margin: auto;
    }
    .cb-005-modal .modal {
        top: 13%;
    }
    .cb-005-modal .modal-content {
        border: none;
        border-radius: 0;
        box-shadow: none;
        background-color: transparent; 
        padding: 8px;
    }
    .cb-005-modal .modal-body {
        padding: 0;
    }
    .cb-005-modal .modal-dialog {
        display: flex;
        align-items: center;
        min-height: 100vh; 
        margin: 0 auto;
    }
    .cb-005-modal button.close {
        z-index: 1;
        right: inherit;
        top: -42px;
        position: relative;
    }
}

.cb-005-modal button.close span {
    right: -30px;
    top: 40px !important;
    position: relative;
    color: #fff;
    text-shadow: none;
    opacity: 1;
    font-size: 26px;
    text-align: right;
}
