@font-face {
  font-family: "Vazirmatn";
  src: url("./fonts/vazirmatn-arabic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Noto Nastaliq Urdu";
  src: url("./fonts/noto-nastaliq-urdu-arabic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --wine: #4b1020;
  --wine-deep: #350b17;
  --wine-light: #801b36;
  --gold: #b38a57;
  --ink: #38282d;
  --muted: #74656a;
  --paper: #fffcfa;
  --body-font: "Vazirmatn", Tahoma, sans-serif;
  --display-font: "Noto Nastaliq Urdu", serif;
}

html { background: #fff; }
body.invitation-page { margin: 0; background: #fff; font-family: var(--body-font); }
.invitation-shell { width: min(100%, 768px); border-inline-color: #b38a5733; background: #fff; }
.invitation-shell .site-header { width: 100%; min-height: 4rem; padding-inline: clamp(1rem, 5vw, 2rem); }
.invitation-shell .brand { color: var(--wine); font-family: var(--body-font); letter-spacing: 0; }
.invitation-shell .header-link { color: var(--wine); }
.header-tools { gap: .55rem; }
.invitation-shell .site-footer { font-family: var(--body-font); color: var(--wine); background: #fff; }

/* Closed invitation: the burgundy panels fully cover the photograph. */
.invitation-hero { padding: .7rem clamp(.65rem, 3vw, 1.4rem) 1.1rem; background: #fff; }
.invitation-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: min(700px, calc(100svh - 6rem));
  min-height: 530px;
  overflow: hidden;
  border: 1px solid var(--gold);
  background: var(--wine);
  box-shadow: 0 12px 34px #4b10201c, inset 0 0 0 5px #fffaF70d;
}
.invitation-stage::before { content: ""; position: absolute; z-index: 7; inset: 7px; border: 1px solid #b38a5770; pointer-events: none; }
.cover-photo { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; transform: scale(1.025); }
.cover-photo img { width: 100%; max-width: none; height: 100%; border: 0; object-fit: cover; object-position: center 38%; }
.cover-panel {
  position: absolute;
  z-index: 2;
  right: 0;
  left: 0;
  height: 50%;
  overflow: hidden;
  background: linear-gradient(140deg, #801b36 0%, #5a1427 52%, #4b1020 100%);
  transition: transform .6s cubic-bezier(.72,0,.24,1) .2s;
  pointer-events: none;
}
.cover-panel::before { content: ""; position: absolute; inset: 8px; border: 1px solid #b38a5785; }
.cover-panel--upper { top: 0; height: 75%; }
.cover-panel--lower { bottom: 0; height: 25%; background: linear-gradient(320deg, #801b36 0%, #5a1427 52%, #4b1020 100%); }
.cover-panel__rule { position: absolute; right: 15%; left: 15%; height: 1px; background: linear-gradient(90deg, transparent, #b38a57c9, transparent); }
.cover-panel--upper .cover-panel__rule { bottom: 0; }
.cover-panel--lower .cover-panel__rule { top: 0; }
.cover-floral { position: absolute; width: clamp(6.8rem, 30vw, 11.5rem); height: clamp(8rem, 34vw, 14.2rem); object-fit: contain; opacity: .98; }
.cover-floral--upper { top: .35rem; right: .45rem; }
.cover-floral--lower { bottom: .3rem; left: .45rem; transform: rotate(180deg); }
.cover-front {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 5vw, 2.3rem);
  color: var(--paper);
  text-align: center;
  transition: opacity .2s ease, visibility 0s;
}
.cover-front__copy { position: relative; z-index: 1; display: grid; justify-items: center; width: min(100%, 430px); }
.cover-front__eyebrow { margin: 0 0 .55rem; color: #f4e5d1; font-size: .95rem; font-weight: 500; }
.cover-front__names {
  margin: .15rem 0 .15rem;
  color: var(--paper);
  font-family: var(--display-font);
  font-size: clamp(3.2rem, 9vw, 4.9rem);
  font-weight: 400;
  line-height: 2;
  letter-spacing: normal;
  white-space: nowrap;
  text-shadow: 0 3px 16px #22071155;
}
.cover-front__date { margin: .55rem 0 .9rem; color: #fffaf4; font-size: 1.04rem; font-weight: 600; }
.cover-seal { position: relative; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin: .25rem 0 1rem; border: 1px solid #d1ad78; border-radius: 50%; box-shadow: inset 0 0 0 4px #4b1020, inset 0 0 0 5px #d1ad7875; }
.cover-seal::before, .cover-seal::after { content: ""; position: absolute; width: .45rem; height: .45rem; border: 1px solid #e0c18e; transform: rotate(45deg); }
.cover-seal::after { width: .2rem; height: .2rem; background: #e0c18e; }
.cover-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.invitation-shell .cover-actions .button { min-height: 3.15rem; padding-inline: 1.25rem; border-radius: 2px; font-family: var(--body-font); font-size: .95rem; }
.invitation-shell .cover-actions .button--primary { border-color: #b38a57; background: #fffcfa; color: var(--wine); box-shadow: 0 4px 18px #20081045; }
.invitation-shell .cover-actions .button--primary:hover { background: #f5e8da; }
.invitation-shell .button--music { border: 1px solid #d7b780; background: #801b36; color: #fffaf7; }
.invitation-shell .button--music:hover { background: #68172e; }
.cover-front[aria-hidden="true"] { pointer-events: none; }
.cover-front__copy, .cover-seal { transition: opacity .2s ease; }

/* Opening reveals the original photo, then the invitation copy and date. */
.invitation-stage.is-opening .cover-front { opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s .2s; }
.invitation-stage.is-opening .cover-seal { opacity: 0; }
.invitation-stage.is-opening .cover-panel--upper { transform: translateY(-102%); }
.invitation-stage.is-opening .cover-panel--lower { transform: translateY(102%); }
.invitation-stage.is-opening .cover-photo { opacity: 1; transform: scale(1); transition: opacity .6s ease .2s, transform 1s cubic-bezier(.2,.7,.2,1) .2s; }
.invitation-stage.is-open { height: auto; min-height: 0; overflow: visible; background: #fff; }
.invitation-stage.is-open .cover-photo { position: relative; inset: auto; height: clamp(350px, 112vw, 500px); min-height: 350px; opacity: 1; transform: none; }
.invitation-stage.is-open .cover-photo img { object-position: center 38%; }
.invitation-stage.is-open .inside-card { position: relative; inset: auto; min-height: 0; opacity: 1; pointer-events: auto; background: var(--paper); }
.invitation-stage.is-open .cover-panel { visibility: hidden; pointer-events: none; transition: none; }
.inside-card { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; min-height: 100%; padding: 1.4rem 1rem; opacity: 0; pointer-events: none; background: var(--paper); }
.inside-card__copy { position: relative; width: min(100%, 540px); padding: 2.1rem clamp(1.2rem, 6vw, 2.6rem); text-align: center; border: 1px solid #b38a57ad; background: #fffcfa; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px #b38a5733; }
.inside-card__copy::before, .inside-card__copy::after { content: ""; position: absolute; width: clamp(3.5rem, 16vw, 6rem); height: clamp(4.3rem, 20vw, 7rem); background: url("./rose-lily-photo.png") center / contain no-repeat; opacity: .7; pointer-events: none; }
.inside-card__copy::before { top: .2rem; right: .2rem; }
.inside-card__copy::after { bottom: .2rem; left: .2rem; background-image: url("./rose-lily-photo.png"); transform: rotate(180deg); }
.inside-card__kicker { margin: 0 0 .35rem; color: #876b4a; font-size: .9rem; }
.inside-card__title { position: relative; z-index: 1; margin: .1rem 0 .45rem; color: var(--wine); font-family: var(--body-font); font-size: clamp(1.7rem, 7vw, 2.6rem); font-weight: 700; line-height: 1.5; }
.inside-card__message { position: relative; z-index: 1; max-width: 30rem; margin: .3rem auto .6rem; color: var(--ink); font-size: 1rem; line-height: 2; }
.inside-card__date { position: relative; z-index: 1; margin: .35rem 0 1rem; color: var(--wine); font-weight: 700; }
.invitation-stage.is-open .inside-card__title { animation: words-arrive .45s .08s both; }
.invitation-stage.is-open .inside-card__message { animation: words-arrive .45s .16s both; }
.invitation-stage.is-open .inside-card__date { animation: words-arrive .45s .26s both; }
.invitation-stage.is-open .inside-card .hero-scroll { animation: words-arrive .45s .34s both; }
@keyframes words-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.opening-petal { position: absolute; z-index: 6; top: 47%; left: 50%; width: .5rem; height: .85rem; border-radius: 90% 10% 75% 20%; background: #f7e9d4; opacity: 0; pointer-events: none; }
.is-opening .opening-petal { animation: petal-float .75s ease-out both; }
.opening-petal--one { --petal-x: -72px; --petal-y: -88px; --petal-r: -50deg; animation-delay: .08s !important; }
.opening-petal--two { --petal-x: 66px; --petal-y: -68px; --petal-r: 30deg; animation-delay: .16s !important; }
.opening-petal--three { --petal-x: -104px; --petal-y: 28px; --petal-r: 75deg; animation-delay: .21s !important; }
.opening-petal--four { --petal-x: 92px; --petal-y: 58px; --petal-r: -35deg; animation-delay: .12s !important; }
.opening-petal--five { --petal-x: 3px; --petal-y: -120px; --petal-r: 5deg; animation-delay: .19s !important; }
@keyframes petal-float { 0% { opacity: 0; transform: translate(0,0) rotate(0); } 20% { opacity: .85; } 100% { opacity: 0; transform: translate(var(--petal-x),var(--petal-y)) rotate(var(--petal-r)); } }

/* Light paper details, with the floral pair reused at smaller scale. */
.invitation-shell .content-section { padding: clamp(1.6rem, 5vw, 2.3rem) clamp(1rem, 4vw, 1.8rem); background: #fff; border-top: 1px solid #b38a5733; }
.invitation-copy { padding: 1.7rem clamp(1.25rem, 6vw, 2.5rem); border-color: #b38a57a0; background: #fffcfa; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px #b38a5733; }
.invitation-copy::before, .invitation-copy::after { width: 4.3rem; height: 5.4rem; border: 0; background: url("./rose-lily-photo.png") center / contain no-repeat; opacity: .63; }
.invitation-copy::before { top: .2rem; right: .2rem; transform: none; }
.invitation-copy::after { right: auto; bottom: .2rem; left: .2rem; background-image: url("./rose-lily-photo.png"); transform: rotate(180deg); }
.invitation-copy .eyebrow { color: #866744; }
.invitation-copy h2, .section-title, .panel-heading h2 { color: var(--wine); font-family: var(--body-font); }
.invitation-copy p:not(.eyebrow) { max-width: 33rem; margin-inline: auto; line-height: 2; }
.invitation-signature { color: var(--wine); font-family: var(--body-font); letter-spacing: 0; }
.invitation-date { color: var(--muted); }
.calendar-section, .schedule-section, .gallery-section { background: #fff !important; }
.calendar-card { border-color: #b38a5790; background: #fffcfa; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px #b38a5733; }
.calendar-month, .calendar-table td .calendar-event-day { color: var(--wine); }
.calendar-table td .calendar-event-day { background: var(--wine); color: #fffaf7; }
.calendar-note { color: var(--wine); border-color: #b38a5750; }
.section-title::after { background: var(--gold); }

/* Fixed three-column timeline, mirrored by RTL: hour, rail, title. */
.timeline { width: min(100%, 400px); max-width: 400px; padding: .2rem 0; }
.timeline::before { right: 6rem; top: 1.2rem; bottom: 1.2rem; background: var(--gold); transform: scaleY(1); transform-origin: top; }
.timeline__item { grid-template-columns: 4.8rem 1rem minmax(0, 1fr); align-items: center; gap: .5rem; min-height: 3.55rem; padding: .1rem 0; }
.timeline__item time { grid-column: 1; grid-row: 1; color: var(--wine); text-align: right; font-family: var(--body-font); font-size: 1rem; font-weight: 700; font-variant-numeric: lining-nums; white-space: nowrap; }
.timeline__dot { position: static; grid-column: 2; grid-row: 1; width: .64rem; height: .64rem; transform: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px #fff; justify-self: center; }
.timeline__item p { grid-column: 3; grid-row: 1; margin: 0; text-align: right; font-size: 1rem; overflow-wrap: anywhere; }
.timeline--animated::before { transform: scaleY(0); transition: transform .65s ease; }
.timeline--animated.timeline--visible::before { transform: scaleY(1); }
.timeline--animated .timeline__dot { opacity: 0; transform: scale(.35); transition: opacity .28s ease var(--marker-delay), transform .32s cubic-bezier(.2,.8,.2,1) var(--marker-delay); }
.timeline--animated .timeline__item--visible .timeline__dot { opacity: 1; transform: scale(1); }

.details-section { width: 100%; padding: 0 clamp(1rem, 4vw, 1.8rem); background: #fff; }
.place-panel, .rsvp-panel { border: 1px solid #b38a5785; background: #fffcfa; }
.place-panel { position: relative; overflow: hidden; border-bottom: 0; }
.place-panel::before { inset: .55rem; border-color: #b38a5745; }
.place-panel::after { content: ""; position: absolute; right: .7rem; bottom: .35rem; width: 4.4rem; height: 5.3rem; background: url("./rose-lily-photo.png") center / contain no-repeat; opacity: .55; pointer-events: none; }
.place-panel h3 { color: var(--wine); }
.place-panel > p { max-width: 28rem; color: var(--muted); }
.panel-heading .eyebrow { color: #866744; }
.place-mark { stroke: var(--gold); }
.rsvp-panel { border-top-color: #b38a5766; }
.rsvp-form input[type="text"] { border-color: #b38a5780; }
.radio-option input { accent-color: var(--wine); }

.gallery-section { padding-bottom: 2rem !important; }
.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.gallery__item { min-width: 0; border-color: #b38a5785; padding: 4px; background: #fffcfa; }
.gallery__open { display: block; width: 100%; height: clamp(145px, 45vw, 225px); padding: 0; border: 0; overflow: hidden; background: #fff; cursor: zoom-in; }
.gallery__open img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.gallery__open:focus-visible { outline: 3px solid var(--wine); outline-offset: -3px; }
.gallery__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.photo-lightbox { width: min(94vw, 740px); max-width: none; max-height: 92dvh; padding: 2.7rem .6rem .6rem; overflow: visible; border: 1px solid var(--gold); background: #fffcfa; box-shadow: 0 18px 60px #210b1680; }
.photo-lightbox::backdrop { background: #201219d9; backdrop-filter: blur(3px); }
.photo-lightbox[open] { animation: lightbox-enter .24s ease-out both; }
.photo-lightbox img { display: block; max-width: 100%; max-height: calc(92dvh - 3.4rem); margin-inline: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.photo-lightbox__close { position: absolute; top: .5rem; left: .5rem; min-width: 4.5rem; min-height: 2rem; border: 1px solid #b38a5790; background: #fff; color: var(--wine); cursor: pointer; }
@keyframes lightbox-enter { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }

.music-control { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.25rem; padding: .2rem .65rem; border: 1px solid #b38a5780; border-radius: 2rem; background: #fff; color: var(--wine); font-family: var(--body-font); font-size: .8rem; cursor: pointer; }
.volume-control input { display: block; width: 4.3rem; height: 1.7rem; accent-color: var(--wine); }
.invitation-shell .button { font-family: var(--body-font); }
.invitation-shell .button--primary { border-color: var(--wine); background: var(--wine); color: #fffaf7; }

.motion-pending { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0ms); }
.motion-pending.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 500px) {
  .invitation-stage { height: min(700px, calc(100svh - 6rem)); min-height: 530px; }
  .cover-front { padding-inline: .9rem; }
  .cover-front__names { font-size: clamp(2.5rem, 12vw, 3.15rem); }
  .cover-floral { width: clamp(6.6rem, 30vw, 7.7rem); height: clamp(8rem, 36vw, 9.6rem); }
  .cover-floral--upper { top: .25rem; right: .25rem; }
  .cover-floral--lower { bottom: .25rem; left: .25rem; }
  .inside-card__copy { padding: 1.6rem 1rem; }
  .inside-card__copy::before, .inside-card__copy::after { width: 3.5rem; height: 4.4rem; }
  .timeline { width: 100%; }
  .timeline__item { grid-template-columns: 4.5rem .9rem minmax(0,1fr); gap: .4rem; }
  .timeline::before { right: 5.8rem; }
  .timeline__item p, .timeline__item time { font-size: .92rem; }
  .timeline__dot { width: .6rem; height: .6rem; }
  .gallery { gap: .5rem; }
  .gallery__open { height: 140px; }
  .music-control { width: 2.25rem; min-width: 2.25rem; justify-content: center; padding: .2rem; }
  .music-control__label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .volume-control input { width: 3.2rem; }
}
@media (min-width: 600px) {
  .cover-floral { width: clamp(9rem, 21vw, 11.5rem); height: clamp(10rem, 24vw, 14.2rem); }
  .cover-floral--lower { width: 9rem; height: 10rem; }
  .invitation-stage.is-open .cover-photo { height: 450px; }
  .timeline__item { min-height: 3.7rem; }
  .gallery { gap: .9rem; }
  .gallery__open { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .invitation-page *, .invitation-page *::before, .invitation-page *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .opening-petal { display: none !important; }
  .timeline--animated::before { transform: scaleY(1) !important; }
  .timeline--animated .timeline__dot { opacity: 1 !important; transform: none !important; }
  .motion-pending { opacity: 1 !important; transform: none !important; }
}

/* Keep the closed invitation focused on the envelope. */
#invitation-details[hidden] { display: none; }
.invitation-copy .invitation-message { text-align: justify; text-align-last: start; }
.timeline { --rail: 1rem; --gap: .75rem; margin-inline: auto; }
.timeline::before { inset-inline-start: calc(50% - .5px); inset-inline-end: auto; width: 1px; }
.timeline__item { grid-template-columns: minmax(0, 1fr) var(--rail) minmax(0, 1fr); gap: var(--gap); }
.timeline__item time { text-align: end; }
.timeline__item p { text-align: start; overflow-wrap: normal; }

.gallery.gallery--carousel {
  display: flex;
  gap: .85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 14%;
  scrollbar-width: none;
}
.gallery--carousel::-webkit-scrollbar { display: none; }
.gallery--carousel .gallery__item {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: center;
  opacity: .67;
  transform: scale(.92);
  transition: transform .35s ease, opacity .35s ease;
}
.gallery--carousel .gallery__item.is-current { opacity: 1; transform: scale(1); }
.gallery--carousel .gallery__open { height: clamp(200px, 62vw, 360px); }
.gallery--carousel .gallery__open img { object-fit: contain; background: #300b16; }
.gallery-controls { display: flex; justify-content: center; align-items: center; gap: .8rem; }
.gallery-controls button {
  min-height: 44px;
  padding-inline: .75rem;
  border: 1px solid var(--wine);
  background: var(--wine);
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.gallery-controls button:disabled { opacity: .5; cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .gallery--carousel .gallery__item { transition: none; transform: none; }
}

/* Wine stationery, from the welcome card through the final photograph. */
.invitation-shell { background: #4b101e; color: #fff9f5; }
.invitation-shell .site-header, .invitation-shell .site-footer {
  background: #390b17; color: #fff4ed; border-color: #ac715a66;
}
.invitation-shell .brand, .invitation-shell .header-link { color: #fff4ed; }
.invitation-hero { background: radial-gradient(ellipse at 42% 35%, #86263c, #3b0b17 78%); }
.invitation-stage { border: 0; background: transparent; box-shadow: none; }
.invitation-stage::before, .cover-panel::before, .cover-panel__rule { display: none; }
.cover-panel { background: transparent; }
.cover-floral { opacity: .52; }
.cover-front__copy {
  width: min(100%, 510px);
  padding: 2.7rem .85rem 2.3rem;
  border: 1px solid #c49a7e;
  border-radius: 1.4rem .35rem 1.4rem .35rem;
  background: #fff8f3;
  box-shadow: 0 24px 70px #23040d80, inset 0 0 0 7px #fff8f3, inset 0 0 0 8px #b38a5755;
}
.cover-front__copy::before, .cover-front__copy::after {
  content: ""; position: absolute; width: clamp(55px, 15vw, 100px); aspect-ratio: 1;
  background: url("./rose-lily-photo.png") center / contain no-repeat;
  pointer-events: none;
}
.cover-front__copy::before { inset: .25rem auto auto .25rem; transform: scaleX(-1); }
.cover-front__copy::after { inset: auto .25rem .25rem auto; transform: rotate(180deg) scaleX(-1); }
.cover-front__eyebrow, .cover-front__date, .cover-front__names { color: #67172b; }
.cover-front__names { text-shadow: none; white-space: normal; font-size: clamp(2.3rem, 8vw, 4.5rem); }
.cover-seal { background: #67172b; }
.invitation-shell .cover-actions .button--primary { background: #67172b; color: #fff8f3; border-radius: 2rem; }
.invitation-shell .cover-actions .button--primary:hover { background: #892740; }
.invitation-stage.is-open .inside-card { background: #fff8f3; }
.invitation-shell #invitation-details > .content-section {
  background: #4b101e !important; border-color: #ac715a66;
}
.invitation-shell #invitation-details > .content-section:nth-child(even) { background: #591527 !important; }
#invitation-details .section-title, #invitation-details .gallery-heading .eyebrow,
#invitation-details .calendar-heading .eyebrow, #invitation-details .schedule-heading .eyebrow,
#invitation-details .timeline__item time, #invitation-details .timeline__item p { color: #fff5ed; }
#invitation-details .invitation-copy, #invitation-details .calendar-card,
#invitation-details .place-panel, #invitation-details .rsvp-panel { background: #fff8f3; color: #38282d; }
#invitation-details .gallery-controls button { border-color: #dfac9b; }
.gallery-controls output { color: #fff5ed; }

/* A continuous oxblood paper ground and warm gold ink. */
.invitation-shell {
  --ink: #f3d9b1;
  --muted: #dfb98f;
  --gold: #ba895a;
  background:
    repeating-linear-gradient(122deg, #d19a4f06 0 1px, transparent 1px 6px),
    radial-gradient(ellipse at 45% 15%, #4e140e, #310904 75%);
}
.invitation-shell .site-header, .invitation-shell .site-footer,
.invitation-shell .invitation-hero, .invitation-shell .details-section,
.invitation-shell #invitation-details > .content-section:nth-child(n) {
  background: transparent !important; border-color: transparent;
}
.invitation-shell .invitation-stage.is-open,
.invitation-shell .invitation-stage.is-open .inside-card,
.invitation-shell .inside-card__copy,
#invitation-details .invitation-copy, #invitation-details .calendar-card,
#invitation-details .place-panel, #invitation-details .rsvp-panel {
  background: transparent; box-shadow: none; border-color: transparent; color: var(--ink);
}
.invitation-shell .inside-card__title, .invitation-shell .inside-card__date,
.invitation-shell .inside-card__kicker, .invitation-shell .inside-card__names,
#invitation-details h2, #invitation-details h3, #invitation-details .eyebrow,
#invitation-details .invitation-signature, #invitation-details .invitation-date,
#invitation-details .calendar-month, #invitation-details .calendar-note,
#invitation-details .calendar-table th, #invitation-details .calendar-table td { color: var(--ink); }
.invitation-shell .invitation-stage.is-open .cover-photo {
  width: min(72%, 390px); height: auto; min-height: 0; aspect-ratio: 2 / 3;
  margin: 1.4rem auto .5rem; border: 9px ridge #e1bc83; outline: 1px solid #eed2a1;
  box-shadow: 0 0 0 5px #ac794f, 0 16px 35px #200500;
}
.invitation-shell .invitation-stage.is-open .cover-photo img { display: block; height: 100%; object-position: center; }
.invitation-shell .invitation-stage.is-open .cover-floral { visibility: visible; }
.invitation-shell .timeline__dot { box-shadow: 0 0 0 4px #3c0c07; background: #f3d9b1; }
.invitation-shell .button--primary { background: #e3bd88; color: #350c06; }
.invitation-shell .gallery.gallery--carousel {
  position: relative; display: grid; place-items: center; overflow: hidden;
  height: clamp(260px, 83vw, 490px); padding: 0; perspective: 950px; touch-action: pan-y;
}
.gallery--carousel .gallery__item {
  position: absolute; width: min(55%, 300px); z-index: 1; margin: 0;
  padding: 0; border: 0; border-radius: 10px; overflow: hidden;
  background: transparent; opacity: 0; pointer-events: none;
  transition: transform .52s cubic-bezier(.22,.75,.24,1), opacity .45s;
}
.gallery--carousel .gallery__item[data-position="1"] { opacity: .62; transform: translateX(-63%) rotateY(38deg) scale(.78); pointer-events: auto; }
.gallery--carousel .gallery__item[data-position="-1"] { opacity: .62; transform: translateX(63%) rotateY(-38deg) scale(.78); pointer-events: auto; }
.gallery--carousel .gallery__item.is-current { z-index: 2; opacity: 1; transform: none; pointer-events: auto; }
.gallery--carousel .gallery__open { aspect-ratio: 2 / 3; height: auto; }
.gallery--carousel .gallery__open img { object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .gallery--carousel .gallery__item { transition: none; } }

.invitation-stage.is-open .cover-photo::before,
.invitation-stage.is-open .cover-photo::after {
  content: ""; position: absolute; z-index: 1; width: 37%; height: 44%;
  background: center / contain no-repeat url("./rose-lily-photo.png");
  pointer-events: none;
}
.invitation-stage.is-open .cover-photo::before { top: -7%; right: -23%; }
.invitation-stage.is-open .cover-photo::after { bottom: -7%; left: -23%; transform: rotate(180deg); }
.invitation-shell #invitation-details > .gallery-section::after,
.invitation-shell #invitation-details > .schedule-section::after {
  content: "❧"; display: block; margin: 1.6rem auto 0; width: min(65%, 16rem);
  text-align: center; color: #e3bd88; font-size: 1.8rem;
  background: linear-gradient(90deg, transparent, #bc9062 43%, transparent 43% 57%, #bc9062 57%, transparent) center / 100% 1px no-repeat;
}

.cover-front__copy {
  background: radial-gradient(ellipse at 50% 40%, #592015, #360b08);
  box-shadow: 0 24px 65px #1e05097a, inset 0 0 0 6px #4a170f, inset 0 0 0 7px #b78a5e90;
  padding-block: 3rem 2.7rem;
}
.cover-front__eyebrow, .cover-front__date, .cover-front__names { color: #f8deb3; }
.cover-front__copy::before, .cover-front__copy::after { width: clamp(75px, 19vw, 145px); opacity: .9; }
.cover-front__copy::before { background-image: url("./rose-lily-photo.png"); }
.cover-panel .cover-floral { opacity: .86; width: clamp(110px, 26vw, 198px); }
.invitation-shell .cover-actions .button--primary { background: #e8c18a; color: #381008; }
.invitation-shell .cover-actions .button--primary:hover { background: #ffdb9f; }
/* Fade the closed cover before displaying the photograph at its final size. */
.invitation-stage.is-opening .cover-photo { opacity: 0; transition: none; }
.invitation-stage.is-opening .cover-front { transform: translateY(-14px) scale(.97); transition: opacity .54s ease, transform .54s ease, visibility 0s .54s; }
.invitation-shell .invitation-stage.is-open .cover-photo { animation: photograph-arrive .65s ease both; }
@keyframes photograph-arrive { from { opacity: 0; } to { opacity: 1; } }
.invitation-shell .timeline { --schedule-width: 15rem; width: min(100%, var(--schedule-width)); }
.invitation-shell .timeline::before { inset-inline-start: 4.75rem; }
.invitation-shell .timeline__item { grid-template-columns: 3.75rem 1rem minmax(0, 1fr); gap: .5rem; }
.invitation-shell .timeline__item time { text-align: end; }
.gallery-controls button { display: grid; place-items: center; width: 44px; padding: 0; border-radius: 50%; }
.gallery-controls button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gallery-controls button:hover { background: #8a4330; }
.gallery--carousel .gallery__item.is-current { box-shadow: 0 15px 37px #1e0403c9, 0 0 0 1px #e8ba83ad; }
.gallery--carousel .gallery__item:not(.is-current) img { filter: brightness(.72) saturate(.83); }
.venue-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.venue-map { margin: 1rem auto 0; max-width: 32rem; color: #f3d9b1; }
.venue-map summary { cursor: pointer; width: fit-content; margin-inline: auto; }
.venue-map iframe { display: block; width: 100%; height: 240px; margin-top: .65rem; border: 1px solid #ba895a; border-radius: .75rem; }
@media (prefers-reduced-motion: reduce) {
  .invitation-shell .invitation-stage.is-open .cover-photo { animation: none; }
}

/* Keep the outgoing cover out of the open layout, including after animation cleanup. */
.invitation-stage .cover-front[hidden], .invitation-stage.is-open .cover-front { display: none; }
.invitation-stage.is-opening .cover-front { visibility: visible; transition: none; }
.invitation-stage.is-opening .cover-panel { transition-duration: .75s; transition-delay: .12s; }
.cover-front__copy::before, .cover-front__copy::after {
  width: clamp(92px, 23vw, 164px);
  aspect-ratio: 1;
  background-image: url("./rose-lily-photo.png"), url("./rose-lily-photo.png");
  background-position: left top, right bottom;
  background-size: 73% auto, 61% auto;
  filter: saturate(1.35) drop-shadow(0 5px 6px #25070388);
}
.invitation-stage.is-open .cover-photo::before,
.invitation-stage.is-open .cover-photo::after {
  width: 47%; height: 53%;
  background-image: url("./rose-lily-photo.png"), url("./rose-lily-photo.png");
  background-position: right top, left bottom;
  background-size: 76% auto, 67% auto;
  filter: saturate(1.35) drop-shadow(0 7px 8px #210503a0);
  animation: blossoms-arrive 1.15s .18s cubic-bezier(.2,.65,.22,1) both;
}
.invitation-stage.is-open .cover-photo::after { rotate: 180deg; transform: none; animation-delay: .30s; }
@keyframes blossoms-arrive {
  from { opacity: 0; transform: translateY(14px) scale(.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.invitation-shell .invitation-stage.is-open .cover-photo { animation-duration: .95s; }
.invitation-stage.is-open .inside-card__copy { animation: words-arrive .85s .27s both; }
.is-opening .opening-petal { animation-duration: .68s; }
.opening-petal--six { --petal-x: -128px; --petal-y: -12px; --petal-r: -90deg; background: #b22a49; animation-delay: .15s !important; }
.opening-petal--seven { --petal-x: 124px; --petal-y: 4px; --petal-r: 70deg; background: #e55c76; animation-delay: .21s !important; }
.opening-petal--eight { --petal-x: 39px; --petal-y: -92px; --petal-r: 105deg; background: #bb3853; animation-delay: .19s !important; }
@media (prefers-reduced-motion: reduce) {
  .invitation-stage.is-open .cover-photo::before,
  .invitation-stage.is-open .cover-photo::after,
  .invitation-stage.is-open .inside-card__copy { animation: none; }
}

.cover-front__copy > * { position: relative; z-index: 1; }

.cover-front__copy::before, .cover-front__copy::after,
.invitation-stage.is-open .cover-photo::before,
.invitation-stage.is-open .cover-photo::after {
  background-image: url("./rose-lily-photo.png");
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 7px 8px #210503a0);
}
.gallery .gallery__open { cursor: default; }
.invitation-shell #invitation-details .calendar-month :is(span, strong) {
  font: 700 clamp(1.35rem, 4vw, 1.65rem)/1.5 var(--body-font);
  color: inherit;
}
.invitation-shell .timeline { --rail-width: 1rem; --row-gap: .65rem; width: min(100%, 18rem); }
.invitation-shell .timeline::before { inset-inline-start: calc(50% - .5px); }
.invitation-shell .timeline__item { grid-template-columns: minmax(0, 1fr) var(--rail-width) minmax(0, 1fr); gap: var(--row-gap); }
.invitation-shell .timeline__item time { font-variant-numeric: tabular-nums; }
.invitation-shell .timeline__item p { text-align: start; }
.invitation-shell #invitation-details .section-title,
.invitation-shell .inside-card__title { font-family: var(--display-font); font-weight: 400; line-height: 2; }
.ceremony-preview { margin: 1rem auto 2rem; text-align: center; color: var(--ink); }
.ceremony-preview__date { display: flex; justify-content: center; align-items: center; gap: .75rem; }
.ceremony-preview__date strong { font-size: 3rem; line-height: 1.15; }
.ceremony-preview__date span { border-inline-start: 1px solid var(--gold); padding-inline-start: .75rem; text-align: start; }
.ceremony-preview dl { display: flex; justify-content: center; gap: 1.5rem; }
.ceremony-preview dd { margin: .25rem 0 0; font-weight: 700; }
#ceremony-countdown { font-variant-numeric: tabular-nums; }

/* Give the portrait its own layer so corner bouquets cannot cover the subjects. */
.invitation-stage.is-open .cover-photo {
  isolation: isolate;
  margin-block: clamp(2rem, 8vw, 4rem) clamp(2rem, 8vw, 3.5rem);
  background: #46130d;
}
.invitation-stage.is-open .cover-photo img {
  position: relative;
  z-index: 2;
  animation: none;
}
.invitation-stage.is-open .cover-photo::before {
  top: -13%; right: -25%; width: 57%; height: 48%;
  background-position: right top, left 65%;
  background-image: url("./rose-lily-photo.png"), url("./rose-lily-photo.png");
  background-size: 86% auto, 48% auto;
  rotate: -19deg;
}
.invitation-stage.is-open .cover-photo::after {
  bottom: -11%; left: -24%; width: 50%; height: 41%;
  background-position: left top, right 80%;
  background-image: url("./rose-lily-photo.png"), url("./rose-lily-photo.png");
  background-size: 81% auto, 53% auto;
  rotate: 149deg;
}
.cover-front__copy {
  padding-block: clamp(3.4rem, 11vw, 5.3rem) clamp(3.5rem, 11vw, 5rem);
}
.cover-front__copy::before, .cover-front__copy::after {
  width: clamp(132px, 34vw, 235px);
}
.cover-front__copy::before { top: -2.3rem; left: -1.3rem; rotate: -18deg; }
.cover-front__copy::after { bottom: -2.1rem; right: -1.2rem; rotate: 22deg; }
.cover-front__copy > * { z-index: 2; }
.invitation-copy::before, .invitation-copy::after {
  width: clamp(80px, 23vw, 142px); height: clamp(90px, 23vw, 148px);
  opacity: .8; z-index: -1;
}
.invitation-copy { isolation: isolate; }
.invitation-copy::before { top: -1.4rem; transform: scaleX(-1) rotate(-22deg); }
.invitation-copy::after { bottom: -1.4rem; transform: rotate(153deg); }

body.invitation-page { --body-font: var(--display-font); }
body.invitation-page, .invitation-shell :is(button, input, select, textarea, summary, time, output) {
  font-family: var(--display-font);
  line-height: 2.1;
}
.invitation-shell :is(input, select, textarea, button) { letter-spacing: normal; }
.invitation-shell #invitation-details .calendar-month :is(span, strong) { line-height: 2; }
.invitation-shell .timeline__item { min-height: 3.35rem; }

.cover-front__copy::before,
.invitation-stage.is-open .cover-photo::after,
.invitation-copy::after { background-image: url("./floral-roses.png"); }
.cover-front__copy::after,
.invitation-stage.is-open .cover-photo::before,
.invitation-copy::before { background-image: url("./rose-lily-photo.png"); }
.cover-front__copy::before, .cover-front__copy::after,
.invitation-stage.is-open .cover-photo::before,
.invitation-stage.is-open .cover-photo::after { background-size: contain; }
.cover-front__copy::before, .cover-front__copy::after { width: clamp(145px, 38vw, 260px); }
.invitation-stage.is-open .cover-photo::before,
.invitation-stage.is-open .cover-photo::after { width: 61%; height: 50%; z-index: 1; }
.inside-card__copy::before, .inside-card__copy::after, .place-panel::after { content: none; }
.scroll-cue {
  margin: .35rem auto 0; display: grid; place-items: center;
  color: #edc694; width: 44px; height: 44px;
}
.scroll-cue svg {
  width: 26px; height: 26px; fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  animation: guide-down 1.5s 3 ease-in-out;
}
@keyframes guide-down { 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }

/* Keep the ornamental sprays together at the cover and portrait corners. */
.cover-panel .cover-floral { display: none; }
.invitation-copy::before, .invitation-copy::after { content: none; }
.invitation-stage.is-open .cover-photo::before {
  background-image: url("./floral-roses.png");
  top: -8%; right: -23%; rotate: -12deg;
}
.invitation-stage.is-open .cover-photo::after {
  background-image: url("./floral-roses.png");
  bottom: -8%; left: -22%; rotate: 168deg;
}
.cover-front__copy::after { background-image: url("./floral-roses.png"); }

.invitation-shell {
  background:
    url("./damask.svg") center top / clamp(118px, 22vw, 160px) auto repeat,
    radial-gradient(ellipse at 48% 14%, #551a13 0%, #42100b 48%, #2c0806 100%);
}
.invitation-shell .cover-front__copy {
  background:
    url("./damask.svg") center / 140px auto repeat,
    radial-gradient(ellipse at center, #5a2017, #350a08);
}
.invitation-shell .invitation-stage.is-open .cover-photo {
  border: clamp(7px, 1.7vw, 12px) ridge #e4bf86;
  outline: 1px solid #f3d7a0;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #754720, 0 16px 38px #240601ad;
}
.invitation-stage.is-open .cover-photo::before { background-image: url("./rose-lily-photo.png"); }
.invitation-stage.is-open .cover-photo::after { background-image: url("./floral-roses.png"); }
.invitation-shell #invitation-details > section:not([hidden])::before {
  content: "";
  display: block;
  width: min(74%, 17.5rem);
  height: 2.25rem;
  margin: 0 auto clamp(1.1rem, 4vw, 1.8rem);
  background: url("./floral-divider.svg") center / contain no-repeat;
  pointer-events: none;
}
.invitation-shell #invitation-details > .details-section:not([hidden])::before { grid-column: 1 / -1; }
.invitation-shell #invitation-details > .gallery-section::after,
.invitation-shell #invitation-details > .schedule-section::after { content: none; }

/* One burgundy palette with brighter pools of light and darker transitions. */
.invitation-shell {
  background:
    url("./damask.svg") center top / clamp(118px, 22vw, 160px) auto repeat,
    radial-gradient(ellipse 90% 24rem at 50% 9%, #8e392943, transparent 100%),
    radial-gradient(ellipse 95% 28rem at 65% 45%, #9b433a45, transparent 100%),
    radial-gradient(ellipse 95% 25rem at 36% 78%, #923e3242, transparent 100%),
    linear-gradient(165deg, #47100c, #2c0707 31%, #5a1718 57%, #2c0807 83%, #4d1510);
}
.portrait-flowers { display: none; }
.invitation-shell .invitation-stage.is-open .cover-photo {
  width: min(79%, 510px);
  margin-block: clamp(3rem, 10vw, 5rem) clamp(3rem, 10vw, 5rem);
  overflow: visible;
}
.invitation-stage.is-open .cover-photo::before,
.invitation-stage.is-open .cover-photo::after { content: none; }
.invitation-stage.is-open .portrait-flowers {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.portrait-flower {
  position: absolute;
  width: min(44%, 210px);
  aspect-ratio: 1;
  background: url("./floral-roses.png") center / contain no-repeat;
  filter: drop-shadow(0 5px 7px #20060290);
}
.portrait-flower--top-right {
  top: 0; right: 0; transform: translate(29%, -48%) rotate(-26deg);
  background-image: url("./rose-lily-photo.png");
}
.portrait-flower--top-left {
  top: 0; left: 0; transform: translate(-29%, -31%) rotate(68deg);
}
.portrait-flower--bottom-right {
  bottom: 0; right: 0; transform: translate(29%, 33%) rotate(-101deg);
}
.portrait-flower--bottom-left {
  bottom: 0; left: 0; transform: translate(-29%, 43%) rotate(157deg);
  background-image: url("./rose-lily-photo.png");
}
.invitation-shell #invitation-details > section:not([hidden])::before {
  width: min(72%, 16rem);
  height: clamp(3rem, 12vw, 4.5rem);
  background:
    url("./floral-roses.png") center / auto 100% no-repeat,
    linear-gradient(90deg, transparent, #bc8e5a 38%, transparent 44% 56%, #bc8e5a 62%, transparent) center / 100% 1px no-repeat;
}

/* The floral trim occupies a ring outside the entire gold frame. */
.invitation-shell .invitation-stage.is-open .cover-photo {
  --floral-gutter: clamp(22px, 8vw, 60px);
  width: min(calc(100% - 2 * var(--floral-gutter)), 510px);
}
.invitation-stage.is-open .portrait-flowers {
  inset: calc(-1 * var(--floral-gutter));
  clip-path: polygon(evenodd,
    0 0, 100% 0, 100% 100%, 0 100%, 0 0,
    var(--floral-gutter) var(--floral-gutter),
    calc(100% - var(--floral-gutter)) var(--floral-gutter),
    calc(100% - var(--floral-gutter)) calc(100% - var(--floral-gutter)),
    var(--floral-gutter) calc(100% - var(--floral-gutter)),
    var(--floral-gutter) var(--floral-gutter), 0 0);
}
.portrait-flower {
  width: clamp(78px, 24vw, 166px);
  background-image: url("./frame-roses-and-lilies.webp");
}
.portrait-flower--top-left { transform: none; }
.portrait-flower--top-right { transform: scaleX(-1); }
.portrait-flower--bottom-left { transform: scaleY(-1); }
.portrait-flower--bottom-right { transform: rotate(180deg); }
.invitation-shell #invitation-details > section:not([hidden])::before {
  width: min(76%, 18rem);
  height: clamp(2.35rem, 7vw, 3.25rem);
  background: url("./divider-flowers.webp") center / contain no-repeat;
}
#invitation-details { position: relative; }
#invitation-details::before, #invitation-details::after {
  content: "";
  position: absolute;
  width: clamp(26px, 8%, 62px);
  height: clamp(110px, 28vw, 210px);
  background: url("./side-flowers.webp") center / contain no-repeat;
  opacity: .57;
  pointer-events: none;
}
#invitation-details[hidden]::before, #invitation-details[hidden]::after { content: none; }
#invitation-details::before { top: 11%; right: 0; }
#invitation-details::after { top: 66%; left: 0; transform: scaleX(-1); }

.invitation-shell .invitation-stage.is-open .cover-photo {
  --floral-gutter: clamp(32px, 10vw, 80px);
  margin-block: clamp(3.7rem, 12vw, 6rem);
}
.portrait-flower { width: clamp(126px, 35vw, 244px); z-index: 1; }
.portrait-vine { position: absolute; background: center / contain no-repeat; }
.portrait-vine--left, .portrait-vine--right {
  width: var(--floral-gutter);
  height: 56%;
  background-image: url("./side-flowers.webp");
}
.portrait-vine--left { top: 23%; left: 0; transform: scaleX(-1); }
.portrait-vine--right { top: 20%; right: 0; transform: scaleY(-1); }
.invitation-shell #invitation-details > section:not([hidden])::before {
  width: min(86%, 23rem);
  height: clamp(3rem, 9vw, 4rem);
}
#invitation-details::before, #invitation-details::after {
  width: clamp(55px, 15%, 112px);
  height: clamp(180px, 52vw, 340px);
  opacity: .94;
}

.invitation-shell, .invitation-shell .cover-front__copy {
  background-size: clamp(55px, 11vw, 88px) auto, auto, auto, auto, auto;
}

.invitation-shell, .invitation-shell .cover-front__copy {
  background-image: url("./botanical-paper.svg"), radial-gradient(ellipse at 48% 33%, #671f21, #300908 84%);
  background-size: clamp(53px, 10vw, 76px) auto, 100% 100%;
}
.invitation-shell .invitation-stage.is-open .cover-photo {
  --frame-rim: clamp(7px, 1.7vw, 12px);
  --frame-clearance: calc(var(--frame-rim) + 5px);
  border-width: var(--frame-rim);
}
/* Absolute insets start at the padding edge. Include the gold rim and its outline. */
.invitation-stage.is-open .portrait-flowers {
  inset: calc(-1 * (var(--floral-gutter) + var(--frame-clearance)));
}
#invitation-details { isolation: isolate; }
#invitation-details::before, #invitation-details::after {
  width: clamp(74px, 19%, 148px);
  height: clamp(125px, 29vw, 220px);
  background-image: url("./edge-bouquet.webp");
  z-index: -1;
  opacity: .97;
}
#invitation-details::before { top: 8%; right: 0; background-position: right center; }
#invitation-details::after { top: 65%; left: 0; background-position: right center; }

/* Keep the mirrored bouquets aligned with the gallery divider. */
#invitation-details > .gallery-section { position: relative; isolation: isolate; }
#invitation-details::before, #invitation-details::after { content: none; }
#invitation-details > .gallery-section::after,
#invitation-details > .gallery-section > .content-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  width: clamp(56px, 16%, 120px);
  height: clamp(76px, 19vw, 132px);
  margin: 0;
  background: url("./edge-bouquet.webp") right center / 100% auto no-repeat;
  mask-image: linear-gradient(to right, transparent, #000 32%);
  pointer-events: none;
  z-index: -1;
}
#invitation-details > .gallery-section::after { right: 0; }
#invitation-details > .gallery-section > .content-wrap::before { left: 0; transform: scaleX(-1); }

/* Bring the bouquets up to the outer rim while retaining the ring clip. */
.invitation-shell .invitation-stage.is-open .cover-photo { --frame-clearance: calc(var(--frame-rim) + 4px); }
.portrait-flower--top-left { transform: translate(8%, 8%); }
.portrait-flower--top-right { transform: translate(-8%, 8%) scaleX(-1); }
.portrait-flower--bottom-left { transform: translate(8%, -8%) scaleY(-1); }
.portrait-flower--bottom-right { transform: translate(-8%, -8%) rotate(180deg); }
.portrait-vine--left { transform: translateX(9%) scaleX(-1); }
.portrait-vine--right { transform: translateX(-9%) scaleY(-1); }

.portrait-flower { width: clamp(144.9px, 40.25vw, 280.6px); }
.portrait-vine--left, .portrait-vine--right {
  top: 50%;
  width: var(--floral-gutter);
  height: 52%;
  background-image: url("./portrait-side.webp");
  background-size: contain;
  background-position: right center;
}
.portrait-vine--left { left: 0; transform: translateY(-50%); }
.portrait-vine--right { right: 0; transform: translateY(-50%) scaleX(-1); }

/* Place both inner floral edges flush against the outer gold outline.
   The ring clip keeps the extra floral bleed off the frame and photo. */
.portrait-vine--left { left: 12px; }
.portrait-vine--right { right: 12px; }

/* Inner floral edges extend to the ring cutout, which protects the gold rim. */
.portrait-vine--left { left: 20px; }
.portrait-vine--right { right: 20px; }

.invitation-shell #invitation-details > .gallery-section::after,
.invitation-shell #invitation-details > .gallery-section > .content-wrap::before {
  content: "";
  top: clamp(5.5rem, 15vw, 8rem);
  width: clamp(45px, 12%, 94px);
  height: clamp(98px, 23vw, 190px);
  background: url("./edge-crescent.webp") right center / contain no-repeat;
  mask-image: none;
}

.invitation-shell #invitation-details > .gallery-section::after,
.invitation-shell #invitation-details > .gallery-section > .content-wrap::before { content: none; }

#invitation-details > .calendar-section { position: relative; isolation: isolate; }
#invitation-details > .calendar-section .calendar-floral-row::before,
#invitation-details > .calendar-section .calendar-floral-row::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(34px, 15%, 118px);
  height: clamp(125px, 86%, 305px);
  background: url("./calendar-bouquet-vertical.webp") right center / contain no-repeat;
  translate: 0 -50%;
  z-index: -1;
  pointer-events: none;
}
#invitation-details > .calendar-section .calendar-floral-row::after { right: 0; }
#invitation-details > .calendar-section .calendar-floral-row::before { left: 0; transform: scaleX(-1); }

.calendar-floral-row {
  position: relative;
  isolation: isolate;
  margin-inline: calc(-1 * clamp(1rem, 4vw, 1.8rem));
}
.calendar-floral-row .calendar-card { max-width: min(480px, 72%); }

.cover-front__copy::before {
  left: auto;
  top: clamp(-2.6rem, -5vw, -1.25rem);
  right: clamp(-3.8rem, -7vw, -1.7rem);
  scale: none;
  rotate: none;
  transform: rotate(68deg);
}
.cover-front__copy::after {
  right: auto;
  bottom: clamp(-2.6rem, -5vw, -1.25rem);
  left: clamp(-3.8rem, -7vw, -1.7rem);
  scale: none;
  rotate: none;
  transform: rotate(248deg);
}
.cover-front__names[lang="en"] {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 7.2vw, 4.1rem);
  line-height: 1.25;
  margin-block: .9rem 1.6rem;
}

.invitation-shell .inside-card__title--stacked {
  font-size: clamp(3rem, 10vw, 5.25rem);
  line-height: 1.58;
  margin-block: .3rem .4rem;
}
.inside-card__title--stacked span { display: block; }
.inside-card__invite-label {
  margin: .15rem auto .45rem;
  color: var(--ink);
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  line-height: 2;
}

.invitation-shell { padding-bottom: 50px; }

.invitation-shell #rsvp-panel { margin-top: 1.5rem; padding-block: clamp(1.5rem, 5vw, 2.5rem); }
.invitation-shell #rsvp-title { color: #f3d9b1; text-align: center; }
.invitation-shell #rsvp-panel .rsvp-box {
  max-width: 32rem; margin-inline: auto; background: transparent; border: 0;
}
.invitation-shell #rsvp-form input {
  width: 100%; padding: .55rem .75rem; color: #fff1d9;
  background: #310a08; border: 1px solid #b68a59;
}
#rsvp-status { margin: 0; color: #f3d9b1; }
#rsvp-status:empty { display: none; }

.invitation-shell #wish-panel { margin-top: 1.5rem; padding-block: 1rem 0; }
.invitation-shell #wish-title { color: #f3d9b1; text-align: center; }
.invitation-shell #wish-panel .rsvp-box {
  max-width: 32rem; margin-inline: auto; background: transparent; border: 0;
}
.invitation-shell #wish-form :is(input, select, textarea) {
  width: 100%; padding: .55rem .75rem; color: #fff1d9;
  background: #310a08; border: 1px solid #b68a59; font: inherit;
}
.invitation-shell #wish-form textarea { resize: vertical; }
.wish-preset-note, #wish-status { margin: 0; color: #f3d9b1; }
#wish-status:empty { display: none; }

.cover-front__copy::before, .cover-front__copy::after { width: clamp(112px, 33vw, 225px); }

.wish-feed { max-width: 32rem; margin: 1.5rem auto 0; color: #f3d9b1; }
.wish-feed h3 { text-align: center; }
#wish-feed-note { text-align: center; }
#wish-feed-note:empty { display: none; }
#wish-feed-list { margin: 0; padding: 0; list-style: none; }
#wish-feed-list li { border-bottom: 1px solid #b68a5966; padding: .8rem .25rem; overflow-wrap: anywhere; }
#wish-feed-list time { margin-inline-start: .8rem; font-size: .85em; }
#wish-feed-list p { margin: .4rem 0 0; white-space: pre-wrap; }

.invitation-shell :is(.invitation-copy .invitation-message, #wish-feed-list p, #wish-message) {
  direction: rtl;
  text-align: justify;
  text-align-last: start;
  line-height: 2.2;
}
.invitation-shell .invitation-copy .invitation-message {
  max-inline-size: 32rem;
  margin-inline: auto;
  overflow-wrap: break-word;
}
@media (max-width: 480px) {
  .invitation-shell .invitation-copy { padding-inline: clamp(.65rem, 3vw, 1rem); }
}

.invitation-shell .timeline__item :is(time, p) {
  margin: 0;
  line-height: 2;
  align-self: center;
}
.invitation-shell .timeline__item time {
  justify-self: stretch;
  direction: ltr;
  text-align: left;
}
.invitation-shell .timeline__item p { justify-self: stretch; text-align: start; }

.invitation-shell .place-panel #event-address {
  margin-inline: auto;
  text-align: center;
  text-align-last: center;
  line-height: 2.2;
}

.cover-front__names[lang="en"] span { display: block; }
.cover-front__names[lang="en"] .cover-front__amp { font-size: .56em; line-height: 1.1; }
.invitation-shell .inside-card__title--stacked .inside-card__conjunction { font-size: .6em; }
.invitation-shell .inside-card__invite-label { margin-block-start: 1.25rem; }

.attendance-options {
  margin: 0;
  padding: .5rem .75rem;
  border: 1px solid #b68a5966;
  color: #f3d9b1;
}
.attendance-options label { display: flex; align-items: center; gap: .55rem; cursor: pointer; }
.invitation-shell #rsvp-form .attendance-options input { width: auto; padding: 0; accent-color: #ba895a; }
