/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

/* Featured Video Styles */
.featured-video-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 0;
}

.featured-video-container .video-wrapper {
    width: 100%;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 0 auto;
}

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

.video-modal-content {
    position: relative;
    margin: auto;
    width: 80%;
    max-width: 800px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.close-video-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 1000;
}

.close-video-modal:hover,
.close-video-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive adjustments */
@media only screen and (max-width: 700px) {
    .video-modal-content {
        width: 95%;
    }
    
    .close-video-modal {
        top: -35px;
        right: 5px;
        font-size: 30px;
    }
}

@media only screen and (max-width: 480px) {
    .video-modal-content {
        width: 100%;
        margin: 0 10px;
    }
    
    .close-video-modal {
        top: -30px;
        right: 5px;
        font-size: 24px;
    }
    
    .featured-video-container {
        padding: 0;
    }
}

/* Additional responsive styles for featured video - match gallery width */
@media only screen and (min-width: 768px) {
    .featured-video-container .video-wrapper {
        width: 100%;
        max-width: 100%;
    }
}

@media only screen and (min-width: 992px) {
    .featured-video-container .video-wrapper {
        width: 100%;
        max-width: 100%;
    }
}

@media only screen and (min-width: 1200px) {
    .featured-video-container .video-wrapper {
        width: 100%;
        max-width: 100%;
    }
}