/* ================================================
   Wedding Photo Booth ("Fotoautomat") — Standard Wedding Theme
   A vintage photo booth: the guest taps the brass slot and a black-and-white
   strip of the couple prints out and develops.
   Palette: paper ivory · brass gold · ink
   Fonts:   Great Vibes (names, section titles) + Cormorant Garamond
            (display serif, numerals) + Jost (body, engraved labels)
            + Caveat (handwriting on the strips)
   Style:   The booth hero (closed → printing → settled strip beside the
            "save the date"); the story as strips printed over the years, the
            gallery as a contact sheet, wishes on the backs of strips; the brass
            plate as the closing bookend with the couple's names engraved on it.
   ================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --brass:       #a8854a;
    --brass-deep:  #6b5328;
    --ink:         #2e2a26;
    --text:        #57514a;
    --muted:       #8c8579;
    --paper:       #f4efe6;
    --paper-shade: #ebe4d8;
    --print:       #fbfaf7;   /* the photo paper of the strip */
    --film:        #1d1a17;   /* the contact sheet's film */
    --film-print:  #c9963f;   /* frame numbers printed on the film's edge */
    --pen:         #2f3e5c;   /* blue ballpoint on the strips */
    --white:       #ffffff;
    --border:      rgba(46, 42, 38, .11);
    --accent-color: #a8854a;
    --radius:      14px;
    --btn-radius:  50px;

    --ff-script:  'Great Vibes', 'Snell Roundhand', cursive;
    --ff-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --ff-body:    'Jost', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --ff-hand:    'Caveat', 'Segoe Print', 'Bradley Hand', cursive;

    --card-shadow: 0 1px 2px rgba(46, 42, 38, .04), 0 12px 30px rgba(46, 42, 38, .07);

    /* the strip's photos before / after they develop */
    --pb-raw: grayscale(1) brightness(2.3) contrast(.35) blur(1.5px);
    --pb-developed: grayscale(1) contrast(1.08) brightness(1.03) blur(0);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-body);
    color: var(--text);
    background: var(--paper);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-color); }

/* ── Containers ─────────────────────────────── */
.pb-container     { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.pb-container--sm { max-width: 680px; }

/* Alternating section backgrounds, computed from what actually renders. */
.pb-alt-sections > * { background: var(--white); }
.pb-alt-sections > *:nth-child(even) { background: var(--paper); }

/* Shared section components only get a class hook from this theme — give them a
   consistent vertical rhythm. Scoped with .pb-alt-sections so it beats a
   same-specificity rule the component pushes after this stylesheet loads. */
.pb-alt-sections .pb-countdown,
.pb-alt-sections .pb-story,
.pb-alt-sections .pb-party,
.pb-alt-sections .pb-gallery,
.pb-alt-sections .pb-program,
.pb-alt-sections .pb-dress-code,
.pb-alt-sections .pb-good-to-know,
.pb-alt-sections .pb-location,
.pb-alt-sections .pb-accommodation,
.pb-alt-sections .pb-gallery-upload,
.pb-alt-sections .pb-wishes,
.pb-alt-sections .pb-album,
.pb-alt-sections .pb-closing,
.pb-alt-sections .pb-rsvp {
    padding: 4.75rem 1rem;
}

/* ── Section helpers ─────────────────────────── */
.pb-eyebrow {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: .35rem;
}

.pb-section-title {
    position: relative;
    font-family: var(--ff-script);
    font-weight: 400;
    font-size: clamp(2.6rem, 8vw, 3.4rem);
    line-height: 1.15;
    color: var(--ink);
    text-align: center;
    padding-bottom: 1.1rem;
    margin-bottom: 1.4rem;
}

/* One hairline with a small gold point under every title. */
.pb-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 84px;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--brass) 30%, var(--brass) 70%, transparent);
}

.pb-section-title::before {
    content: '';
    position: absolute;
    bottom: -2.5px;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: var(--brass);
    z-index: 1;
}

/* ── Floating topbar ─────────────────────────── */
.pb-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding: .85rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: background .3s ease, backdrop-filter .3s ease;
}

/* The hero carries the names in big script; the brand only appears once the
   topbar has a ground of its own. */
.pb-topbar__brand {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
    opacity: 0;
    transition: opacity .3s ease;
}

/* On a phone the topbar stays bare (just the menu button); the ground and the
   names only come in from tablet width up. */
@media (min-width: 601px) {
    .pb-topbar.scrolled {
        background: color-mix(in srgb, var(--paper) 92%, transparent);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 1px 0 var(--border);
    }
    .pb-topbar.scrolled .pb-topbar__brand { opacity: 1; }
}

.pb-topbar__links {
    display: flex;
    gap: 1.6rem;
    margin-left: auto;
}

.pb-topbar__links a {
    position: relative;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink);
    padding-bottom: .2rem;
}

.pb-topbar__links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s ease;
}
.pb-topbar__links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.pb-topbar__toggle { display: none; }

@media (max-width: 600px) {
    .pb-topbar__toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 2.4rem;
        height: 2.4rem;
        border: 0;
        border-radius: 999px;
        background: color-mix(in srgb, var(--white) 78%, transparent);
        box-shadow: 0 2px 10px rgba(46, 42, 38, .12);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        cursor: pointer;
        margin-left: auto;
    }
    .pb-topbar__toggle span {
        display: block;
        width: 17px;
        height: 1.6px;
        margin: 0 auto;
        background: var(--ink);
        border-radius: 2px;
        transition: transform .25s ease, opacity .2s ease;
    }
    .pb-topbar__toggle.is-active span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
    .pb-topbar__toggle.is-active span:nth-child(2) { opacity: 0; }
    .pb-topbar__toggle.is-active span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

    .pb-topbar__links {
        position: absolute;
        top: calc(100% + .5rem);
        right: 1.1rem;
        left: 1.1rem;
        flex-direction: column;
        gap: 0;
        background: var(--white);
        border-radius: 14px;
        box-shadow: var(--card-shadow);
        padding: .35rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .pb-topbar__links.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .pb-topbar__links a {
        color: var(--ink);
        padding: .7rem .85rem;
        border-radius: 10px;
    }
    .pb-topbar__links a:hover { background: var(--paper); }
    .pb-topbar__links a::after { display: none; }
}

/* Demo-only Basic/Standard switch + close + cart — shared look from
   layouts/theme.blade.php, just positioned here. */
.dpb-switch, .dpb-fab { position: fixed; bottom: 1rem; z-index: 9999; }
.dpb-fab { right: 1rem; }
.dpb-close { right: 4rem; }
.dpb-switch {
    left: 1rem;
    display: flex;
    align-items: center;
    height: 2.5rem;
    padding: 0 .25rem;
}
.dpb-switch a {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 .9rem;
    font-size: 12px;
}


/* ================================================
   HERO — the booth
   The stage is a 9:16 box (container query units for everything inside);
   on a phone it is the full width, on wider screens a centred column at
   viewport height on the same paper (the flash sits on the hero, outside
   the stage, so it lights the whole screen). Positions are measured against
   plate.webp: plate at x 6 / y 36 cqw, 88 cqw wide (41.2 cqw tall), so its
   slot's centre line sits at y 61.2 cqw.

   States (body classes, set by app.js; the inline script in the hero adds
   the first one before paint):
     default ............................ settled: strip left, date right
     .pb-has-envelope:not(.pb-opened) ... closed booth, strip inside the slot
     .pb-printing:not(.pb-opened) ....... flash ×3, strip feeds out, develops
     .pb-opened ......................... settles (transitions back to default)
   ================================================ */
.pb-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100svh;
    background: var(--paper);
    overflow: hidden;
}

/* The stage is its own isolated group (container-type implies layout
   containment), so it carries the paper too: the plate's white ground
   multiplies against it. */
.pb-hero__stage {
    position: relative;
    width: min(100%, calc(100svh * 9 / 16));
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    background: var(--paper);
    container-type: inline-size;
    outline: none;
}
.pb-hero__stage:focus-visible { outline: 2px solid var(--brass); outline-offset: -8px; }
.pb-has-envelope:not(.pb-opened) .pb-hero__stage { cursor: pointer; }

.pb-hero__head {
    position: absolute;
    z-index: 4;
    left: 4%;
    right: 4%;
    top: 8cqw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.6cqw;
    text-align: center;
}

.pb-hero__eyebrow {
    font-size: max(.62rem, 2.8cqw);
    font-weight: 500;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--muted);
}

.pb-hero__names {
    font-family: var(--ff-script);
    font-weight: 400;
    font-size: 13cqw;
    line-height: 1.05;
    color: var(--ink);
    white-space: nowrap;
}
.pb-hero__names--long { font-size: 10cqw; }

.pb-hero__amp {
    font-size: .78em;
    color: var(--brass);
    margin: 0 .04em;
}

.pb-hero__head > * { animation: pb-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.pb-hero__head > :nth-child(2) { animation-delay: .15s; }

/* ── the brass plate ── */
.pb-booth {
    position: absolute;
    z-index: 2;
    left: 6cqw;
    top: 36cqw;
    width: 88cqw;
    mix-blend-mode: multiply;
    opacity: 0;
    transform: translateY(-12cqw) scale(.9);
    transition: opacity .8s ease, transform .9s cubic-bezier(.6, 0, .4, 1);
    pointer-events: none;
}
.pb-booth__plate { width: 100%; }

/* engraved into the brass above the slot */
.pb-booth__label {
    position: absolute;
    left: 0;
    right: 0;
    top: 27%;
    padding-left: .5em;
    text-align: center;
    font-size: 3cqw;
    font-weight: 500;
    letter-spacing: .5em;
    text-transform: uppercase;
    color: var(--brass-deep);
    text-shadow: 0 .15cqw 0 rgba(255, 244, 214, .75);
    opacity: .85;
}

.pb-hero__hint,
.pb-hero__count {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--ff-display);
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0;
    pointer-events: none;
}
.pb-hero__hint { top: 84cqw; font-size: 3.6cqw; transition: opacity .3s ease; }
.pb-hero__count { top: 31cqw; font-size: 4cqw; font-variant-numeric: lining-nums; }

/* ── the strip ── */
.pb-feed {
    position: absolute;
    z-index: 3;
    left: 21cqw;
    top: 61.2cqw;
    width: 58cqw;
    height: 116cqw;
    padding: 0 3cqw;
    overflow: hidden;
    transform-origin: 50% 0;
    transform: translate(-19cqw, -8cqw) rotate(-4deg) scale(.7);
    transition: transform 1.1s cubic-bezier(.5, 0, .25, 1);
}

/* the dark of the slot falling on the paper as it comes out */
.pb-feed::before {
    content: '';
    position: absolute;
    z-index: 1;
    left: 3cqw;
    right: 3cqw;
    top: 0;
    height: 4.5cqw;
    background: linear-gradient(rgba(30, 20, 10, .55), rgba(30, 20, 10, 0));
    opacity: 0;
    transition: opacity .6s ease;
}

.pb-strip {
    margin: 0;
    display: grid;
    gap: 1.8cqw;
    padding: 2.2cqw 2.2cqw 0;
    background: var(--print);
    box-shadow: 0 1.4cqw 3cqw rgba(40, 30, 20, .28), 0 0 0 .3cqw rgba(0, 0, 0, .03);
}
.pb-strip__photo {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    filter: var(--pb-developed);
}
.pb-strip__caption {
    padding: .4cqw 0 1.8cqw;
    text-align: center;
    font-family: var(--ff-script);
    font-size: 4.6cqw;
    color: var(--muted);
    font-variant-numeric: lining-nums;
}

/* ── the "save the date" beside the settled strip ── */
.pb-hero__std {
    position: absolute;
    z-index: 3;
    left: 58cqw;
    right: 3cqw;
    top: 68cqw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3cqw;
    animation: pb-write 1.1s .2s ease both;
}
.pb-hero__std-title {
    font-family: var(--ff-script);
    font-size: 11.5cqw;
    line-height: .95;
    color: var(--ink);
}
.pb-hero__rule {
    display: block;
    width: 12cqw;
    height: 1px;
    background: var(--brass);
}
.pb-hero__date {
    font-family: var(--ff-display);
    font-size: 6cqw;
    font-weight: 500;
    letter-spacing: .08em;
    white-space: nowrap;
    color: var(--ink);
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
}
.pb-hero__when {
    font-size: max(.6rem, 2.9cqw);
    font-weight: 500;
    letter-spacing: .24em;
    line-height: 1.7;
    text-transform: uppercase;
    color: var(--muted);
    font-variant-numeric: lining-nums;
}

.pb-hero__more {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 7cqw;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6cqw;
    font-size: max(.6rem, 2.7cqw);
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--muted);
    animation: pb-fade .9s .9s ease both;
}
.pb-hero__more:hover { color: var(--ink); }
.pb-hero__more svg { width: max(1rem, 5cqw); height: max(1rem, 5cqw); animation: pb-bob 2.4s ease-in-out infinite; }

.pb-hero__flash {
    position: absolute;
    z-index: 6;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
}

/* ── closed: the booth waits ── */
.pb-has-envelope:not(.pb-opened) .pb-booth { opacity: 1; transform: none; }
.pb-has-envelope:not(.pb-opened) .pb-feed { transform: none; }
.pb-has-envelope:not(.pb-opened) .pb-feed::before { opacity: 1; }
.pb-has-envelope:not(.pb-opened) .pb-strip { transform: translateY(-101%); }
.pb-has-envelope:not(.pb-opened) .pb-strip__photo { filter: var(--pb-raw); }
.pb-has-envelope:not(.pb-opened) .pb-hero__std,
.pb-has-envelope:not(.pb-opened) .pb-hero__more { opacity: 0; animation: none; pointer-events: none; }
.pb-has-envelope:not(.pb-printing):not(.pb-opened) .pb-hero__hint {
    opacity: 1;
    animation: pb-pulse 2.4s ease-in-out infinite;
}

/* The topbar and its menu wait for the strip. */
.pb-topbar { transition: background .3s ease, backdrop-filter .3s ease, opacity .6s ease; }
.pb-has-envelope:not(.pb-opened) .pb-topbar { opacity: 0; pointer-events: none; }

/* ── printing ── */
.pb-printing:not(.pb-opened) .pb-hero__flash {
    animation: pb-flash .5s .15s ease-out, pb-flash .5s .95s ease-out, pb-flash .5s 1.75s ease-out;
}
.pb-printing:not(.pb-opened) .pb-hero__count { animation: pb-count 2.4s .1s steps(1) both; }
.pb-printing:not(.pb-opened) .pb-hero__count::after { content: ''; animation: pb-count-text 2.4s .1s steps(1) both; }
.pb-printing:not(.pb-opened) .pb-strip { animation: pb-feed 2.6s 2.5s cubic-bezier(.45, .05, .4, 1) both; }
.pb-printing:not(.pb-opened) .pb-strip__photo { animation: pb-develop 2.8s 3.7s ease both; }
.pb-printing:not(.pb-opened) .pb-strip__photo:nth-child(2) { animation-delay: 4.1s; }
.pb-printing:not(.pb-opened) .pb-strip__photo:nth-child(3) { animation-delay: 4.5s; }

/* ── settled (also the page with JS off) ── */
.pb-opened .pb-hero__std { animation-delay: .6s; }
.pb-opened .pb-hero__more { animation-delay: 1.4s; }

@keyframes pb-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pb-write {
    from { opacity: 0; filter: blur(6px); transform: translateY(2cqw); }
    to   { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes pb-fade { from { opacity: 0; } }
@keyframes pb-pulse { 50% { opacity: .45; } }
@keyframes pb-bob { 50% { transform: translateY(.25rem); } }
@keyframes pb-flash { 0% { opacity: .95; } 100% { opacity: 0; } }
@keyframes pb-count { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pb-count-text { 0% { content: '1 / 3'; } 33% { content: '2 / 3'; } 66% { content: '3 / 3'; } 100% { content: ''; } }
@keyframes pb-feed { from { transform: translateY(-101%); } to { transform: translateY(0); } }
@keyframes pb-develop { from { filter: var(--pb-raw); } to { filter: var(--pb-developed); } }

/* ── Note / message ─────────────────────────── */
.pb-note {
    background: var(--white);
    padding: 1.5rem 1rem 4.5rem;
    text-align: center;
}
.pb-note__text {
    font-family: var(--ff-display);
    font-size: 1.35rem;
    font-style: italic;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.6;
    max-width: 32rem;
    margin: 0 auto;
}
.pb-note__sig {
    margin-top: 1rem;
    font-family: var(--ff-script);
    font-size: 1.9rem;
    color: var(--ink);
}

/* ── Countdown ─────────────────────────────── */
.pb-countdown { text-align: center; }
.pb-countdown__timer {
    display: flex;
    justify-content: center;
    gap: .9rem;
}
.pb-countdown__unit {
    flex: 0 1 5.4rem;
    min-width: 0;
    padding: 1rem .6rem .9rem;
    background: var(--white);
}
.pb-countdown__number {
    display: block;
    font-family: var(--ff-display);
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--ink);
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}
.pb-countdown__label {
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── Day plan: centred stack, one icon per stop ── */
.pb-program { text-align: center; }
.pb-plan {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.4rem;
}
.pb-plan__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 26rem;
}
/* A short hairline joins one stop to the next. */
.pb-plan__item + .pb-plan__item::before {
    content: '';
    display: block;
    width: 1px;
    height: 1.4rem;
    margin: -1.6rem auto 1.2rem;
    background: color-mix(in srgb, var(--brass) 60%, transparent);
}
.pb-plan__icon {
    width: 2.6rem;
    height: 2.6rem;
    color: var(--accent-color);
    margin-bottom: .6rem;
}
.pb-plan__label {
    font-family: var(--ff-display);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
}
.pb-plan__time {
    margin-top: .2rem;
    font-family: var(--ff-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--ink);
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}
.pb-plan__loc { font-size: .9rem; color: var(--muted); }
.pb-plan__loc a { margin-left: .35rem; font-weight: 600; }

/* ── Map ───────────────────────────────────── */
.pb-location { text-align: center; }
.pb-location__address { color: var(--text); margin-bottom: 1.25rem; }
.pb-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
}
.pb-map iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ── Album / closing ───────────────────────── */
.pb-album { text-align: center; }
.pb-album__sub { color: var(--muted); margin-bottom: 1.5rem; }
.pb-closing { text-align: center; }
.pb-closing__text {
    font-family: var(--ff-display);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--ink);
}

/* ── Buttons ───────────────────────────────── */
.pb-btn {
    display: inline-block;
    background: var(--accent-color);
    color: #fff !important;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    padding: .95rem 2.4rem;
    border-radius: var(--btn-radius);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-color) 30%, transparent);
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.pb-btn:hover {
    background: color-mix(in srgb, var(--accent-color) 82%, #000);
    transform: translateY(-2px);
    text-decoration: none;
}
.pb-btn--ghost {
    background: transparent;
    color: var(--ink) !important;
    border: 1px solid color-mix(in srgb, var(--brass) 70%, transparent);
    box-shadow: none;
}
.pb-btn--ghost:hover { background: var(--white); }

/* ── Footer: the brass plate closes the page, names engraved ── */
.pb-footer {
    position: relative;
    background: var(--paper);
    text-align: center;
    padding-top: 3rem;
}
/* the plate's white ground multiplies into the paper (the wrapper is the
   blended group, container-type isolates what's inside it) */
.pb-footer__plate {
    position: relative;
    width: min(82%, 380px);
    margin: 0 auto;
    mix-blend-mode: multiply;
    container-type: inline-size;
}
.pb-footer__names {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 19%;
    font-family: var(--ff-script);
    font-size: 10cqw;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--brass-deep);
    text-shadow: 0 .3cqw 0 rgba(255, 244, 214, .7);
}
.pb-footer__amp { font-size: .8em; }
.pb-footer__body {
    padding: 1rem 1.25rem 3.5rem;
}
.pb-footer__date {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    color: var(--ink);
    font-variant-numeric: lining-nums;
}
.pb-footer__signoff {
    margin-top: .5rem;
    font-size: .88rem;
    color: var(--muted);
}
.pb-footer__cal {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.6rem;
}
.pb-footer__cal-icon { width: 1.05rem; height: 1.05rem; }

/* ── Our story: strips the booth printed over the years ──
   Each milestone's photo is a black-and-white print on strip paper, its
   caption handwritten on the paper's foot, laid alternately left and right
   of the milestone's text and tilted like a strip dropped on a table. */
.pb-story { text-align: center; }
.pb-story__intro {
    max-width: 34rem;
    margin: 0 auto 2.5rem;
    color: var(--text);
}
.pb-story__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3.25rem;
    max-width: 36rem;
    margin: 0 auto;
}
.pb-story__item {
    display: grid;
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    align-items: center;
    gap: 1.6rem;
    text-align: left;
}
.pb-story__item:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 38%); }
.pb-story__item:nth-child(even) .pb-story__strip { order: 2; }
.pb-story__item--text,
.pb-story__item--text:nth-child(even) {
    grid-template-columns: 1fr;
    text-align: center;
}

.pb-story__strip {
    margin: 0;
    padding: .45rem .45rem 0;
    background: var(--print);
    box-shadow: 0 1px 2px rgba(46, 42, 38, .08), 0 14px 30px rgba(46, 42, 38, .18);
    transform: rotate(-3deg);
}
.pb-story__item:nth-child(even) .pb-story__strip { transform: rotate(2.5deg); }
.pb-story__strip img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: grayscale(1) contrast(1.06);
}
.pb-story__note {
    padding: .35rem .2rem .55rem;
    font-family: var(--ff-hand);
    font-size: 1.15rem;
    line-height: 1.15;
    text-align: center;
    color: var(--pen);
}

.pb-story__period {
    display: block;
    font-family: var(--ff-script);
    font-size: 2rem;
    line-height: 1.1;
    color: var(--brass);
}
.pb-story__title {
    font-family: var(--ff-display);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
    margin: .2rem 0 .45rem;
}
.pb-story__desc { color: var(--text); font-size: .95rem; }

@media (max-width: 480px) {
    .pb-story__item { gap: 1.1rem; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
    .pb-story__item:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 42%); }
    .pb-story__period { font-size: 1.7rem; }
    .pb-story__title { font-size: 1.3rem; }
    .pb-story__desc { font-size: .88rem; }
}

/* ── Wedding party: place cards without the card ── */
.pb-party { text-align: center; }
.pb-party__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem 3rem;
}
.pb-party__member {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 10rem;
}
.pb-party__role {
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--accent-color);
}
.pb-party__name {
    font-family: var(--ff-display);
    font-size: 1.8rem;
    line-height: 1.25;
    color: var(--ink);
}

/* ── Well wishes: written on the back of booth strips ──
   Tall photo paper with the booth's name printed faintly across its back
   (the li's data-backprint, laid in by ::before), the wish in pen. */
.pb-wishes { text-align: center; }
.pb-wishes__row {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem;
    padding-top: .5rem;
}
.pb-wish {
    position: relative;
    flex: 0 1 13.5rem;
    min-height: 21rem;
    padding: 1.6rem 1.25rem 1.3rem;
    text-align: left;
    background: var(--print);
    box-shadow: 0 1px 2px rgba(46, 42, 38, .06), 0 12px 26px rgba(46, 42, 38, .12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.pb-wish:nth-child(odd) { transform: rotate(-1.4deg); }
.pb-wish:nth-child(even) { transform: rotate(1.1deg); translate: 0 .6rem; }
.pb-wish::before {
    content: attr(data-backprint);
    position: absolute;
    inset: -.4rem;
    padding: .2rem;
    font-size: .52rem;
    font-weight: 500;
    letter-spacing: .32em;
    line-height: 2.3;
    word-break: break-all;
    color: rgba(46, 42, 38, .07);
    pointer-events: none;
}
.pb-wish__text,
.pb-wish__sign { position: relative; }
.pb-wish__text {
    flex: 1;
    font-family: var(--ff-hand);
    font-size: 1.45rem;
    line-height: 1.3;
    color: var(--pen);
}
.pb-wish__sign {
    margin-top: 1rem;
    align-self: flex-end;
    font-family: var(--ff-hand);
    font-size: 1.35rem;
    line-height: 1.1;
    color: var(--pen);
}
.pb-wish__sign::before { content: '\2014\00a0'; }

/* On a phone the strips become a swipeable row (scroll-snap, no JS). */
@media (max-width: 640px) {
    .pb-wishes__row {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin: 0 -1.25rem;
        padding: .75rem 1.25rem 1.75rem;
        scrollbar-width: none;
    }
    .pb-wishes__row::-webkit-scrollbar { display: none; }
    .pb-wishes__row--single { justify-content: center; }
    .pb-wish {
        flex: 0 0 66%;
        scroll-snap-align: center;
    }
}

/* ── Gallery: the couple's photos on a contact sheet ──
   The shared <x-gallery-grid> (its lightbox included) on a strip of dark
   film: landscape frames, black and white until hovered, each with its frame
   number printed on the film's edge. The lightbox shows them in colour. */
.pb-gallery .gg-grid {
    counter-reset: pb-frame;
    grid-template-columns: repeat(3, 1fr);
    gap: .45rem .4rem;
    padding: .7rem .6rem .35rem;
    background: var(--film);
    box-shadow: 0 1px 2px rgba(46, 42, 38, .1), 0 16px 34px rgba(46, 42, 38, .18);
}
.pb-gallery .gg-item-wrap {
    counter-increment: pb-frame;
    aspect-ratio: 3 / 2.45;
}
/* the shared tile is width: 100% + 1:1; let the insets size it instead */
.pb-gallery .gg-item-wrap .gg-item { inset: 0 0 1.15rem; width: auto; height: auto; aspect-ratio: auto; }
.pb-gallery .gg-item-wrap::after {
    content: counter(pb-frame) '\00a0\00a0\25B8\00a0\00a0' counter(pb-frame) 'A';
    position: absolute;
    left: .1rem;
    bottom: .2rem;
    font-size: .58rem;
    font-weight: 500;
    letter-spacing: .14em;
    color: var(--film-print);
    font-variant-numeric: tabular-nums;
}
.pb-gallery .gg-item {
    border-radius: 0;
    background: color-mix(in srgb, var(--paper) 10%, var(--film));
}
.pb-gallery .gg-item img { filter: grayscale(1) contrast(1.06); transition: opacity .3s ease, transform .35s ease, filter .4s ease; }
.pb-gallery .gg-item:hover img,
.pb-gallery .gg-item:focus-visible img { filter: none; transform: scale(1.04); }
.pb-gallery .gg-item::after { display: none; }

@media (max-width: 640px) {
    .pb-gallery .gg-grid { gap: .35rem .3rem; padding: .5rem .4rem .25rem; }
    .pb-gallery .gg-item-wrap .gg-item { inset: 0 0 .95rem; }
    .pb-gallery .gg-item-wrap::after { font-size: .48rem; letter-spacing: .08em; }
}

/* ── RSVP ──────────────────────────────────── */
.pb-rsvp { text-align: center; }
.pb-rsvp .pb-form {
    text-align: left;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    box-shadow: var(--card-shadow);
}
.pb-rsvp .form__group label {
    font-weight: 600;
    color: var(--ink);
}
.pb-rsvp .form__group input,
.pb-rsvp .form__group select,
.pb-rsvp .form__group textarea {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--paper);
}
.pb-rsvp .form__group input:focus,
.pb-rsvp .form__group select:focus,
.pb-rsvp .form__group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color) 18%, transparent);
    background: var(--white);
}
.pb-rsvp .pb-summary-card {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--paper);
}
.pb-rsvp .pb-badge {
    border-radius: 50px;
    background: color-mix(in srgb, var(--accent-color) 14%, var(--white));
    color: var(--ink);
    font-weight: 600;
}

/* ── Guest gallery ─────────────────────────── */
.pb-gallery-upload { text-align: center; }
.pb-gallery-upload .gu-desc {
    text-align: center;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}
.pb-gallery-upload .gu-view-all { margin-left: auto; margin-right: auto; width: fit-content; }

/* ── Booth scroll lock (app.js) ── */
body.pb-scroll-lock {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .pb-hero__head > *,
    .pb-hero__hint,
    .pb-hero__std,
    .pb-hero__more,
    .pb-hero__more svg { animation: none; }
    .pb-feed, .pb-booth { transition: none; }
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 640px) {
    .pb-alt-sections .pb-countdown,
    .pb-alt-sections .pb-story,
    .pb-alt-sections .pb-party,
    .pb-alt-sections .pb-gallery,
    .pb-alt-sections .pb-program,
    .pb-alt-sections .pb-dress-code,
    .pb-alt-sections .pb-good-to-know,
    .pb-alt-sections .pb-location,
    .pb-alt-sections .pb-accommodation,
    .pb-alt-sections .pb-gallery-upload,
    .pb-alt-sections .pb-wishes,
    .pb-alt-sections .pb-album,
    .pb-alt-sections .pb-closing,
    .pb-alt-sections .pb-rsvp {
        padding: 3.5rem 1rem;
    }
    .pb-countdown__timer { gap: .55rem; }
    .pb-countdown__number { font-size: 1.85rem; }
    .pb-countdown__label { font-size: .58rem; letter-spacing: .12em; }
}
