/* ==========================================================
   pnbyw-lightbox.css — Popup gambar lightbox
   ========================================================== */

/* Overlay gelap */
#pnbyw-lb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .88);
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity .25s ease;
}
#pnbyw-lb-overlay.is-open {
    display: flex;
    opacity: 1;
}
body.pnbyw-lb-open {
    overflow: hidden; /* cegah scroll saat lightbox terbuka */
}

/* Kontainer konten */
.pnbyw-lb-wrap {
    position: relative;
    max-width: min(92vw, 1000px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Gambar */
.pnbyw-lb-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    opacity: 0;
    transition: opacity .2s ease;
    box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.pnbyw-lb-img.is-loaded { opacity: 1; }

/* Caption */
.pnbyw-lb-caption {
    color: #e5e7eb;
    font-size: 13px;
    text-align: center;
    margin: 10px 0 0;
    max-width: 600px;
}

/* Tombol tutup */
.pnbyw-lb-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 36px;
    text-align: center;
    transition: background .15s;
    padding: 0;
}
.pnbyw-lb-close:hover { background: rgba(255,255,255,.3); }

/* Tombol navigasi prev/next */
.pnbyw-lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    font-size: 36px;
    width: 48px;
    height: 64px;
    cursor: pointer;
    border-radius: 4px;
    transition: background .15s;
    padding: 0;
    line-height: 1;
}
.pnbyw-lb-nav:hover { background: rgba(255,255,255,.25); }
.pnbyw-lb-prev { left: 8px; }
.pnbyw-lb-next { right: 8px; }

/* Kursor pointer pada gambar yang bisa diklik */
a.pnbyw-lightbox img,
a.pnbyw-lightbox-single img {
    cursor: zoom-in;
    transition: opacity .15s;
}
a.pnbyw-lightbox:hover img,
a.pnbyw-lightbox-single:hover img {
    opacity: .88;
}

/* Mobile */
@media (max-width: 600px) {
    .pnbyw-lb-nav { display: none; }
    .pnbyw-lb-close { top: -44px; right: 0; }
}
