/* =========================================================
   CHRISTIAN ROYAL WEDDING
   MAIN FRONTEND STYLESHEET
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {

    --bg: #090a0c;

    --bg-soft: #111216;

    --bg-card: #17171b;

    --text: #f3f0eb;

    --text-muted: #a7a3a0;

    --border: rgba(184,149,90,.22);

    --gold: var(--accent-color, #b8955a);

    --gold-light: #d9bd88;

    --heading:
        var(--heading-font, "Bodoni Moda", serif);

    --body:
        var(--body-font, "DM Sans", sans-serif);

}


[data-theme="light"] {

    --bg: #f5f1ea;

    --bg-soft: #ece7de;

    --bg-card: #ffffff;

    --text: #171513;

    --text-muted: #726d67;

    --border: rgba(120,90,45,.2);

}


/* =========================================================
   RESET
========================================================= */

* {

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    margin: 0;

    padding: 0;

    background: var(--bg);

    color: var(--text);

    font-family: var(--body);

    font-size: 14px;

    line-height: 1.7;

    overflow-x: hidden;

}


body.no-scroll {

    overflow: hidden;

}


img {

    max-width: 100%;

}


a {

    color: inherit;

    text-decoration: none;

}


button,
input,
textarea,
select {

    font: inherit;

}


button {

    cursor: pointer;

}


/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4 {

    font-family: var(--heading);

    font-weight: 500;

}


.section {

    padding:
        120px
        max(6vw, 24px);

}


.section-heading {

    max-width: 720px;

    margin:
        0 auto
        70px;

    text-align: center;

}


.section-label,
.eyebrow {

    display: block;

    color: var(--gold);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 5px;

    text-transform: uppercase;

}


.section-heading h2 {

    margin:
        18px 0 15px;

    font-size:
        clamp(42px, 5vw, 72px);

    line-height: 1.1;

}


.section-heading p {

    max-width: 550px;

    margin: auto;

    color: var(--text-muted);

}


/* =========================================================
   BUTTON
========================================================= */

.btn-gold {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 48px;

    padding:
        13px
        30px;

    border:
        1px solid var(--gold);

    border-radius: 999px;

    background: transparent;

    color: var(--text);

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 2px;

    transition:
        .35s ease;

}


.btn-gold:hover {

    background: var(--gold);

    color: #111;

    transform: translateY(-2px);

}


/* =========================================================
   WELCOME HERO
========================================================= */

.welcome-screen {

    position: fixed;

    inset: 0;

    z-index: 9999;

    width: 100%;

    height: 100vh;

    min-height: 600px;

    display: flex;

    align-items: center;

    overflow: hidden;

}


.welcome-background {

    position: absolute;

    inset: 0;

}


.welcome-image {

    position: absolute;

    inset: 0;

    background-size: cover;

    background-position: center;

    transform: scale(1.04);

    animation:
        heroZoom
        15s ease-in-out infinite alternate;

}


.welcome-video {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.welcome-overlay {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            90deg,
            rgba(4,5,7,.92) 0%,
            rgba(4,5,7,.65) 40%,
            rgba(4,5,7,.18) 100%
        );

}


.welcome-content {

    position: relative;

    z-index: 3;

    width: min(760px, 90%);

    margin-left: 10%;

}


.welcome-content h1 {

    display: flex;

    flex-direction: column;

    margin:
        25px 0;

    font-size:
        clamp(60px, 7vw, 110px);

    line-height: .9;

    letter-spacing: -2px;

}


.welcome-content h1 em {

    margin:
        10px 0;

    color: var(--gold);

    font-size: .65em;

    font-style: normal;

}


.hero-divider {

    width: 100px;

    height: 1px;

    margin:
        30px 0;

    background:
        var(--gold);

}


.hero-date {

    color: var(--text-muted);

    font-size: 11px;

    letter-spacing: 4px;

    text-transform: uppercase;

}


.guest-name-box {

    margin:
        35px 0;

}


.guest-name-box small {

    display: block;

    margin-bottom: 5px;

    color: var(--text-muted);

    letter-spacing: 2px;

}


.guest-name-box strong {

    font-family: var(--heading);

    font-size: 25px;

    font-weight: 500;

}


.hero-button {

    margin-top: 10px;

}


@keyframes heroZoom {

    from {

        transform: scale(1.02);

    }

    to {

        transform: scale(1.12);

    }

}


/* =========================================================
   NAVIGATION
========================================================= */

.topnav {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    z-index: 1000;

    padding: 18px 30px;

    opacity: 0;

    visibility: hidden;

    transform: translateY(-20px);

    transition: .5s ease;

}


.topnav.active {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}


.topnav.scrolled {

    background:
        rgba(9,10,12,.88);

    backdrop-filter:
        blur(15px);

    border-bottom:
        1px solid var(--border);

}


.nav-inner {

    width: min(1200px, 100%);

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.nav-links {

    display: flex;

    gap: 24px;

}


.nav-links a {

    color: var(--text-muted);

    font-size: 8px;

    letter-spacing: 2px;

    transition: .3s;

}


.nav-links a:hover {

    color: var(--gold);

}


.nav-tools {

    display: flex;

    align-items: center;

    gap: 8px;

}


.nav-icon {

    width: 32px;

    height: 32px;

    border: 0;

    background: transparent;

    color: var(--gold);

    font-size: 11px;

}


/* =========================================================
   INTRO
========================================================= */

.intro-section {

    background:
        var(--bg-soft);

}


.intro-grid {

    width: min(1200px, 100%);

    margin: auto;

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 100px;

    align-items: center;

}


.intro-text {

    padding-right: 50px;

}


.intro-description {

    margin-top: 25px;

    max-width: 520px;

    color: var(--text-muted);

    line-height: 2;

}


.verse-card {

    padding:
        50px;

    border:
        1px solid var(--border);

    text-align: center;

}


.cross {

    margin-bottom: 25px;

    color: var(--gold);

    font-size: 28px;

}


.verse-card blockquote {

    margin: 0;

    font-family: var(--heading);

    font-size:
        clamp(20px, 2vw, 30px);

    line-height: 1.6;

}


.verse-card cite {

    display: block;

    margin-top: 25px;

    color: var(--gold);

    font-size: 10px;

    font-style: normal;

}


/* =========================================================
   COUPLE
========================================================= */

.couple-section {

    background: var(--bg-card);

}


.couple-grid {

    width: min(1100px, 100%);

    margin: auto;

    display: grid;

    grid-template-columns:
        1fr
        160px
        1fr;

    align-items: center;

    gap: 50px;

}


.person-card {

    text-align: center;

}


.person-image-frame {

    width: min(100%, 350px);

    aspect-ratio: 4 / 5;

    margin: auto;

    padding: 6px;

    border:
        1px solid var(--border);

    border-radius:
        180px 180px 0 0;

    overflow: hidden;

}


.person-image-frame img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    border-radius:
        175px 175px 0 0;

    transition: 1s ease;

}


.person-card:hover img {

    transform: scale(1.05);

}


.person-info {

    margin-top: 25px;

}


.person-info h2 {

    margin: 0 0 10px;

    font-size: 30px;

}


.person-info p {

    margin: 0 0 5px;

    color: var(--gold);

    font-size: 8px;

    letter-spacing: 3px;

}


.person-info strong {

    font-size: 9px;

    letter-spacing: 1px;

}


.couple-monogram {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;

    font-family: var(--heading);

    font-size: 42px;

    color: var(--gold);

}


.couple-monogram em {

    font-size: 22px;

    font-style: normal;

}


/* =========================================================
   EVENT
========================================================= */

.event-section {

    background: var(--bg);

}


.event-grid {

    width: min(1000px, 100%);

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    border:
        1px solid var(--border);

}


.event-card {

    display: flex;

    gap: 25px;

    padding: 45px;

}


.event-card + .event-card {

    border-left:
        1px solid var(--border);

}


.event-icon {

    color: var(--gold);

    font-size: 25px;

}


.event-type {

    margin: 0 0 15px;

    color: var(--gold);

    font-size: 9px;

    letter-spacing: 3px;

}


.event-date {

    margin: 0;

    font-family: var(--heading);

    font-size: 17px;

}


.event-time {

    margin: 3px 0 18px;

    color: var(--text-muted);

}


.event-content h3 {

    margin: 0 0 5px;

    font-size: 17px;

}


.event-address {

    color: var(--text-muted);

    font-size: 11px;

}


.event-map {

    display: inline-block;

    margin-top: 15px;

    color: var(--gold);

    font-size: 9px;

    letter-spacing: 2px;

}


.calendar-wrap {

    margin-top: 40px;

    text-align: center;

}


/* =========================================================
   COUNTDOWN
========================================================= */

.countdown-section {

    background: var(--bg-soft);

}


.countdown {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    width: min(700px, 100%);

    margin: auto;

}


.countdown-item {

    padding: 25px;

    text-align: center;

    border:
        1px solid var(--border);

}


.countdown-item + .countdown-item {

    border-left: 0;

}


.countdown-item b {

    display: block;

    font-family: var(--heading);

    font-size:
        clamp(35px, 5vw, 58px);

    font-weight: 400;

    color: var(--gold);

}


.countdown-item span {

    display: block;

    margin-top: 5px;

    font-size: 8px;

    letter-spacing: 2px;

    text-transform: uppercase;

}


/* =========================================================
   STORY
========================================================= */

.story-section {

    background: var(--bg-card);

}


.story-timeline {

    position: relative;

    width: min(1000px, 100%);

    margin: auto;

}


.story-timeline::before {

    content: "";

    position: absolute;

    top: 0;

    bottom: 0;

    left: 50%;

    width: 1px;

    background: var(--border);

}


.story-item {

    position: relative;

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 70px;

    margin-bottom: 90px;

}


.story-item.reverse .story-content {

    order: 2;

}


.story-item.reverse .story-image {

    order: 1;

}


.story-dot {

    position: absolute;

    top: 20px;

    left: 50%;

    width: 12px;

    height: 12px;

    border-radius: 50%;

    background: var(--gold);

    transform:
        translateX(-50%);

}


.story-date {

    color: var(--gold);

    font-size: 10px;

    letter-spacing: 3px;

}


.story-content h3 {

    font-size: 30px;

    margin: 10px 0;

}


.story-content p {

    color: var(--text-muted);

}


.story-image img {

    width: 100%;

    aspect-ratio: 4/3;

    object-fit: cover;

}


/* =========================================================
   VIDEO
========================================================= */

.video-section {

    min-height: 500px;

    display: grid;

    place-items: center;

    text-align: center;

    background:

        linear-gradient(
            rgba(0,0,0,.5),
            rgba(0,0,0,.7)
        ),

        url("../images/cover.jpg")
        center / cover;

}


.video-content {

    max-width: 600px;

}


.video-content h2 {

    font-size:
        clamp(40px, 5vw, 70px);

    margin: 20px 0;

}


/* =========================================================
   GALLERY
========================================================= */

.gallery-section {

    background: var(--bg);

}


.gallery-container {

    width: min(1400px, 100%);

    margin: auto;

}


.gallery-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    grid-auto-rows: 260px;

    gap: 12px;

}


.gallery-item {

    position: relative;

    overflow: hidden;

    background: #111;

    cursor: pointer;

}


.gallery-item:nth-child(1) {

    grid-column: span 2;

    grid-row: span 2;

}


.gallery-item:nth-child(4) {

    grid-row: span 2;

}


.gallery-item:nth-child(6) {

    grid-column: span 2;

}


.gallery-item:nth-child(9) {

    grid-column: span 2;

    grid-row: span 2;

}


.gallery-item img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform .8s ease,
        filter .5s ease;

}


.gallery-item:hover img {

    transform: scale(1.08);

    filter: brightness(.65);

}


.gallery-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    padding: 20px;

    opacity: 0;

    background:

        linear-gradient(
            to top,
            rgba(0,0,0,.7),
            transparent 60%
        );

    transition: .4s;

}


.gallery-item:hover .gallery-overlay {

    opacity: 1;

}


.gallery-number {

    color: white;

    font-family: var(--heading);

    font-size: 20px;

}


.gallery-zoom {

    display: grid;

    place-items: center;

    width: 40px;

    height: 40px;

    border-radius: 50%;

    background: var(--gold);

    color: #111;

    font-size: 24px;

}


.gallery-action {

    margin-top: 50px;

    text-align: center;

}


/* =========================================================
   GIFT
========================================================= */

.gift-section {

    background: var(--bg-soft);

}


.gift-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 20px;

    width: min(900px, 100%);

    margin: auto;

}


.gift-card {

    padding: 45px 30px;

    border:
        1px solid var(--border);

    text-align: center;

}


.gift-icon {

    margin-bottom: 20px;

    color: var(--gold);

    font-size: 30px;

}


.gift-card h3 {

    margin: 0;

}


.gift-number {

    font-family: var(--heading);

    font-size: 22px;

}


.copy-button {

    margin-top: 15px;

    padding: 10px 20px;

    border:
        1px solid var(--border);

    background: transparent;

    color: var(--gold);

    font-size: 9px;

    letter-spacing: 2px;

}


/* =========================================================
   RSVP
========================================================= */

.rsvp-section {

    background: var(--bg);

}


.rsvp-form {

    width: min(520px, 100%);

    margin: auto;

}


.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {

    width: 100%;

    margin-bottom: 12px;

    padding: 15px;

    border:
        1px solid var(--border);

    background: var(--bg-card);

    color: var(--text);

    outline: none;

}


.rsvp-form textarea {

    min-height: 130px;

    resize: vertical;

}


.rsvp-form .btn-gold {

    width: 100%;

}


#rsvpStatus {

    text-align: center;

    color: var(--gold);

}


/* =========================================================
   COMMENTS
========================================================= */

.comments-section {

    background: var(--bg-soft);

}


.comment-list {

    width: min(700px, 100%);

    margin: auto;

}


.comment-item {

    margin-bottom: 15px;

    padding: 25px;

    border-left:
        2px solid var(--gold);

    background: var(--bg-card);

}


.comment-item strong {

    display: block;

    margin-bottom: 5px;

}


.comment-item p {

    margin: 0;

    color: var(--text-muted);

}


.comments-action {

    margin-top: 35px;

    text-align: center;

}


/* =========================================================
   CLOSING
========================================================= */

.closing-section {

    position: relative;

    min-height: 700px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    text-align: center;

}


.closing-background {

    position: absolute;

    inset: 0;

    background-size: cover;

    background-position: center;

    transform: scale(1.04);

}


.closing-overlay {

    position: absolute;

    inset: 0;

    background:
        rgba(0,0,0,.78);

}


.closing-content {

    position: relative;

    z-index: 2;

    width: min(850px, 90%);

}


.closing-content blockquote {

    margin: 0;

    font-family: var(--heading);

    font-size:
        clamp(25px, 4vw, 48px);

    line-height: 1.5;

}


.closing-content cite {

    display: block;

    margin-top: 25px;

    color: var(--gold);

    font-size: 10px;

    font-style: normal;

}


.closing-names {

    margin-top: 60px;

}


.closing-names h2 {

    display: inline;

    margin: 0;

    font-size:
        clamp(35px, 5vw, 65px);

}


.closing-names span {

    margin: 0 15px;

    color: var(--gold);

    font-family: var(--heading);

    font-size: 30px;

}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

    padding: 25px;

    background: #111216;

    text-align: center;

}


.site-footer p {

    margin: 0;

    color: var(--text-muted);

    font-size: 8px;

    letter-spacing: 1px;

}


/* =========================================================
   VIDEO MODAL
========================================================= */

.video-modal {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: none;

    align-items: center;

    justify-content: center;

}


.video-modal.active {

    display: flex;

}


.video-modal-overlay {

    position: absolute;

    inset: 0;

    background:
        rgba(0,0,0,.92);

}


.video-modal-content {

    position: relative;

    z-index: 2;

    width: min(1000px, 90vw);

}


.video-close {

    position: absolute;

    top: -50px;

    right: 0;

    border: 0;

    background: transparent;

    color: white;

    font-size: 40px;

}


.video-modal iframe,
.video-modal video {

    width: 100%;

    aspect-ratio: 16 / 9;

}


/* =========================================================
   GALLERY LIGHTBOX
========================================================= */

.gallery-lightbox {

    position: fixed;

    inset: 0;

    z-index: 999999;

    display: none;

    align-items: center;

    justify-content: center;

}


.gallery-lightbox.active {

    display: flex;

}


.lightbox-backdrop {

    position: absolute;

    inset: 0;

    background:
        rgba(0,0,0,.96);

    backdrop-filter:
        blur(10px);

}


.lightbox-container {

    position: relative;

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        90px
        100px
        140px;

}


.lightbox-image-wrapper {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 100%;

}


.lightbox-image-wrapper img {

    max-width: 100%;

    max-height: 100%;

    object-fit: contain;

    opacity: 0;

    transform: scale(.97);

    transition: .4s ease;

}


.lightbox-image-wrapper img.loaded {

    opacity: 1;

    transform: scale(1);

}


.lightbox-loader {

    position: absolute;

    width: 45px;

    height: 45px;

    border-radius: 50%;

    border:
        2px solid rgba(255,255,255,.15);

    border-top-color: var(--gold);

    opacity: 0;

}


.lightbox-loader.active {

    opacity: 1;

    animation:
        gallerySpin
        1s linear infinite;

}


@keyframes gallerySpin {

    to {

        transform:
            rotate(360deg);

    }

}


.lightbox-close {

    position: absolute;

    top: 25px;

    right: 30px;

    z-index: 5;

    width: 50px;

    height: 50px;

    border:
        1px solid rgba(255,255,255,.2);

    border-radius: 50%;

    background: transparent;

    color: white;

    font-size: 30px;

}


.lightbox-nav {

    position: absolute;

    top: 50%;

    z-index: 5;

    width: 60px;

    height: 60px;

    border:
        1px solid rgba(255,255,255,.2);

    border-radius: 50%;

    background:
        rgba(0,0,0,.2);

    color: white;

    font-family: serif;

    font-size: 50px;

    line-height: 1;

}


.lightbox-prev {

    left: 25px;

}


.lightbox-next {

    right: 25px;

}


.lightbox-footer {

    position: absolute;

    bottom: 70px;

    left: 0;

    right: 0;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 25px;

}


.gallery-counter {

    color: white;

    font-size: 10px;

    letter-spacing: 3px;

}


.slideshow-btn {

    padding:
        10px
        20px;

    border:
        1px solid rgba(255,255,255,.25);

    background: transparent;

    color: white;

    font-size: 9px;

    letter-spacing: 2px;

}


.lightbox-thumbnails {

    position: absolute;

    left: 50%;

    bottom: 15px;

    display: flex;

    gap: 8px;

    max-width: 90vw;

    overflow-x: auto;

    padding: 5px;

    transform:
        translateX(-50%);

}


.lightbox-thumbnails::-webkit-scrollbar {

    display: none;

}


.lightbox-thumb {

    flex: 0 0 auto;

    width: 55px;

    height: 55px;

    padding: 0;

    border:
        2px solid transparent;

    background: transparent;

    opacity: .5;

}


.lightbox-thumb.active {

    border-color: var(--gold);

    opacity: 1;

}


.lightbox-thumb img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


/* =========================================================
   SCROLL ANIMATION
========================================================= */

.reveal {

    opacity: 1;

    transform: none;

}


html.js .reveal {

    opacity: 0;

    transform:
        translateY(25px);

    transition:
        opacity .8s ease,
        transform .8s ease;

}


html.js .reveal.visible {

    opacity: 1;

    transform:
        translateY(0);

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {


    .section {

        padding:
            90px
            5vw;

    }


    .intro-grid {

        gap: 50px;

    }


    .couple-grid {

        grid-template-columns:
            1fr
            100px
            1fr;

        gap: 30px;

    }


    .gallery-grid {

        grid-template-columns:
            repeat(3, 1fr);

        grid-auto-rows: 220px;

    }


    .gallery-item:nth-child(9) {

        grid-row: auto;

    }


}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {


    body {

        font-size: 13px;

    }


    .section {

        padding:
            80px
            20px;

    }


    /* HERO */

    .welcome-content {

        width: 85%;

        margin-left: 8%;

    }


    .welcome-overlay {

        background:

            linear-gradient(
                180deg,
                rgba(4,5,7,.55),
                rgba(4,5,7,.85)
            );

    }


    .welcome-content h1 {

        font-size:
            clamp(55px, 16vw, 85px);

    }


    /* NAV */

    .topnav {

        padding:
            12px
            15px;

    }


    .nav-links {

        gap: 12px;

        max-width: 70vw;

        overflow-x: auto;

    }


    .nav-links a {

        white-space: nowrap;

        font-size: 7px;

    }


    /* INTRO */

    .intro-grid {

        grid-template-columns: 1fr;

        gap: 40px;

    }


    .intro-text {

        padding: 0;

    }


    .verse-card {

        padding: 35px 25px;

    }


    /* COUPLE */

    .couple-grid {

        grid-template-columns: 1fr;

        gap: 45px;

    }


    .couple-monogram {

        flex-direction: row;

        order: 2;

    }


    .person-card:first-child {

        order: 1;

    }


    .person-card:last-child {

        order: 3;

    }


    .person-image-frame {

        width: min(280px, 100%);

    }


    /* EVENT */

    .event-grid {

        grid-template-columns: 1fr;

    }


    .event-card {

        padding: 30px 25px;

    }


    .event-card + .event-card {

        border-left: 0;

        border-top:
            1px solid var(--border);

    }


    /* COUNTDOWN */

    .countdown {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .countdown-item:nth-child(3) {

        border-left:
            1px solid var(--border);

    }


    .countdown-item:nth-child(odd) {

        border-left:
            1px solid var(--border);

    }


    .countdown-item {

        border-bottom: 0;

    }


    /* STORY */

    .story-timeline::before {

        left: 10px;

    }


    .story-item {

        grid-template-columns: 1fr;

        gap: 25px;

        padding-left: 35px;

    }


    .story-dot {

        left: 10px;

    }


    .story-item.reverse .story-content,

    .story-item.reverse .story-image {

        order: initial;

    }


    /* GALLERY */

    .gallery-grid {

        grid-template-columns:
            repeat(2, 1fr);

        grid-auto-rows: 170px;

        gap: 7px;

    }


    .gallery-item:nth-child(n) {

        grid-column: auto;

        grid-row: auto;

    }


    .gallery-item:nth-child(1) {

        grid-column: span 2;

        grid-row: span 2;

    }


    .gallery-item:nth-child(4) {

        grid-row: span 2;

    }


    .gallery-item:nth-child(6) {

        grid-column: span 2;

    }


    .gallery-overlay {

        padding: 10px;

        opacity: 1;

    }


    .gallery-zoom {

        width: 30px;

        height: 30px;

        font-size: 18px;

    }


    /* LIGHTBOX */

    .lightbox-container {

        padding:
            70px
            12px
            130px;

    }


    .lightbox-close {

        top: 12px;

        right: 12px;

        width: 42px;

        height: 42px;

    }


    .lightbox-nav {

        width: 42px;

        height: 42px;

        font-size: 35px;

        background:
            rgba(0,0,0,.55);

    }


    .lightbox-prev {

        left: 5px;

    }


    .lightbox-next {

        right: 5px;

    }


    .lightbox-footer {

        bottom: 70px;

        gap: 12px;

    }


    .lightbox-thumbnails {

        width: 100%;

        max-width: 100%;

        justify-content: flex-start;

        bottom: 5px;

    }


    .lightbox-thumb {

        width: 45px;

        height: 45px;

    }


    /* CLOSING */

    .closing-section {

        min-height: 600px;

    }


    .closing-names h2 {

        display: block;

    }


    .closing-names span {

        display: block;

        margin: 10px 0;

    }


}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {


    .welcome-content h1 {

        font-size: 54px;

    }


    .section-heading h2 {

        font-size: 40px;

    }


    .countdown-item {

        padding: 18px 8px;

    }


    .countdown-item b {

        font-size: 38px;

    }


}

/* =====================================================
   INVITATION OPEN STATE
===================================================== */

.welcome-screen {
    transition:
        opacity .8s ease,
        visibility .8s ease,
        transform .8s ease;
}

.welcome-screen.welcome-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.02);
}


/* =====================================================
   TOP NAVIGATION
===================================================== */

.topnav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px);
    transition:
        opacity .5s ease,
        transform .5s ease,
        visibility .5s ease;
}

.topnav.nav-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}


/* =====================================================
   NAV BRAND
===================================================== */

.nav-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.nav-brand-initial {
    font-family: var(--heading-font);
    font-size: 20px;
}

.nav-brand-divider {
    opacity: .6;
    font-size: 13px;
}


/* =====================================================
   MOBILE MENU BUTTON
===================================================== */

.nav-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-menu-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    margin: 5px auto;
    background: currentColor;
    transition: .3s ease;
}

.nav-menu-toggle.active span:nth-child(1) {
    transform:
        translateY(6px)
        rotate(45deg);
}

.nav-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-menu-toggle.active span:nth-child(3) {
    transform:
        translateY(-6px)
        rotate(-45deg);
}


/* =====================================================
   MOBILE BOTTOM NAV
===================================================== */

.mobile-nav {
    display: none;
}


/* =====================================================
   NAV ACTIVE
===================================================== */

.nav-links a.active {
    color: var(--accent-color);
}

.mobile-nav-link.active {
    color: var(--accent-color);
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {


    .topnav {

        left: 12px;
        right: 12px;
        width: auto;

    }


    .nav-inner {

        min-height: 60px;

    }


    .nav-links {

        display: none;

    }


    .nav-menu-toggle {

        display: block;

    }


    .topnav.mobile-menu-open .nav-links {

        display: flex;

        position: absolute;

        top: calc(100% + 10px);

        left: 0;

        right: 0;

        flex-direction: column;

        padding: 15px;

        border-radius: 16px;

        background: var(--nav-background, rgba(15,15,15,.96));

        backdrop-filter: blur(15px);

        box-shadow:
            0 15px 50px rgba(0,0,0,.25);

    }


    .topnav.mobile-menu-open .nav-links a {

        padding: 12px 8px;

    }


    /* Bottom navigation */

    .mobile-nav {

        display: block;

        position: fixed;

        z-index: 9998;

        left: 10px;

        right: 10px;

        bottom: calc(10px + env(safe-area-inset-bottom));

        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transform: translateY(30px);

        transition: .4s ease;

    }


    .mobile-nav.mobile-nav-visible {

        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform: translateY(0);

    }


    .mobile-nav-inner {

        display: flex;

        justify-content: space-around;

        align-items: center;

        min-height: 64px;

        padding: 5px;

        border-radius: 20px;

        background: rgba(20,20,20,.94);

        backdrop-filter: blur(20px);

        box-shadow:
            0 10px 35px rgba(0,0,0,.25);

    }


    .mobile-nav-link {

        display: flex;

        flex: 1;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 3px;

        color: inherit;

        text-decoration: none;

        opacity: .65;

    }


    .mobile-nav-link span {

        font-size: 17px;

        line-height: 1;

    }


    .mobile-nav-link small {

        font-size: 8px;

        letter-spacing: .5px;

    }


    .mobile-nav-link.active {

        opacity: 1;

        color: var(--accent-color);

    }


    body.invitation-opened {

        padding-bottom: 90px;

    }


    .guest-name-box {

        margin:
            18px auto
            20px;

    }


    .guest-name-box strong {

        font-size: 18px;

    }


}