/* === MOBILE OVERRIDES FOR WEDDING WEBSITE === */

body {
    max-width: 100vw;
    overflow-x: hidden;
}

html,
body {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: none;
    margin: 0;
    padding: 0;
}

html {
    padding-top: env(safe-area-inset-top);
}


.border,
.faq-border,
.rsvp-corner {
    display: none;
}

#timeline {
    background-size: 100% auto;
}

/* ===================== */
/*     HERO              */
/* ===================== */

.hero {
    position: relative;
    z-index: 0;
    min-height: 100vh;
    height: 100vh;
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
    overflow-x: hidden;
    padding-top: 0;
    padding-bottom: 0;}

.hero-inner {
    position: absolute;
    top: 15vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    text-align: center;
}

.hero-names-desktop {
    display: none;
}

.hero-names-mobile {
    display: block;
    width: 150vw;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
    opacity: 1;
    transform: none;
    margin-top: -5vh;
}

/* ===================== */
/*       NAV             */
/* ===================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    height: 60px;
    max-height: 60px;
    background-color: transparent;
    backdrop-filter: blur(12px) saturate(1.08);
    -webkit-backdrop-filter: blur(12px) saturate(1.08);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 25px;
    top: 20px;
    z-index: 2000;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--cream);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: color-mix(in srgb, var(--cream) 95%, white);
    padding: 25px 0;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    z-index: 1500;
}

.nav-links a {
    color: var(--claret) !important;
    font-size: 20px;
}

.nav-links.open {
    display: flex;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ===================== */
/*   SAVE THE DATE       */
/* ===================== */

#details {
    padding: 40px 0 80px;
    text-align: center;
}

.details-inner {
    position: static;
    transform: none;
    margin-bottom: 20px;
}

.save-date-desktop {
    display: none;
}

.save-date-mobile {
    display: block;
    width: 65vw;
    max-width: 420px;
    margin: 0 auto 30px auto;
}

.wedding-info {
    margin: 0 auto;
    margin-top: 20px;
    padding: 0 20px;
    text-align: center;
}

.wedding-date {
    font-size: 32px;
    letter-spacing: 3px;
}

.wedding-location {
    font-size: 16px;
    line-height: 1.5;
}

.venue-btn {
    margin-top: 18px;
    padding: 10px 20px;
    font-size: 14px;
}

/* ===================== */
/*   WELCOME             */
/* ===================== */

#welcome {
    min-height: auto;
    padding: 50px 24px 60px 24px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.welcome-center {
    text-align: center;
}

.timeline-text {
    display: block;
    width: 100vw;
    max-width: 460px;
    height: auto;
    margin: 0 auto;
}

.border {
    position: absolute;
    width: 500px;
    height: auto;
    display: block;
}

.border-tl {
    left: -170px;
    transform: scaleX(-1);
}

.border-br {
    right: -170px;
    transform: none;
}

/* ===================== */
/*   WELCOME DINNER      */
/* ===================== */

#welcome-dinner {
    padding: 50px 20px;
    text-align: center;
}

.welcome-dinner-container {
    grid-template-columns: 1fr;
    grid-template-areas:
        "photo"
        "title"
        "content";
    gap: 30px;
    justify-items: center;
}

.welcome-dinner-image img {
    width: 70vw;
    max-width: 340px;
    height: auto;
    border-width: 3px;
    padding: 2px;
    outline-offset: -10px;
}

.welcome-dinner-title {
    margin: 0;
    display: flex;
    justify-content: center;
}

.welcome-dinner-title img {
    width: 85vw;
    max-width: 420px;
    height: auto;
}

.welcome-dinner-content {
    margin: 0;
    padding: 0 10px;
    align-items: center;
}

.welcome-dinner-date,
.welcome-dinner-location {
    font-size: 19px;
    letter-spacing: 1px;
}

.welcome-dinner-desc {
    font-size: 19px;
    max-width: 80vw;
    margin-top: 10px;
    line-height: 1.5;
}

.flower-corner-br {
    display: none;
}

.flower-corner-tr {
    position: absolute;
    top: 40px;
    right: -140px;
    width: clamp(450px, 30vw, 420px);
    height: auto;
    opacity: 0.9;
    pointer-events: none;
}

/* ===================== */
/*     TIMELINE          */
/* ===================== */

#timeline {
    padding-top: 120px;
    background-size: 230% auto;
    background-position: top 60% center;
}

.timeline-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: -80px;
}

.timeline-heading {
    width: 90vw;
    max-width: 480px;
    height: auto;
    display: block;
    margin: 0 auto 40px auto;
}

.itinerary {
    width: 100%;
    padding: 0 12px;
    margin-top: 0;
    gap: 20px;
}

.itinerary-item {
    width: 100%;
    border-bottom: 1px solid var(--rose);
    padding-bottom: 12px;
}

.itinerary-item h3 {
    font-size: 19px;
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
}

.itinerary-item p {
    font-size: 17px;
    line-height: 1.4;
    max-width: 90%;
    margin: 0 auto;
}

/* ===================== */
/*  ACCOMMODATION        */
/* ===================== */

#accomodation {
    padding: 60px 20px;
}

.stay-inner {
    margin-top: 0;
}

.stay-title {
    width: 80vw;
    max-width: 380px;
    margin-bottom: 20px;
}

.stay-subtitle {
    font-size: 20px;
    max-width: 90%;
    margin: 0 auto 32px auto;
    line-height: 1.4;
}

.stay-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
}

.stay-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stay-figure {
    border-width: 3px;
    padding: 2px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    width: 90%;
    max-width: 420px;
    margin: 0 auto;
}

.stay-figure img {
    height: auto !important;
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    display: block;
}

.stay-name {
    font-size: 20px;
    margin-top: 10px;
}

.stay-desc {
    font-size: 20px;
    line-height: 1.5;
    max-width: 85%;
    margin: 6px auto 12px auto;
}

.stay-link {
    font-size: 14px;
    padding: 8px 14px;
    letter-spacing: 1px;
    border-width: 2px;
}

/* ================================= */
/*         OUR STORY                 */
/* ================================= */

#our-story {
    padding-bottom: 10px;
}

.story-photo {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    margin: 0;
    padding: 0;
    outline: 1px solid var(--cream);
    outline-offset: -5px;
}

.story-photos {
    position: relative !important;
    width: 100% !important;
    max-width: 500px !important;
    height: auto !important;
    margin: 0 auto 40px auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
}

.story-photo:nth-child(1),
.story-photo:nth-child(2) {
    width: 45% !important;
    aspect-ratio: 1 / 1 !important;
}

.story-photo:nth-child(3),
.story-photo:nth-child(4),
.story-photo:nth-child(5) {
    width: 30% !important;
    aspect-ratio: 1 / 1 !important;
}

.story-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.story-title {
    width: 80vw !important;
    max-width: 400px !important;
    margin: 0 auto 30px auto !important;
}

.story-text p:last-child {
    margin-bottom: 10px;
}

.flower-corner-blush {
    display: none !important;
}

/* ===================== */
/*     GALLERY           */
/* ===================== */

#gallery {
    padding: 50px 20px;
    overflow: visible;

}

.gallery-inner {
    margin-top: 0;
    text-align: center;
}

.gallery-toggle {
    display: inline-block;
    margin: 20px auto 0 auto;
    padding: 10px 16px;
    border-radius: 999px;
    border: 2px solid var(--rose);
    background: var(--rose);
    font-family: var(--display-font);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cream);
}

.gallery-grid {
    display: none;
    flex-direction: column;
    gap: 18px;
}

.gallery-grid.open {
    display: flex;
}

.gallery-item {
    outline: 2px solid #fff;
    outline-offset: -4px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.gallery-item:hover {
    transform: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.gallery-title {
    display: none;
}

/* ===================== */
/*       FAQ             */
/* ===================== */

.faq-border {
    display: none !important;
}

#faq {
    padding-top: 60px;
}

.faq-title {
    margin-top: 24px !important;
    margin-bottom: 32px !important;
}

/* ===================== */
/*      RSVP MOBILE      */
/* ===================== */

.rsvp-title-desktop {
    display: none !important;
}

.rsvp-title-mobile {
    display: block !important;
    width: 75vw !important;
    max-width: 360px !important;
    margin: 0 auto 12px auto !important;
    height: auto !important;
}