
  :root {
    --maroon: #e69fa3;
    --maroon-dark: #5e1f26;
    --green: #dfd6a4;
    --parchment: #f7e2c5;
    --parchment-dark: #ddd4bc;
    --gold: #c9a84c;
    --gold-rgba: rgba(201,168,76,0.6);
    --ink: #231f1a;
    --ink-mid: #4a4540;
    --ink-light: #8a8078;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: 'Inter', sans-serif; font-weight: 300; background: var(--parchment); color: var(--ink); overflow-x: hidden; }

  nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--parchment); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gold-rgba); display: flex; justify-content: center; gap: 2rem; padding: 1rem 0; flex-wrap: wrap; }
  body.nav-first-load nav {
  animation: navFadeIn 1.2s ease forwards;
}

@keyframes navFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
  nav a { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; font-size: 18px; letter-spacing: 0.04em; color: var(--ink-light); text-decoration: none; transition: color 0.3s; }
  nav a:hover { color: var(--gold); }

  /* ── Hamburger button (hidden on desktop) ── */
  .nav-hamburger {
    display: none;
    position: fixed; top: 0; right: 0; z-index: 200;
    width: 56px; height: 56px;
    align-items: center; justify-content: center;
    cursor: pointer; background: none; border: none; padding: 0;
  }
  .nav-hamburger span {
    display: block; width: 22px; height: 1.5px;
    background: var(--gold);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.2s;
    position: absolute;
  }
  .nav-hamburger span:nth-child(1) { transform: translateY(-6px); }
  .nav-hamburger span:nth-child(3) { transform: translateY(6px); }
  .nav-hamburger.open span:nth-child(1) { transform: rotate(45deg); background: var(--parchment); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg); background: var(--parchment); }

  /* ── Full-screen overlay menu ── */
  .nav-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 150;
    background: var(--maroon);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 1.75rem;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.22,1,0.36,1);
  }
  .nav-overlay.open { opacity: 1; }
  .nav-overlay a {
    font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300;
    font-size: 30px; letter-spacing: 0.04em;
    color: rgba(232,224,204,0.7); text-decoration: none;
    transform: translateY(14px); opacity: 0;
    transition: color 0.25s, transform 0.45s cubic-bezier(0.22,1,0.36,1), opacity 0.45s;
  }
  .nav-overlay.open a { transform: translateY(0); opacity: 1; }
  .nav-overlay.open a:nth-child(1) { transition-delay: 0.04s; }
  .nav-overlay.open a:nth-child(2) { transition-delay: 0.08s; }
  .nav-overlay.open a:nth-child(3) { transition-delay: 0.12s; }
  .nav-overlay.open a:nth-child(4) { transition-delay: 0.16s; }
  .nav-overlay.open a:nth-child(5) { transition-delay: 0.20s; }
  .nav-overlay.open a:nth-child(6) { transition-delay: 0.24s; }
  .nav-overlay.open a:nth-child(7) { transition-delay: 0.28s; }
  .nav-overlay.open a:nth-child(8) { transition-delay: 0.32s; }
  .nav-overlay a:hover { color: var(--gold); }
  .nav-overlay .overlay-gold-rule {
    width: 30px; height: 1px; background: var(--gold); opacity: 0.35;
  }

  .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }

  .gold-rule { display: block; width: 100%; height: 1px; background: linear-gradient(to right, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%); opacity: 0.55; }
  .gold-rule-short { display: block; width: 40px; height: 1px; background: var(--gold); opacity: 0.75; margin: 0.6rem 0 1.6rem; }

  .plain-section { padding: 5rem 2rem; max-width: 720px; margin: 0 auto; }

  .maroon-section { position: relative; padding: 6rem 2rem; overflow: hidden; background: var(--maroon); }
  .maroon-section .bg-layer { position: absolute; inset: -15% 0; background: var(--maroon); will-change: transform; z-index: 0; }
  .maroon-section .overlay { position: absolute; inset: 0; background: rgba(20,5,8,0.38); z-index: 1; }
  .maroon-section .content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
  .maroon-section .section-label { color: rgba(232,224,204,0.55); }
  .maroon-section h2 { color: var(--parchment); }
  .maroon-section p { color: rgba(232,224,204,0.78); }

  .green-section { position: relative; padding: 6rem 2rem; overflow: hidden; background: var(--green); }
  .green-section .bg-layer { position: absolute; inset: -15% 0; background: var(--green); will-change: transform; z-index: 0; }
  .green-section .overlay { position: absolute; inset: 0; background: rgba(8,18,10,0.36); z-index: 1; }
  .green-section .content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
  .green-section .section-label { color: rgba(232,224,204,0.55); }
  .green-section h2 { color: var(--parchment); }
  .green-section p { color: rgba(232,224,204,0.78); }

  .hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 4rem; position: relative; overflow: hidden; background: var(--maroon); }
  .hero .bg-layer { position: absolute; inset: -15% 0; background: var(--maroon); will-change: transform; z-index: 0; }
  .hero .overlay { position: absolute; inset: 0; background: rgba(20,5,8,0.4); z-index: 1; }
  .hero-content { position: relative; z-index: 2; transform: translateY(90px); }
  .eyebrow { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; font-size: 25px; letter-spacing: 0.04em; color: rgba(232,224,204,0.7); margin-bottom: 1.5rem; animation: heroFadeUp 1.2s 0.3s cubic-bezier(0.22,1,0.36,1) both; }
  .hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(52px,10vw,96px); font-weight: 300; line-height: 1; letter-spacing: -0.01em; color: var(--parchment); text-shadow: 0 4px 20px rgba(0,0,0,.45); animation: heroFadeUp 1.2s 0.5s cubic-bezier(0.22,1,0.36,1) both; }
  .hero h1 em { font-style: italic; }
  .hero-divider { width: 60px; height: 1px; background: var(--gold); margin: 2rem auto; opacity: 0.8; animation: heroFadeUp 1s 0.7s cubic-bezier(0.22,1,0.36,1) both; }
  .hero-date { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 300; color: rgba(232,224,204,0.82); letter-spacing: 0.05em; text-shadow: 0 2px 10px rgba(0,0,0,.35); animation: heroFadeUp 1s 0.85s cubic-bezier(0.22,1,0.36,1) both; }
  .hero-venue { font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(232,224,204,0.5); margin-top: 0.5rem; text-shadow: 0 2px 10px rgba(0,0,0,.35); animation: heroFadeUp 1s 1s cubic-bezier(0.22,1,0.36,1) both; }
  @keyframes heroFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  .scroll-hint { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(232,224,204,0.35); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2; animation: heroFadeUp 1s 1.4s cubic-bezier(0.22,1,0.36,1) both; }
  .scroll-arrow { width: 1px; height: 32px; background: linear-gradient(to bottom, transparent, var(--gold-rgba)); animation: scrollPulse 2s 2s ease-in-out infinite; }
  @keyframes scrollPulse { 0%,100% { opacity: 0.4; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(1.2); } }

  .countdown-section { position: relative; padding: 7rem 2rem; overflow: hidden; background: var(--green); text-align: center; }
  .countdown-section .bg-layer { position: absolute; inset: -15% 0; background: var(--green); will-change: transform; z-index: 0; }
  .countdown-section .overlay { position: absolute; inset: 0; background: rgba(8,18,10,0.38); z-index: 1; }
  .countdown-content { position: relative; z-index: 2; }
  .countdown-eyebrow { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 20px; font-weight: 300; color: rgba(232,224,204,0.55); letter-spacing: 0.06em; margin-bottom: 2.5rem; text-shadow: 0 2px 10px rgba(0,0,0,.35);}
  .countdown { display: flex; justify-content: center; align-items: flex-start; }
  .countdown-unit { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 2rem; }
  .countdown-unit + .countdown-unit { border-left: 1px solid var(--gold-rgba); }
  .countdown-number { font-family: 'Cormorant Garamond', serif; font-size: clamp(56px,8vw,96px); font-weight: 300; color: var(--parchment); line-height: 1; min-width: 2ch; text-align: center; letter-spacing: -0.02em; transition: opacity 0.15s ease; }
  .countdown-number.tick { opacity: 0.35; }
  .countdown-label { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(232,224,204,0.4); }

  .section-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 0; }
  h2 { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 300; color: var(--ink); margin-bottom: 1.5rem; line-height: 1.2; }
  h2 em { font-style: italic; }
  p { font-size: 15px; line-height: 1.8; color: var(--ink-mid); margin-bottom: 1rem; }

  .event-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #ccc4ae; border: 0.5px solid #ccc4ae; margin-top: 2.5rem; }
  .event-cell { background: var(--parchment); padding: 2rem; transition: background 0.3s; }
  .event-cell:hover { background: var(--parchment-dark); }
  .event-cell .label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 0.5rem; }
  .event-cell .value { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 300; color: var(--ink); }
  .event-cell .sub { font-size: 13px; color: var(--ink-light); margin-top: 4px; }

  .timeline { margin-top: 2.5rem; position: relative; padding-left: 2rem; }
  .timeline::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(to bottom, transparent, var(--gold) 10%, var(--gold) 90%, transparent); opacity: 0.6; }
  .timeline-item { position: relative; padding: 0 0 2.5rem 2rem; }
  .timeline-item:last-child { padding-bottom: 0; }
  .timeline-dot { position: absolute; left: -2rem; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); opacity: 0.85; transform: translateX(-3.5px); transition: transform 0.3s, opacity 0.3s; }
  .timeline-item:hover .timeline-dot { transform: translateX(-3.5px) scale(1.4); opacity: 1; }
  .timeline-time { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.35rem; opacity: 0.9; }
  .timeline-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 300; color: var(--parchment); margin-bottom: 0.25rem; }
  .timeline-desc { font-size: 13px; color: rgba(232,224,204,0.6); line-height: 1.7; }

  /* RSVP form — Netlify-wired */
  .rsvp-form { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-field { display: flex; flex-direction: column; gap: 6px; }
  .form-field label { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(232,224,204,0.5); }
  .form-field input, .form-field select, .form-field textarea { background: rgba(232,224,204,0.08); border: 0.5px solid rgba(232,224,204,0.22); padding: 10px 12px; font-size: 14px; font-family: 'Inter', sans-serif; font-weight: 300; color: var(--parchment); outline: none; transition: border-color 0.3s, background 0.3s; -webkit-appearance: none; border-radius: 0; }
  .form-field input::placeholder, .form-field textarea::placeholder { color: rgba(232,224,204,0.3); }
  .form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--gold-rgba); background: rgba(232,224,204,0.12); }
  .form-field select option { background: var(--maroon-dark); color: var(--parchment); }
  .form-field textarea { resize: vertical; min-height: 80px; }
  .rsvp-btn { align-self: flex-start; background: var(--parchment); color: var(--ink); border: none; padding: 12px 32px; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; font-family: 'Inter', sans-serif; cursor: pointer; border-radius: 0; transition: opacity 0.25s, transform 0.25s; }
  .rsvp-btn:hover { opacity: 0.85; transform: translateY(-2px); }
  .rsvp-btn:active { transform: translateY(0); }
  .rsvp-success { display: none; margin-top: 1.5rem; padding: 1rem 1.5rem; border-left: 2px solid var(--gold-rgba); font-size: 14px; color: rgba(232,224,204,0.75); font-style: italic; }

  .attendee-section { margin-top: 0.25rem; padding: 1.25rem 0; border-top: 1px solid rgba(232,224,204,0.18); border-bottom: 1px solid rgba(232,224,204,0.18); }
  .attendee-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
  .attendee-label { margin: 0; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(232,224,204,0.55) !important; }
  .attendee-help { margin: 0.35rem 0 0; font-size: 12px; line-height: 1.5; color: rgba(232,224,204,0.48) !important; }
  .add-attendee-btn, .remove-attendee-btn { background: transparent; border: 1px solid rgba(232,224,204,0.35); color: var(--parchment); padding: 9px 14px; font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: border-color 0.25s, background 0.25s, transform 0.25s, opacity 0.25s; }
  .add-attendee-btn:hover, .remove-attendee-btn:hover { border-color: var(--gold-rgba); background: rgba(232,224,204,0.08); transform: translateY(-1px); }
  .add-attendee-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
  .attendee-list { display: flex; flex-direction: column; gap: 1rem; }
  .attendee-row { margin-top: 1rem; padding: 1rem; border: 1px solid rgba(232,224,204,0.18); background: rgba(232,224,204,0.05); animation: attendeeEnter 0.28s cubic-bezier(0.22,1,0.36,1) both; }
  .attendee-row[hidden] { display: none; }
  .attendee-row-title { margin-bottom: 0.8rem; font-family: 'Cormorant Garamond', serif; font-size: 18px; font-style: italic; color: rgba(232,224,204,0.82); }
  .remove-attendee-btn { margin-top: 0.75rem; padding: 7px 11px; border-color: transparent; color: rgba(232,224,204,0.55); }
  @keyframes attendeeEnter { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

  .travel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
  .travel-card { border: 0.5px solid #ccc4ae; padding: 1.5rem; background: var(--parchment); transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s; }
  .travel-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(80,30,30,0.1); }
  .travel-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 300; color: var(--ink); margin-bottom: 0.5rem; }
  .travel-card p { font-size: 13px; color: var(--ink-mid); line-height: 1.7; margin: 0; }
  .travel-card a { display: inline-block; margin-top: 0.75rem; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--maroon); text-decoration: none; border-bottom: 0.5px solid var(--maroon); transition: opacity 0.2s; }
  .travel-card a:hover { opacity: 0.6; }

  .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 2.5rem; }
  .gallery-cell { aspect-ratio: 1; background: rgba(232,224,204,0.1); border: 0.5px solid rgba(232,224,204,0.18); display: flex; align-items: center; justify-content: center; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(232,224,204,0.4); transition: background 0.3s; overflow: hidden; }
  .gallery-cell img { width: 100%; height: 100%; object-fit: cover; }
  .gallery-cell:hover { background: rgba(232,224,204,0.18); }

  .dress-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2.5rem; }
  .dress-col h3 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 300; color: var(--parchment); margin-bottom: 0.5rem; }
  .dress-col .gold-rule-short { margin-bottom: 1.25rem; }
  .dress-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
  .dress-col ul li { font-size: 13px; color: rgba(232,224,204,0.72); line-height: 1.6; padding-left: 1rem; position: relative; }
  .dress-col ul li::before { content: '—'; position: absolute; left: 0; color: var(--gold); opacity: 0.7; }

  .palette-block { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--gold-rgba); }
  .palette-title { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; font-weight: 300; color: rgba(232,224,204,0.65); text-align: center; margin-bottom: 1.5rem; letter-spacing: 0.04em; }
  .swatches { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
  .swatch { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .swatch-block { width: 52px; height: 52px; border-radius: 50%; border: 0.5px solid rgba(232,224,204,0.15); transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s; }
  .swatch:hover .swatch-block { transform: scale(1.15); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
  .swatch-name { font-size: 9px; letter-spacing: 0.08em; color: rgba(232,224,204,0.45); text-align: center; max-width: 56px; }
  .dress-note { margin-top: 2rem; padding: 1.25rem 1.5rem; border-left: 2px solid var(--gold-rgba); font-size: 13px; color: rgba(232,224,204,0.65); line-height: 1.8; font-style: italic; }

  .registry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
  .registry-card { border: 0.5px solid #ccc4ae; padding: 2rem 1.5rem; text-align: center; background: var(--parchment); transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s; }
  .registry-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(80,30,30,0.1); }
  .registry-card .rc-icon { font-size: 26px; margin-bottom: 0.75rem; }
  .registry-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 300; color: var(--ink); margin-bottom: 0.25rem; }
  .registry-card p { font-size: 12px; color: var(--ink-light); margin: 0 0 1rem; }
  .registry-card a { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--maroon); text-decoration: none; border-bottom: 0.5px solid var(--maroon); transition: opacity 0.2s; }
  .registry-card a:hover { opacity: 0.6; }

  .faq-list { margin-top: 2.5rem; }
  .faq-item { border-top: 1px solid var(--gold-rgba); padding: 1.5rem 0; cursor: pointer; }
  .faq-item:last-child { border-bottom: 1px solid var(--gold-rgba); }
  .faq-q { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 300; color: var(--parchment); display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: opacity 0.2s; }
  .faq-item:hover .faq-q { opacity: 0.8; }
  .faq-q span { font-size: 18px; color: var(--gold-rgba); transition: transform 0.35s cubic-bezier(0.22,1,0.36,1); }
  .faq-a { font-size: 14px; color: rgba(232,224,204,0.68); line-height: 1.8; max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.22,1,0.36,1), margin-top 0.45s, opacity 0.35s; opacity: 0; }
  .faq-item.open .faq-a { max-height: 200px; margin-top: 1rem; opacity: 1; }
  .faq-item.open .faq-q span { transform: rotate(45deg); }

  footer { text-align: center; padding: 4rem 2rem; background: var(--parchment); }

  /* ── Mobile responsive ── */
  @media (max-width: 600px) {
    /* Hide desktop nav links, show hamburger and overlay */
    nav { display: none; }
    .nav-hamburger { display: flex; }
    .nav-overlay { display: flex; }

    /* Countdown: shrink padding and font so all 4 units fit */
    .countdown-unit { padding: 0 0.9rem; }
    .countdown-number { font-size: clamp(36px, 10vw, 56px); min-width: 1.8ch; }
    .countdown-label { font-size: 8px; letter-spacing: 0.14em; }

    /* RSVP form: stack name fields vertically */
    .form-row { grid-template-columns: 1fr; }
    .attendee-heading { align-items: flex-start; flex-direction: column; }
    .add-attendee-btn { width: 100%; }

    /* Dress code columns: stack vertically */
    .dress-columns { grid-template-columns: 1fr; gap: 2rem; }

    /* Travel and registry grids: stack vertically */
    .travel-grid { grid-template-columns: 1fr; }
    .registry-grid { grid-template-columns: 1fr; }

    /* Event grid: stack vertically */
    .event-grid { grid-template-columns: 1fr; }

    /* Plain sections: less horizontal padding */
    .plain-section { padding: 4rem 1.25rem; }

    /* Coloured sections: less padding */
    .maroon-section, .green-section, .countdown-section { padding: 4rem 1.25rem; }
  }
  footer .footer-names { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 300; font-style: italic; color: var(--ink); margin-bottom: 0.75rem; }
  .footer-divider { display: block; width: 40px; height: 1px; background: var(--gold); opacity: 0.7; margin: 0 auto 0.75rem; }
  footer p { font-size: 12px; color: var(--ink-light); letter-spacing: 0.05em; margin: 0; }


/* Multi-page layout and transitions */
html { background: var(--parchment); }
body { min-height: 100vh; }
.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1; padding-top: 52px; }
.page-main > section { min-height: calc(100vh - 52px); display: flex; flex-direction: column; justify-content: center; }
.page-main > .plain-section { width: 100%; max-width: none; }
.page-main > .plain-section > .page-content { width: 100%; max-width: 720px; margin: 0 auto; }
.page-main > .maroon-section .content,
.page-main > .green-section .content { padding-top: 1rem; padding-bottom: 1rem; }
nav a.active { color: var(--maroon); }
.nav-overlay a.active { color: var(--maroon-dark); }
.hero h1, .hero h1 em { font-style: italic; }
.hero-home-link { position:absolute; inset:0; z-index:1; }
.page-transition { animation: pageEnter .42s cubic-bezier(.22,1,.36,1) both; }
@keyframes pageEnter { from { opacity:0; transform:translateY(10px) scale(.995); } to { opacity:1; transform:none; } }
body.page-leaving .page-transition { animation: pageLeave .18s ease both; }
@keyframes pageLeave { to { opacity:0; transform:translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior:auto !important; }
}
@media (max-width: 600px) {
  .page-main { padding-top: 0; }
  .page-main > section { min-height: 100vh; padding-top: 5rem; padding-bottom: 4rem; }
  .page-main > .hero { padding-top: 4rem; }
}

/* Homepage hero photograph */
#hero-bg {
  background-image: url("hero-photo.webp");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

.hero .overlay {
  background:
linear-gradient(
    to bottom,
    rgba(20,5,8,0.15) 0%,
    rgba(20,5,8,0.25) 35%,
    rgba(20,5,8,0.65) 100%
);
}

.hero {
  justify-content: flex-end;
  padding-bottom: clamp(4.5rem, 10vh, 8rem);
}

.hero-content {
  padding: 0 1.25rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.48);
}

@media (max-width: 600px) {
  #hero-bg {
    background-position: 51% center;
  }

  .hero {
    min-height: 100svh;
    padding-bottom: 5.5rem;
  }

  .hero h1 {
    font-size: clamp(50px, 17vw, 72px);
  }
}


/* Registry portrait */
.registry-photo-block {
  width: min(100%, 430px);
  margin: 2.5rem auto 0;
  text-align: center;
}

.registry-photo-frame {
  padding: 5px;
  border: 1px solid var(--gold-rgba);
  background: rgba(255,255,255,0.2);
  box-shadow: 0 18px 42px rgba(80,30,30,0.14);
}

.registry-photo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.registry-photo-block figcaption {
  max-width: 390px;
  margin: 1.1rem auto 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-mid);
}

@media (max-width: 600px) {
  .registry-photo-block {
    width: min(100%, 360px);
    margin-top: 2rem;
  }

  .registry-photo-block figcaption {
    font-size: 17px;
  }
}


.registry-layout{
display:grid;
grid-template-columns:minmax(0,1fr) 460px;
gap:2.5rem;
align-items:start;
margin-top:2.5rem;
}
.registry-cards-stack .registry-grid{
display:grid;
grid-template-columns:1fr;
margin-top:0;
}
.registry-photo-block{margin:0;width:100%}
.registry-photo-frame img{aspect-ratio:3.7/5; min-height:700px;}
@media(max-width:800px){
.registry-layout{grid-template-columns:1fr}
.registry-photo-block{max-width:380px;margin:2rem auto 0}
}


/* Registry layout balance v4 */
.registry-layout {
  display: grid;
  grid-template-columns: minmax(300px, 340px) 390px;
  gap: 3.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
}

.registry-cards-stack {
  align-self: center;
}

.registry-cards-stack .registry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 0;
}

.registry-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.registry-photo-block {
  width: 390px;
  max-width: 100%;
  margin: 0;
  align-self: center;
}

.registry-photo-frame img {
  width: 100%;
  height: 610px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 900px) {
  .registry-layout {
    grid-template-columns: minmax(280px, 340px) minmax(320px, 370px);
    gap: 2rem;
  }

  .registry-photo-block {
    width: 100%;
  }

  .registry-photo-frame img {
    height: 570px;
  }
}

@media (max-width: 720px) {
  .registry-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .registry-cards-stack {
    width: 100%;
  }

  .registry-photo-block {
    width: min(100%, 360px);
    margin: 0 auto;
  }

  .registry-photo-frame img {
    height: auto;
    aspect-ratio: 4 / 5;
  }
}
/* End registry layout balance v4 */


/* Exact registry card/photo alignment */
.registry-layout {
  align-items: stretch;
}

.registry-cards-stack {
  align-self: stretch;
}

.registry-cards-stack .registry-grid {
  height: 100%;
}

.registry-photo-block {
  align-self: stretch;
  display: flex;
}

.registry-photo-frame {
  width: 100%;
  height: 100%;
}

.registry-photo-frame img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 720px) {
  .registry-photo-block {
    display: block;
  }

  .registry-photo-frame {
    height: auto;
  }

  .registry-photo-frame img {
    height: auto;
    aspect-ratio: 4 / 5;
  }
}


/* Registry link underline refinement */
.registry-card a{
    display:inline-block;
    width:auto !important;
    align-self:center;
    text-decoration:none;
    border-bottom:0.5px solid var(--maroon);
}
.registry-card a::before,
.registry-card a::after{
    display:none !important;
    content:none !important;
}


/* ── Honeymoon fund modal ── */
body.honeymoon-modal-open {
  overflow: hidden;
}

.honeymoon-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.honeymoon-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.honeymoon-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 31, 26, 0.58);
  backdrop-filter: blur(5px);
}

.honeymoon-modal-dialog {
  position: relative;
  width: min(100%, 540px);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  padding: clamp(2.25rem, 6vw, 4rem);
  text-align: center;
  background: var(--parchment);
  border: 1px solid var(--gold-rgba);
  box-shadow: 0 24px 70px rgba(50, 20, 20, 0.28);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.honeymoon-modal.open .honeymoon-modal-dialog {
  transform: translateY(0) scale(1);
}

.honeymoon-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.honeymoon-modal-close span {
  position: absolute;
  top: 20px;
  left: 10px;
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.honeymoon-modal-close span:first-child {
  transform: rotate(45deg);
}

.honeymoon-modal-close span:last-child {
  transform: rotate(-45deg);
}

.honeymoon-modal-label,
.honeymoon-transfer-label {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.honeymoon-modal-rule {
  width: 40px;
  height: 1px;
  margin: 0.75rem auto 1.6rem;
  background: var(--gold);
  opacity: 0.75;
}

.honeymoon-modal-dialog h2 {
  max-width: 390px;
  margin: 0 auto 1.25rem;
  font-size: clamp(32px, 7vw, 42px);
  line-height: 1.08;
}

.honeymoon-modal-intro {
  max-width: 430px;
  margin: 0 auto 1.75rem;
  font-size: 14px;
  line-height: 1.8;
}

.honeymoon-transfer-card {
  padding: 1.5rem;
  border: 1px solid rgba(201, 168, 76, 0.58);
  background: rgba(255, 255, 255, 0.18);
}

.honeymoon-transfer-email {
  margin: 0.7rem 0 1rem;
  overflow-wrap: anywhere;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(23px, 5vw, 30px);
  color: var(--ink);
}

.honeymoon-copy-button {
  padding: 10px 18px;
  border: 1px solid var(--maroon);
  background: transparent;
  color: var(--maroon);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.honeymoon-copy-button:hover {
  background: var(--maroon);
  color: var(--parchment);
  transform: translateY(-1px);
}

.honeymoon-modal-note {
  max-width: 410px;
  margin: 1.4rem auto 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-light);
}

.honeymoon-modal-thanks {
  margin: 1.4rem 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--ink-mid);
}

@media (max-width: 600px) {
  .honeymoon-modal {
    padding: 1rem;
  }

  .honeymoon-modal-dialog {
    padding: 3.25rem 1.4rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .honeymoon-modal,
  .honeymoon-modal-dialog {
    transition: none;
  }
}


/* ── Mobile-first refinements for honeymoon fund modal ── */
.honeymoon-modal {
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
}

.honeymoon-modal-dialog {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.honeymoon-modal-close,
.honeymoon-copy-button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.honeymoon-modal-close {
  min-width: 44px;
  min-height: 44px;
}

.honeymoon-copy-button {
  min-height: 44px;
}

@media (max-width: 600px) {
  .honeymoon-modal {
    align-items: end;
    padding:
      max(0.75rem, env(safe-area-inset-top))
      max(0.75rem, env(safe-area-inset-right))
      max(0.75rem, env(safe-area-inset-bottom))
      max(0.75rem, env(safe-area-inset-left));
  }

  .honeymoon-modal-dialog {
    width: 100%;
    max-height: calc(100dvh - 1.5rem);
    padding:
      3.5rem
      clamp(1.15rem, 5vw, 1.6rem)
      max(1.6rem, env(safe-area-inset-bottom));
    border-radius: 0;
    transform: translateY(28px);
  }

  .honeymoon-modal.open .honeymoon-modal-dialog {
    transform: translateY(0);
  }

  .honeymoon-modal-close {
    top: 0.7rem;
    right: 0.7rem;
  }

  .honeymoon-modal-dialog h2 {
    max-width: 320px;
    margin-bottom: 1rem;
    font-size: clamp(30px, 9vw, 38px);
  }

  .honeymoon-modal-intro {
    margin-bottom: 1.25rem;
    font-size: 15px;
    line-height: 1.65;
  }

  .honeymoon-transfer-card {
    padding: 1.25rem 1rem;
  }

  .honeymoon-transfer-email {
    margin: 0.65rem 0 1rem;
    font-size: clamp(20px, 6vw, 27px);
    line-height: 1.2;
  }

  .honeymoon-copy-button {
    width: 100%;
    padding: 13px 18px;
    font-size: 11px;
  }

  .honeymoon-modal-note {
    margin-top: 1.15rem;
    font-size: 13px;
    line-height: 1.6;
  }

  .honeymoon-modal-thanks {
    margin-top: 1.15rem;
  }
}

@media (max-width: 380px), (max-height: 680px) {
  .honeymoon-modal-dialog {
    padding-top: 3rem;
  }

  .honeymoon-modal-label {
    font-size: 9px;
  }

  .honeymoon-modal-rule {
    margin-bottom: 1rem;
  }

  .honeymoon-modal-dialog h2 {
    font-size: 29px;
  }

  .honeymoon-modal-intro {
    font-size: 14px;
    line-height: 1.55;
  }

  .honeymoon-transfer-card {
    padding: 1rem 0.85rem;
  }

  .honeymoon-modal-note,
  .honeymoon-modal-thanks {
    margin-top: 0.9rem;
  }
}


/* ── Curated wishlist modal ── */
body.wishlist-modal-open {
  overflow: hidden;
}

.wishlist-modal {
  position: fixed;
  inset: 0;
  z-index: 510;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.wishlist-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.wishlist-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 31, 26, 0.58);
  backdrop-filter: blur(5px);
}

.wishlist-modal-dialog {
  position: relative;
  width: min(100%, 540px);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(2.25rem, 6vw, 4rem);
  text-align: center;
  background: var(--parchment);
  border: 1px solid var(--gold-rgba);
  box-shadow: 0 24px 70px rgba(50, 20, 20, 0.28);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.wishlist-modal.open .wishlist-modal-dialog {
  transform: translateY(0) scale(1);
}

.wishlist-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.wishlist-modal-close span {
  position: absolute;
  top: 21px;
  left: 11px;
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.wishlist-modal-close span:first-child {
  transform: rotate(45deg);
}

.wishlist-modal-close span:last-child {
  transform: rotate(-45deg);
}

.wishlist-modal-label,
.wishlist-modal-card-label {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.wishlist-modal-rule {
  width: 40px;
  height: 1px;
  margin: 0.75rem auto 1.6rem;
  background: var(--gold);
  opacity: 0.75;
}

.wishlist-modal-dialog h2 {
  max-width: 390px;
  margin: 0 auto 1.25rem;
  font-size: clamp(32px, 7vw, 42px);
  line-height: 1.08;
}

.wishlist-modal-intro {
  max-width: 430px;
  margin: 0 auto 1.75rem;
  font-size: 14px;
  line-height: 1.8;
}

.wishlist-modal-card {
  padding: 1.6rem;
  border: 1px solid rgba(201, 168, 76, 0.58);
  background: rgba(255, 255, 255, 0.18);
}

.wishlist-modal-card-copy {
  max-width: 380px;
  margin: 0.8rem auto 1.25rem;
  font-size: 14px;
  line-height: 1.7;
}

.wishlist-modal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid var(--maroon);
  color: var(--maroon);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, transform 0.25s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.wishlist-modal-button:hover,
.wishlist-modal-button:focus-visible {
  background: var(--maroon);
  color: var(--parchment);
  transform: translateY(-1px);
}

.wishlist-modal-note {
  max-width: 410px;
  margin: 1.4rem auto 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-light);
}

.wishlist-modal-thanks {
  margin: 1.4rem 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--ink-mid);
}

@media (max-width: 600px) {
  .wishlist-modal {
    align-items: end;
    padding:
      max(0.75rem, env(safe-area-inset-top))
      max(0.75rem, env(safe-area-inset-right))
      max(0.75rem, env(safe-area-inset-bottom))
      max(0.75rem, env(safe-area-inset-left));
  }

  .wishlist-modal-dialog {
    width: 100%;
    max-height: calc(100dvh - 1.5rem);
    padding:
      3.5rem
      clamp(1.15rem, 5vw, 1.6rem)
      max(1.6rem, env(safe-area-inset-bottom));
    transform: translateY(28px);
  }

  .wishlist-modal.open .wishlist-modal-dialog {
    transform: translateY(0);
  }

  .wishlist-modal-close {
    top: 0.7rem;
    right: 0.7rem;
  }

  .wishlist-modal-dialog h2 {
    max-width: 320px;
    margin-bottom: 1rem;
    font-size: clamp(30px, 9vw, 38px);
  }

  .wishlist-modal-intro {
    margin-bottom: 1.25rem;
    font-size: 15px;
    line-height: 1.65;
  }

  .wishlist-modal-card {
    padding: 1.25rem 1rem;
  }

  .wishlist-modal-card-copy {
    font-size: 15px;
    line-height: 1.6;
  }

  .wishlist-modal-button {
    width: 100%;
    padding: 13px 18px;
    font-size: 11px;
  }

  .wishlist-modal-note {
    margin-top: 1.15rem;
    font-size: 13px;
    line-height: 1.6;
  }
}

@media (max-width: 380px), (max-height: 680px) {
  .wishlist-modal-dialog {
    padding-top: 3rem;
  }

  .wishlist-modal-label {
    font-size: 9px;
  }

  .wishlist-modal-rule {
    margin-bottom: 1rem;
  }

  .wishlist-modal-dialog h2 {
    font-size: 29px;
  }

  .wishlist-modal-intro,
  .wishlist-modal-card-copy {
    font-size: 14px;
    line-height: 1.55;
  }

  .wishlist-modal-card {
    padding: 1rem 0.85rem;
  }

  .wishlist-modal-note,
  .wishlist-modal-thanks {
    margin-top: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wishlist-modal,
  .wishlist-modal-dialog {
    transition: none;
  }
}


/* ── Attire floral inspiration ── */
.attire-florals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.attire-floral-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  padding: 4px;
  border: 1px solid var(--gold-rgba);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.attire-floral-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.attire-floral-frame:hover img {
  transform: scale(1.025);
}

@media (max-width: 600px) {
  .attire-florals {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .attire-floral-frame {
    width: min(100%, 390px);
    margin: 0 auto;
    aspect-ratio: 4 / 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .attire-floral-frame img {
    transition: none;
  }
}


/* ── Clickable photo gallery and lightbox ── */
.gallery-cell {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.gallery-item {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
  filter: brightness(0.92);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gallery-lightbox.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 15, 12, 0.9);
  backdrop-filter: blur(6px);
}

.gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(94vw, 1200px);
  height: min(90vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.gallery-lightbox-dialog img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  animation: galleryImageIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes galleryImageIn {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}

.gallery-lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.gallery-lightbox-close span {
  position: absolute;
  top: 21px;
  left: 10px;
  width: 24px;
  height: 1px;
  background: var(--parchment);
}

.gallery-lightbox-close span:first-child {
  transform: rotate(45deg);
}

.gallery-lightbox-close span:last-child {
  transform: rotate(-45deg);
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 60px;
  transform: translateY(-50%);
  border: 1px solid rgba(247, 226, 197, 0.3);
  background: rgba(20, 15, 12, 0.34);
  color: var(--parchment);
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.gallery-lightbox-nav:hover,
.gallery-lightbox-nav:focus-visible {
  background: rgba(20, 15, 12, 0.7);
  border-color: var(--gold-rgba);
}

.gallery-lightbox-prev {
  left: -64px;
}

.gallery-lightbox-next {
  right: -64px;
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
  }

  .gallery-lightbox {
    padding:
      max(0.75rem, env(safe-area-inset-top))
      max(0.75rem, env(safe-area-inset-right))
      max(0.75rem, env(safe-area-inset-bottom))
      max(0.75rem, env(safe-area-inset-left));
  }

  .gallery-lightbox-dialog {
    width: 100%;
    height: calc(100dvh - 1.5rem);
  }

  .gallery-lightbox-dialog img {
    max-height: calc(100dvh - 5rem);
  }

  .gallery-lightbox-close {
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(20, 15, 12, 0.5);
  }

  .gallery-lightbox-nav {
    top: auto;
    bottom: 0.5rem;
    width: 52px;
    height: 48px;
    transform: none;
    background: rgba(20, 15, 12, 0.58);
  }

  .gallery-lightbox-prev {
    left: calc(50% - 60px);
  }

  .gallery-lightbox-next {
    right: calc(50% - 60px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-lightbox,
  .gallery-lightbox-dialog img,
  .gallery-item img {
    animation: none;
    transition: none;
  }
}


/* ── Mobile navigation interaction and spacing bug fix ── */
/*
  Keep the closed full-screen mobile menu from intercepting taps
  on the page underneath.
*/
.nav-overlay {
  pointer-events: none;
  visibility: hidden;
}

.nav-overlay.open {
  pointer-events: auto;
  visibility: visible;
}

@media (max-width: 600px) {
  .nav-overlay {
    justify-content: center;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding:
      max(4.75rem, env(safe-area-inset-top))
      max(1.25rem, env(safe-area-inset-right))
      max(2rem, env(safe-area-inset-bottom))
      max(1.25rem, env(safe-area-inset-left));
    gap: clamp(0.7rem, 2vh, 1.1rem);
  }

  /* Remove divider elements from the mobile layout.
     These were causing the excessive gap after Home. */
  .nav-overlay .overlay-gold-rule {
    display: none;
  }

  .nav-overlay a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 44px;
    padding: 0.2rem 1rem;
    line-height: 1;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-hamburger {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Ensure important portrait-mode controls remain tappable. */
  .registry-card a,
  .travel-card a,
  .gallery-item {
    position: relative;
    z-index: 3;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
}

@media (max-width: 380px), (max-height: 700px) {
  .nav-overlay {
    justify-content: flex-start;
    gap: 0.45rem;
    padding-top: max(4.25rem, env(safe-area-inset-top));
  }

  .nav-overlay a {
    min-height: 40px;
    font-size: 27px;
  }
}
