/* =========================================================
   HALAMAN GALERI (pages/galeri.html): filter, grid foto, lightbox
   ========================================================= */
.gpage { padding-block: 2.5rem 4rem; background: var(--slate-50); }
.gpage__filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.gpage__chip { padding: 0.5rem 1rem; background: var(--white); border: 1px solid var(--slate-300); border-radius: var(--radius-full); color: var(--slate-700); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.gpage__chip:hover { border-color: var(--emerald-700); }
.gpage__chip.is-active { background: var(--emerald-700); border-color: var(--emerald-700); color: var(--white); }

.gpage__grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px)  { .gpage__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
@media (min-width: 1024px) { .gpage__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.gpage__item { position: relative; display: block; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius-xl); background: var(--emerald-50); box-shadow: var(--shadow-md); cursor: zoom-in; text-align: left; }
.gpage__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gpage__item:hover img { transform: scale(1.06); }
.gpage__item:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.gpage__caption { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 0.125rem; padding: 2rem 0.75rem 0.625rem; background: linear-gradient(to top, rgb(5 9 16 / 0.85), transparent); color: var(--white); }
.gpage__cat { font-size: 0.625rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-300); }
.gpage__title { font-size: 0.8125rem; font-weight: 700; line-height: 1.3; }
.gpage__status { grid-column: 1 / -1; color: var(--slate-600); }

/* lightbox (elemen <dialog>) */
.lightbox { width: min(96vw, 60rem); max-width: none; max-height: 96vh; padding: 0; overflow: visible; border: 0; background: transparent; color: var(--white); }
.lightbox::backdrop { background: rgb(5 9 16 / 0.88); }
.lightbox__figure { margin: 0; }
.lightbox__img { display: block; max-width: 100%; max-height: 74vh; margin-inline: auto; object-fit: contain; border-radius: var(--radius-lg); }
.lightbox figcaption { padding: 0.875rem 3rem 0; text-align: center; }
.lightbox__title { font-weight: 800; }
.lightbox__caption { margin-top: 0.25rem; color: var(--slate-200); font-size: 0.875rem; line-height: 1.5; }
.lightbox__count { margin-top: 0.5rem; color: var(--slate-300); font-size: 0.75rem; }
.lightbox__btn { position: absolute; z-index: 1; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: var(--radius-full); background: rgb(255 255 255 / 0.16); color: var(--white); font-size: 1rem; cursor: pointer; }
.lightbox__btn:hover { background: rgb(255 255 255 / 0.3); }
.lightbox__btn:focus-visible { outline: 3px solid var(--gold-500); }
.lightbox__close { top: -3rem; right: 0; }
.lightbox__prev, .lightbox__next { top: 37vh; }
.lightbox__prev { left: 0.5rem; }
.lightbox__next { right: 0.5rem; }
@media (min-width: 1100px) { .lightbox__prev { left: -3.25rem; } .lightbox__next { right: -3.25rem; } }
