@font-face {
    font-family: 'Amsterdam Four';
    src: url(font/SavoyeLET/savoyeletplain.ttf) format('truetype');
}

@font-face {
    font-family: 'GFS Didot';
    src: url(font/GFS_Didot/GFSDidot-Regular.ttf) format('truetype');
    font-weight: normal;
    font-style: normal;
}


body, div, h1, h2, h3, h4, h5, h6, p, ol, ul, blockquote, figure{
    margin:0;
    padding:0;
    font-weight: 100;
    font-size: unset;
}
body{
    position: relative;
    max-width: 1920px;
    margin:0 auto;
    font-family: 'GFS Didot', 'Manrope', sans-serif;
    -webkit-text-size-adjust: 100%;
    background-color:#fbf7f0;
    color:#544737;
    overflow-x: hidden;
}
a{
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
li{
    list-style-type: none;
}
html {
    scroll-behavior: smooth;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
*, *:before, *:after {
    -webkit-box-sizing: inherit;
    box-sizing: inherit;
}

/* Spacing scale — every section uses these, overridden per breakpoint below */
:root{
    --section-y: 90px;     /* top/bottom padding of each section */
    --section-x: 100px;    /* left/right padding of each section */
    --content-gap: 50px;   /* space between a section's intro text and its main content */
    --heading-size: 100px; /* every section heading */
}

/* Section headings share one size */
.cntdn-text h2,
.location-wrapper h2,
.rsvp-wrapper h2,
.gifts h2,
.paparazzi-wrapper h2,
.paparazzi-hero h2{
    font-size: var(--heading-size);
}

/* Slide-up animation styles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for child elements */
.animate-on-scroll.delay-1 {
    transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
    transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
    transition-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
    transition-delay: 0.4s;
}

.flex{
    display: flex;
}
.flex.column{
    flex-direction: column;
}
.flex.centered{
    align-items: center;
}
.flex.space{
    justify-content: space-between;
}
/* Site header (nav + names + burger) */
header{
    padding: 20px 30px;
}
.site-header{
    position: relative;
}
.burger-btn{
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    border: none;
    position: relative;
    z-index: 1;
}
.burger-btn span{
    display: block;
    width: 18px;
    height: 2px;
    background: #544737;
}
.menu-overlay{
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fffffdd6;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.menu-overlay.open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.overlay-close{
    position: absolute;
    top: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 6px;
    background: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.overlay-menu{
    text-align: center;
    font-size: 34px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}
.menu-overlay.open .overlay-menu{
    transform: translateY(0);
    opacity: 1;
}
body.menu-open{
    overflow: hidden;
}

.main-header{
    position: relative;
    padding: 0 clamp(15px, 5vw, 80px);
    align-items: flex-end;
}
.left-img img{
    width:100%;
    height:100%;
    max-width: 650px;
    object-fit: cover;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
.header-wrapper{
    text-align: center;
}
.main-header .right-img img{
    max-width: 520px;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.2);
    border-radius: 10px;
    width: 100%;
}
.main-header .right-img{
    transform: translate(-30%, 10px);
    width: 42%;
}
.main-header .left-img{
    width: 58%;
}
.header-wrapper h4{
    font-size: clamp(52px, 8.5vw, 162px);
    font-family: 'Amsterdam Four',sans-serif;
    font-weight: 100;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typing 3s steps(18) 0.5s forwards;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.header-wrapper h4.typing-complete {
    animation: none;
    width: 100%;
}
.menu{
    font-size: 22px;
}
.menu li a{
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid #544737;
    transition: all 0.3s ease;
}
.menu li a:hover{
    background-color: #544737;
    color: #fff;
}

/* Calendar Styles */
.calendar-container{
    display: flex;
    align-items: center;
    gap: 0;
    --calendar-cell-size: clamp(30px, 2.6vw, 40px);
    --calendar-gap: clamp(8px, 0.7vw, 8px);
    position: relative;
}
.save-the-date{
    font-family: 'Amsterdam Four', cursive;
    font-size: clamp(80px, 6vw, 100px);
    color: #544737;
    writing-mode: sideways-lr;
    text-orientation: mixed;
    line-height: 1;
    position: absolute;
    bottom: 0;
    left: -12%;
    height: 100%;
}
.wedding-calendar{
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    padding: clamp(10px, 2vw, 50px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: fit-content;
    margin: auto 20px;
}
.calendar-month {
    font-family: 'Amsterdam Four', cursive;
    font-size: clamp(45px, 4.2vw, 65px);
    font-weight: 100;
    text-align: center;
    white-space: nowrap;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, var(--calendar-cell-size));
    gap: var(--calendar-gap);
}
.calendar-day-header {
    font-weight: 700;
    text-align: center;
    font-size: clamp(16px, 1.3vw, 18px);
    color: #544737;
    width: var(--calendar-cell-size);
}
.calendar-day {
    width: var(--calendar-cell-size);
    height: var(--calendar-cell-size);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(16px, 1.6vw, 22px);
    color: #544737;
    border-radius: 4px;
}
.calendar-empty{
    width: var(--calendar-cell-size);
    height: var(--calendar-cell-size);
}
.wedding-date{
    border: 2px solid #544737;
    border-radius: 50%;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.05);
}

.date{
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    text-align: center;
    font-size: 200px;
    font-family: 'Amsterdam Four', cursive;
    display: none;
}
.invite-wrapper{
    text-align: center;
    font-size: 43px;
    position: relative;
    z-index: 1;
    /* padding: 100px 100px; */
    height: 100%;
    justify-content: space-between;
    /* margin-top: 50px; */
    max-width: 900px;
    margin: 0 auto;
}

.people{
    justify-content: space-between;
    padding: 0 60px;
    color:#5b5b5b;
}
.us h4{
    font-family: 'Amsterdam Four', cursive;
    font-size: 75px;
    padding-top: 10px;
}
.koump h3, .parents h3{
    font-size: 80px;
    font-family: 'Amsterdam Four', cursive;
}
.quote-wrapper{
    text-align: center;
}
.quote-text{
    font-family: 'GFS Didot', serif;
    font-size: clamp(22px, 3.2vw, 25px);
    line-height: 1.6;
    color: #5b5b5b;
    max-width: 900px;
    margin: 0 auto;
}
.countdown-wrapper{
    text-align: center;
}
.cntdn-text h2{
    line-height: 1.2;
    padding-bottom: 30px;
    font-family: 'Amsterdam Four', cursive;
    font-weight: 100;
}
.cntdn{
    font-size:150px;
    position: relative;
    z-index: 1;
    font-family: 'Amsterdam Four', cursive;

}
#countdown{
    line-height: 150px;
    padding: 0 60px;
}
/* consistent section spacing (invitation page) */
main:not(.paparazzi-page) > section{
    padding: var(--section-y) var(--section-x);
}
/* invite continues the quote, so it doesn't add its own top spacing */
main:not(.paparazzi-page) > section.invite{
    padding-top: 0;
}
/* divider line between every section (except invite) */
main:not(.paparazzi-page) > section + section:not(.invite){
    position: relative;
}
main:not(.paparazzi-page) > section + section:not(.invite)::before{
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #544737 20%, #544737 80%, transparent 100%);
}

.date-down{
    padding-top: var(--content-gap);
}
.date-down span{
    display: inline-block;
    font-size: 22px;
    padding: 10px 25px;
    border: 1px solid #544737;
    transition: all 0.3s ease;
}
.date-down:hover span{
    background-color: #544737;
    color: #fff;
}
.location-wrapper{
    text-align: center;
}
.location-wrapper h2{
    font-weight: 100;
    text-align: left;
    font-family: 'Amsterdam Four', cursive;
    color: #5b5b5b;
    line-height: 1.2;
}
.dhms .days{
    padding-left:65px;
    padding-right:30px
}
.dhms .hours{
    padding:0 40px;
}
.dhms .min{
    padding: 0 40px;
}
.dhms .sec{
    padding: 0 20px;
}
.location-wrapper img{
    width:50px;
}
.church-text, .party-text, .church-map, .party-map{
    width:calc(100%/2);
    font-size:30px;
}
.church-map iframe, .party-map iframe{
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 2;
    /*filter: grayscale(100%) contrast(1.2);*/
    border-radius: 20px;
}
.church-map{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.church-map img{
    width: 100%;
    height: auto;
    border-radius: 20px;
}
/* Photos fade softly into the page background instead of hard edges */
.church-map img{
    --fade: 8%;
    -webkit-mask-image:
        linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent),
        linear-gradient(to bottom, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent),
        linear-gradient(to bottom, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
    mask-composite: intersect;
    box-shadow: none;
    border-radius: 0;
}
.map-btn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    padding: 14px 34px;
    border: 1px solid #544737;
    transition: all 0.3s ease;
    font-family: 'GFS Didot', 'Manrope', sans-serif;
    color: #544737;
}
.map-btn:hover{
    background-color: #544737;
    color: #fff;
}
.party-wrapper{
    flex-direction: row-reverse;
}
.church-text h3, .party-text h3{
    color: #5b5b5b;
}
.reception-note{
    font-size: 19px;
    color: #5b5b5b;
    margin-top: 20px;
}
.rsvp-wrapper{
    text-align: center;
    height:100%;
}
.rsvp-wrapper h2{
    font-style: italic;
    line-height: 1.2;
    font-weight: 100;
    font-family: 'Amsterdam Four', cursive;
    color: #5b5b5b;
}
.rsvp-wrapper h3{
    font-size: 23px;
    padding-top: 15px;
}
.rsvp-form input, .rsvp-form select, .rsvp-form textarea{
    width:100%;
    outline: none;
    border: none;
    border-bottom:1px solid #544737;
    font-size:20px;
    padding:10px;
    margin-bottom:20px;
    font-family: 'GFS Didot', 'Manrope', sans-serif;
    background-color: transparent;
}
.rsvp-form select#adults{
    width:40%;
}
.rsvp-form{
    padding-top: var(--content-gap);
}
.send-btn{
    justify-content: center;
    margin:20px;
    align-items: center;
}
.send-btn span{
    margin-left:20px;
    font-size:16px;
    display: none;
}
.rsvp-form label{
    font-size:20px;
}
.rsvp-form .send-btn button{
    width:unset;
    background-color: transparent;
    border: 1px solid #544737;
    outline: none;
    font-size:18px;
    padding: 10px 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'GFS Didot', 'Manrope', sans-serif;
    color:#544737;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.rsvp-form .send-btn button .spinner{
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    display: none;
    animation: spin 0.8s linear infinite;
}
.rsvp-form .send-btn button.is-loading .spinner{
    display: inline-block;
}
.rsvp-form .send-btn button.is-loading{
    pointer-events: none;
    opacity: 0.85;
}
.rsvp-form .send-btn button:hover{
    background-color: #544737;
    color: #fff;
}
.rsvp-form textarea{
    min-height: 100px;
    resize: none;
}
.rsvp-message {
    margin: 20px auto;
    padding: 15px 25px;
    border-radius: 5px;
    text-align: center;
    font-size: 18px;
    max-width: 600px;
    animation: slideDown 0.5s ease-out;
}
.rsvp-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}
.rsvp-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.download-invitation{
    font-size: 20px;
    padding:20px;
}
.download-invitation a{
    display:flex;
    justify-content: center;
    align-items: center;
}
.download-invitation img{
    width:30px;
    margin-left:20px;
}
.people h4{
    font-size: 28px;
}
.startgame-wrapper{
    text-align: center; 
    width: calc((100% - 25px) / 3);
    border:1px solid #544737;
    border-radius: 10px;
    aspect-ratio: 2;
    transition: all 0.5s ease-in-out;
    justify-content: center;
}
.start{
    font-size: 35px;
}
.startgame-wrapper h3{
    font-size: 23px;
}
.buttons{
    justify-content: space-evenly;
    padding: 0 50px 100px;
    height:100%;
    position: relative;
    z-index:1;
}
.instagram-feed-wrapper{
    width: calc((100% - 50px) / 3);
    text-align: center;
    font-size: 23px;
    border:1px solid #544737;
    border-radius: 10px;
    aspect-ratio: 2;
    transition: all 0.5s ease-in-out;
    justify-content: center;
}
.section-title{
    padding: 50px 100px;
    font-size: 60px;
    font-family: 'Advent Pro', sans-serif;
}
.section-title h2{
    font-weight:100;
}
.back{
    transform: rotate(-90deg);
    transform-origin: left;
    position: fixed;
    bottom: 50px;
    left: 50px;
    z-index:1;
}
.glitter-middle{
    position: absolute;
    top: -20%;
    right: 0;
    z-index: 0;
}
.startgame-wrapper:hover , .instagram-feed-wrapper:hover{
    background-color: #d5d5d5;
    transition: all 0.5s ease-in-out;
}

.dark{
    color:#544737;
}

.soon{
    text-align: center;
    height: 74vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0px 30px;
    background: #d5d5d5;
}
.soon h2{
    font-size: 120px;
    font-family: 'Advent Pro',sans-serif;
}
.soon h3{
    font-size:25px;
}
.footer-wrapper{
    padding:20px 0;
    margin: 0 20px;
    border-top: 1px solid #544737;
}

.container {
    width: 50%;
    justify-content: center;
    padding: 100px;
  }
  
.container h1 {
    font-size: 35px;
    padding-bottom: 50px;
}
  
.question {
    font-weight: bold;
    margin-bottom: 10px;
}
  
.options {
    margin-bottom: 20px;
}
  
.option {
    display: block;
    margin-bottom: 10px;
}
  
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #d5d5d5;
    color: #544737;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    transition: background-color 0.3s;
    margin-right: 10px;
    width: 200px;
    font-family: 'GFS Didot', 'Manrope', sans-serif;
}
  
.button:hover {
    background-color: #544737;
    color: #fff;
}
  
.result {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}
  
.hide{
    display: none;
}
.image-gallery{
    width: 50%;
    justify-content: space-around;
}
.image-gallery img{
    width: 40%;
    height: 70%;
    object-fit: cover;
    border-radius: 150px 150px 0 0;
    filter: grayscale(1) contrast(1.1) brightness(1.1);
}
.image-gallery img:last-of-type{
    align-self: flex-end;
    margin-bottom: 40px;
}
.rest-header .menu{
    position: relative;
    top:0;
    right:0;
}
.rest-header{
    justify-content: space-between;
    padding: 30px;
}
.quiz-wrapper{
    height:calc(100vh - 211px);
}
.our-logo{
    font-size: 25px;
}
#quiz{
    font-size: 19px;
}
.check{
    background: #fff;
    height:100vh;
}
.password-overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.password-overlay.hidden{
    display: none;
}
.main-content{
    display: none;
}
.main-content.visible{
    display: block;
}
.checkpass{
    padding: 40px;
    width: 400px;
    min-height: 300px;
    text-align: center;
    border: 1px solid #544737;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.checkpass h1{
    font-size: 40px;
    margin-bottom: 30px;
    font-family: 'Amsterdam Four', cursive;
}
.checkpass input{
    width: 100%;
    height: 45px;
    font-size: 18px;
    padding: 10px;
    border: 1px solid #544737;
    margin-bottom: 20px;
    outline: none;
}
.checkpass button{
    padding: 10px 25px;
    border: 1px solid #544737;
    background-color: transparent;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    color:#544737;
}
.checkpass button:hover{
    background-color: #544737;
    color: #fff;
}
.error-message{
    color: #d00;
    font-size: 14px;
    margin-top: 15px;
    min-height: 20px;
}
.gifts{
    justify-content: center;
    align-items: center;
    margin-top: var(--section-y);
    font-size: 20px;
    flex-direction: column;
}
.gifts p{
    font-size: 23px;
    line-height: 1.6;
    max-width: 760px;
    margin: 0 auto;
    padding-top: 15px;
    color: #5b5b5b;
    text-align: center;
}
.gifts .iban-row{
    padding-top: 25px;
}
.iban-row h4{
    text-align: center;
}
.gifts img{
    max-width: 30px;
}
.copyrights span{
    display: flex;
    align-items: center;
}
.copyrights img{
    width:30px;
}
.copyrights a{
    margin-left: 5px;
    font-weight: bold;
}
.gifts h2{
    font-family: 'Amsterdam Four', cursive;
    line-height: 1.2;
}
.gifts h5{
    font-size:16px;
}
.iban-row{
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}
.copy-iban-btn{
    border: 1px solid #544737;
    background: transparent;
    padding: 6px 16px;
    font-size: 14px;
    font-family: 'GFS Didot', 'Manrope', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #544737;
}
.copy-iban-btn:hover, .copy-iban-btn.copied{
    background-color: #544737;
    color: #fff;
}
@media screen and (max-width:1200px){
    :root{
        --section-y: 70px;
        --section-x: 50px;
        --heading-size: 90px;
    }
    .section-title{
        padding: 50px;
    }
    .church-text h3, .party-text h3{
        font-size: 30px;
    }
}

@media screen and (max-width:1100px){
    
    .startgame-wrapper h3{
        font-size:18px;
    }
    .start{
        font-size:30px;
    }
    .image-gallery img{
        height:50%;
    }
    .site-header .menu{
        display: none;
    }
    .site-header{
        justify-content: flex-end!important;
    }
    .site-header .header-wrapper{
        width: 100%;
    }
    .site-header .burger-btn{
        display: flex;
    }
}

@media screen and (max-width:900px){
    .invite-wrapper{
        font-size:30px;
    }
    .people h4 {
        font-size: 24px;
    }
    .people{
        padding: 0;
    }
    .rsvp-form select#adults{
        width:100%;
    }
    .instagram-feed-wrapper,
    .startgame-wrapper{
        aspect-ratio: 1;
        padding:15px;
        width:calc((100% - 50px) / 2);
    }
    .container{
        padding:50px;
    }
    .container h1 {
        font-size: 28px;
    }
    #quiz {
        font-size: 16px;
    }
}
@media screen and (max-width:768px){
    :root{
        --section-y: 60px;
        --section-x: 30px;
        --content-gap: 40px;
        --heading-size: 70px;
    }
    .us h4{
        padding-top:0;
        font-size: 55px;
    }
    .dhms{
        min-width: 500px;
        margin-top:-30px;
    }
    .cntdn{
        font-size:81px;
        padding: 0 20px;
    }
    .menu li a{
        padding: 5px 15px;
    }
    .date{
        font-size: 110px;
    }
    .dhms .hours , .dhms .min , .dhms .sec{
        padding: 0 20px;
    }
    .section-title{
        padding:30px;
    }
    .church-text h3, .party-text h3 {
        font-size: 19px;
        padding-top:20px;
    }
    .church-text, .party-text, .church-map, .party-map{
        font-size:30px;
    }
    .location-wrapper h2 {
        text-align: center;
    }
    .rsvp-wrapper h3{
        font-size:20px;
    }
    .section-title{
        font-size: 50px;
    }
    .instagram-feed-wrapper{
        font-size:20px;
    }
    .buttons{
        padding:0 30px 70px;
    }
    .invite-wrapper {
        font-size: 25px;
    }
    .people{
        justify-content: center;
    }
    .people h4 {
        font-size: 20px;
    }
    .koump h3, .parents h3 {
        font-size: 56px;
    }
    .church-map iframe, .party-map iframe{
        aspect-ratio: 1;
    }
    .quiz-wrapper{
        height:100%;
        flex-direction: column;
    }
    .image-gallery{
        width:100%;
    }
    .container{
        width:100%;
    }
    .image-gallery img{
        height: 400px;
    }
    .container{
        padding-top:30px;
    }
    .main-header{
        flex-wrap: wrap;
        justify-content: center;
    }
    .wedding-calendar{
        order: 4;
        width: 100%;
        margin: 20px auto;
    }
    .save-the-date{
        left: -20%;
    }
    #countdown {
        line-height: 115px;
    }
}
@media screen and (max-width:600px){

    .parents{
        padding-bottom: 35px;
    }
    .people{
        flex-direction: column;
        gap:32px;
    }
    .left-img, .right-img{
        width: calc((100% / 2) - 10px);
    }
    .wedding-calendar{
        padding: 14px;
        margin: auto 10px;
    }
    .header-wrapper{
        text-align: left;
    }
    .site-header{
        padding-bottom: 0;
    }
}
@media screen and (max-width:500px){
    :root{
        --section-y: 50px;
        --section-x: 20px;
        --content-gap: 30px;
        --heading-size: 56px;
    }
    .buttons{
        flex-direction: column;
    }
    .instagram-feed-wrapper, .startgame-wrapper{
        width:100%;
        aspect-ratio: 2;
    }
    .startgame-wrapper{
        margin-bottom:20px;
    }
    .dhms .sec{
        padding:0;
    }
    .dhms .days{
        padding-right:0;
        padding-left: 0;
    }
    .dhms .hours, .dhms .min{
        padding:0;
    }
    .dhms{
        width:88%;
        min-width: unset;
    }
    .cntdn {
        font-size: 75px;
    }
    header {
        padding: 20px 12px;
    }
    .main-header{
        flex-wrap: wrap;
    }
    .main-header .left-img{
        order: 2;
        width: 100%;
    }
    .main-header .right-img{
        order: 3;
        transform: translateY(-50px);
        width: 70%;
    }
    .calendar-container{
        display: flex;
        order: 4;
        width: 90%;
        justify-content: center;
        transform: translateY(-50px);
    }
    .wedding-calendar{
        display: flex;
        margin: 10px auto 0;
        padding: 10px;
    }
    .save-the-date{
        text-align: right;
        height: 140%;
        left: -8%;
    }
    .church-wrapper , .party-wrapper{
        flex-direction: column;
    }
    .church-text, .party-text, .church-map, .party-map{
        width:100%;
        padding-bottom: 20px;
    }
    .party-wrapper{
        border-top: 1px solid #544737;
    }
    .section-title{
        padding:20px;
    }
    .rsvp-form input, .rsvp-form select, .rsvp-form textarea{
        font-size:18px;
    }    
    .image-gallery img:first-of-type{
        border-radius: 150px 150px 0 300px;
    }
    .image-gallery img:last-of-type{
        border-radius: 150px 150px 300px 0;
        margin-bottom: 0;
    }
    .image-gallery{
        justify-content: center;
        padding: 30px 10px;
    }
    .image-gallery img{
        width:50%;
        height: unset;
    }
    .rest-header{
        padding:20px;
    }
    .container{
        padding: 30px 20px;
    }
    .soon{
        padding: 60px 30px;
    }
    .soon h2{
        font-size: 80px;
    }
    .soon h3 {
        font-size: 20px;
    }
    .checkpass{
        width: 90%;
        left: 0;
        right: 0;
    }
    .date {
        font-size: 75px;
        display: none;
    }
    #countdown{
        padding:0;
    }
    .gifts p{
        font-size: 20px;
    }
}

/* =========================================================
   Be our Paparazzi — section on index + gallery.html page
   ========================================================= */

/* --- CTA section on the invitation page --- */
.paparazzi-wrapper{
    text-align: center;
}
.paparazzi-wrapper h2{
    font-style: italic;
    line-height: 1.2;
    font-weight: 100;
    font-family: 'Amsterdam Four', cursive;
    color: #5b5b5b;
}
.paparazzi-wrapper h3{
    font-size: 23px;
    padding-top: 15px;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
}
.paparazzi-cta{
    padding-top: var(--content-gap);
}
.paparazzi-btn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    padding: 14px 34px;
    border: 1px solid #544737;
    transition: all 0.3s ease;
    font-family: 'GFS Didot', 'Manrope', sans-serif;
}
.paparazzi-btn:hover{
    background-color: #544737;
    color: #fff;
}

/* --- gallery.html layout --- */
.paparazzi-page{
    padding: 0 var(--section-x) var(--section-y);
}
.paparazzi-hero{
    text-align: center;
    padding: 30px 0 20px;
}
.paparazzi-hero h2{
    font-style: italic;
    font-weight: 100;
    line-height: 1.2;
    font-family: 'Amsterdam Four', cursive;
    color: #5b5b5b;
}
.paparazzi-hero h3{
    font-size: clamp(18px, 2vw, 23px);
    padding-top: 18px;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
}

/* --- upload card --- */
.upload-section{
    max-width: 820px;
    margin: 30px auto 0;
}
.upload-card{
    border: 1px solid #544737;
    border-radius: 14px;
    padding: clamp(20px, 4vw, 40px);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.drop-zone{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: clamp(28px, 6vw, 54px) 20px;
    border: 2px dashed #bdbdbd;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease;
    outline: none;
}
.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.is-dragover{
    border-color: #544737;
    background-color: #f4f4f4;
}
.drop-icon{
    width: 46px;
    height: 46px;
    color: #544737;
}
.drop-title{
    font-size: clamp(17px, 2vw, 20px);
}
.drop-hint{
    font-size: 14px;
    color: #777;
}
.drop-zone input[type="file"]{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* --- selected files list --- */
.file-list{
    margin: 22px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.file-list:empty{
    margin: 0;
}
.file-row{
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    padding: 10px 12px;
}
.file-thumb{
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.file-meta{
    flex: 1;
    min-width: 0;
}
.file-name{
    display: block;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-sub{
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}
.file-progress{
    height: 3px;
    border-radius: 2px;
    background: #eee;
    margin-top: 8px;
    overflow: hidden;
    display: none;
}
.file-row.is-uploading .file-progress{
    display: block;
}
.file-progress span{
    display: block;
    height: 100%;
    width: 0;
    background: #544737;
    transition: width 0.2s ease;
}
.file-row.is-done{
    border-color: #cfe8d4;
    background: #f4fbf5;
}
.file-row.is-error{
    border-color: #f0c9cd;
    background: #fdf4f5;
}
.file-status-icon{
    flex-shrink: 0;
    font-size: 16px;
    width: 20px;
    text-align: center;
}
.file-remove{
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.file-remove:hover{
    color: #544737;
    background: #f0f0f0;
}

/* --- progress + status --- */
.overall-progress{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}
.overall-progress-bar{
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #ececec;
    overflow: hidden;
}
.overall-progress-bar span{
    display: block;
    height: 100%;
    width: 0;
    background: #544737;
    transition: width 0.25s ease;
}
.overall-progress-text{
    font-size: 13px;
    color: #666;
    min-width: 38px;
    text-align: right;
}
.upload-status{
    margin-top: 20px;
    padding: 13px 20px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
}
.upload-status.success{
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}
.upload-status.error{
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
.upload-status.info{
    background: #f1f1f1;
    border: 1px solid #e0e0e0;
    color: #444;
}

/* --- buttons --- */
.upload-actions{
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
    flex-wrap: wrap;
}
.pill-btn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'GFS Didot', 'Manrope', sans-serif;
    font-size: 16px;
    padding: 11px 30px;
    border: 1px solid #544737;
    background: #544737;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}
.pill-btn:hover{
    background: #fff;
    color: #544737;
}
.pill-btn:disabled{
    opacity: 0.4;
    cursor: not-allowed;
}
.pill-btn:disabled:hover{
    background: #544737;
    color: #fff;
}
.pill-btn.ghost{
    background: transparent;
    color: #544737;
}
.pill-btn.ghost:hover{
    background: #544737;
    color: #fff;
}
.pill-btn.small{
    font-size: 14px;
    padding: 9px 22px;
}
.pill-btn.is-disabled{
    opacity: 0.35;
    pointer-events: none;
}
.pill-btn .spinner{
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    display: none;
    animation: spin 0.8s linear infinite;
}
.pill-btn.is-loading{
    pointer-events: none;
    opacity: 0.85;
}
.pill-btn.is-loading .spinner{
    display: inline-block;
}

/* --- gallery grid --- */
.gallery-section{
    max-width: 1100px;
    margin: 80px auto 0;
}
.gallery-head{
    border-bottom: 1px solid #544737;
    padding-bottom: 16px;
    margin-bottom: 26px;
    gap: 16px;
    flex-wrap: wrap;
}
.gallery-head h2{
    font-family: 'Amsterdam Four', cursive;
    font-size: clamp(42px, 6vw, 64px);
    font-weight: 100;
    color: #5b5b5b;
}
.gallery-empty{
    text-align: center;
    color: #888;
    font-size: 16px;
    padding: 40px 0;
}
.download-area{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}
.download-area-label{
    font-size: 13px;
    color: #888;
    margin-right: 2px;
}
.gallery-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.gallery-item{
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
    margin: 0;
}
.gi-open{
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}
.gallery-item img,
.gallery-item video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gi-open:hover img,
.gi-open:hover video{
    transform: scale(1.05);
}
.gallery-item video{
    background: #1c1c1c;
}
.gallery-item .play-badge{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.35));
    color: #fff;
    font-size: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}
.gi-download{
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #544737;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.gi-download svg{
    width: 17px;
    height: 17px;
}
.gallery-item:hover .gi-download,
.gi-download:focus-visible{
    opacity: 1;
    transform: translateY(0);
}
.gi-download:hover{
    background: #544737;
    color: #fff;
}
@media (hover: none){
    .gi-download{
        opacity: 1;
        transform: none;
    }
}

/* --- lightbox --- */
.lightbox{
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox.open{
    opacity: 1;
    visibility: visible;
}
.lightbox-content{
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
}
.lightbox-content img,
.lightbox-content video{
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
}
.lightbox-close,
.lightbox-download{
    position: absolute;
    top: 22px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #544737;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.lightbox-close{
    right: 26px;
    font-size: 28px;
}
.lightbox-download{
    right: 80px;
}
.lightbox-download svg{
    width: 20px;
    height: 20px;
}
.lightbox-close:hover,
.lightbox-download:hover{
    background: #544737;
    color: #fff;
}

@media screen and (max-width: 768px){
    .paparazzi-wrapper h3{
        font-size: 20px;
    }
    .gallery-grid{
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}
@media screen and (max-width: 500px){
    .gallery-head{
        justify-content: center;
    }
    .gallery-grid{
        grid-template-columns: repeat(2, 1fr);
    }
    .file-name{
        font-size: 14px;
    }
}

/* ══════════════ ENVELOPE INTRO GATE ══════════════ */
body.gate-lock{
    overflow: hidden;
    height: 100vh;
}
.envelope-gate{
    position: fixed;
    inset: 0;
    z-index: 20000;
    background-color: #fff;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.envelope-gate.closed{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.envelope-box{
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.env-flap{
    position: absolute;
    overflow: hidden;
    transition: transform 0.85s cubic-bezier(.6,.05,.2,1), opacity 0.85s ease;
}
.env-flap img{
    display: block;
}
.env-flap-top{
    top: 0;
    left: 0;
    width: 100%;
    height: 58%;
    z-index: 4;
}
.env-flap-top img{
    width: 100%;
    height: 100%;
    object-fit: fill;
    transform-origin: 50% 100%;
    transform: scale(1.09, 1.06);
}
.envelope-box.opened .env-flap-top{
    transform: translateY(-100%);
    opacity: 0;
}
.env-flap-bottom{
    bottom: 0;
    left: 0;
    width: 100%;
    height: 58%;
    z-index: 1;
}
.env-flap-bottom .env-rot{
    position: absolute;
    inset: 0;
    transform: rotate(180deg);
}
.env-flap-bottom img{
    width: 100%;
    height: 100%;
    object-fit: fill;
    transform-origin: 50% 100%;
    transform: scale(1.09, 1.06);
}
.envelope-box.opened .env-flap-bottom{
    transform: translateY(100%);
    opacity: 0;
}
.env-flap-left{
    top: 0;
    left: 0;
    width: 58%;
    height: 100%;
    z-index: 2;
}
.env-flap-left .env-rot{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vh;
    height: 58vw;
    transform: translate(-50%, -50%) rotate(-90deg);
}
.env-flap-left img{
    width: 100%;
    height: 100%;
    object-fit: fill;
    transform-origin: 50% 100%;
    transform: scale(1.09, 1.06);
}
.envelope-box.opened .env-flap-left{
    transform: translateX(-100%);
    opacity: 0;
}
.env-flap-right{
    top: 0;
    right: 0;
    width: 58%;
    height: 100%;
    z-index: 2;
}
.env-flap-right .env-rot{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vh;
    height: 58vw;
    transform: translate(-50%, -50%) rotate(90deg);
}
.env-flap-right img{
    width: 100%;
    height: 100%;
    object-fit: fill;
    transform-origin: 50% 100%;
    transform: scale(1.09, 1.06);
}
.envelope-box.opened .env-flap-right{
    transform: translateX(100%);
    opacity: 0;
}
.envelope-center{
    position: absolute;
    inset: 0;
    z-index: 10;
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    justify-items: center;
    padding: 24px;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.envelope-box.opened .envelope-center{
    opacity: 0;
}
.envelope-names{
    align-self: end;
    margin-bottom: 26px;
    max-width: 100%;
    font-family: 'Amsterdam Four', cursive;
    font-weight: 100;
    font-size: clamp(55px, 7vw, 74px);
    color: #F6EFE3;
    text-shadow: 0 2px 14px rgba(0,0,0,0.45);
    text-align: center;
    line-height: 1.1;
    overflow-wrap: break-word;
}
.envelope-names .amp{
    color: #caa657;
}
.envelope-stamp{
    position: relative;
    isolation: isolate;
    pointer-events: auto;
    width:  132px;
    height:  132px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sealPulse 2.6s ease-in-out infinite;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.stamp-img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.stamp-mono{
    position: absolute;
    inset: 10%;
    color: #5a4726;
    opacity: 0.85;
    mix-blend-mode: multiply;
}
.stamp-letter{
    position: absolute;
    top: 50%;
    left: 50%;
    font-family: 'Amsterdam Four', cursive;
    font-weight: 100;
    line-height: 1;
}
.stamp-letter-a{
    font-size: clamp(28px, 6.4vw, 38px);
    transform: translate(-78%, -70%) rotate(-18deg);
}
.stamp-amp{
    font-size: clamp(14px, 3vw, 18px);
    transform: translate(-50%, -50%) rotate(-14deg);
}
.stamp-letter-d{
    font-size: clamp(28px, 6.4vw, 38px);
    transform: translate(-22%, -30%) rotate(-18deg);
}
.envelope-stamp:hover{
    transform: scale(1.06);
}
.envelope-stamp:active{
    transform: scale(0.95);
}
.envelope-box.opened .envelope-stamp{
    transform: scale(0.6);
    opacity: 0;
    pointer-events: none;
}
.envelope-hint{
    align-self: start;
    margin-top: 22px;
    font-family: 'GFS Didot', 'Manrope', sans-serif;
    font-style: italic;
    font-size: 18px;
    letter-spacing: 0.06em;
    color: #F6EFE3;
    text-shadow: 0 1px 8px rgba(0,0,0,0.45);
    text-align: center;
    animation: hintPulse 2.4s ease-in-out infinite;
}
@keyframes sealPulse{
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.045); }
}
@keyframes hintPulse{
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
