/* Стили для видео-модального окна */
/* Переопределяем некоторые стили из style.css для видео-модального окна */
#video_modal {
    background: none !important;
    box-shadow: none !important;
    max-width: none !important;
    width: 100% !important;
    display: none;
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    z-index: 9999;
    border-radius: 0 !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    justify-content: center;
    align-items: center;
    height: 100%;
    cursor: pointer;
}

#video_modal.open {
    display: flex !important;
}

.video_modal_wrapper {
    max-width: 80%;
    width: 900px;
    padding: 0 !important;
    background-color: #000 !important;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: default;
}

.close_video_modal {
    position: absolute;
    top: -40px;
    right: -40px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.video_container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Соотношение сторон 16:9 */
    position: relative;
    overflow: hidden;
}

.video_container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .video_modal_wrapper {
        max-width: 95%;
    }
    
    .close_video_modal {
        top: -30px;
        right: 0;
    }
} 