/* Video Featured Image Styles */
.vfi-featured-video-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.vfi-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.vfi-video-thumbnail {
    transition: opacity 0.3s ease;
}

.vfi-video-thumbnail:hover {
    opacity: 0.9;
}

.vfi-video-play-overlay {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.vfi-video-thumbnail:hover .vfi-video-play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

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

.vfi-featured-video-element {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vfi-video-container {
        padding-bottom: 56.25%; /* Maintain 16:9 on mobile */
    }
}

/* Alignment support */
.vfi-featured-video-wrapper.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.vfi-featured-video-wrapper.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.vfi-featured-video-wrapper.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
