@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300&family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body {
    background-color: rgb(68, 76, 87);
}

.building_content_info table {
    border: none;
    border-spacing: 5px;
}

.building_info_detail b {
    font-family: 'Prompt', sans-serif;
    font-weight: 600;
}

.program_banner_container {
    align-items: unset !important;
    justify-items: unset !important;
}

.program_list_item {
    width: auto !important;
}

.program_banner_section {
    /* margin: 4rem auto auto auto !important; */
    max-width: 1980px !important;
}

.program_title .program_head {
    height: auto !important;
    margin-left: 2rem !important;
}

.program_list_container {
    max-width: 1980px !important;
}

.program_title .program_head h2 {
    min-width: 18rem !important;
}

.program_btn_detail {
    text-transform: none !important;
}

.program_list_img img {
    width: 316px;
    height: 205px;
    object-fit: cover;
    border-radius: 14px;
}

.program_list_name {
    margin-top: 0 !important;
    font-weight: bold;
}

.program_btn_room {
    font-size: 18px;
}

.program_list_section {
    margin: 4rem 0;
}

.video_pr video {
    height: 580px;
    object-fit: cover;
}

.video_pr img {
    height: 580px;
    object-fit: cover;
}

.red_header {
    text-align: center;
    background-color: #B80A0A;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    max-width: 480px;
    width: auto;
    margin: auto;
    border-radius: 99px;
    text-transform: uppercase;
    padding: 0.5rem;
}

.youtube_container {
    margin: 4rem 0 2rem 0;
    padding: 0;
}

.y_vdo_content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 2rem 0;
}

.y_vdo_item iframe {
    border-radius: 18px;
    width: 720px;
    height: 360px;
}

/* Modal */

/* ให้ Bootstrap จัดการ display แทน */
.modal {
    /* height: 100vh !important; */
    z-index: 9999 !important;
}

.modal-backdrop {
    z-index: unset;
}

.modal-dialog {
    /* max-width: unset !important; */
}

.modal-content {
    /* max-width: unset !important; */
    background-color: unset !important;
    margin: unset !important;
    padding: unset !important;
    height: auto;
    box-shadow: none !important;
    border: none !important;
}

.building_content_vr {
    display: flex;
    flex-wrap: unset;
    flex-direction: row;
    align-items: center;
    width: 940px;
    height: 650px;
    /* background-color: #B80A0A; */
    background-color: #fff;
    border-radius: 8px;
    margin: auto;
    text-align: right;
}

.building_img img {
    position: relative;
    min-width: 380px;
    max-width: 380px;
    height: 650px;
    /* transform: translateX(-8rem); */
    /* padding: 2rem; */
}

.building_img img {
    display: block;
    width: 100%;
    height: 650px;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}

.building_img::before {
    content: "";
    position: absolute;
    inset: 0;
    /* background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%); */
    box-shadow: 0.5rem 0.5rem 3rem 1px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    opacity: 0.5;
}

.building_content_date span {
    display: block;
    color: #8e8c8c;
    font-weight: 600;
    margin: 0.5rem 0;
}

.building_info_title {
    font-size: 28px;
    font-weight: bold;
    width: 100%;
    text-align: left;
    /* margin: 1.5rem 0 2rem; */
    text-transform: uppercase;
    /* color: #fff; */
}

.building_info_detail {
    /* color: #fff; */
    font-size: 18px;
    padding: 1rem 0rem;
    text-align: justify;
}

.building_content_info {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 3.5rem 2rem;
}

.building_link {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: baseline;
}

.building_link a {
    background-color: #B80A0A;
    color: #fff;
    float: left;
    padding: 0.2rem 0.8rem;
    border-radius: 16px;
    transition: transform .2s;
}

.building_link a:hover {
    transform: scale(1.1);
}

.building_link button {
    float: right;
    margin-bottom: 1.05rem;
}

/* Responsive */
@media screen and (max-width: 720px) {
    .y_vdo_item iframe {
        border-radius: 18px;
        width: 100%;
        height: 280px;
    }

    .y_vdo_content {
        gap: 1.5rem;
        margin: 1.5rem 0;
    }

    .red_header {
        width: auto;
        font-size: 18px;
    }

    .video_pr video {
        height: 280px;
        object-fit: cover;
    }

    .video_pr img {
        height: 280px;
        object-fit: cover;
    }

    .youtube_container {
        margin: 2rem 0 2rem 0;
        padding: 0 0.2rem;
    }
}

@media screen and (max-width: 1068px) {
    .building_container {
        margin: 0.5rem 0.5rem 10rem 0.5rem;
        padding: 0;
    }

    .building_content_vr {
        flex-wrap: wrap;
        flex-direction: column;
        width: 380px;
        height: auto;
        padding-bottom: 1rem;
    }

    .building_content_info {
        /* padding: 2.5rem; */
        flex-direction: column;
        width: 380px;
        height: auto;
        /* text-align: center; */
        padding-bottom: 1rem;
        /* margin-left: 5rem; */
    }

    .building_img img {
        /* transform: translate(0, -3rem); */
        width: 380px;
        height: 254px;
        border-radius: 8px 8px 0 0;
    }

    .building_link button {
        margin-bottom: 0rem;
    }

}