/* Halaman Galeri. Pita judul memakai l4l-kegiatan.css. */
.l4l-gal .l4l-keg__band { padding-bottom: clamp(48px, 5vw, 76px); }
.l4l-gal__body { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(64px, 8vw, 120px); }
.l4l-gal ul { margin: 0; padding: 0; list-style: none; }

/* Filter wilayah */
.l4l-gal__filter ul { display: flex; flex-wrap: wrap; gap: 10px; }
.l4l-gal .l4l-gal__filter a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 20px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px #b9cac4; color: var(--l4l-ink); font-size: .9375rem; font-weight: 600; line-height: 1.3; white-space: nowrap; text-decoration: none; transition: background-color .2s, color .2s, box-shadow .2s; }
.l4l-gal .l4l-gal__filter a:hover { background: var(--l4l-green-tint); box-shadow: inset 0 0 0 1.5px var(--l4l-green); color: var(--l4l-green); }
.l4l-gal .l4l-gal__filter a[aria-current] { background: var(--l4l-green); box-shadow: none; color: #fff; }
.l4l-gal__filter a span { font-size: .875rem; font-weight: 500; opacity: .8; }

/* Grid foto: foto pertama besar (2 kolom x 2 baris) */
.l4l-gal .l4l-gal__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; margin-top: clamp(28px, 3.4vw, 44px); }
.l4l-gal__item figure { display: flex; flex-direction: column; height: 100%; margin: 0; }
.l4l-gal__item.is-big { grid-column: span 2; grid-row: span 2; }
.l4l-gal .l4l-gal__link { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 20px; background: #d7e4de; }
.l4l-gal__item.is-big .l4l-gal__link { flex: 1; aspect-ratio: auto; min-height: 320px; }
.l4l-gal .l4l-gal__link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--l4l-ease); }
.l4l-gal__link:hover img { transform: scale(1.04); }
.l4l-gal__zoom { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--l4l-green); opacity: 0; transform: scale(.85); transition: opacity .2s, transform .25s var(--l4l-ease); }
.l4l-gal__link:hover .l4l-gal__zoom, .l4l-gal__link:focus-visible .l4l-gal__zoom { opacity: 1; transform: none; }
.l4l-gal figcaption { display: flex; flex-direction: column; gap: 4px; padding: 14px 4px 0; }
.l4l-gal__where { font-size: .875rem; font-weight: 700; color: var(--l4l-orange-strong); }
.l4l-gal__cap { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 1rem; line-height: 1.5; color: var(--l4l-ink); }
.l4l-gal__item.is-big .l4l-gal__cap { font-size: 1.125rem; font-weight: 600; -webkit-line-clamp: 2; }
.l4l-gal__empty { margin: 40px 0 0; font-size: 1.125rem; color: var(--l4l-ink-soft); }
.l4l-gal a:focus-visible { outline: 3px solid var(--l4l-orange); outline-offset: 3px; }
.l4l-gal .l4l-gal__filter a:focus-visible { border-radius: 999px; }

@media (max-width: 1099.98px) {
  .l4l-gal .l4l-gal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l4l-gal__item.is-big { grid-row: auto; }
  .l4l-gal__item.is-big .l4l-gal__link { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 639.98px) {
  .l4l-gal .l4l-gal__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .l4l-gal__item.is-big { grid-column: auto; }
  .l4l-gal .l4l-gal__link { border-radius: 16px; }
  .l4l-gal__zoom { opacity: 1; transform: none; width: 38px; height: 38px; right: 10px; top: 10px; }
  .l4l-gal__filter ul { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--l4l-gutter)); padding: 2px var(--l4l-gutter); scrollbar-width: none; }
  .l4l-gal__filter ul::-webkit-scrollbar { display: none; }
}

/* Penampil foto layar penuh */
.l4l-lb { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: #061613; color: #fff; overflow: hidden; }
.l4l-lb[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.l4l-lb::backdrop { background: rgba(6, 22, 19, .6); }
.l4l-lb__stage { display: grid; place-items: center; min-height: 0; padding: 72px 88px 16px; }
.l4l-lb__img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 12px; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .2s; }
.l4l-lb__img.is-loading { opacity: .35; }
.l4l-lb__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; width: 100%; max-width: 1100px; margin: 0 auto; padding: 8px 24px 28px; }
.l4l-lb__text { display: flex; flex-direction: column; gap: 4px; margin: 0; max-width: 60em; }
.l4l-lb__count { font-size: .875rem; color: rgba(255, 255, 255, .7); }
.l4l-lb__where { font-size: .875rem; font-weight: 700; color: #ffa676; }
.l4l-lb__where:empty { display: none; }
.l4l-lb__cap { font-size: 1.0625rem; line-height: 1.55; color: #fff; }
.l4l-lb .l4l-lb__full { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); color: #fff; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.l4l-lb .l4l-lb__full:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.l4l-lb__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background-color .2s; }
.l4l-lb__btn:hover { background: rgba(255, 255, 255, .24); }
.l4l-lb__close { right: 20px; top: 16px; }
.l4l-lb__prev, .l4l-lb__next { top: calc(50% - 60px); }
.l4l-lb__prev { left: 20px; }
.l4l-lb__next { right: 20px; }
.l4l-lb[data-single] .l4l-lb__prev, .l4l-lb[data-single] .l4l-lb__next { display: none; }
.l4l-lb a:focus-visible, .l4l-lb button:focus-visible { outline: 3px solid #ffa676; outline-offset: 3px; }
@media (max-width: 767.98px) {
  .l4l-lb__stage { padding: 64px 0 8px; }
  .l4l-lb__img { border-radius: 0; }
  .l4l-lb__bar { flex-direction: column; align-items: stretch; padding: 8px 20px 20px; }
  .l4l-lb .l4l-lb__full { align-self: flex-start; }
  .l4l-lb__btn { width: 46px; height: 46px; }
  .l4l-lb__close { right: 12px; top: 10px; }
  .l4l-lb__prev, .l4l-lb__next { top: auto; bottom: 20px; }
  .l4l-lb__prev { left: auto; right: 72px; }
  .l4l-lb__next { right: 20px; }
  .l4l-lb__text { padding-right: 112px; }
}

/* Animasi. Keadaan awal hanya berlaku bila JS memasang .l4l-motion. */
@media screen and (prefers-reduced-motion: no-preference) {
  .l4l-motion .l4l-gal__grid:not(.is-in) > * { opacity: 0; }
  .l4l-motion .l4l-gal__grid.is-in > * { animation: l4l-keg-up .65s var(--l4l-ease) calc(var(--i) * .07s) backwards; }
  .l4l-motion .l4l-gal .is-done > * { animation: none !important; }
  .l4l-lb[open] .l4l-lb__img { animation: l4l-lb-in .3s var(--l4l-ease); }
  @keyframes l4l-lb-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .l4l-gal *, .l4l-lb * { transition-duration: .01ms !important; } }
