#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
}

.modal_mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.modal_inner {
    position: absolute;
    top: 56%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 700px;
    background-color: #fff;
    padding: 40px 20px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

@media screen and (min-width: 768px) {
    .modal_text {
        padding-left: 35px;
    }
    .modal_inner iframe {
        width: 720px;
        height: 500px
    }
}

@media screen and (max-height: 800px) {
    .modal_inner {
        max-height: 75vh;
    }

}

@media screen and (max-width: 767px) {
    .modal_inner {
        overflow-y: auto;
        width: 80%;
        padding-bottom: 0px;
    }
    
    .modal_inner iframe {
        height: 520px; 
    }
}

.modal_close_btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.modal_close_btn:hover {
    opacity: 0.6;
}

.modal_title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}
.modal_text {
    margin-bottom: 20px;
}
.modal_text.hide {
    display: none;
}

body.no-scroll {
    overflow: hidden;
}