/* ============================================
   LIGHTBOX — Shared image viewer
   ============================================ */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10002;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: var(--black-90);
}

.lightbox__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 1;
}

.lightbox__img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

.lightbox__close {
    position: absolute;
    top: -50px;
    inset-inline-end: 0;
    background: var(--white-10);
    border: none;
    padding: var(--space-3);
    border-radius: var(--radius-sm);
    color: var(--surface);
    cursor: pointer;
    transition: all 0.2s;
}

.lightbox__close:hover {
    background: var(--white-20);
}

.lightbox__close svg {
    width: var(--icon-lg);
    height: var(--icon-lg);
    stroke-width: 2.5;
}
