/* ============================================
   GLOBAL LIGHTBOX
   Used by any image with [data-lightbox-src].
   One DOM element, reused across the page.
   ============================================ */

.v-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.v-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.v-lightbox__img {
    max-width: 95vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    cursor: zoom-out;
}

.v-lightbox__close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    transition: color 0.2s;
    z-index: 10;
}

.v-lightbox__close:hover {
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 768px) {
    .v-lightbox {
        padding: 0.5rem;
    }
    .v-lightbox__close {
        top: 0.8rem;
        right: 1rem;
    }
}

/* Hint that an element with [data-lightbox-src] is expandable.
   Apply via JS so non-JS users don't see misleading affordance. */
.v-lightbox-trigger {
    cursor: zoom-in;
}
