/* ============================================================
   Gallery Adisil Bay — Artwork Lightbox
   Full-screen zoomable image viewer for artwork images
   ============================================================ */

.gab-lightbox-trigger {
    cursor: zoom-in;
}

.gab-lightbox-zoom-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(23, 21, 18, .55);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.gab-lightbox-zoom-wrap:hover .gab-lightbox-zoom-btn,
.gab-lightbox-zoom-btn:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.gab-lightbox-zoom-btn:hover {
    background: #b88638;
}

.gab-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10080;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 70px 24px;
    background: rgba(46, 43, 38, .92);
}

.gab-lightbox-overlay.open {
    display: flex;
}

.gab-lightbox-stage {
    position: relative;
    max-width: 92vw;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
    overflow: hidden;
}

.gab-lightbox-img-wrap {
    overflow: hidden;
    max-width: 100%;
    max-height: 78vh;
    cursor: grab;
}

.gab-lightbox-img-wrap.zoomed {
    cursor: grab;
}

.gab-lightbox-img-wrap.dragging {
    cursor: grabbing;
}

.gab-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    transition: transform .18s ease;
    will-change: transform;
}

.gab-lightbox-close {
    position: fixed;
    top: 20px;
    right: 26px;
    z-index: 10090;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.gab-lightbox-close:hover {
    background: rgba(255, 255, 255, .25);
    transform: rotate(90deg);
}

.gab-lightbox-controls {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 10090;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.gab-lightbox-controls button {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #171512;
    font-size: 16px;
    cursor: pointer;
    transition: background .15s ease;
}

.gab-lightbox-controls button:hover {
    background: #f1e9db;
}

.gab-lightbox-controls button:disabled {
    opacity: .35;
    cursor: default;
}

.gab-lightbox-controls .gab-lightbox-zoom-level {
    min-width: 46px;
    text-align: center;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #6b5a3f;
}

.gab-lightbox-caption {
    position: fixed;
    left: 50%;
    bottom: 84px;
    transform: translateX(-50%);
    z-index: 10090;
    max-width: 80vw;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(23, 21, 18, .55);
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    .gab-lightbox-overlay {
        padding: 60px 12px 110px;
    }

    .gab-lightbox-stage {
        padding: 10px;
    }

    .gab-lightbox-close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }

    .gab-lightbox-caption {
        bottom: 78px;
        font-size: 12px;
    }
}
