*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:#103c30;background:#fff;line-height:1.6}img{display:block;max-width:100%;height:auto}.container{width:min(1350px,92%);margin:auto}a{text-decoration:none}.topbar{background:#004c3b;color:#fff;min-height:58px;font-size:14px}.topbar-grid{min-height:58px;display:grid;grid-template-columns:auto auto 1fr auto;gap:25px;align-items:center}.topbar a{color:#fff}.fb-top{background:rgba(255,255,255,.08);padding:8px 20px;border-radius:0 0 0 30px;font-weight:700}.header{background:#fff;border-bottom:1px solid #e5e9e7;position:sticky;top:0;z-index:30}.nav-wrap{min-height:160px;display:flex;align-items:center;justify-content:space-between;gap:25px}.brand{display:flex;align-items:center;gap:18px;color:#0c4d3c}.brand img{width:145px;height:145px;object-fit:contain;flex:0 0 145px}.brand-text>span{display:block;font-size:30px;line-height:1;color:#159061;font-weight:800;letter-spacing:1px}.brand-text strong{display:block;font-family:"Arial Narrow",Arial,sans-serif;font-stretch:condensed;font-size:52px;line-height:.98;letter-spacing:-2px;color:#073f33}.brand-text small{display:block;color:#d2870b;font-size:20px;margin-top:12px}.nav{display:flex;align-items:center;gap:28px}.nav>a{color:#102f28;font-weight:800;font-size:14px;position:relative}.nav>a.active:after{content:"";position:absolute;left:0;right:0;height:3px;background:#0d6c4d;bottom:-25px}.nav .psb{background:#087345;color:#fff;border-radius:9px;padding:13px 18px;text-align:center;font-size:16px}.nav .psb small{display:block;font-size:9px;letter-spacing:.6px}.menu-btn{display:none;border:0;background:none;font-size:30px;color:#0d5b47}.hero{position:relative;min-height:430px;color:#fff;overflow:visible;background:#0a493a}.hero-slider{position:absolute;inset:0;overflow:hidden;background:#0a493a}
.hero-slide{position:absolute;inset:0;background-size:cover;background-position:center 48%;opacity:0;transform:scale(1.02);transition:opacity 1s ease,transform 6s ease;will-change:opacity,transform}
.hero-slide.is-active{opacity:1;transform:scale(1)}
.hero-dots{position:absolute;z-index:8;right:28px;bottom:22px;display:flex;gap:8px}
.hero-dot{width:9px;height:9px;padding:0;border:1px solid rgba(255,255,255,.9);border-radius:50%;background:rgba(255,255,255,.25);cursor:pointer}
.hero-dot.active{width:27px;border-radius:10px;background:#f5bb22;border-color:#f5bb22}.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,73,55,.98) 0%,rgba(0,73,55,.82) 42%,rgba(0,73,55,.43) 78%,rgba(0,73,55,.56) 100%)}.hero-inner{position:relative;min-height:430px;display:grid;grid-template-columns:250px 1fr 340px;gap:38px;align-items:center;padding:28px 0 48px}.hero-logo-box{width:240px;height:240px;background:rgba(255,255,255,.98);border-radius:50%;padding:10px;box-shadow:0 10px 35px rgba(0,0,0,.22);display:flex;align-items:center;justify-content:center}.hero-logo-box img{width:100%;height:100%;object-fit:contain}.hero-kicker{font-size:13px;letter-spacing:2px;font-weight:800;margin-bottom:8px}.hero-main h1{font-family:"Arial Narrow",Arial,sans-serif;margin:0;font-size:45px;line-height:.95;letter-spacing:-1px}.hero-main h1 b{font-size:62px;letter-spacing:-2px}.tagline{font:italic 700 27px Georgia,serif;color:#f5bb22;margin:10px 0 12px}.hero-main p{font-size:18px;max-width:690px;margin:0;color:#f0f6f3}.hero-buttons{display:flex;gap:10px;margin-top:22px}.hero-btn{padding:12px 22px;border-radius:7px;font-weight:800;font-size:14px}.hero-btn.green{background:#006b50;color:#fff}.hero-btn.white{background:#fff;color:#16483a}.quote{background:rgba(0,69,52,.78);border:1px solid rgba(241,187,34,.75);border-radius:25px;padding:27px 24px;text-align:center;min-height:260px;display:flex;flex-direction:column;justify-content:center;box-shadow:0 12px 30px rgba(0,0,0,.12)}.quote-mark{color:#f5bb22;font-size:46px;font-weight:900;line-height:.5}.quote .arabic{font-size:22px;margin:13px 0;color:#fff}.quote p{font-size:16px;font-weight:700;margin:5px 0 10px}.quote small{font-size:13px}.quote i{display:block;width:45px;height:3px;background:#f5bb22;margin:16px auto 0}.institutions-wrap{position:relative;margin-top:-38px;z-index:5}.institutions{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;background:rgba(255,255,255,.96);border-radius:20px;padding:10px;box-shadow:0 10px 35px rgba(0,0,0,.14)}.institutions article{min-height:290px;border-radius:14px;padding:25px 20px 20px;background:linear-gradient(180deg,#fff,#fbfcfa);position:relative}.number{position:absolute;right:17px;top:15px;font-size:28px;font-weight:900;color:#c5d9d0}.gold-n{color:#f0d8a3}.circle{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:27px;margin-bottom:14px;box-shadow:0 7px 15px rgba(0,0,0,.12);border:4px solid rgba(255,255,255,.85)}.inst-icon{font-size:25px;font-weight:900;line-height:1}.circle.green{background:#08724e}.circle.gold{background:#f1a900}.institutions h3{font-size:18px;line-height:1.08;margin:0 0 14px;color:#093c31}.institutions p{font-size:14px;line-height:1.45;min-height:63px;margin:0 0 18px;color:#253d35}.card-btn{display:flex;justify-content:space-between;align-items:center;color:#fff;border-radius:6px;padding:9px 13px;font-size:12px;font-weight:900}.green-bg{background:#08724e}.gold-bg{background:#df9000}.quick-stats{margin:0 0 65px}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);background:#17614e;color:#fff;border-radius:0 0 18px 18px;padding:20px 25px}.quick-grid>div{display:flex;align-items:center;justify-content:center;gap:15px;border-right:1px solid rgba(255,255,255,.7)}.quick-grid>div:last-child{border:0}.stat-icon{font-size:35px;color:#f1c22c}.quick-grid b{font-size:24px;display:block;line-height:1}.quick-grid small{font-size:13px;display:block}.section{padding:75px 0}.soft{background:#f5f7f3}.two{display:grid;grid-template-columns:1fr 1fr;gap:75px;align-items:center}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:900;color:#d28b0c;margin-bottom:9px}.section h2{font:700 44px/1.15 Georgia,serif;color:#113f32;margin:0 0 18px}.section p{color:#64766f}.vision{border-radius:20px;background:#fff;border:1px solid #e3e9e5;padding:30px;box-shadow:0 12px 30px rgba(0,0,0,.05)}.vision>span{font-size:30px;color:#d2910e}.vision h3{color:#086a4a;margin:10px 0 2px}.vision ul{color:#64766f;padding-left:20px}.section-title{text-align:center;max-width:700px;margin:0 auto 35px}.program-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.program-grid>div{background:#fff;border-radius:15px;padding:27px;border:1px solid #e0e8e3}.program-grid b{color:#d38c0b;font-size:28px}.program-grid h3{margin:4px 0}.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.news-grid article{border:1px solid #e0e8e3;border-radius:15px;padding:27px;background:#fff}.news-grid article>span{font-size:11px;color:#d28b0c;font-weight:900;letter-spacing:1px}.news-grid h3{font-size:20px;margin:8px 0}.news-grid a{color:#086a4a;font-weight:800}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.gallery div{height:185px;border-radius:14px;background:linear-gradient(135deg,#d9e6df,#88ab9b);display:grid;place-items:center;color:#285848;font-weight:900}.contact{background:#073f31;color:#fff;padding:75px 0}.contact-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:60px;align-items:center}.contact h2{font:700 44px/1.15 Georgia,serif;margin:0 0 15px}.contact p{color:#d1e0da}.contact a{color:#f2cf70}.contact-card{background:#fff;color:#173d32;border-radius:18px;padding:25px;text-align:center}.contact-card img{width:100px;height:100px;object-fit:contain;margin:0 auto 8px}.contact-btn{display:block;background:#0a734e;color:#fff!important;padding:11px;border-radius:7px;margin-top:9px;font-weight:800}.contact-btn.outline{background:#fff;border:1px solid #cbd8d2;color:#126047!important}.floating-wa{position:fixed;right:24px;bottom:24px;width:64px;height:64px;border-radius:50%;background:#25D366;color:#fff;display:grid;place-items:center;z-index:50;box-shadow:0 8px 25px rgba(0,0,0,.25);border:4px solid #fff;transition:transform .2s ease,box-shadow .2s ease}.floating-wa:hover{transform:translateY(-3px) scale(1.04);box-shadow:0 12px 28px rgba(0,0,0,.3)}.floating-wa svg{width:37px;height:37px;fill:#fff}.footer{display:flex;justify-content:space-between;gap:20px;padding:24px 0;background:#052c23;color:#b9cbc4;font-size:13px}.footer:before{content:"";position:fixed;left:0;right:0;bottom:0;height:0}.footer b{color:#fff}.footer span{color:#b9cbc4}body>footer{background:#052c23}@media(max-width:1100px){.topbar-grid{grid-template-columns:1fr 1fr}.topbar-grid span{display:none}.nav-wrap{min-height:110px}.brand img{width:95px;height:95px;flex-basis:95px}.brand-text>span{font-size:23px}.brand-text strong{font-size:40px}.brand-text small{font-size:15px}.nav{gap:16px}.nav>a{font-size:12px}.hero-inner{grid-template-columns:190px 1fr}.quote{display:none}.hero-logo-box{width:180px;height:180px}.hero-main h1{font-size:38px}.hero-main h1 b{font-size:52px}.institutions{grid-template-columns:repeat(3,1fr)}.quick-grid{grid-template-columns:repeat(2,1fr);gap:10px}.quick-grid>div:nth-child(2){border:0}.quick-grid>div{padding:10px}}@media(max-width:800px){.topbar{display:none}.nav-wrap{min-height:78px}.brand img{width:58px;height:58px;flex-basis:58px}.brand-text>span{font-size:16px}.brand-text strong{font-size:26px;letter-spacing:-1px}.brand-text small{font-size:10px;margin-top:5px}.menu-btn{display:block}.nav{display:none;position:absolute;top:78px;left:0;right:0;background:#fff;padding:18px 4%;flex-direction:column;align-items:flex-start;border-bottom:1px solid #e5e9e7}.nav.open{display:flex}.nav>a.active:after{display:none}.nav .psb{width:100%}.hero{min-height:auto}.hero-inner{grid-template-columns:1fr;min-height:auto;padding:45px 0 80px}.hero-logo-box{width:150px;height:150px}.hero-main h1{font-size:34px}.hero-main h1 b{font-size:48px}.tagline{font-size:22px}.hero-main p{font-size:16px}.hero-buttons{flex-direction:column}.hero-btn{text-align:center}.institutions-wrap{margin-top:-35px}.institutions{grid-template-columns:1fr 1fr}.two,.contact-grid{grid-template-columns:1fr;gap:35px}.program-grid,.news-grid{grid-template-columns:1fr}.gallery{grid-template-columns:1fr 1fr}.section h2,.contact h2{font-size:36px}}@media(max-width:520px){.brand-text>span{font-size:14px}.brand-text strong{font-size:22px}.brand-text small{font-size:9px}.hero-main h1{font-size:30px}.hero-main h1 b{font-size:41px}.tagline{font-size:19px}.institutions{grid-template-columns:1fr}.quick-grid{grid-template-columns:1fr}.quick-grid>div{border-right:0;border-bottom:1px solid rgba(255,255,255,.4)}.quick-grid>div:last-child{border-bottom:0}.gallery{grid-template-columns:1fr}.section{padding:58px 0}.footer{flex-direction:column}}
@media(max-width:800px){.hero-dots{right:18px;bottom:18px}.hero-dot{width:8px;height:8px}.hero-dot.active{width:22px}}

/* V7: 5 foto hero */
.hero-slide{background-repeat:no-repeat;background-size:cover;background-position:center center}
.hero-slider{z-index:0}.hero-overlay{z-index:1}.hero-inner{z-index:2}.hero-dots{z-index:8}

/* V10 - Google Sheets institution section */
.institutions-data{padding:75px 0;background:#f5f7f3}
.institution-data-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.institution-data-card{background:#fff;border:1px solid #e0e8e3;border-radius:15px;padding:24px 20px;min-height:260px;display:flex;flex-direction:column;box-shadow:0 10px 25px rgba(0,0,0,.05)}
.institution-data-number{color:#d28b0c;font-weight:900;letter-spacing:2px}
.institution-data-card h3{color:#093c31;line-height:1.15;font-size:18px;margin:12px 0}
.institution-data-card p{color:#64766f;font-size:14px;line-height:1.5;flex:1}
.institution-more{border:0;background:#08724e;color:#fff;border-radius:7px;padding:10px 13px;font-weight:800;cursor:pointer}
.institution-more:hover{background:#065a3e}
.institution-modal{display:none;position:fixed;inset:0;z-index:1000;align-items:center;justify-content:center;padding:20px}
.institution-modal.show{display:flex}
.institution-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.62)}
.institution-modal-card{position:relative;z-index:1;width:min(760px,100%);max-height:88vh;overflow:auto;background:#fff;border-radius:20px;padding:35px}
.institution-modal-close{position:absolute;right:14px;top:8px;border:0;background:none;font-size:32px;color:#345;cursor:pointer}
.institution-modal-card h2{color:#113f32;font:700 38px/1.15 Georgia,serif;margin:5px 0 12px}
.detail-desc,.detail-block p,.detail-block li{color:#64766f;line-height:1.7}
.detail-block{border-top:1px solid #e0e8e3;padding-top:14px;margin-top:18px}
.detail-block h3{color:#08724e}
.detail-contact{background:#eef6f1;color:#0a6047;border-radius:10px;padding:12px;margin-top:18px;font-weight:800}
@media(max-width:1100px){.institution-data-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){.institution-data-grid{grid-template-columns:1fr 1fr}.institution-modal-card{padding:28px 20px}}
@media(max-width:520px){.institution-data-grid{grid-template-columns:1fr}}

/* V11 - Google Sheets framework */
.dynamic-grid{grid-template-columns:repeat(3,1fr)}
.news-card-dynamic{background:#fff;border:1px solid #e0e8e3;border-radius:16px;overflow:hidden;box-shadow:0 10px 25px rgba(0,0,0,.05)}
.news-card-dynamic img{width:100%;height:190px;object-fit:cover;display:block}
.news-card-body{padding:20px}
.news-card-body>span,.agenda-card-dynamic>div>span{font-size:11px;letter-spacing:1.5px;color:#a8750d;font-weight:900}
.news-card-body small{display:block;color:#7c8983;margin:7px 0}
.news-card-body h3{color:#103f32;margin:8px 0}
.news-card-body p{color:#65736d;line-height:1.6}
.news-card-body a{color:#08724e;font-weight:800;text-decoration:none}
.news-empty,.agenda-empty,.gallery-empty{padding:35px;border:1px dashed #ccd9d2;border-radius:16px;background:#fff;text-align:center;color:#65736d}
.news-empty h3,.agenda-empty h3{color:#103f32}
.agenda-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.agenda-card-dynamic{display:grid;grid-template-columns:130px 1fr;gap:20px;background:#fff;border:1px solid #e0e8e3;border-radius:16px;padding:20px;box-shadow:0 10px 25px rgba(0,0,0,.04)}
.agenda-date{display:flex;flex-direction:column;justify-content:center;align-items:center;background:#edf5f0;border-radius:12px;padding:15px;color:#08724e;text-align:center}
.agenda-date b{font-size:20px}
.agenda-date small{margin-top:5px;color:#65736d}
.agenda-card-dynamic h3{color:#103f32;margin:8px 0}
.agenda-card-dynamic p,.agenda-card-dynamic div{color:#65736d}
.dynamic-gallery{display:grid!important;grid-template-columns:repeat(3,1fr);gap:16px}
.gallery-item-dynamic{margin:0;background:#fff;border-radius:14px;overflow:hidden;border:1px solid #e0e8e3}
.gallery-item-dynamic img{width:100%;height:230px;object-fit:cover;display:block}
.gallery-item-dynamic figcaption{padding:10px 12px;color:#103f32;font-weight:700}
@media(max-width:900px){.dynamic-grid{grid-template-columns:1fr 1fr}.agenda-grid{grid-template-columns:1fr}.dynamic-gallery{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.dynamic-grid,.dynamic-gallery{grid-template-columns:1fr}.agenda-card-dynamic{grid-template-columns:1fr}}

/* V13 sheet loading states */
.sheet-status{padding:30px;border:1px dashed #ccd9d2;border-radius:16px;background:#fff;text-align:center;color:#65736d}
.sheet-error{color:#9a5b16;background:#fffaf0;border-color:#e4c98d}


/* V13 APPROVED HEADER - desktop reference match */
@media (min-width:1101px){
  .nav-wrap{min-height:145px;gap:22px}
  .brand{gap:16px}
  .brand img{width:112px;height:112px;flex:0 0 112px}
  .brand-text>span{font-size:28px;line-height:1}
  .brand-text strong{font-size:44px;line-height:.98;letter-spacing:-1.8px}
  .brand-text small{font-size:17px;margin-top:8px;color:#d2870b}
  .nav{gap:25px}
  .nav>a{font-size:13px}
  .nav>a.active:after{bottom:-18px}
  .nav .psb{background:#fff;color:#103c30;border:1.5px solid #087345;border-radius:6px;padding:8px 13px;font-size:14px;line-height:1.2}
  .nav .psb small{display:none}
}

/* V17 — Header & homepage refined to match the approved reference + Google Maps float */
@media (min-width:1101px){
  .topbar{min-height:56px}
  .topbar-grid{min-height:56px;gap:26px}
  .header{position:sticky;top:0}
  .nav-wrap{min-height:145px;gap:28px}
  .brand{gap:18px;flex:0 0 auto}
  .brand img{width:112px;height:112px;flex:0 0 112px}
  .brand-text>span{font-size:28px;line-height:1}
  .brand-text strong{font-size:44px;line-height:.98;letter-spacing:-1.8px}
  .brand-text small{font-size:17px;margin-top:8px}
  .nav{gap:25px;flex:1;justify-content:flex-end}
  .nav>a{font-size:13px;white-space:nowrap}
  .nav>a.active:after{bottom:-18px}
  .nav .psb{display:inline-flex;align-items:center;gap:7px;background:#fff;color:#103c30;border:1.5px solid #087345;border-radius:6px;padding:8px 13px;font-size:14px;line-height:1.2}
  .psb-icon{font-size:15px;color:#087345}
  .hero{min-height:445px}
  .hero-inner{min-height:445px;grid-template-columns:minmax(0,1fr) 360px;gap:42px;padding:34px 0 52px}
  .hero-logo-box{display:none}
  .hero-main{max-width:760px}
  .hero-kicker{font-size:14px;letter-spacing:2px;margin-bottom:10px}
  .hero-main h1{font-size:46px;line-height:.95}
  .hero-main h1 b{font-size:64px}
  .hero-main p{font-size:18px;line-height:1.55}
  .quote{min-height:305px;border-radius:27px;padding:30px 24px}
  .quote .arabic{font-size:23px}
  .institutions-wrap{margin-top:-32px}
  .institutions{gap:14px;padding:10px;border-radius:12px}
  .institutions article{min-height:290px;padding:25px 22px 18px;text-align:left}
  .circle{width:62px;height:62px;font-size:25px}
  .inst-icon svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
  .institutions h3{font-size:17px}
}

.inst-icon{display:grid;place-items:center;width:100%;height:100%}
.inst-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}

.floating-map{position:fixed;right:24px;bottom:99px;width:58px;height:58px;border-radius:50%;background:#fff;color:#0a734e;display:grid;place-items:center;z-index:51;box-shadow:0 8px 24px rgba(0,0,0,.20);border:3px solid #fff;transition:transform .2s ease,box-shadow .2s ease;text-decoration:none}
.floating-map svg{width:31px;height:31px;fill:#0a734e}
.floating-map span{position:absolute;right:68px;white-space:nowrap;background:#0a734e;color:#fff;font-size:12px;font-weight:800;padding:7px 10px;border-radius:7px;opacity:0;transform:translateX(5px);pointer-events:none;transition:opacity .2s ease,transform .2s ease}
.floating-map:hover,.floating-map:focus-visible{transform:translateY(-2px);box-shadow:0 11px 28px rgba(0,0,0,.25)}
.floating-map:hover span,.floating-map:focus-visible span{opacity:1;transform:translateX(0)}
@media(max-width:800px){
  .floating-wa{right:18px;bottom:18px;width:56px;height:56px}
  .floating-wa svg{width:32px;height:32px}
  .floating-map{right:18px;bottom:84px;width:48px;height:48px;border-width:2px}
  .floating-map svg{width:26px;height:26px}
  .floating-map span{display:none}
  .hero-logo-box{display:none}
  .hero-inner{padding-top:36px}
}
@media(max-width:520px){
  .brand img{width:58px;height:58px;flex-basis:58px}
  .brand-text>span{font-size:14px}
  .brand-text strong{font-size:22px}
  .brand-text small{font-size:9px}
}



/* V18: mobile documentation carousel */
@media (max-width: 767px) {
  .gallery-grid,
  .gallery-container,
  .gallery-list,
  .documentation-grid,
  .dokumentasi-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 4px 4px 14px;
    scrollbar-width: none;
  }

  .gallery-grid::-webkit-scrollbar,
  .gallery-container::-webkit-scrollbar,
  .gallery-list::-webkit-scrollbar,
  .documentation-grid::-webkit-scrollbar,
  .dokumentasi-grid::-webkit-scrollbar {
    display: none;
  }

  .gallery-grid > *,
  .gallery-container > *,
  .gallery-list > *,
  .documentation-grid > *,
  .dokumentasi-grid > * {
    flex: 0 0 82%;
    width: 82%;
    scroll-snap-align: start;
  }

  .site-footer {
    margin-top: 36px;
    padding: 22px 16px calc(24px + env(safe-area-inset-bottom));
    text-align: center;
  }

  .site-footer-inner {
    max-width: 900px;
    margin: 0 auto;
  }

  .site-footer p {
    margin: 4px 0;
    line-height: 1.5;
  }

  .site-footer-credit {
    font-size: .82rem;
    opacity: .72;
  }
}



/* V19 FIX: actual dynamic Google Sheets gallery carousel on mobile */
@media (max-width: 767px) {
  #galleryGrid.dynamic-gallery {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 14px !important;
    padding: 4px 4px 18px !important;
    margin-right: -4px !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #galleryGrid.dynamic-gallery::-webkit-scrollbar {
    display: none;
  }

  #galleryGrid.dynamic-gallery .gallery-item-dynamic {
    flex: 0 0 82% !important;
    width: 82% !important;
    min-width: 82% !important;
    margin: 0 !important;
    scroll-snap-align: start;
  }

  #galleryGrid.dynamic-gallery .gallery-item-dynamic img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
  }

  #galleryGrid.dynamic-gallery .gallery-item-dynamic figcaption {
    margin-top: 8px;
  }
}


/* V20: professional centered footer */
.site-footer {
  width: 100%;
  box-sizing: border-box;
  text-align: center !important;
  clear: both;
}

.site-footer-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto !important;
  padding: 0 16px;
  box-sizing: border-box;
  text-align: center !important;
}

.site-footer p {
  margin: 0 auto !important;
  text-align: center !important;
  line-height: 1.6;
}

.site-footer-credit {
  display: none !important;
}

.footer-separator {
  display: inline;
  margin: 0 .35em;
}

@media (max-width: 767px) {
  .site-footer {
    padding: 20px 14px calc(22px + env(safe-area-inset-bottom)) !important;
  }

  .site-footer p {
    font-size: .78rem;
  }

  .footer-separator {
    margin: 0 .2em;
  }
}


/* V20: Galeri Kegiatan only — mobile horizontal swipe */
@media (max-width: 767px) {
  #gallery,
  #galeri,
  #galleryContainer,
  #galeriContainer,
  .gallery-section .gallery-grid,
  .galeri-section .gallery-grid,
  .gallery-section .gallery-container,
  .galeri-section .gallery-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 14px !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-left: 4px;
    padding-right: 4px;
    padding-bottom: 12px;
  }

  #gallery::-webkit-scrollbar,
  #galeri::-webkit-scrollbar,
  #galleryContainer::-webkit-scrollbar,
  #galeriContainer::-webkit-scrollbar,
  .gallery-section .gallery-grid::-webkit-scrollbar,
  .galeri-section .gallery-grid::-webkit-scrollbar,
  .gallery-section .gallery-container::-webkit-scrollbar,
  .galeri-section .gallery-container::-webkit-scrollbar {
    display: none;
  }

  #gallery > *,
  #galeri > *,
  #galleryContainer > *,
  #galeriContainer > *,
  .gallery-section .gallery-grid > *,
  .galeri-section .gallery-grid > *,
  .gallery-section .gallery-container > *,
  .galeri-section .gallery-container > * {
    flex: 0 0 82% !important;
    width: 82% !important;
    max-width: 82% !important;
    scroll-snap-align: start;
  }
}
