/* Image lightbox — click an embedded screenshot to view it enlarged.
   Shared by the investor page (.inv-figure-shot / .inv-hero-shot) and the
   user guide (.guide-figure-stage). Loaded raw (not bundled) after the page
   stylesheet, so edits take effect without an asset rebuild. */

/* Make trigger images signal they are clickable. */
.inv-figure-shot img,
.inv-hero-shot img,
.guide-figure-stage img {
    cursor: zoom-in;
}

.img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 4vmin;
    background: rgba(12, 14, 20, 0.86);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    /* Closed overlay stays in the DOM (fixed, full-viewport) — without this it
       would sit invisibly on top and swallow clicks on the images beneath. */
    pointer-events: none;
    transition: opacity 0.18s ease;
    cursor: zoom-out;
}

.img-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.img-lightbox__img {
    max-width: 92vw;
    max-height: 84vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.98);
    transition: transform 0.18s ease;
    cursor: default;
}

.img-lightbox.is-open .img-lightbox__img {
    transform: scale(1);
}

.img-lightbox__caption {
    max-width: 80ch;
    margin: 0;
    color: #e9ecf2;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    cursor: default;
}

.img-lightbox__close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 26px;
    line-height: 1;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s ease;
}

.img-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.24);
}

/* Lock background scroll while the lightbox is open. */
body.img-lightbox-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .img-lightbox,
    .img-lightbox__img {
        transition: none;
    }
}
