/**
 * Video Modal CSS - Styling for the Dailymotion video modal
 */

.video-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.video-modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 0;
    padding-bottom: 50.625%; /* 16:9 aspect ratio */
    margin: auto;
    background: black;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.video-modal-overlay.active .video-modal-container {
    opacity: 1;
    transform: scale(1);
}

.video-modal-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.3s ease;
    font-weight: bold;
}

.video-modal-close:hover {
    background: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-modal-container {
        width: 95%;
        padding-bottom: 53.4375%; /* Maintain aspect ratio */
    }
}
