/* Wrapper for cover + video */
.vimeo-wrapper {
    position: relative;
    width: 100%;
}

/* COVER (one cover for both mobile + desktop) */
.vimeo-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* on top of iframe */
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vimeo-cover picture,
.vimeo-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fade-out effect */
.hide-cover {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* =======================
 EXISTING VIDEO CONTAINER
 ======================= */
.vimeo-video-container {
    position: relative;
    width: 100%;
    padding-top: 177.78%;
    overflow: hidden;
}

@media (min-width: 1200px) {
    .vimeo-video-container {
        padding-top: 56.25%; /* 16:9 */
    }
}

.vimeo-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: -1; /* allowed because wrapper now creates a context */
}

/* =======================
 Existing control styles
 ======================= */

.vimeo-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 111;
}

.vimeo-play-pause,
.vimeo-mute-unmute {
    display: flex;
    gap: 10px;
}

.vimeo-play,
.vimeo-pause,
.vimeo-mute,
.vimeo-unmute {
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
}

.vimeo-play img,
.vimeo-pause img,
.vimeo-mute img,
.vimeo-unmute img {
    width: 50px !important;
    height: auto !important;
}

@media (min-width: 1200px) {
    .vimeo-play img,
    .vimeo-pause img,
    .vimeo-mute img,
    .vimeo-unmute img {
        width: auto !important;
        height: auto !important;
    }
}

.vimeo-mute-unmute {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    width: 50px !important;
}

@media (min-width: 1200px) {
    .vimeo-mute-unmute {
        bottom: 50px;
        right: 120px;
    }
}

.vimeo-play {
    display: none;
}
.vimeo-pause {
    display: block;
}
.vimeo-unmute {
    display: none;
}
.vimeo-mute {
    display: block;
}

/* Mobile/Desktop switching */
@media (max-width: 1199px) {
    .desktop-video {
        display: none;
    }
    .mobile-video {
        display: block;
    }
}

@media (min-width: 1200px) {
    .desktop-video {
        display: block;
    }
    .mobile-video {
        display: none;
    }
}
