/* Responsive Video Container Fix */
.video-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: white;
    background-image: url('../images/logo/monkey-moves-logo-square.png');
    background-size: 175px 175px;
    background-position: center;
    background-repeat: no-repeat;
}

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

.video-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .video-container {
        height: 250px; /* Smaller height on mobile */
        border-radius: 12px;
    }
    
    /* Aspect ratio approach for better mobile fit */
    .video-container {
        aspect-ratio: 16/9; /* Standard video aspect ratio */
        height: auto;
        min-height: 200px;
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .video-container {
        height: 200px;
        min-height: 180px;
        max-height: 220px;
        border-radius: 8px;
    }
}

/* Ensure video fills container properly */
.video-container iframe[src*="vimeo"] {
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    top: 0 !important;
    left: 0 !important;
    min-width: 100% !important;
    min-height: 100% !important;
}

/* Fallback for when video doesn't load */
.video-container img[onerror] {
    z-index: 1;
}
