/* ==========================================================================
   IGNAN — Halaman /gallery

   Acuan: DOCS/20260803.md butir 17 — galeri dibuat lebih berlapis dengan
   scroll storytelling & parallax, bukan satu petak foto yang datar.
   Primitif geraknya di assets/css/ignan-motion.css + assets/js/ignan-motion.js.
   ========================================================================== */

.gl-hero,
.gl-section,
.gl-story {
    --gl-navy: #042c54;
    --gl-navy-deep: #021a33;
    --gl-blue: #109aec;
    /* Varian gelap KHUSUS teks kecil — lihat catatan di page.css. */
    --gl-blue-text: #0d74b3;
    --gl-blue-dark: #0d74b3;   /* dari #0d84cc (4,05:1) → 4,58:1 */
    --gl-amber: #f08a24;
    --gl-ink: #10202f;
    --gl-muted: #5b6b7c;
    --gl-line: #e3eaf2;
}

.gl-pre {
    display: block;
    margin-bottom: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gl-blue-text);
}

.gl-cta .gl-pre,
/* Hero WAJIB ikut — lihat catatan sama di price-list.css. */
.gl-hero .gl-pre,
.gl-story .gl-pre,
.gl-section-dark .gl-pre {
    color: #6cc4f7;
}

/* --------------------------------------------------------------------------
   Tombol
   -------------------------------------------------------------------------- */

.gl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.25s ease, background-color 0.25s ease,
                border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* Varian :link/:visited menaikkan spesifisitas di atas a:link:not(.btn) milik
   tema — lihat catatan panjang di assets/css/price-list.css. */
.gl-btn.gl-btn-primary,
.gl-btn.gl-btn-primary:link,
.gl-btn.gl-btn-primary:visited,
.gl-btn.gl-btn-primary:hover {
    background-color: var(--gl-blue-text);   /* 3,06:1 → 4,58:1 */
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(16, 154, 236, 0.28);
}

.gl-btn.gl-btn-primary:hover {
    background-color: var(--gl-blue-dark);
    transform: translateY(-2px);
}

.gl-btn.gl-btn-ghost,
.gl-btn.gl-btn-ghost:link,
.gl-btn.gl-btn-ghost:visited {
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
}

.gl-btn.gl-btn-ghost:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-2px);
}

.gl-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* --------------------------------------------------------------------------
   Hero: dinding foto yang bergerak lambat
   -------------------------------------------------------------------------- */

/* `padding-bottom` sengaja kecil. Dulu 118px, dan karena tirai di bawah hampir
   opak (lihat .gl-hero-veil) ruang kosong itu terbaca sebagai **balok hitam
   selebar layar** yang terjepit antara foto hero dan foto seksi cerita di
   bawahnya — dilaporkan di DOCS/sgt_20260803.md ("ada block hitam di bawah foto
   yang full width"). Yang dibuang adalah ruang matinya, bukan tirainya: tirai
   tetap dibutuhkan supaya judul terbaca di atas dinding foto yang bergerak. */
.gl-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 88vh;
    padding: 170px 0 54px;
    overflow: hidden;
    background-color: var(--gl-navy-deep);
    color: #ffffff;
}

.gl-wall {
    position: absolute;
    inset: -12% -2%;
    z-index: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.gl-wall-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    /* Kolom bergerak berlawanan arah dengan tetangganya; arah & durasi diatur
       dari markup lewat --dir dan --dur. */
    animation: gl-drift var(--dur, 60s) linear infinite;
    animation-direction: var(--dir-name, normal);
}

.gl-wall-col[style*="--dir:-1"] {
    animation-direction: reverse;
}

/* Dinding fotonya BERGERAK, jadi kontras judul tidak boleh bergantung pada
   foto mana yang kebetulan ada di belakangnya: foto pesta pernikahan yang
   nyaris putih pernah menghanyutkan judulnya. Fotonya diredupkan di sini,
   dan tirai di bawah menambah lapisan gelap tetap. */
.gl-wall-col img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    filter: saturate(0.68) brightness(0.72);
}

@keyframes gl-drift {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(0, -50%, 0); }
}

/* Dua lapis: gelap dari bawah supaya teks terbaca, biru dari kiri supaya
   dinding fotonya menyatu dengan warna merek. */
.gl-hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Puncak gradasi tetap pekat di jalur teks (0.88 pada 18%), tapi 6% paling
       bawah dibiarkan lebih tembus supaya tepi hero masih memperlihatkan foto —
       inilah yang mencegah dasarnya menjadi balok rata tanpa isi. */
    background:
        linear-gradient(to top, rgba(2, 18, 33, 0.7) 0%, rgba(2, 18, 33, 0.88) 18%, rgba(2, 18, 33, 0.78) 52%, rgba(2, 18, 33, 0.5) 100%),
        linear-gradient(to right, rgba(2, 22, 40, 0.9), rgba(4, 44, 84, 0.28) 80%);
}

.gl-hero-inner {
    position: relative;
    z-index: 3;
}

.gl-crumb.breadcrumb {
    justify-content: flex-start;
    padding: 0;
    margin-bottom: 22px;
    background: transparent;
}

.gl-crumb .breadcrumb-item,
.gl-crumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.8rem;
}

.gl-crumb .breadcrumb-item a:hover,
.gl-crumb .breadcrumb-item.active {
    color: #ffffff;
}

.gl-crumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* line-height & letter-spacing dilonggarkan dari 1.08/-0.022em: judulnya dua
   baris panjang, terlalu rapat membuatnya terbaca "gepeng" — persis temuan yang
   sama di /profile. text-shadow adalah lapis pengaman terakhir kalau ada foto
   terang yang lolos dari tirai. */
.gl-hero-title {
    max-width: 20em;
    margin: 0 0 22px;
    font-size: clamp(2rem, 4.8vw, 3.9rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.008em;
    color: #ffffff;
    text-shadow: 0 2px 26px rgba(2, 18, 33, 0.72);
}

.gl-lead {
    max-width: 40em;
    margin: 0 0 34px;
    font-size: 1.04rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 16px rgba(2, 18, 33, 0.66);
}

.gl-stats {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gl-stats li {
    padding: 0 34px;
    margin: 10px 0;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.gl-stats li:first-child {
    padding-left: 0;
    border-left: 0;
}

.gl-stats strong {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.gl-stats span {
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.gl-cue {
    position: absolute;
    right: 42px;
    bottom: 34px;
    z-index: 4;
}

/* --------------------------------------------------------------------------
   Cerita saat digulir
   -------------------------------------------------------------------------- */

/* padding: 0 WAJIB. Tema memberi `section { padding: 130px 0 }`, dan di seksi
   ini isinya adalah panel menempel setinggi layar penuh yang ditutupi foto
   selebar halaman. Padding-nya jadi pita gelap 130px di BAWAH foto — persis
   "blok hitam di bawah foto yang full width" di DOCS/sgt_20260803.md. Foto
   sekarang langsung bersambung ke seksi terang berikutnya. */
.gl-story {
    padding: 0;
    background-color: var(--gl-navy-deep);
}

.gl-story-track {
    height: calc(var(--frames, 5) * 82vh);
}

.gl-story-panel {
    display: flex;
    align-items: flex-end;
    background-color: var(--gl-navy-deep);
}

/* Foto memenuhi panel; keterangannya mengapung di atasnya. */
.gl-story-stage {
    position: absolute;
    inset: 0;
}

.gl-story-frame {
    position: absolute;
    inset: 0;
}

.gl-story-frame img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center 42%;
}

.gl-story-copy {
    position: relative;
    z-index: 2;
    padding-bottom: 92px;
    color: #ffffff;
    /* Gradien tipis di belakang teks — foto acara terlalu beragam untuk
       mengandalkan kontras fotonya sendiri. */
    text-shadow: 0 2px 18px rgba(2, 18, 33, 0.75);
}

.gl-story-panel::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    height: 62%;
    background: linear-gradient(to top, rgba(2, 18, 33, 0.94), rgba(2, 18, 33, 0));
    pointer-events: none;
}

.gl-story-captions {
    position: relative;
    min-height: 168px;
}

.gl-story-caption {
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    text-align: left;
}

.gl-story-caption h2 {
    max-width: 24em;
    margin: 0 0 10px;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.018em;
    color: #ffffff;
}

.gl-story-loc,
.gl-story-n {
    margin: 0;
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.82);
}

.gl-story-n {
    margin-top: 4px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.gl-story-meter {
    position: absolute;
    bottom: 34px;
    left: 50%;
    z-index: 3;
    width: min(520px, 78%);
    height: 3px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.22);
    transform: translateX(-50%);
    overflow: hidden;
}

.gl-story-meter > span {
    display: block;
    height: 100%;
    width: calc(var(--sp, 0) * 100%);
    background: linear-gradient(90deg, #109aec, #f08a24);
}

/* --------------------------------------------------------------------------
   Seksi & daftar acara
   -------------------------------------------------------------------------- */

.gl-section {
    padding: 104px 0;
    background-color: #f6f9fc;
}

.gl-intro {
    max-width: 42em;
    margin: 0 auto 60px;
    text-align: center;
}

.gl-intro h2 {
    margin: 0 0 14px;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.018em;
    color: var(--gl-ink);
}

.gl-intro p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gl-muted);
}

.gl-empty {
    padding: 40px 0;
    text-align: center;
    color: var(--gl-muted);
}

.gl-event {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
    padding: 44px 0;
    border-top: 1px solid var(--gl-line);
}

.gl-event:first-of-type {
    border-top: 0;
    padding-top: 0;
}

/* Judul acara ikut menempel selama foto-fotonya masih tergulir — pengunjung
   tidak kehilangan konteks di tengah deretan foto. */
.gl-event-head {
    position: -webkit-sticky;
    position: sticky;
    top: 96px;
    align-self: start;
}

.gl-event-head h3 {
    margin: 0 0 10px;
    font-size: 1.14rem;
    font-weight: 700;
    line-height: 1.38;
    color: var(--gl-ink);
}

.gl-event-loc {
    margin: 0 0 6px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gl-muted);
}

.gl-event-loc i {
    margin-right: 6px;
    color: var(--gl-amber);
}

.gl-event-n {
    margin: 0 0 16px;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5b6b7c;   /* dari #8a99a8 (2,76:1) → 4,54:1 */
}

.gl-event-cta,
.gl-event-cta:link,
.gl-event-cta:visited {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gl-blue-dark);
    text-decoration: none;
}

.gl-event-cta i {
    transition: transform 0.25s ease;
}

.gl-event-cta:hover i {
    transform: translateX(4px);
}

.gl-event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.gl-photo {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    background-color: #e9eff6;
    aspect-ratio: 4 / 3;
}

/* Foto kedua & ketiga tiap baris dibuat sedikit lebih tinggi supaya barisnya
   tidak terasa seperti tabel. */
.gl-photo:nth-child(3n + 2) {
    aspect-ratio: 3 / 4;
}

.gl-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--mo-ease, ease);
}

.gl-photo a {
    display: block;
    width: 100%;
    height: 100%;
}

.gl-photo:hover img {
    transform: scale(1.05);
}

/* Induk `.gl-event-grid` DIPERLUKAN, bukan hiasan. `.gl-photo-more:link`
   bernilai (0,2,0) dan kalah dari `a:link:not(.btn)` milik tema yang (0,2,1),
   sehingga keterangan "+N lagi" mewarisi --primary-color — biru gelap di atas
   kotak biru gelap, jadi kotaknya terbaca sebagai foto kosong. Sama jebakannya
   dengan .gl-btn di atas, yang lolos karena memakai dua kelas. */
.gl-event-grid .gl-photo-more,
.gl-event-grid .gl-photo-more:link,
.gl-event-grid .gl-photo-more:visited,
.gl-event-grid .gl-photo-more:hover,
.gl-event-grid .gl-photo-more:focus {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, #042c54, #021a33);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Ajakan penutup
   -------------------------------------------------------------------------- */

.gl-cta {
    background: linear-gradient(160deg, #042c54 0%, #021a33 100%);
    color: #ffffff;
    text-align: center;
}

.gl-cta h2 {
    max-width: 22em;
    margin: 0 auto 16px;
    font-size: clamp(1.7rem, 3.4vw, 2.7rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.gl-cta p {
    max-width: 40em;
    margin: 0 auto 32px;
    font-size: 1.02rem;
    line-height: 1.74;
    color: rgba(255, 255, 255, 0.76);
}

/* --------------------------------------------------------------------------
   Responsif
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .gl-hero {
        min-height: auto;
        padding: 160px 0 96px;
    }

    .gl-section {
        padding: 78px 0;
    }

    .gl-event {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .gl-event-head {
        position: static;
    }

    .gl-stats li {
        padding: 0 22px;
    }
}

@media (max-width: 767px) {
    /* Sticky section dilepas di layar kecil — di ponsel panel yang menempel
       terasa seperti halaman macet. !important dipakai karena JS menulis
       opacity langsung ke atribut style. */
    .gl-story-track {
        height: auto;
    }

    /* display: block WAJIB di sini. Di layar besar hanya .gl-story-copy yang
       ada di aliran (stage-nya absolute), jadi flex tidak masalah. Begitu
       stage dijadikan static di ponsel, flex membuat foto dan teks berjajar
       ke samping sehingga halaman jadi lebih lebar dari layar dan teksnya
       terpotong. */
    .gl-story-panel {
        display: block;
        position: static;
        height: auto;
        overflow: visible;
    }

    .gl-story-panel::after {
        display: none;
    }

    .gl-story-stage {
        position: static;
        display: grid;
        /* minmax(0, 1fr), bukan 1fr — lihat catatan yang sama di price-list.css. */
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 14px;
    }

    .gl-story-frame {
        position: static !important;
        opacity: 1 !important;
        aspect-ratio: 1 / 1;
        border-radius: 10px;
        overflow: hidden;
    }

    .gl-story-captions {
        min-height: 0;
    }

    .gl-story-captions > * {
        position: static !important;
        opacity: 1 !important;
    }

    .gl-story-captions > * + * {
        margin-top: 24px;
    }

    .gl-story-copy {
        padding: 22px 0 40px;
        text-shadow: none;
    }

    .gl-story-meter {
        display: none;
    }

    .gl-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .gl-stats li {
        flex: 1 0 40%;
        padding: 0;
        border-left: 0;
    }

    .gl-wall {
        gap: 8px;
    }

    .gl-cue {
        right: 20px;
    }
}
