/* ═══════════════════════════════════════════════════════════════
   Caroline & Matthew — Wedding Website
   Design: Bridgerton / Regency Era Aesthetic
   Palette: Cream, Ivory, Ink Black, Muted Gold, Dusty Rose
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ──────────────────────────────── */
:root {
    --cream: #f5f0e8;
    --cream-light: #faf7f2;
    --cream-dark: #ebe5d9;
    --ink: #2c2c2c;
    --ink-light: #4a4a4a;
    --ink-faint: #8a8578;
    --gold: #b8976a;
    --gold-light: #d4bc8e;
    --gold-dark: #9a7b50;
    --rose: #c9a6a0;
    --rose-light: #e0ccc8;
    --white: #fefdfb;

    --font-script: 'Playfair Display', Georgia, serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;

    --max-width: 1100px;
    --section-padding: 100px 24px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── Reset & Base ───────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--cream);
    overflow-x: hidden;
}

body.locked {
    overflow: hidden;
}

a {
    color: var(--gold-dark);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    display: block;
}

/* ─── Utility ────────────────────────────────────────────── */
.amp {
    font-family: var(--font-script);
    font-size: 1.1em;
    color: var(--gold);
    margin: 0 0.15em;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   PASSWORD GATE
   ═══════════════════════════════════════════════════════════════ */
.password-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.password-gate.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.gate-content {
    text-align: center;
    padding: 40px;
    max-width: 460px;
    width: 100%;
}

.gate-ornament {
    margin-bottom: 24px;
}

.gate-illustration {
    width: 120px;
    height: auto;
    opacity: 0.6;
    margin: 0 auto;
}

.gate-title {
    font-family: var(--font-script);
    font-size: 3rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.gate-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink-faint);
    margin-bottom: 32px;
    font-style: italic;
    letter-spacing: 0.5px;
}

.gate-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-wrapper {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 360px;
    border: 1.5px solid var(--ink-faint);
    border-radius: 0;
    overflow: hidden;
    transition: border-color var(--transition);
}

.input-wrapper:focus-within {
    border-color: var(--gold);
}

.gate-input {
    flex: 1;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: transparent;
    border: none;
    outline: none;
    letter-spacing: 2px;
}

.gate-input::placeholder {
    color: var(--ink-faint);
    font-style: italic;
    letter-spacing: 1px;
}

.gate-button {
    padding: 14px 28px;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--ink);
    color: var(--cream);
    border: none;
    cursor: pointer;
    transition: background var(--transition);
}

.gate-button:hover {
    background: var(--gold-dark);
}

.gate-error {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--rose);
    font-style: italic;
    min-height: 1.4em;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(245, 240, 232, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(44, 44, 44, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform: translateY(0);
    box-shadow: 0 2px 20px rgba(44, 44, 44, 0.06);
}

.main-nav.visible {
    transform: translateY(0);
    box-shadow: 0 2px 20px rgba(44, 44, 44, 0.06);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--ink);
}

.nav-brand:hover {
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    font-family: var(--font-serif);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ink-light);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    position: relative;
    background: var(--cream);
}

/* Ornamental Frame */
.ornamental-frame {
    position: relative;
    padding: 60px 50px;
    max-width: 700px;
    width: 100%;
}

.corner {
    position: absolute;
    width: 80px;
    height: 80px;
    color: var(--ink);
    opacity: 0.6;
}

.corner-tl {
    top: 0;
    left: 0;
}

.corner-tr {
    top: 0;
    right: 0;
}

.corner-bl {
    bottom: 0;
    left: 0;
}

.corner-br {
    bottom: 0;
    right: 0;
}

.border-top,
.border-bottom {
    position: absolute;
    left: 80px;
    right: 80px;
    height: 0;
}

.border-top {
    top: 12px;
    border-top: 1.5px solid var(--ink);
    opacity: 0.35;
}

.border-top::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    border-top: 0.8px solid var(--ink);
    opacity: 0.5;
}

.border-bottom {
    bottom: 12px;
    border-top: 1.5px solid var(--ink);
    opacity: 0.35;
}

.border-bottom::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    border-top: 0.8px solid var(--ink);
    opacity: 0.5;
}

.border-left,
.border-right {
    position: absolute;
    top: 80px;
    bottom: 80px;
    width: 0;
}

.border-left {
    left: 12px;
    border-left: 1.5px solid var(--ink);
    opacity: 0.35;
}

.border-left::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    border-left: 0.8px solid var(--ink);
    opacity: 0.5;
}

.border-right {
    right: 12px;
    border-left: 1.5px solid var(--ink);
    opacity: 0.35;
}

.border-right::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 0;
    bottom: 0;
    border-left: 0.8px solid var(--ink);
    opacity: 0.5;
}

/* Hero content */
.hero-content {
    text-align: center;
}

.hero-chandelier {
    margin: 0 auto 30px;
    width: 220px;
    color: var(--ink);
    opacity: 0.65;
    animation: gentle-sway 6s ease-in-out infinite;
}

/* Hero ampersand (plain, not gold) */
.hero-amp {
    font-family: var(--font-script);
    font-size: 0.6em;
    color: var(--ink);
    margin: 0 0.15em;
    vertical-align: middle;
}

@keyframes gentle-sway {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(0.5deg);
    }

    75% {
        transform: rotate(-0.5deg);
    }
}

.hero-prelude {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 16px;
}

.hero-names {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 4.5rem;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 20px;
}

.hero-names .name {
    display: inline;
}

.hero-names .amp {
    font-size: 0.7em;
    margin: 0 0.1em;
    vertical-align: middle;
}

.hero-invite {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 28px;
}

.hero-date {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--ink);
    margin-bottom: 6px;
}

.hero-year {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 6px;
}

.hero-venue {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 40px;
}

/* Countdown */
.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
}

.countdown-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-top: 6px;
}

.countdown-divider {
    font-size: 1.5rem;
    color: var(--gold);
    margin-top: -16px;
}

/* Scroll cue */
.scroll-cue {
    position: absolute;
    bottom: 30px;
    color: var(--ink-faint);
    animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

.scroll-cue:hover {
    color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════
   SHARED SECTION STYLES
   ═══════════════════════════════════════════════════════════════ */
.section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

/* Page sections (non-home pages) need top padding for fixed nav */
.page-section {
    padding-top: 140px;
    min-height: calc(100vh - 120px);
}

.section:nth-child(even) {
    background: var(--cream-light);
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-script);
    font-size: 3rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 40px;
}

/* Jazzclub background illustrations */
.section-bg-img {
    position: absolute;
    width: 200px;
    height: auto;
    object-fit: contain;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
}

.section-bg-left {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.section-bg-right {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Hero background images — larger */
.hero-bg-img {
    position: absolute;
    width: 280px;
    height: auto;
    object-fit: contain;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-left {
    left: 30px;
    bottom: 60px;
}

.hero-bg-right {
    right: 30px;
    bottom: 60px;
    transform: scaleX(-1);
}

/* Footer background image */
.footer-bg-img {
    position: absolute;
    width: 120px;
    height: auto;
    object-fit: contain;
    opacity: 0.12;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}

.section-ornament {
    width: 200px;
    margin: 0 auto 20px;
    color: var(--ink-faint);
    opacity: 0.5;
}

.section-ornament-bottom {
    margin: 30px auto 0;
}

/* Elegant button */
.elegant-button {
    display: inline-block;
    padding: 14px 40px;
    font-family: var(--font-serif);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ink);
    border: 1.5px solid var(--ink);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.elegant-button:hover {
    background: var(--ink);
    color: var(--cream);
}

/* ═══════════════════════════════════════════════════════════════
   OUR STORY
   ═══════════════════════════════════════════════════════════════ */
.story-content {
    max-width: 650px;
    margin: 0 auto;
}

.story-content p {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--ink-light);
    margin-bottom: 20px;
}

.story-content p:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════
   EVENT DETAILS
   ═══════════════════════════════════════════════════════════════ */
.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 50px 0 40px;
}

.event-card {
    padding: 50px 36px;
    background: var(--cream);
    border: 1px solid rgba(44, 44, 44, 0.1);
    position: relative;
}

.event-card::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 0.8px solid rgba(44, 44, 44, 0.08);
    pointer-events: none;
}

.event-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
    color: var(--ink);
    opacity: 0.55;
}

.event-card-title {
    font-family: var(--font-script);
    font-size: 2rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 12px;
}

.event-time {
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: italic;
    color: var(--ink-faint);
    margin-bottom: 20px;
}

.event-divider {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 20px;
}

.event-venue-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.event-address {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink-faint);
    line-height: 1.7;
}

.event-note {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--ink-faint);
    margin-top: 12px;
    line-height: 1.7;
}

.map-link {
    margin-top: 10px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   TRAVEL & ACCOMMODATIONS
   ═══════════════════════════════════════════════════════════════ */
.travel-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
    text-align: left;
}

.travel-card {
    padding: 40px 36px;
    background: var(--cream-light);
    border: 1px solid rgba(44, 44, 44, 0.08);
}

.travel-card h3 {
    font-family: var(--font-script);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 16px;
}

.travel-card p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink-light);
    margin-bottom: 12px;
    line-height: 1.7;
}

.hotel-list {
    margin-top: 20px;
}

.hotel {
    padding: 16px 0;
    border-top: 1px solid rgba(44, 44, 44, 0.08);
}

.hotel h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.hotel p {
    font-size: 0.9rem;
    color: var(--ink-faint);
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════
   REGISTRY
   ═══════════════════════════════════════════════════════════════ */
.registry-content {
    max-width: 600px;
    margin: 0 auto;
}

.registry-content p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--ink-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.registry-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.registry-button {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-serif);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink);
    border: 1.5px solid var(--ink);
    transition: all var(--transition);
}

.registry-button:hover {
    background: var(--ink);
    color: var(--cream);
}

/* ═══════════════════════════════════════════════════════════════
   RSVP
   ═══════════════════════════════════════════════════════════════ */
.rsvp-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: italic;
    color: var(--ink-faint);
    margin-bottom: 40px;
}

.rsvp-featured-img {
    max-width: 300px;
    margin: 0 auto;
}

.rsvp-illustration {
    width: 100%;
    height: auto;
    opacity: 0.7;
}

.rsvp-form {
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--cream-light);
    border: 1px solid rgba(44, 44, 44, 0.15);
    outline: none;
    transition: border-color var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--ink-faint);
    font-style: italic;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%234a4a4a' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 4px;
}

.radio-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    font-style: italic;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    color: var(--ink-light) !important;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
}

.rsvp-submit {
    display: block;
    width: 100%;
    margin-top: 8px;
    font-family: var(--font-serif);
}

.rsvp-confirmation {
    text-align: center;
    margin-top: 20px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: italic;
    color: var(--gold-dark);
    min-height: 1.4em;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
    padding: 60px 24px;
    text-align: center;
    background: var(--cream-dark);
    border-top: 1px solid rgba(44, 44, 44, 0.06);
    position: relative;
    overflow: hidden;
}

.footer-ornament {
    width: 200px;
    margin: 0 auto 24px;
    color: var(--ink-faint);
    opacity: 0.4;
}

.footer-names {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--ink);
    margin-bottom: 6px;
}

.footer-date {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 16px;
}

.footer-tagline {
    font-family: var(--font-script);
    font-size: 1.3rem;
    color: var(--ink-faint);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    :root {
        --section-padding: 70px 20px;
    }

    /* Show both accent images on mobile — one above, one below content */
    .hero-bg-img,
    .footer-bg-img {
        display: none;
    }

    .section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .section-bg-left,
    .section-bg-right {
        position: static;
        width: 130px;
        opacity: 0.2;
        transform: none;
    }

    .section-bg-left {
        order: 0;
        margin-bottom: 10px;
    }

    .section-inner {
        order: 1;
        width: 100%;
    }

    .section-bg-right {
        order: 2;
        margin-top: 20px;
    }

    /* Nav mobile */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(245, 240, 232, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        border-bottom: 1px solid rgba(44, 44, 44, 0.06);
    }

    .nav-links.open {
        max-height: 400px;
        padding: 16px 0;
    }

    .nav-links li {
        padding: 12px 0;
    }

    /* Hero */
    .hero-names {
        font-size: 3rem;
    }

    .hero-date {
        font-size: 2rem;
    }

    .page-section {
        padding-top: 100px;
    }

    /* Countdown */
    .countdown {
        gap: 12px;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .countdown-item {
        min-width: 48px;
    }

    /* Section */
    .section-title {
        font-size: 2.3rem;
    }

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

    /* Travel cards */
    .travel-cards {
        grid-template-columns: 1fr;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
        gap: 14px;
    }

    /* Gate */
    .gate-title {
        font-size: 2.2rem;
    }

    .gate-illustration {
        width: 90px;
    }
}

@media (max-width: 480px) {
    .hero-names {
        font-size: 2.4rem;
    }

    .hero-date {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .countdown-number {
        font-size: 1.3rem;
    }

    .page-section {
        padding-top: 90px;
        min-height: auto;
    }

    .registry-links {
        flex-direction: column;
        align-items: center;
    }

    .registry-button {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════════ */
.gallery-grid {
    column-count: 3;
    column-gap: 16px;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    line-height: 0;
}

.gallery-item img {
    width: 100%;
    display: block;
    border-radius: 6px;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

/* Loading state */
.gallery-loading {
    text-align: center;
    padding: 60px 20px;
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--ink-faint);
    font-style: italic;
}

/* ─── Lightbox ─────────────────────────────────────────── */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    cursor: zoom-out;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img-wrapper {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrapper img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #fff;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 3.5rem;
    cursor: pointer;
    z-index: 10001;
    padding: 10px;
    line-height: 1;
    transition: color 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #fff;
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

@media (max-width: 768px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 10px;
        padding: 0 10px;
    }

    .gallery-item {
        margin-bottom: 10px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 2.5rem;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        column-count: 1;
        max-width: 400px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════ */
@media print {

    .password-gate,
    .main-nav,
    .scroll-cue,
    .countdown,
    .rsvp-form {
        display: none !important;
    }

    .section {
        page-break-inside: avoid;
    }
}