/* =========================================================
   VERSI 29 - GALERI MODEL ALBUM
   1 album = 1 foto cover, nama ekskul, tombol lihat album.
   ========================================================= */

.galeri-page-v29{
  padding:54px 0 72px;
}

.album-grid-v29{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:28px;
}

.album-card-v29{
  background:#ffffff;
  border:1px solid rgba(37,99,235,.16);
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 18px 46px rgba(15,39,71,.10);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.album-card-v29:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 60px rgba(15,39,71,.14);
  border-color:rgba(37,99,235,.26);
}

.album-cover-v29{
  display:block;
  width:100%;
  aspect-ratio:16 / 10;
  overflow:hidden;
  background:#f1f5f9;
}

.album-cover-v29 img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}

.album-card-v29:hover .album-cover-v29 img{
  transform:scale(1.035);
}

.album-info-v29{
  padding:22px 24px 24px;
}

.album-info-v29 h3{
  margin:0 0 14px;
  color:#0b2f6f;
  font-size:24px;
  line-height:1.22;
}

.lihat-album-v29{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 18px;
  border-radius:12px;
  background:#2563eb;
  color:#ffffff;
  font-weight:800;
  text-decoration:none;
  box-shadow:0 12px 28px rgba(37,99,235,.22);
}

.lihat-album-v29:hover{
  color:#ffffff;
  filter:brightness(.98);
}

.album-topbar-v29{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:28px;
}

.album-count-v29{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 16px;
  border-radius:999px;
  background:#eff6ff;
  color:#2563eb;
  font-weight:900;
}

.album-heading-v29{
  margin-bottom:26px;
}

.album-heading-v29 h2{
  margin:14px 0 10px;
  color:#0b2f6f;
  font-size:clamp(34px, 3vw, 52px);
  line-height:1.05;
}

.album-heading-v29 p{
  max-width:820px;
  margin:0;
  color:#64748b;
  font-size:17px;
  line-height:1.7;
}

.photo-grid-v29{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:24px;
}

.photo-card-v29{
  background:#ffffff;
  border:1px solid rgba(37,99,235,.16);
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 16px 42px rgba(15,39,71,.09);
}

.photo-open-v29{
  display:block;
  width:100%;
  aspect-ratio:16 / 10;
  padding:0;
  margin:0;
  border:0;
  background:#f1f5f9;
  cursor:pointer;
  overflow:hidden;
}

.photo-open-v29 img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .35s ease;
}

.photo-card-v29:hover .photo-open-v29 img{
  transform:scale(1.035);
}

.photo-caption-v29{
  padding:16px 18px 18px;
}

.photo-caption-v29 b{
  display:block;
  color:#0b2f6f;
  font-size:18px;
  line-height:1.25;
}

.photo-caption-v29 span{
  display:block;
  margin-top:6px;
  color:#64748b;
  font-weight:700;
}

.empty-gallery-v29{
  background:#ffffff;
  border:1px solid rgba(37,99,235,.16);
  border-radius:22px;
  padding:44px 28px;
  text-align:center;
  box-shadow:0 18px 46px rgba(15,39,71,.08);
}

.empty-gallery-v29 h3{
  margin:0 0 10px;
  color:#0b2f6f;
  font-size:28px;
}

.empty-gallery-v29 p{
  margin:0;
  color:#64748b;
  line-height:1.6;
}

.gallery-modal-v29{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:28px;
  background:rgba(2, 6, 23, .74);
  backdrop-filter:blur(10px);
}

.gallery-modal-v29.is-open-v29{
  display:flex;
}

.modal-open-v29{
  overflow:hidden;
}

.gallery-modal-body-v29{
  width:min(1040px, 96vw);
  max-height:92vh;
  background:#ffffff;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 28px 80px rgba(0,0,0,.32);
}

.gallery-modal-body-v29 img{
  width:100%;
  max-height:74vh;
  object-fit:contain;
  display:block;
  background:#020617;
}

.gallery-modal-caption-v29{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 20px;
}

.gallery-modal-caption-v29 b{
  color:#0b2f6f;
  font-size:18px;
}

.gallery-modal-caption-v29 span{
  color:#64748b;
  font-weight:700;
}

.gallery-modal-close-v29{
  position:fixed;
  right:24px;
  top:22px;
  z-index:100000;
  width:46px;
  height:46px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:14px;
  background:rgba(255,255,255,.12);
  color:#ffffff;
  font-size:32px;
  line-height:1;
  cursor:pointer;
}

/* Desktop disamakan: tidak ada panel samping */
@media (min-width:901px){
  .galeri-page-v29{
    width:min(1360px, calc(100% - 136px)) !important;
    max-width:1360px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
}

/* Tablet */
@media (max-width:1100px){
  .album-grid-v29,
  .photo-grid-v29{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

/* HP */
@media (max-width:700px){
  .galeri-page-v29{
    padding:28px 0 52px;
  }

  .album-grid-v29,
  .photo-grid-v29{
    grid-template-columns:1fr;
    gap:18px;
  }

  .album-card-v29,
  .photo-card-v29{
    border-radius:18px;
  }

  .album-info-v29{
    padding:18px;
  }

  .album-info-v29 h3{
    font-size:22px;
  }

  .lihat-album-v29{
    width:100%;
  }

  .album-topbar-v29{
    flex-direction:column;
    align-items:stretch;
  }

  .album-topbar-v29 .btn,
  .album-count-v29{
    width:100%;
  }

  .gallery-modal-v29{
    padding:14px;
  }

  .gallery-modal-caption-v29{
    flex-direction:column;
    align-items:flex-start;
  }

  .gallery-modal-close-v29{
    right:14px;
    top:14px;
  }
}


/* =========================================================
   VERSI 31 - ALBUM GALERI FOTO SAJA
   ========================================================= */

/* Halaman album: hilangkan jarak bekas deskripsi */
.album-heading-v29{
  margin-bottom:24px;
}

/* Kartu foto di halaman album hanya menampilkan foto */
.photo-card-v29{
  overflow:hidden;
}

.photo-card-v29 .photo-open-v29{
  aspect-ratio:16 / 11;
  border-radius:20px;
}

/* Pastikan tidak ada caption yang muncul di bawah foto */
.photo-caption-v29,
.gallery-modal-caption-v29{
  display:none !important;
}

/* Zoom foto: tidak ada bar caption putih di bawah */
.gallery-modal-body-v29{
  background:transparent !important;
  border-radius:20px !important;
}

.gallery-modal-body-v29 img{
  border-radius:20px !important;
  max-height:86vh !important;
}

/* HP: foto tetap rapi dan tidak terlalu tinggi */
@media (max-width:700px){
  .photo-card-v29 .photo-open-v29{
    aspect-ratio:4 / 3;
    border-radius:18px;
  }

  .gallery-modal-body-v29 img{
    max-height:84vh !important;
    border-radius:16px !important;
  }
}


/* =========================================================
   VERSI 32 - SATU LIGHTBOX SAJA
   ========================================================= */

/* Modal custom lama dinonaktifkan total supaya tidak double dengan lightbox utama */
.gallery-modal-v29,
.gallery-modal-v29.is-open-v29,
.gallery-modal-body-v29,
.gallery-modal-close-v29,
.gallery-modal-caption-v29{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

/* Pastikan foto album tetap clickable untuk lightbox utama yang punya tombol geser */
.photo-open-v29{
  cursor:pointer;
}

/* Lightbox utama tampil bersih tanpa caption tambahan */
#lightbox .lightbox-caption,
#lightbox [class*="caption"],
#lightbox [class*="title"]{
  display:none !important;
}
