:root {
  --bg: #f4ead7;
  --bg-strong: #d7b46f;
  --card: rgba(255, 249, 238, 0.7);
  --card-strong: rgba(255, 249, 238, 0.88);
  --line: rgba(176, 133, 46, 0.28);
  --text: #3f2b18;
  --muted: #82623f;
  --gold: #bb8d37;
  --gold-dark: #8a6423;
  --shadow: 0 28px 90px rgba(101, 62, 8, 0.16);
  --radius-xl: 36px;
  --radius-lg: 26px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(255, 236, 184, 0.8), transparent 34%),
    linear-gradient(180deg, #f8f1e4 0%, #eedec1 100%);
  color: var(--text);
  font-family: "Baskerville Old Face", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  overflow: hidden;
}

body {
  position: relative;
}

button,
input,
textarea {
  font: inherit;
}

body,
button,
input,
textarea {
  font-family: "Baskerville Old Face", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.hidden {
  display: none !important;
}

.grain,
.intro-glow,
.page-overlay,
.page-overlay--light {
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)),
    radial-gradient(circle at 20% 20%, rgba(255, 209, 97, 0.22), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.42), transparent 22%);
  z-index: 0;
}

.intro-screen,
.invitation-shell {
  position: relative;
  z-index: 1;
}

.intro-screen {
  min-height: 100vh;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #160e08;
}

.intro-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(34, 19, 4, 0.18), rgba(34, 19, 4, 0.55));
}

.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.intro-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  text-align: center;
  padding: 20px 16px 24px;
  min-height: 100vh;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.intro-kicker,
.intro-subtitle {
  margin: 0;
  color: #fff5e4;
}

.intro-kicker {
  margin: 0;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.74rem;
  text-shadow: 0 8px 30px rgba(40, 19, 2, 0.45);
  font-family: "Lobster Two", "Times New Roman", serif;
  font-weight: 700;
}

.intro-title {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.3rem, 7vw, 5.4rem);
  line-height: 1.02;
  color: #fff8ed;
}

.intro-subtitle {
  max-width: 34ch;
  font-size: 1.02rem;
  line-height: 1.7;
}

.monogram,
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(165, 117, 21, 0.3);
  border-radius: 50%;
  background: rgba(255, 251, 245, 0.55);
  box-shadow: 0 18px 40px rgba(108, 72, 17, 0.12);
  font-size: 2rem;
  color: var(--gold-dark);
  backdrop-filter: blur(8px);
  font-family: "Great Vibes", "Lobster Two", "Times New Roman", serif;
}

.monogram span,
.brand-mark span {
  font-size: 1rem;
  transform: translateY(-2px);
  font-family: "Lobster Two", "Times New Roman", serif;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.lang-switch {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.lang-switch:hover {
  transform: translateY(-1px);
}

.primary-btn {
  padding: 14px 22px;
  background: linear-gradient(180deg, #c89c47, #a77524);
  color: #fffaf1;
  box-shadow: 0 14px 30px rgba(136, 93, 21, 0.22);
  text-decoration: none;
}

.secondary-btn {
  padding: 14px 22px;
  background: rgba(255, 250, 242, 0.74);
  border: 1px solid rgba(170, 120, 22, 0.22);
  color: var(--gold-dark);
}

.intro-btn {
  min-width: 144px;
  padding: 8px 16px;
  font-size: 0.84rem;
  margin-top: 0;
  margin-bottom: 8px;
  box-shadow: 0 10px 24px rgba(66, 39, 5, 0.28);
}

.invitation-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 20px;
}

.shell-topbar,
.shell-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 74px;
  height: 74px;
  font-size: 1.35rem;
}

.brand-copy p,
.brand-copy span {
  margin: 0;
}

.brand-copy p {
  font-size: 1.08rem;
  font-weight: 700;
  font-family: "Lobster Two", "Times New Roman", serif;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.92rem;
  font-family: "Dancing Script", "Times New Roman", serif;
  font-size: 1.05rem;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.ghost-btn {
  width: 46px;
  height: 46px;
  background: rgba(255, 249, 239, 0.72);
  border: 1px solid rgba(173, 132, 54, 0.18);
  color: var(--gold-dark);
  font-size: 1.2rem;
}

.slider-wrap {
  overflow: hidden;
  width: 100%;
}

.slider {
  display: flex;
  height: calc(100vh - 164px);
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  touch-action: pan-y;
  direction: ltr;
}

.page {
  position: relative;
  flex: 0 0 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(22px, 4vw, 44px);
  box-shadow: var(--shadow);
  isolation: isolate;
}

html[dir="rtl"] .page {
  direction: rtl;
}

.page-backdrop,
.page-overlay,
.page-overlay--light {
  position: absolute;
  inset: 0;
}

.page-backdrop {
  background-position: center;
  background-size: cover;
  transform: scale(1.08);
}

.page-overlay {
  background:
    linear-gradient(160deg, rgba(58, 35, 7, 0.54), rgba(58, 35, 7, 0.1)),
    rgba(255, 231, 193, 0.28);
}

.page-overlay--light {
  background:
    linear-gradient(160deg, rgba(255, 252, 245, 0.6), rgba(255, 252, 245, 0.22)),
    rgba(219, 180, 116, 0.15);
}

.page > *:not(.page-backdrop):not(.page-overlay):not(.page-overlay--light) {
  position: relative;
  z-index: 1;
}

.hero-grid,
.details-grid,
.rsvp-layout {
  height: 100%;
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.hero-copy,
.detail-card,
.rsvp-form,
.centered-copy,
.timeline,
.countdown,
.section-heading {
  animation: fadeUp 900ms ease both;
}

.eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #f4dfb6;
}

.page--soft .eyebrow,
.page--pearl .eyebrow {
  color: var(--gold-dark);
}

.hero-copy h1,
.section-heading h2,
.final-copy h2 {
  margin: 0;
  line-height: 1.1;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  max-width: 12ch;
  font-family: "Dancing Script", "Times New Roman", serif;
  font-weight: 700;
}

.hero-copy h1,
.section-heading h2,
.detail-card h2,
.timeline-item h3,
.brand-copy p,
.verse-ar {
  font-family: "Baskerville Old Face", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.detail-card h2,
.timeline-item h3,
.final-copy p {
  font-family: "Lobster Two", "Times New Roman", serif;
}

.lead,
.detail-card p,
.timeline-item p,
.rsvp-note,
.final-copy p {
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-tags span,
.verse-ref,
.credit,
.page-indicator {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.18);
  border: 1px solid rgba(255, 242, 214, 0.24);
  backdrop-filter: blur(8px);
}

.frame {
  padding: 14px;
  border-radius: calc(var(--radius-lg) + 6px);
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.52), rgba(242, 219, 176, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-photo img,
.gallery-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.centered-copy {
  height: 100%;
  display: grid;
  place-content: center;
  gap: 16px;
  text-align: center;
}

.verse-ar {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1.3;
}

.verse-en {
  margin: 0;
  font-size: 1.12rem;
}

.section-heading {
  margin-bottom: 22px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.countdown-page {
  display: grid;
  align-content: center;
}

.countdown-page .section-heading {
  text-align: center;
}

.count-card,
.detail-card,
.timeline-item,
.rsvp-form {
  background: var(--card-strong);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.count-card {
  padding: 28px 16px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.count-card strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--gold-dark);
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, rgba(123, 90, 40, 0.15), rgba(123, 90, 40, 0.75), rgba(123, 90, 40, 0.15));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  align-items: center;
}

.timeline-item span {
  position: relative;
  display: inline-block;
  font-size: 0.95rem;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin: 0 0 8px;
}

.timeline-item p {
  margin: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b88432;
  border: 3px solid rgba(255, 247, 235, 0.95);
  box-shadow: 0 0 0 6px rgba(184, 132, 50, 0.12);
  transform: translate(-50%, -50%);
}

.timeline-item > span,
.timeline-item > div {
  background: rgba(255, 249, 241, 0.42);
  border: 1px solid rgba(181, 139, 62, 0.12);
  border-radius: 24px;
  padding: 16px 18px;
  backdrop-filter: blur(8px);
}

.timeline-item:nth-child(odd) > span {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}

.timeline-item:nth-child(odd) > div {
  grid-column: 2;
  text-align: left;
}

.timeline-item:nth-child(even) > span {
  grid-column: 2;
  justify-self: start;
  text-align: left;
  order: 2;
}

.timeline-item:nth-child(even) > div {
  grid-column: 1;
  text-align: right;
  order: 1;
}

.details-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
}

.single-card-wrap {
  height: 100%;
  display: grid;
  align-content: center;
}

.detail-card {
  padding: 28px;
  border-radius: 28px;
}

.detail-card--feature {
  max-width: 640px;
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.58), rgba(255, 245, 232, 0.32));
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(109, 79, 27, 0.12);
}

.venue-page .single-card-wrap {
  align-content: center;
  justify-items: center;
}

.venue-page .detail-card--feature {
  max-width: 560px;
  text-align: center;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.venue-page .detail-card--feature .primary-btn {
  justify-self: center;
}

.dress-page .single-card-wrap {
  align-content: center;
  justify-items: center;
}

.dress-page .detail-card--feature {
  max-width: 560px;
  text-align: center;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.dress-page .detail-card--feature .eyebrow,
.dress-page .detail-card--feature h2,
.dress-page .detail-card--feature p {
  text-shadow: 0 8px 26px rgba(255, 250, 242, 0.45);
}

.detail-card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.gallery-grid {
  height: calc(100% - 140px);
  display: grid;
  gap: 18px;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.gallery-card {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(89, 54, 10, 0.18);
}

.gallery-card.tall {
  grid-row: 1 / span 2;
}

.gallery-card.wide {
  grid-column: 2 / span 2;
}

.rsvp-layout {
  align-content: center;
}

.rsvp-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border-radius: 30px;
  max-width: 740px;
}

.rsvp-form label {
  display: grid;
  gap: 8px;
}

.rsvp-form input,
.rsvp-form textarea {
  width: 100%;
  border: 1px solid rgba(178, 134, 48, 0.18);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 248, 236, 0.24);
  backdrop-filter: blur(6px);
  color: var(--text);
}

.rsvp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.final-copy {
  color: #fff7ef;
}

.final-copy .brand-mark.large {
  width: 132px;
  height: 132px;
  font-size: 2rem;
  color: #fffaf2;
  border-color: rgba(255, 250, 241, 0.34);
  background: rgba(255, 250, 241, 0.12);
}

.invitu-credit {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 250, 241, 0.28);
  border-radius: 20px;
  background: rgba(46, 25, 12, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(35, 18, 8, 0.16);
}

.invitu-credit a {
  color: #fff7e8;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.invitu-credit a:hover,
.invitu-credit a:focus-visible {
  color: #f2c96f;
  transform: translateY(-1px);
}

.invitu-powered {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: "Lobster Two", "Times New Roman", serif;
  font-size: 0.9rem;
}

.invitu-powered strong {
  font-family: "Dancing Script", "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.invitu-website {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.invitu-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.invitu-socials a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
}

.invitu-socials svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell-footer {
  padding-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.page-indicator {
  display: inline-flex;
  gap: 8px;
  color: var(--gold-dark);
  background: rgba(255, 250, 242, 0.7);
  border: 1px solid rgba(173, 132, 54, 0.18);
  direction: ltr;
}

.lang-switch {
  padding: 12px 18px;
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(173, 132, 54, 0.22);
  color: var(--gold-dark);
  justify-self: end;
  font-family: "Lobster Two", "Times New Roman", serif;
}

.swipe-hint {
  margin: 0;
  justify-self: center;
  color: var(--muted);
  font-family: "Dancing Script", "Times New Roman", serif;
  font-size: 1.12rem;
}

.hero-tags--center {
  justify-content: center;
  margin-top: 18px;
}

.dress-colors {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.dress-color {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid rgba(174, 132, 52, 0.16);
  box-shadow: 0 8px 18px rgba(96, 66, 21, 0.14);
}

.dress-color.ivory {
  background: #f3ecdf;
}

.dress-color.champagne {
  background: #e4d0af;
}

.dress-color.sand {
  background: #ceb188;
}

.dress-color.gold {
  background: #c79a48;
}

html[dir="rtl"] body {
  font-family: "Noto Naskh Arabic", "Tahoma", "Arial", sans-serif;
}

html[dir="rtl"] .brand-copy p,
html[dir="rtl"] .brand-copy span,
html[dir="rtl"] .hero-copy h1,
html[dir="rtl"] .section-heading h2,
html[dir="rtl"] .detail-card h2,
html[dir="rtl"] .timeline-item h3,
html[dir="rtl"] .lead,
html[dir="rtl"] .detail-card p,
html[dir="rtl"] .timeline-item p,
html[dir="rtl"] .rsvp-note,
html[dir="rtl"] .final-copy p,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .verse-en,
html[dir="rtl"] .verse-ref,
html[dir="rtl"] .hero-tags span,
html[dir="rtl"] .lang-switch,
html[dir="rtl"] .swipe-hint,
html[dir="rtl"] .invitu-powered,
html[dir="rtl"] .rsvp-form label span,
html[dir="rtl"] .rsvp-form input,
html[dir="rtl"] .rsvp-form textarea,
html[dir="rtl"] .primary-btn,
html[dir="rtl"] .secondary-btn {
  font-family: "Noto Naskh Arabic", "Tahoma", "Arial", sans-serif;
}

html[dir="rtl"] .brand-lockup,
html[dir="rtl"] .nav-actions,
html[dir="rtl"] .shell-topbar,
html[dir="rtl"] .hero-tags,
html[dir="rtl"] .rsvp-actions {
  flex-direction: row-reverse;
}

html[dir="rtl"] .shell-footer {
  direction: ltr;
}

html[dir="rtl"] .lang-switch,
html[dir="rtl"] .swipe-hint {
  direction: rtl;
}

html[dir="rtl"] .hero-grid {
  grid-template-columns: 0.95fr 1.05fr;
}

html[dir="rtl"] .timeline-item {
  grid-template-columns: 1fr 100px;
}

html[dir="rtl"] .timeline-item span {
  order: 2;
  text-align: left;
}

html[dir="rtl"] .timeline-item div {
  order: 1;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .invitation-shell {
    min-height: 100vh;
    padding: 14px;
  }

  .slider {
    height: calc(100vh - 156px);
  }

  .page {
    min-height: calc(100vh - 156px);
    padding: 20px;
  }

  .hero-grid,
  .details-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  html[dir="rtl"] .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .details-grid,
  .rsvp-layout {
    height: auto;
  }

  .gallery-grid {
    height: auto;
    grid-template-rows: auto;
  }

  .gallery-card.tall,
  .gallery-card.wide {
    grid-row: auto;
    grid-column: auto;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .intro-screen,
  .invitation-shell {
    padding: 12px;
  }

  .intro-content {
    padding: 14px 12px 16px;
    gap: 6px;
    min-height: 100vh;
  }

  .monogram {
    width: 62px;
    height: 62px;
    font-size: 1.2rem;
  }

  .intro-kicker {
    font-size: 0.66rem;
  }

  .intro-btn {
    min-width: 132px;
    padding: 8px 14px;
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  .shell-topbar {
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .brand-lockup {
    gap: 10px;
    min-width: 0;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    font-size: 1rem;
  }

  .brand-copy p {
    font-size: 0.92rem;
  }

  .brand-copy span {
    font-size: 0.78rem;
  }

  .hero-copy h1,
  .section-heading h2,
  .final-copy h2 {
    max-width: 100%;
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 0.68rem;
  }

  .hero-tags {
    gap: 8px;
    margin-top: 16px;
  }

  .hero-tags span,
  .verse-ref,
  .invitu-powered,
  .page-indicator,
  .lang-switch {
    font-size: 0.88rem;
    padding: 8px 12px;
  }

  .shell-footer {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }

  .page-indicator {
    justify-self: start;
  }

  .swipe-hint {
    font-size: 0.96rem;
  }

  .slider {
    height: calc(100vh - 128px);
  }

  .page {
    height: calc(100vh - 128px);
    min-height: calc(100vh - 128px);
    padding: 14px;
    border-radius: 24px;
    overflow: hidden;
  }

  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    background: rgba(255, 249, 241, 0.32);
    border: 1px solid rgba(181, 139, 62, 0.12);
    border-radius: 18px;
    padding: 12px;
  }

  html[dir="rtl"] .timeline-item {
    grid-template-columns: 1fr;
  }

  html[dir="rtl"] .timeline-item span {
    order: 0;
    text-align: right;
  }

  .detail-card,
  .rsvp-form,
  .timeline-item,
  .count-card {
    padding: 14px;
    border-radius: 18px;
  }

  .gallery-card {
    border-radius: 20px;
  }

  .shell-footer {
    gap: 10px;
    align-items: center;
    padding-top: 10px;
  }

  .timeline {
    gap: 10px;
    max-width: 100%;
    padding: 0;
  }

  .timeline-item span {
    font-size: 0.86rem;
  }

  .timeline-item h3 {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .timeline-item p,
  .lead,
  .detail-card p,
  .rsvp-note,
  .final-copy p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .hero-photo.frame {
    padding: 8px;
  }

  .hero-grid {
    grid-template-rows: auto 1fr;
    gap: 12px;
  }

  .hero-photo img {
    max-height: 42vh;
    object-position: center top;
  }

  .count-card strong {
    font-size: 1.2rem;
  }

  .count-card {
    padding: 12px 6px;
  }

  .count-card span {
    font-size: 0.78rem;
  }

  .details-grid {
    gap: 10px;
  }

  .detail-card h2 {
    font-size: 1.18rem;
    margin-bottom: 8px;
  }

  .gallery-grid {
    height: calc(100% - 92px);
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .gallery-card.tall,
  .gallery-card.wide {
    grid-row: auto;
    grid-column: auto;
  }

  .gallery-card img {
    height: 100%;
  }

  .rsvp-layout {
    gap: 10px;
  }

  .rsvp-form {
    gap: 10px;
    padding: 12px;
  }

  .rsvp-form input,
  .rsvp-form textarea {
    padding: 9px 12px;
    border-radius: 14px;
  }

  .rsvp-actions {
    gap: 8px;
  }

  .rsvp-actions .primary-btn,
  .rsvp-actions .secondary-btn {
    flex: 1 1 0;
    text-align: center;
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .timeline-page .section-heading {
    margin-bottom: 10px;
  }

  .timeline-page .section-heading h2 {
    font-size: 1.9rem;
  }

  .timeline-item {
    padding: 12px;
  }

  .timeline-item p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item::before {
    display: none;
  }

  .timeline-item > span,
  .timeline-item > div,
  .timeline-item:nth-child(odd) > span,
  .timeline-item:nth-child(odd) > div,
  .timeline-item:nth-child(even) > span,
  .timeline-item:nth-child(even) > div {
    grid-column: auto;
    order: initial;
    justify-self: stretch;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
  }

  .venue-page .detail-card,
  .dress-page .detail-card {
    padding: 16px;
  }

  .single-card-wrap {
    align-content: start;
  }
}
