
/* Base styles */
.wblvm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.wblvm-modal {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2vw;
}

.wblvm-video-container {
    position: relative;
    width: 96vw;
    max-width: 1280px;
    aspect-ratio: 16 / 9;
    margin: auto;
}

.wblvm-video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Close button */
.wblvm-close {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    font-size: 24px;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    cursor: pointer;
    z-index: 9999999;
}

/* Fade animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Adjust for shorter screens (height < 500px) */
@media (max-height: 500px) {
    .wblvm-video-container {
        width: 96vw;
        height: 80vh; /* Allow taller video */
        aspect-ratio: auto; /* Remove fixed ratio */
    }

    .wblvm-video-container iframe {
        height: 100%;
    }
}

/* Old-browser belt & braces for the hidden content bank */
#ofr-modal-bank[inert] {
  pointer-events: none;   /* ignore clicks */
}
