/* ── GALERIA: cursor pointer nas imagens ── */

/* .gallery-main img,
.gallery-thumb {
    cursor: zoom-in;
} */

.gallery-main img {
    cursor: zoom-in;
}

/* ════════════════════════════════════════
    LIGHTBOX MODAL
════════════════════════════════════════ */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.93);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#lightbox.open {
    display: flex;
}

/* Botão fechar */
#lbClose {
    position: absolute;
    top: 18px;
    right: 22px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
#lbClose:hover { background: rgba(255,255,255,0.22); }

/* Contador */
#lbCounter {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Área central da imagem */
#lbImgWrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 64px 72px 16px;
    box-sizing: border-box;
    min-height: 0;
}
#lbImg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 60px rgba(0,0,0,0.6);
    transition: opacity 0.18s ease;
}
#lbImg.fade-out { opacity: 0; }

/* Setas de navegação */
.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
.lb-arrow:hover { background: rgba(255,255,255,0.22); }
#lbPrev { left: 16px; }
#lbNext { right: 16px; }

/* Faixa de miniaturas */
#lbThumbs {
    display: flex;
    gap: 8px;
    padding: 12px 16px 20px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
    max-width: 100%;
    flex-shrink: 0;
}
#lbThumbs::-webkit-scrollbar { height: 4px; }
#lbThumbs::-webkit-scrollbar-track { background: transparent; }
#lbThumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

.lb-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 5px;
    opacity: 0.45;
    cursor: pointer;
    transition: opacity 0.2s, outline 0.2s;
    flex-shrink: 0;
    outline: 2px solid transparent;
}
.lb-thumb:hover { opacity: 0.75; }
.lb-thumb.active {
    opacity: 1;
    outline: 2px solid var(--gold, #c9a84c);
    outline-offset: 2px;
}

/* ── Responsivo ── */
@media (max-width: 600px) {
    #lbImgWrap { padding: 56px 48px 12px; }
    .lb-arrow { width: 38px; height: 38px; font-size: 16px; }
    #lbPrev { left: 6px; }
    #lbNext { right: 6px; }
    .lb-thumb { width: 50px; height: 38px; }
}