/* ===== GALLERY PAGE ===== */

/* HAPUS: body:has(.gallery-section) .hero-slider { pointer-events:none } */
/* Baris itu yang mematikan semua klik di hero slider khusus halaman gallery */

.gallery-section {
    padding: 70px 40px;
    background: #fff;
    position: relative;
    z-index: 1; /* FIX: turun dari 20 supaya tidak menimpa navbar */
}

.gallery-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.gallery-item {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .4s;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/* LIGHTBOX */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.9);
}

#lightbox.open { display: flex; }

#lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    position: relative;
    z-index: 10001;
}

.lightbox-bg {
    position: absolute;
    inset: 0;
    z-index: 10000;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 10002;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    z-index: 10002;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* MOBILE */
@media (max-width: 900px) {
    .gallery-section { padding: 50px 20px; }
    .gallery-item img { height: 180px; }
}