/*
 * Overlay chrome for assets/js/campaigns/rer/rer-video-lightbox.js — the
 * vanilla replacement for classic's CDN-only Fancybox modal (no self-hosted
 * Fancybox build exists in this theme; see that module's docblock).
 *
 * Sizing of the cloned `.dialog-content` itself (width/max-width/padding)
 * is NOT duplicated here — that already comes from `.rer-page .dialog-content`
 * in rer.css, unchanged, since the clone keeps its original class.
 */

.dose-rer-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dose-rer-lightbox[hidden] {
    display: none;
}

.dose-rer-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.dose-rer-lightbox__dialog {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 960px);
    max-height: 90vh;
    overflow: auto;
}

.dose-rer-lightbox__close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.dose-rer-lightbox__close:hover,
.dose-rer-lightbox__close:focus-visible {
    background: rgba(255, 255, 255, 0.3);
}

.dose-rer-lightbox__content .video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
}

.dose-rer-lightbox__content .video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

body.dose-rer-lightbox-open {
    overflow: hidden;
}
