/* ==========================================================================
   lightbox.css
   Styles for public/js/shared/lightbox.js, shared by the staff shell
   (views/home.ejs) and the public shop (views/shop.ejs). Moved out of
   common.css so the shop doesn't need the staff app's whole stylesheet.
   ========================================================================== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    z-index: 10500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 72px;
    box-sizing: border-box;
}

.lightbox-overlay.visible {
    display: flex !important;
}

.lightbox-stage {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 10px;
    color: #f1f5f9;
    font-size: 13px;
    text-align: center;
    max-width: 60vw;
}

.lightbox-counter {
    margin-top: 4px;
    color: rgba(241, 245, 249, 0.65);
    font-size: 11px;
    font-family: monospace;
}

.lightbox-close,
.lightbox-nav {
    position: fixed;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f1f5f9;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.18);
}

.lightbox-close {
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
}

.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .lightbox-overlay { padding: 24px 16px; }
    .lightbox-nav { width: 40px; height: 40px; }
    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }
