/* Emerald Garden v1.0.0 — Batch 23 rewrite: botanical royal wedding invitation.
   Hijau zamrud pekat #244B3B + emas champagne #C9A96A + ivory #FAF8F0 +
   sage #82927A + ink #294336; ornamen dedaunan/botani, motif ❧.
   ATURAN KONTRAS: semua teks duduk di panel solid. Teks utama memakai
   ink/forest/goldDeep di atas ivory/paper (≥ 4,5:1). Emas #C9A96A dan sage
   #82927A HANYA untuk garis/dekor — tidak pernah untuk teks kecil.
   Font: Cormorant Garamond (display/serif), Pinyon Script (script),
   Jost (body) — sudah dimuat dist/index.html. */
.uc-emerald {
  --eg-forest: var(--ue-forest, #244b3b);
  --eg-forest-deep: var(--ue-forest-deep, #1b352a);
  --eg-sage: var(--ue-sage, #82927a);
  --eg-sage-soft: var(--ue-sage-soft, #e6ebe0);
  --eg-ivory: var(--ue-ivory, #faf8f0);
  --eg-paper: var(--ue-paper, #fffdf7);
  --eg-gold: var(--ue-gold, #c9a96a);
  --eg-gold-deep: var(--ue-gold-deep, #7a6535);
  --eg-gold-soft: var(--ue-gold-soft, #efe6ce);
  --eg-gold-light: #e9d9ac;
  --eg-ink: var(--ue-ink, #294336);
  --eg-ink-soft: var(--ue-ink-soft, #43584b);
  --eg-line: var(--ue-line, #d8cfb4);
  position: relative;
  width: min(100%, 760px);
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  background: var(--eg-ivory);
  color: var(--eg-ink);
  font: 400 15px/1.65 "Jost", "DM Sans", Arial, sans-serif;
  box-shadow: 0 28px 80px rgba(38, 59, 44, .17);
}
.uc-emerald *, .uc-emerald *::before, .uc-emerald *::after { box-sizing: border-box; }
.uc-emerald h1, .uc-emerald h2, .uc-emerald h3 { font-family: "Cormorant Garamond", Georgia, serif; }
.uc-emerald h1, .uc-emerald h2, .uc-emerald h3, .uc-emerald p { overflow-wrap: anywhere; }
.uc-emerald__kicker { margin: 0; color: var(--eg-gold-deep); font-size: 11px; font-weight: 600; letter-spacing: .24em; line-height: 1.5; text-transform: uppercase; }
.uc-emerald__script { margin: 0; color: var(--eg-forest); font: 400 clamp(34px, 9vw, 52px)/1.1 "Pinyon Script", cursive; }
.uc-emerald__flourish { display: inline-block; color: var(--eg-gold); font: 12px/1 Georgia, serif; letter-spacing: .11em; }
.uc-emerald__divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 0; color: var(--eg-gold); font-size: 13px; }
.uc-emerald__divider span { width: 56px; height: 1px; background: var(--eg-gold); opacity: .7; }
.uc-emerald__title { margin: 8px 0 0; color: var(--eg-forest); font-size: clamp(32px, 8vw, 48px); font-weight: 500; line-height: 1.1; }
.uc-emerald__body { max-width: 460px; margin: 14px auto 0; color: var(--eg-ink-soft); font-size: 14px; line-height: 1.8; }
.uc-emerald__body--quote { font-family: "Cormorant Garamond", Georgia, serif; font-size: 18px; font-style: italic; line-height: 1.6; }
.uc-emerald__salam { margin: 0 0 12px; color: var(--eg-forest); font-family: "Cormorant Garamond", Georgia, serif; font-size: 19px; font-weight: 600; }
.uc-emerald__leaf { position: absolute; top: 16px; right: 14px; z-index: 0; color: var(--eg-sage); font: 64px/1 Georgia, serif; opacity: .5; transform: rotate(-28deg); pointer-events: none; }
.uc-emerald__mono { width: 74px; height: 74px; margin: 0 auto; display: grid; place-items: center; border: 1px solid var(--eg-gold); border-radius: 50%; background: var(--eg-paper); color: var(--eg-forest); font: 500 24px/1 "Cormorant Garamond", Georgia, serif; letter-spacing: .04em; box-shadow: 0 0 0 5px var(--eg-ivory), 0 0 0 6px var(--eg-gold-soft); }
.uc-emerald__button { min-height: 46px; padding: 12px 26px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--eg-gold); border-radius: 999px; background: var(--eg-forest); color: #fffdf6; font: 600 12px/1.3 "Jost", sans-serif; letter-spacing: .08em; text-decoration: none; cursor: pointer; transition: transform .22s ease, box-shadow .22s ease; }
.uc-emerald__button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(36, 75, 59, .28); }
.uc-emerald__button--outline { background: var(--eg-paper); color: var(--eg-forest); }
.uc-emerald__button--copy { min-height: 40px; padding: 9px 20px; font-size: 11px; }
.uc-emerald__photo-fallback { width: 100%; height: 100%; min-height: 220px; display: grid; place-items: center; background: var(--eg-sage-soft); color: var(--eg-forest); font-size: 42px; }

/* --- Sampul: foto zona atas + panel solid di bawahnya --- */
.uc-emerald__cover { position: relative; text-align: center; background: var(--eg-ivory); }
.uc-emerald__cover-photo { position: relative; aspect-ratio: 4/4.4; max-height: 62svh; overflow: hidden; border-bottom: 1px solid var(--eg-gold); background: var(--eg-sage-soft); }
.uc-emerald__cover-photo::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 253, 247, .85); outline: 1px solid rgba(201, 169, 106, .9); outline-offset: 4px; pointer-events: none; }
.uc-emerald__cover-img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 28%; }
.uc-emerald__cover-photo .uc-emerald__photo-fallback { min-height: 100%; }
.uc-emerald__cover-panel { position: relative; padding: 34px 24px 44px; background: var(--eg-ivory) url("assets/botanical-corners.svg") right -70px bottom -70px/260px auto no-repeat, url("assets/botanical-corners.svg") left -70px top -70px/260px auto no-repeat; }
.uc-emerald__cover-panel::before { content: ""; position: absolute; inset: 0; background: var(--eg-ivory); opacity: .82; pointer-events: none; }
.uc-emerald__cover-panel > * { position: relative; z-index: 1; }
.uc-emerald__cover-panel .uc-emerald__flourish { margin: 10px 0 4px; font-size: 15px; }
.uc-emerald__cover h1 { max-width: 560px; margin: 6px auto 12px; color: var(--eg-forest); font-size: clamp(38px, 10.5vw, 64px); font-weight: 500; line-height: 1.06; letter-spacing: -.01em; }
.uc-emerald__cover h1 i { color: var(--eg-gold-deep); font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; }
.uc-emerald__cover-date { margin: 0 0 18px; color: var(--eg-ink-soft); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.uc-emerald__cover-panel .uc-emerald__mono { margin-bottom: 18px; }
.uc-emerald__guest { margin: 0 0 20px; padding: 10px 18px; border-top: 1px solid var(--eg-line); border-bottom: 1px solid var(--eg-line); color: var(--eg-ink-soft); font-size: 12px; line-height: 1.6; }
.uc-emerald__guest strong { color: var(--eg-forest); font-size: 14px; font-weight: 600; }

/* --- Section umum --- */
.uc-emerald__section { position: relative; overflow: hidden; padding: 72px 26px; text-align: center; background: var(--eg-ivory); }
.uc-emerald__section::before { content: ""; position: absolute; z-index: 0; inset: 0; background: url("assets/flower-corners-optimized.webp") right -120px top -95px/300px auto no-repeat, url("assets/flower-corners-optimized.webp") left -120px bottom -110px/300px auto no-repeat; opacity: .14; pointer-events: none; }
.uc-emerald__section > * { position: relative; z-index: 1; }
.uc-emerald__section:nth-of-type(even) { background: var(--eg-paper); }

/* --- Intro --- */
.uc-emerald__intro { padding-top: 80px; }
.uc-emerald__intro h2 { max-width: 520px; margin: 8px auto 0; color: var(--eg-forest); font-size: clamp(30px, 7.5vw, 46px); font-weight: 500; line-height: 1.12; }
.uc-emerald__portrait { width: min(74vw, 320px); aspect-ratio: .92; margin: 28px auto 18px; padding: 9px; border: 1px solid var(--eg-gold); border-radius: 48% 48% 22px 22px; background: var(--eg-paper); box-shadow: 0 18px 40px rgba(36, 75, 59, .14); }
.uc-emerald__portrait-img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.uc-emerald__portrait .uc-emerald__photo-fallback { min-height: 100%; border-radius: inherit; }
.uc-emerald__intro-names { display: block; color: var(--eg-forest); font: 500 24px/1.3 "Cormorant Garamond", Georgia, serif; }
.uc-emerald__intro-names i { color: var(--eg-gold-deep); font-style: italic; }
.uc-emerald__intro-date { display: block; margin-top: 6px; color: var(--eg-ink-soft); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.uc-emerald__intro .uc-emerald__flourish { margin-top: 20px; }

/* --- Mempelai --- */
.uc-emerald__profiles .uc-emerald__title { margin-bottom: 6px; }
.uc-emerald__person { width: min(100%, 400px); margin: 26px auto 0; padding: 26px 20px 22px; border: 1px solid var(--eg-line); border-radius: 180px 180px 18px 18px; background: var(--eg-paper); box-shadow: 0 16px 34px rgba(36, 75, 59, .1); }
.uc-emerald__frame { width: 132px; aspect-ratio: 1; margin: 0 auto 16px; border: 1px solid var(--eg-gold); border-radius: 50%; background: var(--eg-sage-soft); overflow: hidden; box-shadow: 0 0 0 6px var(--eg-paper), 0 10px 22px rgba(36, 75, 59, .16); }
.uc-emerald__person-img { width: 100%; height: 100%; display: block; object-fit: cover; }
.uc-emerald__frame .uc-emerald__photo-fallback { min-height: 100%; font-size: 34px; }
.uc-emerald__person .uc-emerald__script { color: var(--eg-forest); }
.uc-emerald__person h3 { margin: 2px 0 8px; color: var(--eg-forest); font-size: clamp(22px, 6vw, 28px); font-weight: 500; line-height: 1.15; }
.uc-emerald__parents { max-width: 300px; margin: 0 auto; color: var(--eg-ink-soft); font-size: 12px; line-height: 1.65; }
.uc-emerald__social { margin: 12px auto 0; display: inline-flex; align-items: center; gap: 5px; color: var(--eg-gold-deep); font-size: 12px; font-weight: 600; text-decoration: none; }
.uc-emerald__social span { text-decoration: underline; text-underline-offset: 3px; }
.uc-emerald__amp-big { margin: 20px 0 0; color: var(--eg-gold-deep); font: italic 34px/1 "Cormorant Garamond", Georgia, serif; }

/* --- Countdown (mandiri, panel gelap) --- */
.uc-emerald__countdown { background: var(--eg-forest); }
.uc-emerald__countdown::before { opacity: .1; }
.uc-emerald__countdown .uc-emerald__kicker { color: var(--eg-gold-light); }
.uc-emerald__countdown .uc-emerald__script { color: #fffdf7; }
.uc-emerald__cd-grid { width: min(100%, 520px); margin: 24px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.uc-emerald__cd-cell { padding: 14px 4px 12px; display: grid; gap: 4px; border: 1px solid rgba(201, 169, 106, .55); border-radius: 14px; background: rgba(27, 53, 42, .55); }
.uc-emerald__cd-cell b { color: var(--eg-gold-light); font: 500 clamp(26px, 7vw, 40px)/1 "Cormorant Garamond", Georgia, serif; }
.uc-emerald__cd-cell span { color: #f2ede0; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.uc-emerald__cd-note { max-width: 440px; margin: 18px auto 0; color: #e9e6d8; font-size: 13px; line-height: 1.7; }

/* --- Acara --- */
.uc-emerald__event-list { width: min(100%, 560px); margin: 26px auto 0; display: grid; gap: 16px; }
.uc-emerald__event-card { padding: 26px 20px 22px; position: relative; border: 1px solid var(--eg-line); border-radius: 20px; background: var(--eg-paper); box-shadow: 0 14px 30px rgba(36, 75, 59, .1); text-align: center; }
.uc-emerald__event-card::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(130, 146, 122, .35); border-radius: 14px; pointer-events: none; }
.uc-emerald__event-label { margin: 0; color: var(--eg-gold-deep); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.uc-emerald__event-card h3 { margin: 6px 0 16px; color: var(--eg-forest); font-size: 28px; font-weight: 500; }
.uc-emerald__event-facts { display: grid; gap: 10px; position: relative; z-index: 1; text-align: left; }
.uc-emerald__event-facts p { margin: 0; padding: 10px 12px; display: grid; grid-template-columns: 96px 1fr; gap: 10px; border-bottom: 1px solid var(--eg-line); color: var(--eg-ink-soft); font-size: 12px; line-height: 1.6; }
.uc-emerald__event-facts b { color: var(--eg-forest); font-size: 11px; font-weight: 600; }
.uc-emerald__event-note { margin: 14px 0 0; color: var(--eg-ink-soft); font-size: 12px; }
.uc-emerald__event-card .uc-emerald__button { margin-top: 16px; position: relative; z-index: 1; }

/* --- Cerita cinta --- */
.uc-emerald__timeline { width: min(100%, 560px); margin: 30px auto 0; display: grid; gap: 34px; text-align: left; }
.uc-emerald__story-item { display: grid; gap: 8px; }
.uc-emerald__story-photo { width: 100%; height: 220px; display: block; object-fit: cover; border: 1px solid var(--eg-line); border-radius: 14px; }
.uc-emerald__story-year { margin: 0; color: var(--eg-gold-deep); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.uc-emerald__story-item h3 { margin: 0; color: var(--eg-forest); font-size: 24px; font-weight: 500; }
.uc-emerald__story-item p { margin: 0; color: var(--eg-ink-soft); font-size: 13px; line-height: 1.7; }

/* --- Galeri (lightbox ENGINE) --- */
.uc-emerald__gal-grid { width: min(100%, 600px); margin: 26px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.uc-emerald__gal-item { min-width: 0; aspect-ratio: .92; padding: 5px; position: relative; overflow: hidden; border: 1px solid var(--eg-gold); border-radius: 18px 18px 12px 12px; background: var(--eg-paper); box-shadow: 0 8px 22px rgba(36, 75, 59, .12); cursor: zoom-in; }
.uc-emerald__gal-item:nth-child(3n + 1) { aspect-ratio: .8; }
.uc-emerald__gal-item img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 13px 13px 9px 9px; transition: transform .5s ease; }
.uc-emerald__gal-item:hover img { transform: scale(1.045); }
.uc-emerald__gal-note { margin: 16px 0 0; color: var(--eg-ink-soft); font-size: 12px; }
.uc-emerald__gallery-empty { grid-column: 1/-1; min-height: 250px; padding: 26px; display: grid; align-content: center; justify-items: center; gap: 8px; border: 1px dashed var(--eg-gold); border-radius: 22px; background: var(--eg-paper); text-align: center; }
.uc-emerald__gallery-empty > span { color: var(--eg-gold); font-size: 34px; }
.uc-emerald__gallery-empty strong { color: var(--eg-forest); font: 500 20px "Cormorant Garamond", Georgia, serif; }
.uc-emerald__gallery-empty small { max-width: 280px; color: var(--eg-ink-soft); font-size: 12px; }

/* --- Amplop digital --- */
.uc-emerald__gift-list { width: min(100%, 520px); margin: 26px auto 0; display: grid; gap: 14px; }
.uc-emerald__bank-card { display: grid; gap: 6px; padding: 24px 18px; border: 1px solid var(--eg-gold); border-radius: 16px; background: var(--eg-paper); box-shadow: 0 12px 26px rgba(36, 75, 59, .1); text-align: center; }
.uc-emerald__bank { margin: 0; color: var(--eg-gold-deep); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.uc-emerald__acc { margin: 0; color: var(--eg-ink); font: 600 22px/1.3 "Jost", sans-serif; letter-spacing: .03em; overflow-wrap: anywhere; }
.uc-emerald__holder { margin: 0; color: var(--eg-ink-soft); font-size: 13px; }
.uc-emerald__bank-card .uc-emerald__button { justify-self: center; margin-top: 10px; }
.uc-emerald__gift-address { width: min(100%, 520px); margin: 22px auto 0; font-style: normal; }
.uc-emerald__gift-address p { margin: 6px 0 0; color: var(--eg-ink-soft); font-size: 13px; }
.uc-emerald__gift-note { width: min(100%, 520px); margin: 20px auto 0; color: var(--eg-ink-soft); font-size: 13px; line-height: 1.65; }

/* --- RSVP & ucapan --- */
.uc-emerald__form { width: min(100%, 480px); margin: 24px auto 0; padding: 20px 16px; display: grid; gap: 10px; border: 1px solid var(--eg-line); border-radius: 20px; background: var(--eg-paper); box-shadow: 0 16px 34px rgba(36, 75, 59, .12); text-align: left; }
.uc-emerald__form > div { display: grid; gap: 6px; }
.uc-emerald__form label { color: var(--eg-forest); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.uc-emerald__form input, .uc-emerald__form select, .uc-emerald__form textarea { width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid #d5d7c6; border-radius: 10px; outline: none; background: #fffefa; color: var(--eg-ink); font: 400 13px/1.5 "Jost", sans-serif; }
.uc-emerald__form input:focus, .uc-emerald__form select:focus, .uc-emerald__form textarea:focus { border-color: var(--eg-forest); box-shadow: 0 0 0 3px rgba(130, 146, 122, .25); }
.uc-emerald__form textarea { resize: vertical; }
.uc-emerald__form .uc-emerald__button { width: 100%; }
.uc-emerald__status { min-height: 16px; color: var(--eg-forest); font-size: 12px; text-align: center; }
.uc-emerald__note { margin: 14px auto 0; color: var(--eg-ink-soft); font-size: 12px; text-align: center; }
.uc-emerald__wishes-list { width: min(100%, 480px); margin: 24px auto 0; }
.uc-emerald__wish-count { margin: 0 0 10px; color: var(--eg-ink-soft); font-size: 12px; text-align: center; }
.uc-emerald__wish-card { margin: 8px 0; padding: 14px 16px; border: 1px solid var(--eg-line); border-radius: 14px; background: var(--eg-paper); text-align: left; }
.uc-emerald__wish-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.uc-emerald__wish-card strong { color: var(--eg-forest); font: 600 14px "Jost", sans-serif; }
.uc-emerald__wish-card__badge { padding: 3px 9px; border-radius: 999px; background: var(--eg-gold-soft); color: var(--eg-gold-deep); font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.uc-emerald__wish-card p { margin: 6px 0; color: var(--eg-ink-soft); font-size: 13px; line-height: 1.6; }
.uc-emerald__wish-card small { color: var(--eg-ink-soft); font-size: 11px; }

/* --- Penutup (panel gelap) --- */
.uc-emerald__closing { background: var(--eg-forest); }
.uc-emerald__closing::before { opacity: .1; }
.uc-emerald__closing .uc-emerald__mono { background: var(--eg-forest-deep); color: var(--eg-gold-light); box-shadow: 0 0 0 5px var(--eg-forest), 0 0 0 6px rgba(201, 169, 106, .6); }
.uc-emerald__closing .uc-emerald__script { margin-top: 18px; color: var(--eg-gold-light); }
.uc-emerald__closing .uc-emerald__body { color: #e9e6d8; }
.uc-emerald__closing .uc-emerald__salam { margin-top: 18px; color: #fffdf7; }
.uc-emerald__sign { margin: 14px 0 0; color: #fffdf7; font: 500 26px/1.3 "Cormorant Garamond", Georgia, serif; }
.uc-emerald__foot-note { margin: 22px 0 0; color: #c9cdbd; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.uc-emerald__closing .uc-emerald__button { margin-top: 22px; background: transparent; border-color: var(--eg-gold); color: var(--eg-gold-light); }

/* --- Musik --- */
.uc-music-btn { position: absolute; z-index: 5; top: 16px; left: 16px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .65); background: rgba(27, 53, 42, .55); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.uc-music-btn.is-playing { background: #fff; color: #111; }

/* --- Reveal & nav --- */
.uc-emerald .uc-reveal { opacity: 0; transform: translateY(18px); transition: opacity .62s ease, transform .62s cubic-bezier(.22, .75, .28, 1); }
.uc-emerald .uc-reveal.is-visible { opacity: 1; transform: none; }
.uc-emerald.is-open { padding-bottom: 104px; }
.uc-emerald.is-open > .uc-bottom-nav { --nav-ivory: #faf8f0; --nav-emerald: #244b3b; --nav-gold: #c9a96a; --nav-gold-soft: #efe6ce; }

/* --- Pratinjau katalog --- */
.emerald-catalog-preview { min-height: 180px; height: 100%; padding: 18px 14px 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; background: radial-gradient(ellipse at center, #fffdf7 0 44%, #e6eadd 100%); color: var(--eg-forest, #244b3b); text-align: center; }
.emerald-catalog-preview__frame { position: absolute; inset: 8px 12%; border: 1px solid #bba66d; border-radius: 48% 48% 6px 6px/25% 25% 6px 6px; box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .65); }
.emerald-catalog-preview small, .emerald-catalog-preview strong, .emerald-catalog-preview em { position: relative; z-index: 1; }
.emerald-catalog-preview small { color: #43584b; font-size: .69rem; letter-spacing: .13em; }
.emerald-catalog-preview strong { max-width: 100%; margin: 9px 0; font: 500 1.35rem/1.08 "Cormorant Garamond", Georgia, serif; }
.emerald-catalog-preview em { color: #7a6535; font-size: .69rem; font-style: normal; }
.emerald-catalog-preview__peacocks { width: 88%; height: 52px; position: absolute; bottom: 2px; background: url("assets/peacock-garden-optimized.webp") center/contain no-repeat; }

@media (min-width: 640px) {
  .uc-emerald__cover-photo { aspect-ratio: 4/3.4; max-height: 68svh; }
  .uc-emerald__profiles .uc-emerald__title { margin-bottom: 0; }
  .uc-emerald__profiles { display: block; }
  .uc-emerald__person { display: inline-block; width: min(46%, 330px); margin: 26px 8px 0; vertical-align: top; }
  .uc-emerald__amp-big { display: inline-block; margin: 0 2px; vertical-align: middle; }
  .uc-emerald__event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .uc-emerald__event-card { padding-inline: 18px; }
  .uc-emerald__gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .uc-emerald__gal-item { aspect-ratio: .86; }
  .uc-emerald__gal-item:nth-child(3n + 1) { aspect-ratio: .76; }
}
@media (max-width: 560px) {
  body:has(.invite-wrap .uc-emerald) header .nav-links { display: none; }
  body:has(.invite-wrap .uc-emerald) header .nav-actions { display: none; }
  body:has(.invite-wrap .uc-emerald) header .nav { min-height: 64px; height: 64px; }
  .invite-wrap:has(.uc-emerald) { overflow-x: clip; }
  .invite-wrap > .container:has(.uc-emerald) { width: min(100%, 760px); max-width: 100vw; }
  .invite-wrap > .container:has(.uc-emerald) { padding-inline: 0; }
  .invite-wrap > .container:has(.uc-emerald) > div:first-child { padding-inline: 16px; }
  .uc-emerald { border-radius: 0; box-shadow: none; }
  .uc-emerald__cover-photo { aspect-ratio: 4/4.6; }
  .uc-emerald__cover-panel { padding: 30px 18px 40px; }
  .uc-emerald__cover h1 { font-size: clamp(36px, 10.5vw, 48px); }
  .uc-emerald__section { padding-right: 22px; padding-left: 22px; }
  .uc-emerald__event-facts p { grid-template-columns: 80px 1fr; }
  .uc-emerald__gal-grid { gap: 7px; }
  .uc-emerald__gal-item { padding: 4px; border-radius: 14px; }
  .uc-emerald__form { padding: 16px 14px; }
  .uc-emerald__cd-grid { gap: 5px; }
}
@media (max-width: 360px) {
  .uc-emerald__cover-panel { padding-inline: 14px; }
  .uc-emerald__cover h1 { font-size: 34px; }
  .uc-emerald__event-facts p { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .uc-emerald *, .uc-emerald *::before, .uc-emerald *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .uc-emerald .uc-reveal { opacity: 1; transform: none; }
}

/* Batch 30 (P2-6): teks placeholder di dalam bingkai foto (bundar/lengkung) harus
   muat — kecilkan, tengahkan, dan izinkan membungkus. */
.uc-emerald__photo-fallback small{font-size:14px;line-height:1.4;text-align:center;padding:0 14px;overflow-wrap:break-word}

/* Batch 30 follow-up #3 (audit latar HP #1, P1 + audit #2 CURIGA):
   corner floral 300px (offset -120px) di ≤560px dikecilkan ke 160px
   (offset -60px) supaya garland tidak terpotong di tengah mekar di
   390px; opacity .14 dipertahankan. Bila cek visual HP masih melihat
   seam, langkah berikut: sembunyikan ::before di ≤560px. */
@media(max-width:560px){.uc-emerald__section::before{background:url("assets/flower-corners-optimized.webp") right -60px top -55px/160px auto no-repeat,url("assets/flower-corners-optimized.webp") left -60px bottom -60px/160px auto no-repeat}}
