@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Manrope:wght@300;400;500;600&display=swap');

:root {
    --beige-100: #f8f2ea;
    --beige-200: #efe5d8;
    --pink-100: #f2d7df;
    --pink-300: #dca5b8;
    --pink-500: #a94064;
    --gold-300: #c46f8f;
    --gold-500: #a94064;
    --ink-700: #3a2f2a;
    --ink-500: #57463f;
    --white: #ffffff;
    --shadow-soft: 0 24px 60px rgba(58, 47, 42, 0.12);
    --shadow-card: 0 16px 40px rgba(58, 47, 42, 0.12);
    --header-height: 8rem;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--ink-700);
    background-color: var(--beige-100);
    background-image:
        radial-gradient(circle at top, #fff7ef 0%, var(--beige-100) 40%, #f5e9e2 100%),
        radial-gradient(circle, rgba(196, 111, 143, 0.35) 1.6px, transparent 1.7px),
        radial-gradient(circle, rgba(196, 111, 143, 0.22) 1.2px, transparent 1.3px);
    background-size: cover, 32px 32px, 18px 18px;
    background-position: center, 0 0, 9px 7px;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(196, 111, 143, 0.32) 1.6px, transparent 1.7px),
        radial-gradient(circle, rgba(196, 111, 143, 0.22) 1.2px, transparent 1.3px);
    background-size: 32px 32px, 18px 18px;
    background-position: 0 0, 9px 7px;
    mix-blend-mode: multiply;
    opacity: 0.8;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.4rem 6vw;
    background: rgba(248, 242, 234, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(169, 64, 100, 0.35);
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -22px;
    height: 22px;
    background: linear-gradient(180deg, rgba(169, 64, 100, 0.22) 0%, rgba(169, 64, 100, 0) 100%);
    pointer-events: none;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.brand-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--gold-500);
}

.brand-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
}

.site-nav {
    display: flex;
    gap: 1.6rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
}

.site-nav .nav-link {
    position: relative;
    padding-bottom: 0.25rem;
}

.site-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gold-500);
    transition: width 0.3s ease;
}

.site-nav .nav-link:hover::after,
.site-nav .active::after {
    width: 100%;
}

.site-nav .active {
    color: var(--gold-500);
}

.cta-link {
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid var(--gold-500);
    color: var(--gold-500);
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-link:hover {
    background: var(--gold-500);
    color: var(--white);
}

.content {
    flex: 1;
    min-height: 0;
    padding: 0 6vw 0rem;
    position: relative;
    z-index: 1;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    --hero-vertical-gap: clamp(2rem, 4vh, 3.5rem);
    min-height: calc(100svh - var(--header-height));
    padding: var(--hero-vertical-gap) 0;
    align-items: stretch;
}

.hero-text {
    display: grid;
    align-content: center;
}

.hero-text h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    margin: 0.6rem 0 1rem;
}

.hero-text h1 {
    font-size: 3.5rem;
}

.hero-eyebrow {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.95rem;
    color: var(--gold-500);
    margin-bottom: -1rem !important;
}

.hero-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--ink-500);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    font-size: 0.95rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(120deg, var(--gold-300), var(--gold-500));
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--gold-500);
    color: var(--gold-500);
}

.btn-outline:hover {
    background: var(--gold-500);
    color: var(--white);
}

.hero-media {
    display: grid;
    gap: 1.6rem;
    min-height: 0;
}

.hero-photo {
    width: 100%;
    height: 100%;
    min-height: clamp(28rem, 62vh, 52rem);
    border-radius: 28px;
    background-image: url('couple-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(215, 135, 166, 0.2);
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1.8rem;
}

.hero-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(231, 183, 198, 0.6);
    display: grid;
    gap: 1.2rem;
    max-width: 320px;
    backdrop-filter: blur(6px);
}

.hero-date-value,
.hero-location-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
}

.hero-date-label,
.hero-location-label {
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.75rem;
    color: var(--gold-500);
}

.hero-note {
    background: var(--pink-100);
    padding: 1rem;
    border-radius: 16px;
    line-height: 1.6;
}

.hero-tagline {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
}

.hero-tagline-sub {
    margin: 0;
    color: var(--ink-500);
    line-height: 1.6;
}

.section {
    padding: 4rem 0 1rem;
}

.section-header {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 2rem;
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.85rem;
    color: var(--gold-500);
}

.section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0;
}

.info-grid,
.story-grid,
.upload-grid {
    display: grid;
    gap: 2rem;
}

.info-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-card {
    background: var(--white);
    padding: 1.6rem;
    border-radius: 20px;
    border: 1px solid rgba(231, 183, 198, 0.5);
    box-shadow: var(--shadow-card);
}

.link-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(58, 47, 42, 0.16);
}

.info-card h3 {
    margin-top: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
}

.info-meta {
    color: var(--gold-500);
    font-size: 0.9rem;
}

.contact-reveal {
    margin-top: 0.5rem;
    background: transparent;
    padding: 0.65rem 1.2rem;
    font-size: 0.82rem;
    letter-spacing: 0.05rem;
}

.contact-phone {
    font-weight: 600;
}

.story-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
}

.story-text p {
    line-height: 1.7;
    color: var(--ink-500);
}

.story-copy {
    max-width: 42rem;
    padding: 1.8rem 2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(231, 183, 198, 0.45);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(8px);
}

.story-copy p {
    margin: 0;
}

.story-copy p + p {
    margin-top: 1.1rem;
}

.story-timeline {
    position: relative;
    display: grid;
    gap: 2.4rem;
    padding: 0;
}

.story-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(169, 64, 100, 0.22);
    transform: translateX(-50%);
}

.story-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.story-timeline-item::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold-500);
    box-shadow: 0 0 0 6px rgba(169, 64, 100, 0.12);
    transform: translate(-50%, -50%);
    z-index: 1;
}

.story-timeline-item.is-reversed .story-timeline-media {
    order: 2;
}

.story-timeline-item.is-reversed .story-timeline-content {
    order: 1;
}

.story-timeline-media {
    position: relative;
    z-index: 1;
}

.story-photo {
    border-radius: 24px;
    min-height: 240px;
    background: linear-gradient(135deg, var(--beige-200), var(--pink-300));
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(231, 183, 198, 0.5);
}

.story-photo--first {
    background-image: url('timeline/1.jpeg');
    background-size: cover;
    background-position: center 18%;
    aspect-ratio: 3 / 4;
    min-height: 0;
    width: min(100%, 20rem);
    justify-self: center;
}

.story-photo--second {
    background-image: url('timeline/2.jpeg');
    background-size: cover;
    background-position: center 18%;
    aspect-ratio: 3 / 4;
    min-height: 0;
    width: min(100%, 20rem);
    justify-self: center;
}

.story-photo--third {
    background-image: url('timeline/3.jpeg');
    background-size: cover;
    background-position: center 18%;
    aspect-ratio: 3 / 4;
    min-height: 0;
    width: min(100%, 20rem);
    justify-self: center;
}

.story-timeline-content {
    background: var(--white);
    border-radius: 20px;
    padding: 1.6rem 1.8rem;
    border: 1px solid rgba(231, 183, 198, 0.5);
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.story-timeline-content h3 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
}

.story-timeline-content p {
    margin: 0;
    color: var(--ink-500);
    line-height: 1.6;
}

.story-timeline-date {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.75rem;
    color: var(--gold-500);
}

.timeline {
    margin-top: 1.8rem;
    display: grid;
    gap: 1rem;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem 1rem;
    background: var(--pink-100);
    border-radius: 12px;
}

.timeline-year {
    font-weight: 600;
    color: var(--gold-500);
    min-width: 3rem;
}

.photo-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.photo-card {
    margin: 0;
    background: var(--white);
    padding: 1rem;
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(231, 183, 198, 0.4);
}

.photo-placeholder {
    height: 180px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--beige-200), var(--pink-300));
    position: relative;
    overflow: hidden;
}

.photo-placeholder::after {
    content: "";
    position: absolute;
    inset: 20% 25%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
}

.photo-card figcaption {
    margin-top: 0.8rem;
    font-size: 0.95rem;
}

.upload-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
}

.cf-turnstile,
.g-recaptcha,
.upload-captcha{
    max-width: 100%;
    overflow: hidden;
}

.upload-card {
    background: var(--white);
    padding: 1.8rem;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(231, 183, 198, 0.45);
}

.upload-list {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0 0;
    display: grid;
    gap: 0.6rem;
}

.upload-list li {
    position: relative;
    padding-left: 1.6rem;
}

.upload-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--gold-500);
}

.upload-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(215, 135, 166, 0.3);
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 1.1rem;
}

.upload-coming-soon {
    min-height: 100%;
    padding: 2.4rem;
    border-radius: 24px;
    border: 1px solid rgba(215, 135, 166, 0.3);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 242, 234, 0.9)),
        radial-gradient(circle at top right, rgba(220, 165, 184, 0.3), transparent 42%);
    box-shadow: var(--shadow-card);
    display: grid;
    align-content: center;
    gap: 0.9rem;
    text-align: center;
}

.upload-coming-soon-eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.22rem;
    font-size: 0.8rem;
    color: var(--gold-500);
}

.upload-coming-soon h3 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3.4vw, 2.8rem);
}

.upload-coming-soon p:last-child {
    margin: 0;
    color: var(--ink-500);
    line-height: 1.7;
}

.field {
    display: grid;
    gap: 0.4rem;
    font-size: 0.95rem;
}

.field input,
.field textarea {
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(87, 70, 63, 0.2);
    font-family: inherit;
    font-size: 0.95rem;
    background: #fffdfa;
}

.file-field input {
    padding: 0.6rem;
    background: var(--beige-100);
}

.form-note {
    font-size: 0.85rem;
    color: var(--ink-500);
    margin: 0;
}

.upload-captcha {
    min-height: 65px;
}

.upload-submit {
    justify-self: start;
    cursor: pointer;
}

.upload-submit:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

.upload-submit-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upload-main-progress {
    flex: 1;
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.upload-main-progress-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-500);
    text-align: right;
}

.upload-message {
    margin: 0;
    color: var(--gold-500);
    font-weight: 600;
}

.upload-queue {
    display: grid;
    gap: 0.9rem;
    margin-top: 0.2rem;
}

.upload-row {
    display: grid;
    gap: 0.45rem;
    padding: 0.9rem;
    border-radius: 14px;
    background: #fffdfa;
    border: 1px solid rgba(87, 70, 63, 0.12);
}

.upload-row-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.upload-row-heading span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.upload-row p {
    margin: 0;
    color: var(--ink-500);
    font-size: 0.82rem;
}

.upload-progress {
    height: 0.55rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--beige-200);
}

.upload-progress span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, var(--gold-300), var(--gold-500));
    transition: width 0.2s ease;
}

.preview-shell {
    padding-bottom: 4rem;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

.preview-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 0.75rem;
    color: var(--ink-500);
    font-size: 0.92rem;
}

.preview-empty {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(231, 183, 198, 0.45);
    border-radius: 20px;
}

.preview-empty h3 {
    margin-top: 0;
    font-family: 'Cormorant Garamond', serif;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.preview-card {
    appearance: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(231, 183, 198, 0.45);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 0.8rem;
    padding: 0.9rem;
    text-align: left;
    cursor: pointer;
}

.preview-card:hover {
    transform: translateY(-2px);
}

.preview-media-frame {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(239, 229, 216, 0.8);
}

.preview-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-video-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        linear-gradient(145deg, rgba(220, 165, 184, 0.28), rgba(239, 229, 216, 0.92)),
        rgba(255, 255, 255, 0.5);
}

.preview-unsupported-placeholder {
    width: 100%;
    height: 100%;
    padding: 1rem;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.5rem;
    text-align: center;
    background:
        linear-gradient(145deg, rgba(87, 70, 63, 0.08), rgba(239, 229, 216, 0.95)),
        rgba(255, 255, 255, 0.5);
}

.preview-unsupported-extension {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold-500);
}

.preview-unsupported-text {
    font-size: 0.82rem;
    color: var(--ink-500);
}

.preview-video-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(58, 47, 42, 0.72);
    color: var(--white);
    font-size: 1.2rem;
    padding-left: 0.15rem;
}

.preview-badge {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(58, 47, 42, 0.78);
    color: var(--white);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.preview-card-name,
.preview-card-meta {
    display: block;
    overflow-wrap: anywhere;
}

.preview-card-name {
    font-weight: 600;
}

.preview-card-meta {
    color: var(--ink-500);
    font-size: 0.84rem;
}

.preview-load-more-row {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.preview-load-more {
    cursor: pointer;
}

.preview-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(58, 47, 42, 0.75);
    display: grid;
    place-items: center;
    padding: 2rem;
}

.preview-modal {
    width: min(1200px, 100%);
    max-height: calc(100vh - 4rem);
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.preview-modal-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.preview-modal-meta {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

.preview-modal-meta span {
    color: var(--ink-500);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.preview-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.preview-download {
    min-height: 2.75rem;
}

.preview-icon-button,
.preview-nav-button {
    border: none;
    background: rgba(169, 64, 100, 0.12);
    color: var(--gold-500);
    cursor: pointer;
}

.preview-icon-button {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    font-size: 1.2rem;
}

.preview-modal-body {
    min-height: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
}

.preview-nav-button {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    font-size: 2rem;
    flex-shrink: 0;
}

.preview-modal-media {
    min-height: 0;
    max-height: calc(100vh - 12rem);
    display: grid;
    place-items: center;
    background: rgba(248, 242, 234, 0.9);
    border-radius: 18px;
    overflow: hidden;
}

.preview-modal-asset {
    width: 100%;
    max-height: calc(100vh - 12rem);
    object-fit: contain;
    display: block;
}

.preview-modal-unsupported {
    min-height: 20rem;
    width: min(30rem, 100%);
    padding: 2rem;
    display: grid;
    place-items: center;
    gap: 0.8rem;
    text-align: center;
}

.preview-modal-unsupported strong {
    font-size: 2rem;
    color: var(--gold-500);
}

.preview-modal-unsupported span {
    color: var(--ink-500);
}

#blazor-error-ui {
    background: #b32121;
    color: var(--white);
}

@media (max-width: 1024px) {
    :root {
        --header-height: 11.5rem;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 3rem 0;
    }

    .story-grid,
    .upload-grid {
        grid-template-columns: 1fr;
    }

    .story-timeline::before {
        left: 16px;
        transform: translateX(-50%);
    }

    .story-timeline-item::before {
        left: 16px;
        transform: translate(-50%, -50%);
    }

    .story-timeline-item {
        grid-template-columns: 1fr;
        padding-left: 2.6rem;
    }

    .story-timeline-item.is-reversed .story-timeline-media,
    .story-timeline-item.is-reversed .story-timeline-content {
        order: initial;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .preview-header,
    .preview-modal-toolbar,
    .preview-modal-body {
        grid-template-columns: 1fr;
    }

    .preview-header,
    .preview-modal-toolbar {
        display: grid;
        align-items: start;
    }

    .preview-summary {
        justify-content: start;
    }

    .preview-modal-body {
        display: grid;
    }

    .preview-nav-button {
        width: 100%;
        border-radius: 14px;
    }
}

@media (max-width: 720px) {
    :root {
        --header-height: 13.5rem;
    }

    .hero-photo {
        min-height: 24rem;
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 0.8rem;
        font-size: 0.8rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .upload-submit {
        justify-self: stretch;
    }

    .cta-link {
        align-self: stretch;
        text-align: center;
    }

    .preview-grid {
        grid-template-columns: 1fr 1fr;
    }

    .preview-modal-backdrop {
        padding: 1rem;
    }

    .preview-modal {
        max-height: calc(100vh - 2rem);
    }

    .preview-grid,
    .preview-modal-actions {
        gap: 0.75rem;
    }
}
