/* 모달 비디오 스타일 */
.modal-video-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-video-overlay.active {
    display: flex;
}

.modal-video-container {
    position: relative;
    width: 90%;
    max-width: 720px;
    background-color: #fff;
    border-radius: 32px;
}

.modal-video-container .content {
    padding: 0 32px 32px;
}

.modal-video-close {
    position: absolute;
    top: 26px;
    right: 28px;
    width:24px; height: 24px;
    background: url('../images/sub/close.svg') 50% 50% no-repeat;
    background-size: 24px;
    border: none;
    cursor: pointer;
    z-index: 10000;
    border-radius: 50%;
    transition: background-color 0.2s;
}



.modal-video-title {
    padding: 32px 60px 32px 32px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4em;
    color: var(--gray-color-100);
}

.modal-video-title.empty {
    color: #999;
    font-weight: 500;
    font-style: italic;
}

.modal-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 비율 */
    height: 0;
    overflow: hidden;
    background-color: #000;
    margin-bottom: 20px;
}

.modal-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.modal-video-text {
    font-size: 16px;
    line-height: 1.4em;
    color: var(--gray-color-100);
}

.modal-video-text.empty {
    color: var(--gray-color-40);
    font-style: italic;
}

@media (max-width: 768px) {
    .modal-video-container {
        width: 95%;
        padding: 15px;
    }

    .modal-video-title {
        margin-bottom: 12px;
        font-size: 16px;
    }
    
    .modal-video-text {
        padding: 15px;
        font-size: 14px;
    }
}
