﻿.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    visibility: hidden;
    transition: opacity 0.9s ease;
    z-index: 100000;
}

.modal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    transition: transform 200ms ease-out, opacity 100ms ease-out;
    box-shadow: 0 6px 5px rgba(0, 0, 0, .18);
    transform: translateY(0);
    margin-top: 50vh;
    width: 900px;
    max-width: 90%;
}

@media screen and (max-width: 768px) {
    .modal-content {
        padding: 15px;
    }
}

.modal-overlay.active {
    visibility: visible;
}

.modal-overlay.active .modal-content {
    transform: translateY(-50%);
}

.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive::before {
    display: block;
    content: "";
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.embed-responsive-16by9::before {
    padding-top: 56.25%; /* 9/16 = 0.5625 = 56.25% */
}


#vr-modal-body .btn{
    width: fit-content;
}

.btn-line {
    background-color: #01B901 !important;
    color: white !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-line:hover {
    background-color: #1b9c1b !important;
}

.btn-line::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('/assets/img/home-builder/icon/sansiri-tonbabb-line-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.modal-close-btn {
    width: 35px;
    height: 35px;
    background-color: unset;
    border: unset;
    cursor:pointer;
}