.video-fallback{background-image:var(--video-fallback)!important}.gallery-slider{position:relative;margin-top:28px}.gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;border:1px solid rgba(194,154,88,.45);background:#1d100b}.gallery-track::-webkit-scrollbar{display:none}.gallery-slide{flex:0 0 100%;height:min(72svh,620px);margin:0;scroll-snap-align:start;position:relative;display:grid;place-items:center;background:radial-gradient(circle,#3b2518,#160c08)}.gallery-slide img{width:100%;height:100%;display:block;object-fit:contain}.gallery-slide figcaption{position:absolute;right:12px;bottom:12px;padding:5px 9px;border-radius:14px;background:rgba(22,12,8,.72);color:#f5dfba;font-size:9px}.gallery-prev,.gallery-next{position:absolute;top:50%;z-index:2;width:38px;height:38px;margin-top:-30px;border:1px solid rgba(229,193,133,.7);border-radius:50%;background:rgba(42,23,14,.78);color:#f4dcae;font-size:27px;line-height:1;cursor:pointer}.gallery-prev{left:10px}.gallery-next{right:10px}.gallery-dots{display:flex;justify-content:center;gap:7px;margin-top:15px}.gallery-dots button{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:rgba(229,193,133,.35);cursor:pointer}.gallery-dots button.active{width:22px;border-radius:7px;background:#e5c185}.gallery-empty{padding:35px 15px;color:#cbb38e;font-size:12px}
.shared-demo-gallery .gallery-section>.section-inner{height:auto!important;min-height:100svh!important;padding:52px 14px 64px!important;display:block!important;overflow:visible!important}.shared-demo-gallery .gallery-slider{width:100%;margin-top:18px}.shared-demo-gallery .gallery-track{gap:6px;margin:12px 0;border:0;border-radius:10px;background:transparent;box-shadow:none}.shared-demo-gallery .gallery-slide{flex:0 0 calc((100% - 12px)/3);height:auto!important;aspect-ratio:2/3;border-radius:10px;background:rgba(10,10,10,.88);overflow:hidden}.shared-demo-gallery .gallery-slide img{object-fit:cover;border-radius:10px;cursor:zoom-in}.shared-demo-gallery .gallery-slide figcaption,.shared-demo-gallery .gallery-prev,.shared-demo-gallery .gallery-next,.shared-demo-gallery .gallery-dots{display:none!important}.shared-gallery-single{width:100%;aspect-ratio:2/3;margin:0;border-radius:24px;overflow:hidden;background:#111;box-shadow:0 15px 34px rgba(0,0,0,.3)}.shared-gallery-single-bottom{margin-top:12px;border-radius:18px}.shared-gallery-single img{width:100%;height:100%;display:block;object-fit:cover;cursor:zoom-in}
.shared-lightbox-open{overflow:hidden!important}.shared-gallery-lightbox{position:fixed;z-index:9999;inset:0;display:flex;align-items:center;justify-content:center;padding:58px 38px;background:rgba(4,4,4,.95);opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease}.shared-gallery-lightbox.open{opacity:1;visibility:visible}.shared-gallery-lightbox>img{display:block;max-width:100%;max-height:calc(100svh - 116px);border-radius:10px;object-fit:contain;box-shadow:0 20px 60px rgba(0,0,0,.6)}.shared-gallery-lightbox button{position:absolute;z-index:2;width:42px;height:42px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.55);border-radius:50%;background:rgba(15,15,15,.72);color:#fff;font-size:29px;line-height:1}.shared-lightbox-close{top:14px;right:14px}.shared-lightbox-prev{top:50%;left:5px;margin-top:-21px}.shared-lightbox-next{top:50%;right:5px;margin-top:-21px}.shared-gallery-lightbox>span{position:absolute;bottom:16px;left:50%;padding:6px 12px;border-radius:999px;background:rgba(0,0,0,.65);color:#fff;font:700 11px/1 sans-serif;transform:translateX(-50%)}

/* [2026-10-08] Foto landscape di bingkai galeri potret: tampil utuh di atas salinan
   buram foto yang sama. Class dipasang oleh _shared/script.js hanya untuk foto yang
   sebelumnya terpotong (object-fit:cover). */
html body .gallery-section figure.gallery-fit-landscape{position:relative;overflow:hidden}
html body .gallery-section figure.gallery-fit-landscape::before{content:'';position:absolute;inset:-30px;z-index:0;background:var(--gallery-photo) center/cover no-repeat;filter:blur(20px) brightness(.72);transform:translateZ(0);pointer-events:none}
html body .gallery-section figure.gallery-fit-landscape img[data-orientation="landscape"]{z-index:1;object-fit:contain!important}
html body .gallery-section figure.gallery-fit-landscape figcaption{z-index:2}

/* [2026-10-08] iPhone/iPad (Safari): efek blur kaca (backdrop-filter) di atas layer
   background fixed memaksa WebKit menyalin & mem-blur layer itu setiap frame; memori
   habis dan Safari me-reload halaman berulang. Blur dimatikan di isi undangan khusus
   iOS (Android & desktop tidak terpengaruh); kartu tetap transparan seperti semula. */
@supports (-webkit-touch-callout:none){
  .invitation-content :not(#ios-noblur),.invitation-content :not(#ios-noblur)::before,.invitation-content :not(#ios-noblur)::after{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
}

