/* Royal Wedding - Image Lightbox */

/* Hint that non-linked content images can be expanded (JS adds this too). */
.royal-wedding-portfolio-single__content img:not(a img),
.royal-wedding-venue-single__content img:not(a img) {
    cursor: zoom-in;
}

/* ── Overlay ─────────────────────────────────────────────────────────────── */
.rwil-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 4vh 4vw;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.rwil-overlay.is-open {
    display: flex;
    opacity: 1;
}

/* Image: as large as possible while staying fully inside the viewport. */
.rwil-overlay img {
    max-width: 92vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    cursor: default;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

/* Close (X) button, top-right. */
.rwil-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    line-height: 1;
    cursor: pointer;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rwil-close svg {
    width: 26px;
    height: 26px;
    display: block;
}
.rwil-close:hover { opacity: 0.65; }
.rwil-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .rwil-overlay { transition: none; }
}

/* Prevent background scroll while the overlay is open. */
body.rwil-lock { overflow: hidden; }
