/* ==========================================================================
   Featured Video Styles
   ========================================================================== */
.featured-video-header {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 500px;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* For self-hosted videos that should behave like background */
.video-container video {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Add this to ensure video fills container properly */
.video-container iframe,
.video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* For YouTube/Vimeo iframes */
.video-container iframe {
    min-width: 100%;
    min-height: 100%;
}

@media (max-width: 768px) {
    .featured-video-header,
    .featured-image-header {
        height: 50vh;
        max-height: 400px;
    }
    
    .featured-header-content {
        padding: 20px;
    }
    
    .featured-header-content .entry-title {
        font-size: 2rem;
    }
    
    .featured-header-content .entry-description {
        font-size: 1rem;
    }
    
    .video-container iframe,
    .video-container video {
        width: 100%;
        height: 100%;
    }
}