/* --- Base container --- */
.vimeo-video-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    padding: 0 !important;
}

/* Thumbnail image */
.vimeo-video-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Play button */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14.44%;
    height: auto;
    aspect-ratio: 1 / 1;
    transform: translate(-50%,-50%);
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    content: '' !important;
    outline: unset !important;
    outline-offset: unset !important;
    padding: 0 !important;
    background-image: url(/themes/custom/atritheme/images/play_button_icon.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-color: rgba(8,15,50,0.7);
}
 
.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.video-play-btn:focus-visible {
    content: '' !important;
    border: unset !important;
    border-radius: unset !important;
    box-shadow: unset !important;
    outline: unset !important;
    outline-offset: unset !important;
}

/* --- Iframe wrapper — VERY IMPORTANT FIX --- */
.iframe-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    display: block;  /* your jQuery already shows it */
}

/* Vimeo iframe — full cover */
.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    margin: 0 !important; /* remove the -10px issue */
}

/* Optional loading indicator */
.vimeo-video-container .loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    z-index: 10;
}

div[style="padding:56.25% 0 0;position:relative;"]{
    padding: unset !important;
    position: relative !important;
}

/* .vimeo-video-container iframe.video-preloaded-iframe {
    position: relative !important;
} */
