/* Hydrangea: misty blue watercolour garden, ovals and soft cards. */

/* ===== Structure shared by the floral premium themes (layout, rhythm, states). ===== */
body.theme-thm14 {
    margin: 0;
    background: var(--fl-paper);
    color: var(--fl-ink);
    font: 400 15px/1.8 var(--invie-font-body, "Manrope"), system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.theme-thm14 *, .theme-thm14 *::before, .theme-thm14 *::after { box-sizing: border-box; }
.theme-thm14 :is(h1, h2, h3, p, figure, blockquote) { margin: 0; }
.theme-thm14 :is(h1, h2, h3) { font-family: var(--invie-font-heading, "Cormorant Garamond"), Georgia, serif; font-weight: 500; line-height: 1.08; overflow-wrap: anywhere; color: var(--fl-heading); }
.theme-thm14 h2 { font-size: clamp(2.5rem, 4.4vw, 4.2rem); }
.theme-thm14 h3 { font-size: clamp(1.9rem, 2.8vw, 2.6rem); }
.theme-thm14 p { text-wrap: pretty; }
.theme-thm14 :is(a, button, input, textarea, select) { -webkit-tap-highlight-color: transparent; }
.theme-thm14 a { color: inherit; text-decoration: none; }
.theme-thm14 button { cursor: pointer; font: inherit; }
.theme-thm14 button:disabled { opacity: .55; cursor: wait; }
.theme-thm14 img { display: block; max-width: 100%; }
.theme-thm14 :is(button, input, textarea, select) { max-width: 100%; }
.theme-thm14 [hidden] { display: none !important; }
.theme-thm14 ::selection { color: var(--fl-paper); background: var(--fl-accent); }
.theme-thm14:not([data-theme-state="open"]) { overflow: hidden; }
.theme-thm14 :focus-visible { outline: 2px solid var(--fl-accent); outline-offset: 3px; }

.thm14-page { width: 100%; position: relative; overflow-x: clip; }
.theme-thm14 .thm14-invitation { visibility: visible; opacity: 1; outline: 0; }
.theme-thm14 [data-theme-section] { content-visibility: visible; contain-intrinsic-size: none; scroll-margin-top: 20px; }

.thm14-kicker { color: var(--fl-accent); font-size: 12px; font-weight: 700; letter-spacing: .2em; line-height: 1.9; text-transform: uppercase; }

.thm14-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 13px 26px; border: 1px solid var(--fl-accent); border-radius: var(--fl-button-radius); background: var(--fl-accent); color: var(--fl-on-accent); font-size: 13px; font-weight: 700; letter-spacing: .06em; transition: box-shadow .25s, transform .25s, background .25s; }
.thm14-button:hover { transform: translateY(-2px); box-shadow: 0 12px 26px var(--fl-shadow); }
.theme-thm14 a.thm14-button { color: var(--fl-on-accent); }
.theme-thm14 .thm14-button.thm14-button--gold { background: var(--fl-accent); color: var(--fl-on-accent); }
.theme-thm14 .thm14-button.thm14-button--ink { background: var(--fl-heading); border-color: var(--fl-heading); color: var(--fl-paper); }
.theme-thm14 .thm14-button.thm14-button--paper { background: transparent; color: var(--fl-accent); }
.theme-thm14 .thm14-button.thm14-button--paper:hover { background: var(--fl-wash); }

.thm14-text-link { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; padding-block: 8px; border: 0; border-bottom: 1px solid var(--fl-line); background: transparent; color: var(--fl-accent) !important; font-size: 13px; font-weight: 600; }

.thm14-divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 0; }
.thm14-divider::before, .thm14-divider::after { content: ""; width: 64px; height: 1px; background: linear-gradient(90deg, transparent, var(--fl-accent)); }
.thm14-divider::after { transform: rotate(180deg); }
.thm14-divider span { width: 22px; height: 22px; background: var(--fl-accent); -webkit-mask: var(--fl-mark) center / contain no-repeat; mask: var(--fl-mark) center / contain no-repeat; }

/* Cover --------------------------------------------------------------------- */
.thm14-cover { position: fixed !important; z-index: 50; inset: 0; display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: 36px 20px; background: var(--fl-cover-ground); transition: opacity .85s ease, visibility .85s; }
.thm14-cover__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: var(--fl-cover-photo-opacity); z-index: -2; }
.thm14-cover__bloom { position: absolute; z-index: -1; width: clamp(240px, 34vw, 520px); height: auto; pointer-events: none; animation: thm14-breathe 12s ease-in-out infinite; }
.thm14-cover__bloom--top { top: -6%; left: -5%; }
.thm14-cover__bloom--bottom { bottom: -7%; right: -5%; transform: rotate(180deg); animation-delay: -6s; }
.thm14-cover__textile { position: absolute; top: 0; bottom: 0; z-index: -1; display: grid; place-items: end center; width: 17%; pointer-events: none; }
.thm14-cover__textile img { width: min(100%, 260px); height: auto; max-height: 92%; animation: thm14-sway 11s ease-in-out infinite; transform-origin: 50% 100%; }
.thm14-cover__textile--left { left: 2%; }
.thm14-cover__textile--right { right: 2%; }
.thm14-cover__textile--right img { scale: -1 1; animation-delay: -5.5s; }
.thm14-cover__frame { position: relative; width: min(100%, 470px); margin: auto; text-align: center; animation: thm14-enter 1.4s ease both; }
.thm14-cover__crest { display: block; margin: 0 auto 10px; background: var(--fl-accent); -webkit-mask: var(--fl-crest) center / contain no-repeat; mask: var(--fl-crest) center / contain no-repeat; }
.thm14-cover h1 { margin: 12px 0 0; font-size: clamp(3.6rem, 6vw, 5.6rem); letter-spacing: -.01em; }
.thm14-cover h1 span { display: block; }
.thm14-cover h1 i { display: block; margin-block: 2px; font: 400 .5em/1 var(--fl-script); color: var(--fl-accent); }
.thm14-cover--long h1 { font-size: clamp(2.3rem, 4vw, 3.6rem); }
.thm14-cover time { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.thm14-cover__guest { display: grid; gap: 4px; margin: 24px auto 20px; overflow-wrap: anywhere; }
.thm14-cover__guest span { color: var(--fl-muted); font-size: 12px; }
.thm14-cover__guest strong { font-weight: 600; font-size: 16px; }
.theme-thm14.thm14-is-open .thm14-cover { opacity: 0; visibility: hidden; pointer-events: none; }
.theme-thm14.thm14-is-opening .thm14-intro__grid { animation: thm14-enter 1.2s ease both; }

/* Drifting petals ------------------------------------------------------------ */
.thm14-ornaments { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.thm14-petals { position: absolute; inset: 0; }
.thm14-petals i { position: absolute; top: -6%; width: 18px; height: 18px; background: var(--fl-petal); opacity: 0; -webkit-mask: var(--fl-mark) center / contain no-repeat; mask: var(--fl-mark) center / contain no-repeat; animation: thm14-fall 16s linear infinite; }
.thm14-petals i:nth-child(1) { left: 8%; animation-delay: -2s; }
.thm14-petals i:nth-child(2) { left: 22%; animation-delay: -9s; width: 13px; height: 13px; }
.thm14-petals i:nth-child(3) { left: 37%; animation-delay: -5s; }
.thm14-petals i:nth-child(4) { left: 51%; animation-delay: -12s; width: 12px; height: 12px; }
.thm14-petals i:nth-child(5) { left: 64%; animation-delay: -1s; width: 15px; height: 15px; }
.thm14-petals i:nth-child(6) { left: 76%; animation-delay: -7s; }
.thm14-petals i:nth-child(7) { left: 88%; animation-delay: -14s; width: 12px; height: 12px; }
.thm14-petals i:nth-child(8) { left: 45%; animation-delay: -10.5s; width: 10px; height: 10px; }
.thm14-petals i:nth-child(9) { left: 94%; animation-delay: -4s; width: 14px; height: 14px; }

@keyframes thm14-enter { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes thm14-breathe { 0%, 100% { scale: 1; } 50% { scale: 1.025; } }
@keyframes thm14-sway { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
@keyframes thm14-fall {
    0% { opacity: 0; transform: translate(0, 0) rotate(0); }
    10% { opacity: .75; }
    85% { opacity: .55; }
    100% { opacity: 0; transform: translate(70px, 108vh) rotate(260deg); }
}

.thm14-motion-ready [data-thm14-reveal] { transition: opacity .85s ease, transform .85s ease; }
.thm14-motion-ready [data-thm14-reveal]:not(.is-visible) { opacity: 0; transform: translateY(24px); }
.theme-thm14[data-motion-paused="true"] :is(.thm14-petals i, .thm14-cover__bloom, .thm14-cover__textile img) { animation-play-state: paused !important; }
.theme-thm14[data-motion-paused="true"] .thm14-petals { display: none; }
.theme-thm14[data-motion-paused="true"] [data-thm14-reveal] { opacity: 1; transform: none; }

/* Sections --------------------------------------------------------------------- */
.thm14-section { position: relative; overflow-x: clip; padding: 104px max(7vw, calc((100vw - 1140px) / 2)); }
.thm14-section > :not(dialog) { position: relative; z-index: 1; min-width: 0; }
.thm14-section > .thm14-ornaments { position: absolute; z-index: 0; }

.thm14-heading { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.thm14-heading::before { content: ""; display: block; margin: 0 auto 18px; background: var(--fl-accent); -webkit-mask: var(--fl-crest) center / contain no-repeat; mask: var(--fl-crest) center / contain no-repeat; }
.thm14-heading .thm14-kicker { margin-bottom: 12px; }
.thm14-heading p:not(.thm14-kicker) { max-width: 520px; margin: 18px auto 0; color: var(--fl-muted); }
.thm14-heading--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 40px; align-items: end; max-width: none; text-align: left; }
.thm14-heading--split::before { display: none; }
.thm14-heading--split p:not(.thm14-kicker) { margin: 0; }

/* Intro */
.thm14-intro { padding-top: 0; overflow: hidden; }
.thm14-nav { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--fl-line); }
.thm14-nav__brand { font: 500 30px/1.1 var(--invie-font-heading, "Cormorant Garamond"), serif; color: var(--fl-accent) !important; letter-spacing: .04em; }
.thm14-nav__links { display: flex; gap: 26px; flex-wrap: wrap; }
.thm14-nav__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.thm14-nav__links a:hover { color: var(--fl-accent); }
.thm14-intro__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 9%; align-items: center; padding: 96px 0 70px; }
.thm14-intro__copy h2 { font-size: clamp(3.4rem, 5.6vw, 5.8rem); margin-top: 20px; }
.thm14-intro__copy em { font-style: italic; color: var(--fl-accent); }
.thm14-intro__copy .thm14-divider { justify-content: flex-start; }
.thm14-intro__copy > p:not(.thm14-kicker) { max-width: 430px; color: var(--fl-muted); }
.thm14-intro__copy .thm14-text-link { margin-top: 20px; }
.thm14-intro__portrait { position: relative; padding: 14px; }
.thm14-intro__hero { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 3 / 4; background: var(--fl-wash); }
.thm14-intro__hero > img { width: 100%; height: 100%; object-fit: cover; }
.thm14-intro__hero figcaption { position: absolute; inset: auto 0 0; padding: 50px 20px 20px; text-align: center; color: #fff; background: linear-gradient(transparent, rgb(0 0 0 / 45%)); font: italic 30px var(--invie-font-heading, "Cormorant Garamond"), serif; }
.thm14-intro__monogram { font: 100px var(--invie-font-heading, "Cormorant Garamond"), serif; color: var(--fl-accent); }
.thm14-intro__ornament { position: absolute; z-index: 2; left: 50%; top: -11%; width: 92%; max-width: none; height: auto; transform: translateX(-50%); pointer-events: none; }

.thm14-countdown { display: flex; justify-content: center; align-items: center; gap: 34px; padding-top: 40px; border-top: 1px solid var(--fl-line); }
.thm14-countdown > p { max-width: 150px; }
.thm14-countdown > div { display: grid; min-width: 58px; text-align: center; }
.thm14-countdown strong { color: var(--fl-heading); font: 500 46px/1.2 var(--invie-font-heading, "Cormorant Garamond"), serif; font-variant-numeric: lining-nums tabular-nums; }
.thm14-countdown span { color: var(--fl-muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* Couple */
.thm14-couple__profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; max-width: 960px; margin: 0 auto; }
.thm14-profile { min-width: 0; text-align: center; }
.thm14-profile__media { position: relative; width: min(100%, 300px); aspect-ratio: 3 / 4; }
.theme-thm14 .thm14-profile__media { margin: 0 auto 30px; }
.thm14-profile__media img, .thm14-profile__monogram { width: 100%; height: 100%; object-fit: cover; }
.thm14-profile__monogram { display: grid; place-items: center; color: var(--fl-accent); font: 90px var(--invie-font-heading, "Cormorant Garamond"), serif; background: var(--fl-wash); }
.thm14-profile__copy h3 { margin: 10px auto 16px; max-width: 420px; }
.thm14-profile__copy > p:not(.thm14-kicker) { max-width: 330px; margin: auto; color: var(--fl-muted); }
.thm14-profile__copy .thm14-text-link { margin-top: 10px; }
.thm14-profile--name-long h3, .thm14-profile--name-xlong h3 { font-size: 2rem; }

/* Events */
.thm14-events__tickets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.thm14-event { position: relative; padding: 38px 30px; text-align: center; background: var(--fl-card); border: 1px solid var(--fl-line); }
.thm14-event__date time { display: grid; color: var(--fl-accent); }
.thm14-event__date span, .thm14-event__date small { font-size: 12px; font-weight: 600; letter-spacing: .2em; }
.thm14-event__date strong { margin: 6px 0; color: var(--fl-heading); font: 500 76px/1 var(--invie-font-heading, "Cormorant Garamond"), serif; }
.thm14-event__copy { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--fl-line); }
.thm14-event__copy h3 { margin: 6px 0 14px; }
.thm14-event__copy > strong { display: block; margin: 18px 0 6px; font-size: 15px; }
.thm14-event__copy address { font-style: normal; color: var(--fl-muted); font-size: 13px; }
.thm14-event__time { font-weight: 600; }
.thm14-event__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-top: 24px; }
/* One map control: open, the map takes the card's width; the button and the maps link stay centred like the card. */
.thm14-event__map[open] { align-self: stretch; }
.thm14-event__map > summary { margin-inline: auto; }
.thm14-event__map .theme-v2-map__open { justify-self: center; color: var(--fl-accent); font-size: 13px; }

/* Quote */
.thm14-quote { text-align: center; }
.thm14-quote__brush { display: block; height: 90px; margin-bottom: 26px; background: var(--fl-accent); -webkit-mask: var(--fl-crest) center / contain no-repeat; mask: var(--fl-crest) center / contain no-repeat; }
.thm14-quote blockquote { max-width: 760px; margin: auto; }
.thm14-quote__mark { display: none; }
.thm14-quote blockquote p { color: var(--fl-heading); font: italic 500 clamp(1.6rem, 2.6vw, 2.3rem)/1.5 var(--invie-font-heading, "Cormorant Garamond"), serif; }
.thm14-quote cite { display: block; margin-top: 28px; color: var(--fl-accent); font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

/* Story */
.thm14-story__timeline { max-width: 960px; margin: auto; }
.thm14-story-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 40px 0; }
.thm14-story-entry--even .thm14-story-entry__visual { order: 2; }
.thm14-story-entry__visual figure { position: relative; }
.thm14-story-entry__visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thm14-story-entry__visual figcaption { position: absolute; right: 18px; bottom: 14px; color: #fff; font: italic 40px var(--invie-font-heading, "Cormorant Garamond"), serif; text-shadow: 0 2px 12px rgb(0 0 0 / 45%); font-variant-numeric: lining-nums; }
.thm14-story-entry__placeholder { display: grid; place-items: center; min-height: 220px; background: var(--fl-wash); color: var(--fl-accent); font: 60px var(--invie-font-heading, "Cormorant Garamond"), serif; }
.thm14-story-entry__placeholder span { display: none; }
.thm14-story-entry__chapter { color: var(--fl-accent); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.thm14-story-entry__copy time { color: var(--fl-muted); font-size: 13px; }
.thm14-story-entry__copy h3 { margin: 12px 0; }
.thm14-story-entry__copy > p:last-child { color: var(--fl-muted); }

/* Gallery */
/* Two tracks per photo let a short last row sit centred instead of leaving a hole. */
.thm14-gallery__collage { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; align-items: start; }
.thm14-gallery__piece { grid-column: span 2; }
.thm14-gallery__piece:last-child:nth-child(3n+1) { grid-column: 3 / span 2; }
.thm14-gallery__piece:nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }
.thm14-gallery__piece { position: relative; min-width: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.thm14-gallery__piece img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s ease; }
.thm14-gallery__piece:hover img { transform: scale(1.04); }
.thm14-gallery__piece:nth-child(3n+2) { margin-top: 48px; }
.thm14-gallery__piece > span { position: absolute; right: 16px; bottom: 12px; font-size: 12px; font-weight: 700; text-shadow: 0 1px 6px rgb(0 0 0 / 50%); }
.thm14-gallery__piece small { display: block; padding: 10px; color: var(--fl-muted); }
.thm14-gallery-dialog { width: min(900px, 94vw); max-height: 94dvh; padding: 18px; color: var(--fl-ink); background: var(--fl-paper); border: 0; border-radius: var(--fl-card-radius); box-shadow: 0 30px 80px rgb(0 0 0 / 30%); }
.thm14-gallery-dialog::backdrop { background: var(--fl-backdrop); backdrop-filter: blur(4px); }
.thm14-gallery-dialog button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--fl-line); border-radius: var(--fl-button-radius); color: var(--fl-ink); background: var(--fl-card); }
.thm14-gallery-dialog__bar, .thm14-gallery-dialog__controls { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 13px; }
.thm14-gallery-dialog figure { margin: 14px 0; }
.thm14-gallery-dialog figure img { width: 100%; max-height: 65dvh; object-fit: contain; }
.thm14-gallery-dialog figcaption { text-align: center; font-size: 13px; }

/* RSVP and wishes */
.thm14-rsvp__layout, .thm14-wishes__guestbook { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; }
.thm14-rsvp__aside h2 { margin: 14px 0 22px; }
.thm14-rsvp__aside > p:not(.thm14-kicker) { color: var(--fl-muted); }
.thm14-rsvp__deadline strong { display: block; color: var(--fl-accent); }
.thm14-rsvp__mark { width: 220px; height: 220px; margin: 36px 0; background: var(--fl-accent); opacity: .5; -webkit-mask: var(--fl-crest) center / contain no-repeat; mask: var(--fl-crest) center / contain no-repeat; }
.thm14-rsvp__mark span { display: none; }
.thm14-form { display: grid; gap: 20px; align-content: start; padding: 34px; background: var(--fl-card); border: 1px solid var(--fl-line); border-radius: var(--fl-card-radius); box-shadow: 0 18px 40px var(--fl-shadow); }
.thm14-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.thm14-field > label, .thm14-field legend { display: block; margin-bottom: 8px; padding: 0; color: var(--fl-heading); font-size: 13px; font-weight: 700; }
.thm14-field :is(input:not([type="radio"]), textarea, select) { width: 100%; padding: 12px 14px; border: 1px solid var(--fl-line-strong); border-radius: var(--fl-input-radius); background: var(--fl-paper); color: var(--fl-ink); font: 16px/1.6 var(--invie-font-body, "Manrope"), sans-serif; }
.thm14-field textarea { resize: vertical; }
.thm14-field ::placeholder { color: var(--fl-placeholder); opacity: 1; }
/* The three answers sit in one row only while each label fits on a single line. */
.thm14-attendance { container-type: inline-size; }
.thm14-attendance__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@container (max-width: 470px) { .thm14-attendance__options { grid-template-columns: 1fr; } }
.thm14-attendance__options label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 10px; border: 1px solid var(--fl-line-strong); border-radius: var(--fl-input-radius); font-size: 13px; font-weight: 600; text-align: center; cursor: pointer; }
.thm14-attendance__options input { position: absolute; opacity: 0; pointer-events: none; }
.thm14-attendance__options label:has(input:checked) { background: var(--fl-accent); border-color: var(--fl-accent); color: var(--fl-on-accent); }
.thm14-attendance__options label:has(input:focus-visible) { outline: 2px solid var(--fl-accent); outline-offset: 3px; }
.thm14-form__status { color: var(--fl-accent); font-size: 13px; overflow-wrap: anywhere; }
.thm14-form__status:empty { display: none; }
.thm14-form__status[data-status="error"] { color: #b4463c; }

.thm14-wishes__featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 40px; }
.thm14-wish-card { position: relative; padding: 30px; background: var(--fl-card); border: 1px solid var(--fl-line); border-radius: var(--fl-card-radius); }
.thm14-wish-card__number { color: var(--fl-accent); font-size: 12px; font-weight: 700; }
.thm14-wish-card blockquote { margin: 12px 0 22px; color: var(--fl-heading); font: italic 24px/1.5 var(--invie-font-heading, "Cormorant Garamond"), serif; }
.thm14-wish-card figcaption { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.thm14-wish-card figcaption img, .thm14-wish-card__initial { width: 42px; height: 42px; flex: none; object-fit: cover; border-radius: 50%; }
.thm14-wish-card__initial { display: grid; place-items: center; background: var(--fl-wash); color: var(--fl-accent); font-weight: 700; }
.thm14-wish-card small { display: block; color: var(--fl-muted); font-size: 12px; }
.thm14-wishes__messages-head { display: flex; gap: 15px; justify-content: space-between; align-items: center; }
.thm14-wishes__messages-head h3 { margin-top: 8px; }
.thm14-wishes__messages ul { list-style: none; margin: 24px 0 0; padding: 0; max-height: 490px; overflow: auto; }
.thm14-wishes__messages li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--fl-line); overflow-wrap: anywhere; }
.thm14-wishes__messages li > span { flex: none; min-width: 2.4ch; white-space: nowrap; color: var(--fl-accent); font-size: 12px; font-weight: 700; }
.thm14-wishes__messages time { display: block; color: var(--fl-muted); font-size: 12px; }
.thm14-wishes__messages li p { margin-top: 8px; color: var(--fl-muted); }

/* Gift */
.thm14-gift__accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.thm14-gift-card { position: relative; overflow: hidden; padding: 30px; border-radius: var(--fl-card-radius); background: var(--fl-gift); color: var(--fl-gift-ink); box-shadow: 0 18px 40px var(--fl-shadow); }
.thm14-gift-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 170px; height: 170px; background: currentColor; opacity: .1; -webkit-mask: var(--fl-mark) center / contain no-repeat; mask: var(--fl-mark) center / contain no-repeat; pointer-events: none; }
.thm14-gift-card__masthead { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.thm14-gift-card__bank { display: flex; gap: 14px; align-items: center; margin: 22px 0; }
.thm14-gift-card__bank img { max-width: 76px; max-height: 36px; padding: 6px; background: #fff; border-radius: 6px; }
.thm14-gift-card__bank strong { font-size: 14px; }
.thm14-gift-card__account { display: grid; margin-bottom: 22px; overflow-wrap: anywhere; }
.thm14-gift-card__account span, .thm14-gift-card__account small { font-size: 12px; opacity: .85; }
.thm14-gift-card__account strong { font: 500 32px/1.6 var(--invie-font-heading, "Cormorant Garamond"), serif; letter-spacing: .04em; font-variant-numeric: lining-nums tabular-nums; }
.theme-thm14 .thm14-gift-card .thm14-button--paper { position: relative; z-index: 1; border-color: currentColor; color: var(--fl-gift-ink); }
.theme-thm14 .thm14-gift-card .thm14-button--paper:hover { background: rgb(255 255 255 / 16%); }
.thm14-gift__status { margin-top: 14px; color: var(--fl-accent); font-size: 13px; }

/* Dress code, livestream, health */
.thm14-dresscode, .thm14-livestream, .thm14-health { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.thm14-dresscode h2, .thm14-livestream h2, .thm14-health h2 { margin: 12px 0 20px; font-size: clamp(2.4rem, 3.4vw, 3rem); }
.thm14-dresscode p:not(.thm14-kicker), .thm14-livestream p:not(.thm14-kicker), .thm14-health p:not(.thm14-kicker) { color: var(--fl-muted); }
.thm14-dresscode small { display: block; margin-top: 14px; color: var(--fl-muted); font-size: 13px; font-style: italic; }
/* Fixed swatch tracks keep every colour the same size and the group centred in its column. */
.thm14-dresscode__palette { --thm14-swatch-size: 92px; --thm14-swatch-cols: 4; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 22px 20px; max-width: calc(var(--thm14-swatch-cols) * var(--thm14-swatch-size) + (var(--thm14-swatch-cols) - 1) * 20px); margin: 0 auto; padding: 0; list-style: none; }
.thm14-dresscode__palette > li { flex: 0 0 var(--thm14-swatch-size); }
.thm14-dresscode__swatch { display: grid; justify-items: center; gap: 12px; text-align: center; font-size: 13px; }
.thm14-dresscode__swatch > span { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--thm14-swatch); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 8%), 0 10px 20px var(--fl-shadow); }
.thm14-livestream__signal { display: none; }
.thm14-livestream__access { padding: 32px; background: var(--fl-card); border: 1px solid var(--fl-line); border-radius: var(--fl-card-radius); }
.thm14-livestream__meta { display: grid; margin-bottom: 22px; }
.thm14-livestream__meta span { color: var(--fl-accent); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.thm14-livestream__meta strong { font: 500 28px/1.3 var(--invie-font-heading, "Cormorant Garamond"), serif; color: var(--fl-heading); }
.thm14-livestream dl { margin: 0 0 22px; }
.thm14-livestream dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--fl-line); }
.thm14-livestream dd { margin: 0; overflow-wrap: anywhere; }
.thm14-health__grid { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.thm14-health-card { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px 22px; background: var(--fl-card); border: 1px solid var(--fl-line); border-radius: var(--fl-card-radius); }
.thm14-health-card__number { grid-row: span 2; color: var(--fl-accent); font: 500 28px/1 var(--invie-font-heading, "Cormorant Garamond"), serif; font-variant-numeric: lining-nums tabular-nums; }
.thm14-health-card strong { color: var(--fl-heading); font-size: 15px; }
.thm14-health-card p { margin-top: 2px; color: var(--fl-muted); font-size: 14px; }

/* Shared participants partials inherit the theme's rhythm. */
.theme-thm14 .theme-participants__grid { --theme-participants-gap: 18px; }
/* Vendor cards take the garden's soft card (as the health notes) instead of the shared square box. */
.theme-thm14 .theme-participants__vendor { border: 0; border-radius: var(--fl-card-radius); background: var(--fl-card); box-shadow: 0 12px 26px var(--fl-shadow); }
.theme-thm14 .theme-participants__logo { border-radius: var(--fl-input-radius); }

/* Closing */
.thm14-closing { position: relative; overflow: hidden; isolation: isolate; padding: 110px 25px 46px; text-align: center; background: var(--fl-closing); color: var(--fl-closing-ink); }
.thm14-closing__media { position: absolute; inset: 0; z-index: -1; margin: 0; }
.thm14-closing__media img { width: 100%; height: 100%; object-fit: cover; opacity: .14; }
.thm14-closing__monogram { display: none; }
.thm14-closing__copy { position: relative; max-width: 800px; margin: auto; }
.thm14-closing__garland { width: min(100%, 520px); height: auto; margin: 0 auto 26px; }
.thm14-closing h2 { margin: 22px 0; color: var(--fl-closing-ink); font-size: clamp(3.6rem, 7vw, 6.2rem); }
.thm14-closing h2 i { margin-inline: 12px; font: 400 .55em/1 var(--fl-script); color: var(--fl-closing-accent); }
.thm14-closing .thm14-kicker { color: var(--fl-closing-accent); }
.thm14-closing__copy > p:not(.thm14-kicker) { max-width: 470px; margin: auto; opacity: .88; }
.thm14-closing time { display: block; margin: 24px 0; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.thm14-closing small { display: block; margin-top: 52px; font-size: 12px; opacity: .8; }
.thm14-closing small a { text-decoration: underline; text-underline-offset: 3px; }
.thm14-closing--names-long h2, .thm14-closing--names-xlong h2 { font-size: clamp(2.6rem, 5vw, 4rem); }

.thm14-sr-status { position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.thm14-dock { --theme-dock-bg: var(--fl-dock-bg); --theme-dock-fg: var(--fl-dock-fg); --theme-dock-border: var(--fl-line); --theme-dock-bg-on-dark: var(--fl-paper); --theme-dock-fg-on-dark: var(--fl-heading); --theme-dock-border-on-dark: var(--fl-line); }

.thm14-motion-toggle { display: flex; min-height: 44px; margin: 14px auto 0; padding: 0 8px; align-items: center; border: 0; background: none; color: inherit; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; opacity: .85; }
.thm14-motion-toggle:hover { opacity: 1; }
.thm14-motion-toggle--cover { position: absolute; z-index: 6; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); min-height: 36px; margin: 0; padding: 0 14px; border: 1px solid var(--fl-line-strong); border-radius: 999px; background: var(--fl-card); color: var(--fl-accent); letter-spacing: .08em; text-decoration: none; opacity: 1; }

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 1100px) {
    .thm14-section { padding: 84px 6vw; }
    .thm14-intro { padding-top: 0; }
    .thm14-intro__grid { gap: 6%; }
    .thm14-rsvp__layout, .thm14-wishes__guestbook { gap: 36px; }
    .thm14-dresscode__palette { --thm14-swatch-size: 104px; --thm14-swatch-cols: 2; }
}

@media (max-width: 760px) {
    .theme-thm14 { font-size: 14px; }
    .thm14-cover { padding: 30px 22px; }
    .thm14-cover__textile { display: none; }
    .thm14-cover__bloom { width: 60vw; }
    .thm14-cover__bloom--top { top: -4%; left: -14%; }
    .thm14-cover__bloom--bottom { bottom: -5%; right: -14%; }
    .thm14-cover h1 { font-size: 4.2rem; }
    .thm14-cover--long h1 { font-size: 2.7rem; }

    .thm14-section { padding: 72px 22px; }
    .thm14-intro { padding-top: 0; }
    .thm14-nav { gap: 12px; padding: 16px 0; }
    .thm14-nav__links { gap: 12px; }
    .thm14-nav__links a { font-size: 12px; letter-spacing: .04em; }
    .thm14-nav__brand { font-size: 24px; }
    .thm14-intro__grid { grid-template-columns: 1fr; gap: 64px; padding: 56px 0 40px; }
    .thm14-intro__copy { text-align: center; }
    .thm14-intro__copy h2 { font-size: clamp(3.2rem, 12vw, 4.4rem); }
    .thm14-intro__copy .thm14-divider { justify-content: center; }
    .thm14-intro__copy > p:not(.thm14-kicker) { margin: auto; }
    .thm14-intro__portrait { width: min(100% - 24px, 360px); margin: 30px auto 0; }

    .thm14-countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-top: 26px; }
    .thm14-countdown > p { grid-column: 1 / -1; max-width: none; margin-bottom: 6px; text-align: center; }
    .thm14-countdown strong { font-size: 38px; }
    .thm14-countdown > div { min-width: 0; }

    .thm14-heading { margin-bottom: 36px; }
    .thm14-heading--split { grid-template-columns: 1fr; gap: 14px; text-align: center; }
    .thm14-couple__profiles { grid-template-columns: 1fr; gap: 60px; }
    .thm14-profile__media { width: min(78%, 280px); }
    .thm14-profile__copy { max-width: 390px; margin: auto; }

    .thm14-events__tickets, .thm14-rsvp__layout, .thm14-wishes__guestbook, .thm14-wishes__featured, .thm14-dresscode, .thm14-livestream, .thm14-health { grid-template-columns: 1fr; gap: 28px; }
    .thm14-event { padding: 32px 22px; }
    .thm14-event__actions { flex-direction: column; }

    .thm14-dresscode__copy, .thm14-livestream__copy, .thm14-health__copy { text-align: center; }
    .thm14-dresscode__palette { --thm14-swatch-size: 96px; --thm14-swatch-cols: 2; }
    .thm14-dresscode__swatch { font-size: 12px; }

    /* Story chapters and gift accounts swipe sideways, the next card peeking in. */
    .thm14-story__timeline, .thm14-gift__accounts { display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -22px; padding: 0 22px 10px; scroll-padding-inline: 22px; }
    .thm14-story__timeline::-webkit-scrollbar, .thm14-gift__accounts::-webkit-scrollbar { display: none; }
    .thm14-story-entry, .thm14-gift-card { flex: 0 0 84%; min-width: 0; scroll-snap-align: start; }
    .thm14-story-entry { grid-template-columns: 1fr; gap: 20px; align-content: start; padding: 0; }
    .thm14-story-entry--even .thm14-story-entry__visual { order: 0; }

    .thm14-gallery__collage { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
    .thm14-gallery__piece:is(:last-child, :nth-last-child(2)):nth-child(3n+1) { grid-column: span 2; }
    .thm14-gallery__piece:last-child:nth-child(odd) { grid-column: 2 / span 2; }
    .thm14-gallery__piece:nth-child(3n+2) { margin-top: 0; }
    .thm14-gallery__piece:nth-child(2n) { margin-top: 26px; }
    .thm14-gallery-dialog { padding: 12px; }

    .thm14-rsvp__aside { text-align: center; }
    .thm14-rsvp__mark { display: none; }
    .thm14-form { padding: 24px 18px; }
    .thm14-attendance__options { grid-template-columns: 1fr; }
    .thm14-wish-card { padding: 24px; }
    .thm14-gift-card { padding: 26px; }
    .thm14-closing h2 span { display: block; }
    .thm14-closing h2 i { display: block; margin: 4px 0; line-height: 1.2; }
}

@media (max-width: 359px) {
    .thm14-cover { padding: 24px 16px; }
    .thm14-cover h1 { font-size: 3.6rem; }
    .thm14-cover--long h1 { font-size: 2.3rem; }
    .thm14-nav__links { gap: 8px; }
    .thm14-section { padding-inline: 18px; }
    .thm14-dresscode__palette { --thm14-swatch-size: 88px; --thm14-swatch-cols: 2; }
}

@media (min-width: 761px) and (max-height: 920px) {
    .thm14-cover--long h1 { font-size: clamp(2.3rem, 3.4vw, 3.2rem); }
    .thm14-cover__guest { margin-block: 18px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .theme-thm14 *, .theme-thm14 *::before, .theme-thm14 *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .theme-thm14 [data-thm14-reveal] { opacity: 1 !important; transform: none !important; }
    .thm14-petals, .thm14-motion-toggle { display: none; }
}

/* Swipe rails scroll sideways only: slides still waiting off-screen fade in without rising, so they never lengthen the rail. */
@media (max-width: 760px) {
    .thm14-story__timeline, .thm14-gift__accounts { overflow-y: hidden; }
    .thm14-motion-ready .thm14-story__timeline [data-thm14-reveal]:not(.is-visible),
    .thm14-motion-ready .thm14-gift__accounts [data-thm14-reveal]:not(.is-visible) { transform: none; }
}

body.theme-thm14 {
    --fl-paper: #f6f9fb;
    --fl-wash: #e8eff6;
    --fl-card: #ffffff;
    --fl-ink: #26384a;
    --fl-heading: #1f3247;
    --fl-muted: #566676;
    --fl-accent: #46698f;
    --fl-on-accent: #ffffff;
    --fl-line: rgb(70 105 143 / 18%);
    --fl-line-strong: rgb(70 105 143 / 34%);
    --fl-shadow: rgb(61 95 134 / 12%);
    --fl-placeholder: #7d8c9b;
    --fl-petal: #9db2d8;
    --fl-cover-ground: radial-gradient(ellipse at 50% 42%, #ffffff 0%, #eef3f9 46%, #dfe8f2 100%);
    --fl-cover-photo-opacity: .1;
    --fl-mark: url('../img/v2/f4-floret.svg');
    --fl-crest: url('../img/v2/f4-crest.svg');
    --fl-script: var(--invie-font-heading, "Pinyon Script"), cursive;
    --fl-button-radius: 999px;
    --fl-card-radius: 24px;
    --fl-input-radius: 14px;
    --fl-gift: linear-gradient(140deg, #4f7299 0%, #6f86b6 55%, #8f8ac6 100%);
    --fl-gift-ink: #ffffff;
    --fl-closing: #22374e;
    --fl-closing-ink: #f1f5fa;
    --fl-closing-accent: #c4d4ec;
    --fl-backdrop: rgb(28 45 65 / 72%);
    --fl-dock-bg: #ffffffe8;
    --fl-dock-fg: #46698f;
}

.thm14-cover__crest { width: 104px; height: 52px; }
.thm14-heading::before { width: 96px; height: 48px; }
.thm14-cover h1 { font-style: italic; font-weight: 500; }
.thm14-cover__frame { padding: 40px 34px 30px; border-radius: 50% 50% 32px 32px / 30% 30% 32px 32px; background: rgb(255 255 255 / 72%); box-shadow: 0 30px 70px rgb(61 95 134 / 16%), inset 0 0 0 1px rgb(255 255 255 / 90%); backdrop-filter: blur(6px); }
.thm14-cover__frame::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--fl-line-strong); border-radius: inherit; pointer-events: none; }

/* Sections alternate between the cool paper and a misty wash. */
.thm14-couple, .thm14-story, .thm14-rsvp, .thm14-gift, .thm14-health { background: var(--fl-wash); }
.thm14-section:is(.thm14-couple, .thm14-quote, .thm14-rsvp, .thm14-dresscode)::after { content: ""; position: absolute; z-index: 0; top: -40px; right: -70px; width: clamp(200px, 26vw, 360px); aspect-ratio: 800 / 960; background: url('../img/v2/f4-corner.webp') center / contain no-repeat; transform: rotate(90deg); opacity: .55; pointer-events: none; }
.thm14-section:is(.thm14-quote, .thm14-dresscode)::after { right: auto; left: -70px; transform: rotate(0); }

.thm14-intro__hero { border-radius: 50% 50% 46% 46% / 40% 40% 34% 34%; box-shadow: 0 30px 60px rgb(61 95 134 / 18%); }
.thm14-intro__portrait::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--fl-line-strong); border-radius: 50% 50% 46% 46% / 40% 40% 34% 34%; }

.thm14-profile__media { padding: 10px; border-radius: 50%; aspect-ratio: 4 / 5; }
.thm14-profile__media::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--fl-line-strong); border-radius: 50%; }
.thm14-profile__media img, .thm14-profile__monogram { border-radius: 50%; }
.thm14-profile__brush { position: absolute; right: -18%; bottom: -6%; width: 54%; aspect-ratio: 800 / 960; background: url('../img/v2/f4-corner.webp') center / contain no-repeat; transform: rotate(180deg); pointer-events: none; }
.thm14-profile:nth-child(2) .thm14-profile__brush { right: auto; left: -18%; transform: rotate(180deg) scaleX(-1); }

.thm14-event { border: 0; border-radius: var(--fl-card-radius); box-shadow: 0 20px 44px var(--fl-shadow); }
.thm14-event::before { content: ""; display: block; width: 44px; height: 44px; margin: -6px auto 14px; background: var(--fl-petal); -webkit-mask: var(--fl-mark) center / contain no-repeat; mask: var(--fl-mark) center / contain no-repeat; }
.thm14-story-entry__visual img, .thm14-gallery__piece, .thm14-gallery__piece img { border-radius: 20px; }
.thm14-quote blockquote p { font-size: clamp(1.7rem, 2.8vw, 2.5rem); }
.thm14-health-card { box-shadow: 0 12px 26px var(--fl-shadow); border: 0; }

/* The closing sits in an evening garden: deep blue with the garland on top. */
.thm14-closing { background: radial-gradient(ellipse at 50% 0%, #34507096 0%, transparent 60%), var(--fl-closing); }
.thm14-closing .thm14-petals i { background: #c4d4ec; }

/* The ampersand is set in the display italic; the script glyph read as a tick. */
.thm14-cover h1 i, .thm14-closing h2 i { font: italic 400 .55em/1 var(--invie-font-heading, "Cormorant Garamond"), Georgia, serif; }

/* Corner hydrangeas stay in the section gutter on desktop and in the top padding on smaller screens, never under text. */
.thm14-section:is(.thm14-couple, .thm14-quote, .thm14-rsvp, .thm14-dresscode)::after { top: -40px; right: -70px; width: clamp(170px, 14vw, 230px); }
.thm14-section:is(.thm14-quote, .thm14-dresscode)::after { right: auto; left: -70px; }
@media (max-width: 1100px) {
    .thm14-section:is(.thm14-couple, .thm14-quote, .thm14-rsvp, .thm14-dresscode)::after { top: -84px; right: -50px; width: 150px; }
    .thm14-section:is(.thm14-quote, .thm14-dresscode)::after { right: auto; left: -50px; }
}
@media (max-width: 760px) {
    .thm14-section:is(.thm14-couple, .thm14-quote, .thm14-rsvp, .thm14-dresscode)::after { top: -72px; right: -40px; width: 120px; }
    .thm14-section:is(.thm14-quote, .thm14-dresscode)::after { right: auto; left: -40px; }
}

/* Names wrap only between words: a name shrinks to its line instead (the templates estimate --thm14-name-em). */
.thm14-cover h1, .thm14-closing h2 { container-type: inline-size; }
.thm14-cover h1 span, .thm14-closing h2 span { font-size: min(1em, max(1rem, 92cqi / var(--thm14-name-em, 3))); overflow-wrap: break-word; }

/* Video, Kirim Kado and event counts (2026-10 revision) ------------------------- */

/* Films hang in the garden's soft frames: a fine ring around a rounded picture, one film centred,
   two or more in pairs with an odd last film centred under them. */
.thm14-video { --theme-video-gap: 28px; --theme-video-radius: 20px; --theme-video-border: transparent; --theme-video-frame: var(--fl-closing); --theme-video-button: #ffffff; --theme-video-button-text: var(--fl-accent); }
.thm14-video .theme-video__list { display: flex; flex-wrap: wrap; justify-content: center; }
.thm14-video .theme-video__item { flex: 0 1 100%; padding: 10px; border: 1px solid var(--fl-line-strong); border-radius: 30px; }
.thm14-video:not([data-video-count="1"]) .theme-video__item { flex-basis: calc((100% - var(--theme-video-gap)) / 2); }
.thm14-video .theme-video__frame { box-shadow: 0 20px 44px var(--fl-shadow); }
.theme-thm14 .thm14-video .theme-video__play { --theme-focus: #ffffff; border-radius: 16px; }
.theme-thm14 .thm14-video .theme-video__play:focus-visible { box-shadow: 0 0 0 9px rgb(31 50 71 / 45%); }
body.theme-thm14 .thm14-video .theme-video__caption { margin-top: 14px; color: var(--fl-heading); font: italic 500 1.35rem/1.4 var(--invie-font-heading, "Cormorant Garamond"), Georgia, serif; }

/* Kirim Kado follows the gift accounts on their misty wash: the same split heading, and each address
   on a card in the gift-card gradient. One card sits centred; two share a row. */
@media (min-width: 761px) {
    .thm14-gift-address .thm14-heading--split { row-gap: 0; }
    .thm14-gift-address .thm14-heading--split > .thm14-kicker { grid-column: 1; }
    .thm14-gift-address .thm14-heading--split > h2 { grid-column: 1; grid-row: 2; }
    .thm14-gift-address .thm14-heading--split > p:not(.thm14-kicker) { grid-column: 2; grid-row: 1 / span 2; }
}
.thm14-gift + .thm14-gift-address { padding-top: 24px; }
.thm14-gift-address .theme-gift-address__list { gap: 24px; width: 100%; }
.thm14-gift-address .theme-gift-address__card { position: relative; overflow: hidden; flex: 0 1 34rem; align-items: flex-start; gap: 0; padding: 30px; border: 0; border-radius: var(--fl-card-radius); background: var(--fl-gift); color: var(--fl-gift-ink); box-shadow: 0 18px 40px var(--fl-shadow); text-align: left; --theme-focus: #ffffff; }
.thm14-gift-address .theme-gift-address__list:not([data-address-count="1"]) .theme-gift-address__card { flex-basis: calc((100% - 24px) / 2); max-width: 34rem; }
.thm14-gift-address .theme-gift-address__card::before { content: "Alamat pengiriman"; align-self: stretch; margin-bottom: 22px; font-size: 12px; font-weight: 700; letter-spacing: .12em; line-height: 1.6; text-transform: uppercase; opacity: .85; }
.thm14-gift-address .theme-gift-address__card:lang(en)::before { content: "Delivery address"; }
.thm14-gift-address .theme-gift-address__card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 170px; height: 170px; background: currentColor; opacity: .1; -webkit-mask: var(--fl-mark) center / contain no-repeat; mask: var(--fl-mark) center / contain no-repeat; pointer-events: none; }
body.theme-thm14 .thm14-gift-address .theme-gift-address__label { font-size: 12px; letter-spacing: 0; text-transform: none; opacity: .85; }
body.theme-thm14 .thm14-gift-address .theme-gift-address__name { margin: 2px 0 10px; color: inherit; font: 500 clamp(1.7rem, 2.4vw, 2rem)/1.2 var(--invie-font-heading, "Cormorant Garamond"), Georgia, serif; }
body.theme-thm14 .thm14-gift-address .theme-gift-address__phone a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration-color: rgb(255 255 255 / 55%); }
body.theme-thm14 .thm14-gift-address .theme-gift-address__address { max-width: none; font-size: 14px; line-height: 1.75; }
body.theme-thm14 .thm14-gift-address .theme-gift-address__note { margin-top: 10px; font-size: 13px; opacity: .85; }
body.theme-thm14 .thm14-gift-address .theme-gift-address__copy { position: relative; z-index: 1; margin-top: auto; border-color: currentColor; color: var(--fl-gift-ink); }
.thm14-gift-address .theme-gift-address__card > :nth-last-child(2) { margin-bottom: 24px; }
body.theme-thm14 .thm14-gift-address .theme-gift-address__copy:hover { background: rgb(255 255 255 / 16%); }

/* One event sits centred and a little wider; an odd last event centres under the pair above. */
@media (min-width: 761px) {
    .thm14-events__tickets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .thm14-events__tickets > .thm14-event { grid-column: span 2; }
    .thm14-events__tickets > .thm14-event:last-child:nth-child(odd) { grid-column: 2 / span 2; }
    .thm14-events__tickets[data-event-count="1"] { grid-template-columns: minmax(0, 680px); justify-content: center; }
    .thm14-events__tickets[data-event-count="1"] > .thm14-event:only-child { grid-column: 1; }
}

@media (max-width: 760px) {
    .thm14-video:not([data-video-count="1"]) .theme-video__item { flex-basis: 100%; }
    .thm14-video .theme-video__item { padding: 7px; border-radius: 24px; }
    .thm14-video { --theme-video-radius: 16px; }
    .thm14-gift + .thm14-gift-address { padding-top: 8px; }
    .thm14-gift-address .theme-gift-address__list[data-address-count] .theme-gift-address__card { flex-basis: 100%; max-width: none; padding: 26px; }
}

/* Teks & Font: a text the couple writes may hold one long word (Bapak/Ibu/Saudara/i). Body text
   breaks instead of pushing past its column (headings shrink first: text-fit.js). Zero
   specificity, so the theme's own wrapping rules win. */
:where(body.theme-thm14) :where(h4, p, small, li, blockquote, figcaption) {
    overflow-wrap: break-word;
}
