/* =========================================================
   CSS KHUSUS HALAMAN "GALERI FOTO & VIDEO"
   Prefix class "gl-". Warna tetap ambil dari variabel :root di
   assets/css/muspla-design.css.
   ========================================================= */

/* ================= HERO + TOGGLE ================= */
.gl-hero{
  position:relative; overflow:hidden; background:var(--blue-deep); color:#fff;
  padding:64px 0 46px;
}
.gl-hero-blob-1{
  top:-150px; right:-110px; width:420px; height:420px; border-radius:50%;
  background:radial-gradient(circle, rgba(245,197,24,.28) 0%, transparent 70%);
}
.gl-hero-blob-2{
  bottom:-160px; left:-120px; width:360px; height:360px; border-radius:50%;
  background:radial-gradient(circle, rgba(227,227,245,.14) 0%, transparent 70%);
}
.gl-hero-inner{ position:relative; z-index:1; max-width:680px; }
.gl-hero-inner h1{ font-size:clamp(30px,4vw,46px); font-weight:800; line-height:1.15; }
.gl-hero-lede{ margin-top:16px; font-size:16px; color:rgba(255,255,255,.78); max-width:560px; }

.gl-toggle{
  display:inline-flex; gap:6px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.16);
  border-radius:100px; padding:6px; margin-top:30px;
}
.gl-toggle-btn{
  display:inline-flex; align-items:center; gap:8px; font-family:'Inter',sans-serif; font-weight:700;
  font-size:14.5px; color:rgba(255,255,255,.75); background:transparent; border:none; border-radius:100px;
  padding:11px 22px; cursor:pointer; transition:all .18s ease;
}
.gl-toggle-btn:hover{ color:#fff; }
.gl-toggle-btn.is-active{ background:var(--yellow); color:var(--blue-deep); }
.gl-toggle-count{
  display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:20px; padding:0 6px;
  font-size:11.5px; border-radius:100px; background:rgba(255,255,255,.18);
}
.gl-toggle-btn.is-active .gl-toggle-count{ background:rgba(0,0,61,.14); color:var(--blue-deep); }

/* ================= FILTER KATEGORI ================= */
.gl-filter-row{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:28px; }
.gl-filter-pill{
  font-family:'Inter',sans-serif; font-weight:600; font-size:13.5px; color:var(--ink-soft);
  background:var(--cream); border:1.5px solid transparent; border-radius:100px; padding:9px 20px; cursor:pointer;
  transition:all .18s ease;
}
.gl-filter-pill:hover{ border-color:var(--blue); color:var(--blue-deep); }
.gl-filter-pill.is-active{ background:var(--blue-deep); border-color:var(--blue-deep); color:#fff; }

.gl-empty{ text-align:center; color:var(--ink-soft); padding:40px 0; font-size:14.5px; }

/* ================= GRID KARTU (ALBUM & VIDEO) ================= */
.gl-grid{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:22px;
}
.gl-card{
  display:block; text-align:left; background:var(--white); border:none; border-radius:var(--radius-md);
  overflow:hidden; box-shadow:var(--shadow-sm); cursor:pointer; padding:0; transition:transform .2s ease, box-shadow .2s ease;
  font-family:inherit;
}
.gl-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow); }

.gl-card-thumb{
  position:relative; height:170px; background-size:cover; background-position:center; background-color:var(--blue-light);
}
.gl-card-overlay{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(180deg, rgba(0,0,61,0) 40%, rgba(0,0,61,.55) 100%);
  opacity:0; transition:opacity .2s ease;
}
.gl-card:hover .gl-card-overlay{ opacity:1; }
.gl-card-overlay.gl-play{
  background:rgba(0,0,61,.28);
  opacity:1;
}
.gl-card-overlay.gl-play svg{
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.35));
}
.gl-card:hover .gl-card-overlay.gl-play{ background:rgba(0,0,61,.42); }

.gl-card-count{
  position:absolute; bottom:10px; right:12px; font-size:11.5px; font-weight:700; color:#fff;
  background:rgba(0,0,61,.55); border-radius:100px; padding:3px 11px;
}
.gl-card-body{ display:block; padding:14px 16px 16px; }
.gl-card-title{
  display:block; font-family:'Plus Jakarta Sans',sans-serif; font-weight:700; font-size:14.5px; color:var(--blue-deep);
  line-height:1.3; margin-bottom:4px;
}
.gl-card-kategori{ display:block; font-size:12px; color:var(--ink-soft); }

/* ================= LIGHTBOX FOTO ================= */
.gl-lightbox{
  position:fixed; inset:0; z-index:9999; background:rgba(0,0,20,.94);
  display:flex; flex-direction:column; align-items:center; justify-content:center; padding:70px 24px 24px;
}
.gl-lb-title{
  position:absolute; top:22px; left:28px; color:#fff; font-weight:700; font-size:15px; max-width:70%;
}
.gl-lb-stage{ max-width:min(900px, 86vw); max-height:64vh; display:flex; align-items:center; justify-content:center; }
.gl-lb-stage img{ max-width:100%; max-height:64vh; border-radius:10px; box-shadow:0 20px 60px rgba(0,0,0,.5); }
.gl-lb-counter{ color:rgba(255,255,255,.7); font-size:13px; margin-top:14px; }

/* Semua tombol bulat di lightbox/modal (panah, tutup, download) dipaksa
   jadi lingkaran sempurna dengan !important + aspect-ratio, supaya CSS
   bawaan tema induk Hestia untuk elemen <button>/<a> (padding, min-width,
   dll) tidak lagi bikin bentuknya gepeng/oval. */
.gl-lb-arrow,
.gl-lb-close,
.gl-lb-download,
.gl-vm-close{
  all:unset;
  box-sizing:border-box !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:48px !important; height:48px !important;
  min-width:48px !important; max-width:48px !important;
  min-height:48px !important; max-height:48px !important;
  aspect-ratio:1/1 !important;
  border-radius:50% !important;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); color:#fff; font-size:26px;
  line-height:1; padding:0 !important; margin:0 !important; cursor:pointer; z-index:2;
  flex-shrink:0; transition:background .18s ease;
}
.gl-lb-arrow:hover,
.gl-lb-close:hover,
.gl-lb-download:hover,
.gl-vm-close:hover{ background:rgba(255,255,255,.25); }

.gl-lb-arrow{ position:fixed; top:50%; transform:translateY(-50%); }
.gl-lb-prev{ left:22px; }
.gl-lb-next{ right:22px; }

.gl-lb-close,
.gl-vm-close{
  width:42px !important; height:42px !important; min-width:42px !important; max-width:42px !important;
  min-height:42px !important; max-height:42px !important;
  position:fixed; top:20px; right:24px; z-index:4;
}

.gl-lb-download{
  width:42px !important; height:42px !important; min-width:42px !important; max-width:42px !important;
  min-height:42px !important; max-height:42px !important;
  position:fixed; top:20px; right:78px; z-index:4; font-size:0;
}
.gl-lb-download svg{ width:19px; height:19px; }
.gl-lb-download.is-hidden{ display:none !important; }

.gl-lb-thumbs{
  display:none; /* filmstrip lama tidak dipakai lagi — browsing sekarang lewat modal grid album */
}

/* ================= MODAL GRID ALBUM (tampil duluan saat album diklik) ================= */
.gl-album-modal{
  position:fixed; inset:0; z-index:9998; background:rgba(0,0,20,.97);
  display:flex; flex-direction:column;
}
.gl-am-header{
  display:flex; align-items:flex-start; justify-content:space-between; gap:16px;
  padding:20px 24px; flex-shrink:0;
}
.gl-am-heading{ min-width:0; padding-top:6px; }
.gl-am-title{ color:#fff; font-weight:800; font-size:18px; line-height:1.3; font-family:'Plus Jakarta Sans',sans-serif; }
.gl-am-count{ color:rgba(255,255,255,.55); font-size:13px; margin-top:3px; }

.gl-am-body{ flex:1; overflow-y:auto; padding:0 24px 40px; }
.gl-am-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:10px;
}
.gl-am-item{
  all:unset; box-sizing:border-box; display:block; width:100%; aspect-ratio:1/1; border-radius:10px;
  overflow:hidden; cursor:pointer; background:rgba(255,255,255,.06);
  transition:transform .15s ease, box-shadow .15s ease;
}
.gl-am-item img{ width:100%; height:100%; object-fit:cover; display:block; }
.gl-am-item:hover{ transform:scale(1.035); box-shadow:0 10px 26px rgba(0,0,0,.45); }

.gl-am-loadmore-wrap{ display:flex; justify-content:center; margin-top:26px; }
.gl-am-loadmore{
  all:unset; box-sizing:border-box; cursor:pointer; color:#fff; font-weight:700; font-size:13.5px;
  font-family:'Inter',sans-serif; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.22);
  border-radius:100px; padding:11px 28px; transition:background .18s ease;
}
.gl-am-loadmore:hover{ background:rgba(255,255,255,.22); }

/* ================= MODAL VIDEO ================= */
.gl-video-modal{
  position:fixed; inset:0; z-index:9999; background:rgba(0,0,20,.94);
  display:flex; flex-direction:column; align-items:center; justify-content:center; padding:70px 24px;
}
.gl-vm-title{ position:absolute; top:22px; left:28px; color:#fff; font-weight:700; font-size:15px; max-width:70%; }
.gl-vm-stage{
  width:min(920px, 92vw); aspect-ratio:16/9; background:#000; border-radius:12px; overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
}
.gl-vm-stage iframe, .gl-vm-stage video{ width:100%; height:100%; display:block; border:none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1080px){
  .gl-grid{ grid-template-columns:repeat(3, 1fr); }
}
@media (max-width: 760px){
  .gl-grid{ grid-template-columns:repeat(2, 1fr); gap:14px; }
  .gl-card-thumb{ height:130px; }
  .gl-toggle{ width:100%; }
  .gl-toggle-btn{ flex:1; justify-content:center; padding:11px 12px; font-size:13.5px; }
  .gl-lb-arrow{
    width:40px !important; height:40px !important; min-width:40px !important; max-width:40px !important;
    min-height:40px !important; max-height:40px !important; font-size:22px;
  }
  .gl-lb-prev{ left:8px; }
  .gl-lb-next{ right:8px; }
  .gl-lb-close,
  .gl-vm-close{
    width:38px !important; height:38px !important; min-width:38px !important; max-width:38px !important;
    min-height:38px !important; max-height:38px !important; top:12px; right:14px;
  }
  .gl-lb-download{
    width:38px !important; height:38px !important; min-width:38px !important; max-width:38px !important;
    min-height:38px !important; max-height:38px !important; top:12px; right:60px;
  }
  .gl-am-header{ padding:16px 16px; }
  .gl-am-title{ font-size:15.5px; max-width:70%; }
  .gl-am-body{ padding:0 16px 28px; }
  .gl-am-grid{ grid-template-columns:repeat(auto-fill, minmax(96px, 1fr)); gap:6px; }
  .gl-am-item{ border-radius:8px; }
}
@media (max-width: 480px){
  .gl-grid{ grid-template-columns:1fr 1fr; }
}
