 :root {
  --black:#050505; --panel:#171717; --white:#f7f7f4; --muted:#b8b8b8;
  --blue:#43c8e4; --mono:"Native Record Sans",sans-serif; --sans:"Native Record Sans",sans-serif;
  --script:"Native Record Sans",sans-serif;
}
@font-face {
  font-family: "Native Record Sans";
  src: url("./assets/fonts/native-record-sans.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Native Record Serif";
  src: url("./assets/fonts/native-record-serif.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Native Record Script";
  src: url("./assets/fonts/native-record-script.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--black);color:var(--white);font-family:var(--sans);font-size:14px}
img{display:block;max-width:100%}
button,input,textarea{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
a{color:inherit}
.hero,.intro,.event-promo,.wishes-section,.rsvp-section,.donation-section{position:relative;overflow:hidden}
.hero{min-height:560px;display:grid;grid-template-columns:59% 41%;background:#000}
.photo-frame{overflow:hidden}
.hero-photo img,.intro-photo img,.wishes-bg img{width:100%;height:100%;object-fit:cover;filter:grayscale(1);opacity:.92}
.hero-photo{min-height:560px}
.hero-photo img{object-position:center}
.hero-copy{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:30px 24px;text-align:center}
.eyebrow{font-size:11px;letter-spacing:.08em;font-weight:600;margin:0 0 24px}
.arc{transform:rotate(-8deg);letter-spacing:.12em;margin-bottom:30px}
.couple-name{font-family:var(--script);font-weight:500;font-style:italic;font-size:clamp(64px,8vw,110px);line-height:.72;letter-spacing:-.07em;margin:0 0 44px;text-align:center}
.couple-name span{font-family:var(--script);font-size:.45em;letter-spacing:0;vertical-align:middle}
.event-meta{display:grid;gap:7px;font-family:var(--mono);font-size:10px;letter-spacing:.04em}
.event-meta span{font-size:8px}
.section-dark{background:#171717}
.intro{min-height:520px;display:grid;grid-template-columns:60% 40%}
.intro-photo{min-height:520px}
.intro-photo img{object-position:center}
.intro-copy{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:40px 24px}
.intro-copy .eyebrow{margin-bottom:34px}
.intro-copy .couple-name{font-size:clamp(60px,7vw,92px);margin-bottom:48px}
.invite-line{font-size:11px;line-height:1.5;margin:0}
.event-promo{min-height:540px;display:flex;align-items:center;background:#0b3044}
.promo-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 35%;opacity:.68}
.promo-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,30,48,.35),rgba(0,0,0,.05))}
.promo-copy{position:relative;z-index:1;width:min(55%,620px);padding:70px 7%;text-align:center}
.script-label{font-family:var(--script);font-style:italic;font-size:24px;margin:0 0 -2px;transform:rotate(-5deg)}
.promo-copy h2{font-family:var(--script);font-size:clamp(36px,5.2vw,66px);line-height:.95;margin:0;font-weight:600}
.live-label{font-size:12px;letter-spacing:.08em;margin:14px 0 42px}
.event-pill{display:inline-flex;flex-direction:column;gap:5px;border:1px solid rgba(255,255,255,.5);border-radius:30px;padding:12px 24px;font-size:10px;background:rgba(0,0,0,.12)}
.event-pill small{font-family:var(--mono);font-size:8px}
.text-link{display:block;width:max-content;margin:22px auto 0;font-family:var(--mono);font-size:10px;text-decoration:underline;text-underline-offset:4px;letter-spacing:.05em}
.gallery-section{background:#a5f0f5;color: #000000;padding:38px 0 46px;overflow:hidden}
.section-heading{text-align:center;font-size:20px;letter-spacing:.08em;margin:0 0 36px}
.gallery-viewport{width:100%;overflow:hidden}
.gallery-track{display:flex;gap:10px;align-items:stretch;transition:transform .55s cubic-bezier(.2,.7,.2,1);padding:0 6.5%;will-change:transform}
.gallery-card{border:0;padding:0;flex:0 0 43%;height:270px;background:#10232d;cursor:zoom-in;overflow:hidden}
.gallery-card:nth-child(2),.gallery-card:nth-child(3){flex-basis:19%}
.gallery-card:nth-child(4){flex-basis:32%}
.gallery-card img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.gallery-card:hover img{transform:scale(1.04)}
.carousel-controls{display:flex;justify-content:center;gap:14px;margin-top:28px}
.circle-button{border:1px solid rgba(0,0,0,.35);background:rgba(255,255,255,.22);color:#222;width:42px;height:42px;border-radius:50%;cursor:pointer;transition:background .2s,transform .2s}
.circle-button:hover{background:#fff;transform:scale(1.05)}
.wishes-section{min-height:560px;display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center;padding:50px 7%}
.wishes-bg,.wishes-shade{position:absolute;inset:0}
.wishes-bg img{object-position:center;opacity:.32}
.wishes-shade{background:linear-gradient(90deg,rgba(0,0,0,.83),rgba(0,0,0,.64))}
.wishes-form-wrap,.wishes-list-wrap{position:relative;z-index:1;min-width:0}
.wishes-form-wrap{max-width:380px;width:100%;justify-self:center}
.wishes-form-wrap .eyebrow{margin-bottom:18px}
.dark-form{display:grid;gap:9px}
.dark-form label{font-family:var(--mono);font-size:9px;letter-spacing:.04em}
.dark-form input:not(.honeypot),.dark-form textarea,.rsvp-form input:not([type=checkbox]):not(.honeypot){width:100%;border:0;border-radius:3px;padding:12px 13px;background:#fff;color:#111;outline:2px solid transparent;font-size:11px}
.dark-form input:focus,.dark-form textarea:focus,.rsvp-form input:focus{outline-color:#75d9ee}
.dark-form textarea{resize:vertical;min-height:110px}
.submit-button{justify-self:center;min-width:110px;border:1px solid rgba(255,255,255,.4);background:rgba(30,30,30,.65);color:white;border-radius:24px;padding:10px 24px;font-family:var(--mono);font-size:10px;letter-spacing:.06em;cursor:pointer}
.submit-button:hover{background:#fff;color:#111}
.wishes-list{max-height:390px;overflow:auto;border:5px solid rgba(255,255,255,.85);border-radius:20px;padding:20px 18px;background:rgba(30,30,30,.62);scrollbar-width:thin}
.wish-card{font-family:var(--mono);font-size:9px;line-height:1.5;padding:0 0 17px;margin-bottom:17px;border-bottom:1px solid rgba(255,255,255,.22);overflow-wrap:anywhere}
.wish-card:last-child{border-bottom:0;margin-bottom:0}
.wish-card strong{display:block;font-size:10px;margin-bottom:6px}
.wish-card p{margin:0 0 7px}
.wish-card time{display:block;text-align:right;font-size:8px;color:#ccc}
.form-status{min-height:1em;margin:4px 0 0;font-size:11px;text-align:center;color:#bdf5ff}
.honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important}
.rsvp-section{min-height:480px;display:flex;justify-content:flex-end;align-items:center;background:#005b91}
.rsvp-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 40%;opacity:.78}
.rsvp-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,82,128,.12),rgba(0,66,111,.4))}
.rsvp-form-wrap{position:relative;z-index:1;width:min(42%,420px);margin-right:9%;padding:45px 0}
.rsvp-form-wrap h2{text-align:center;font-size:clamp(24px,3vw,36px);letter-spacing:.08em;margin:0 0 24px}
.rsvp-form{display:grid;gap:13px}
.attendance-option{display:flex;gap:8px;align-items:flex-start;font-size:10px;line-height:1.4}
.attendance-option input{margin-top:2px;accent-color:#061a2b}
.rsvp-form .submit-button{background:rgba(0,27,48,.4)}
.donation-section{min-height:500px;display:flex;align-items:center;background:#242424}
.donation-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:.6;filter:grayscale(1)}
.donation-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.6),rgba(0,0,0,.1))}
.donation-copy{position:relative;z-index:1;padding:55px 9%;width:50%;display:flex;flex-direction:column;align-items:flex-start}
.donation-copy .eyebrow{margin-bottom:18px}
.qr-frame{background:#fff;padding:10px;border-radius:6px;min-width:150px;min-height:150px;display:flex;align-items:center;justify-content:center}
#donationQr img,#donationQr canvas{max-width:150px!important;max-height:150px!important}
.qr-note{font-family:var(--mono);font-size:9px;margin:18px 0 10px}
.donation-button{display:inline-block;text-decoration:none;background:#fff;color:#111;border-radius:4px;padding:12px 22px;font-family:var(--mono);font-size:10px;letter-spacing:.04em}
.donation-button:hover{background:#c8f8ff}
.site-footer{text-align:center;padding:14px 10px 18px;background:#000;color:#888;font-family:var(--mono);font-size:9px}
.site-footer span{color:#ff4b65}
.site-footer a{color:#ddd;text-decoration:underline;text-underline-offset:3px}
.lightbox{position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.94);display:flex;align-items:center;justify-content:center;padding:45px}
.lightbox[hidden]{display:none}
.lightbox img{max-width:min(88vw,1200px);max-height:85vh;object-fit:contain}
.lightbox-close,.lightbox-nav{position:absolute;border:0;color:white;background:rgba(255,255,255,.12);cursor:pointer;border-radius:50%;width:44px;height:44px;font-size:25px}
.lightbox-close{right:22px;top:20px}
.lightbox-prev{left:22px}
.lightbox-next{right:22px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1100px){.hero,.intro{min-height:650px}.hero-photo,.intro-photo{min-height:650px}.gallery-card{height:320px}.wishes-section{padding-left:10%;padding-right:10%}}
@media(max-width:700px){
  .hero{min-height:0;display:flex;flex-direction:column}
  .hero-photo{height:260px;min-height:0}
  .hero-copy{min-height:250px;padding:28px 20px 34px}
  .arc{margin-bottom:25px;font-size:10px}
  .couple-name{font-size:74px;margin-bottom:32px}
  .event-meta{font-size:9px}
  .intro{display:flex;flex-direction:column;min-height:0}
  .intro-photo{height:255px;min-height:0}
  .intro-copy{min-height:275px;padding:35px 20px}
  .intro-copy .eyebrow{margin-bottom:28px}
  .intro-copy .couple-name{font-size:68px;margin-bottom:35px}
  .invite-line{font-size:10px}
  .event-promo{min-height:420px;justify-content:center}
  .promo-image{object-position:64% center}
  .promo-overlay{background:linear-gradient(0deg,rgba(0,30,48,.58),rgba(0,0,0,.06))}
  .promo-copy{width:100%;padding:48px 16px 45px;align-self:flex-end}
  .script-label{font-size:18px}
  .promo-copy h2{font-size:39px}
  .live-label{margin:10px 0 27px}
  .event-pill{padding:10px 17px;font-size:9px}
  .text-link{font-size:9px;margin-top:20px}
  .gallery-section{padding:30px 0 35px}
  .section-heading{font-size:17px;margin-bottom:28px}
  .gallery-track{gap:8px;padding:0 6%}
  .gallery-card{flex-basis:72%;height:190px}
  .gallery-card:nth-child(2),.gallery-card:nth-child(3){flex-basis:72%}
  .gallery-card:nth-child(4){flex-basis:72%}
  .circle-button{width:38px;height:38px}
  .wishes-section{display:flex;flex-direction:column;align-items:stretch;gap:28px;padding:40px 7%;min-height:0}
  .wishes-form-wrap{max-width:100%}
  .wishes-form-wrap .eyebrow{text-align:center;font-size:10px}
  .dark-form{gap:8px}
  .dark-form textarea{min-height:100px}
  .wishes-list{max-height:300px;border-width:4px;border-radius:16px;padding:16px 14px}
  .rsvp-section{min-height:440px;justify-content:center}
  .rsvp-image{object-position:32% center}
  .rsvp-overlay{background:linear-gradient(90deg,rgba(0,61,98,.12),rgba(0,69,112,.45))}
  .rsvp-form-wrap{width:72%;margin:0 0 0 22%;padding:38px 0}
  .rsvp-form-wrap h2{font-size:26px;margin-bottom:20px}
  .rsvp-form{gap:11px}
  .donation-section{min-height:430px}
  .donation-image{object-position:65% center}
  .donation-copy{width:72%;padding:40px 7%}
  .donation-copy .eyebrow{font-size:10px}
  .qr-frame{min-width:132px;min-height:132px;padding:8px}
  #donationQr img,#donationQr canvas{max-width:132px!important;max-height:132px!important}
  .donation-button{padding:11px 16px;font-size:9px}
  .lightbox{padding:20px}
  .lightbox img{max-width:94vw;max-height:78vh}
  .lightbox-prev{left:8px}.lightbox-next{right:8px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}


/* User-supplied transparent artwork */
.air-api-logo {
  width: min(100%, 390px);
  height: auto;
  object-fit: contain;
  margin: 0 0 38px;
}
.invitation-text-image {
  display: block;
  width: min(100%, 420px);
  max-height: 100%;
  object-fit: contain;
}
.pementasan-art {
  display: block;
  width: min(100%, 500px);
  height: auto;
  object-fit: contain;
  margin: 0 auto 22px;
}
.remember-button-link {
  display: block;
  width: min(100%, 300px);
  margin: 0 auto;
  line-height: 0;
  text-decoration: none;
}
.remember-button {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform .2s ease;
}
.remember-button-link:hover .remember-button { transform: translateY(-2px); }
.image-submit-button {
  border: 0;
  background: transparent;
  padding: 0;
  width: 112px;
  justify-self: center;
  line-height: 0;
  cursor: pointer;
}
.image-submit-button img { width: 100%; height: auto; }
.image-submit-button:disabled { opacity: .65; cursor: wait; }
.rsvp-image-button { width: 118px; }
.donation-qr-image {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}
@media (max-width:700px) {
  .air-api-logo { width: min(100%, 300px); margin-bottom: 28px; }
  .invitation-text-image { width: min(100%, 360px); }
  .pementasan-art { width: min(100%, 370px); margin-bottom: 16px; }
  .remember-button-link { width: min(88%, 260px); }
  .image-submit-button { width: 106px; }
  .rsvp-image-button { width: 112px; }
  .donation-qr-image { width: 132px; height: 132px; }
}


/* Latest user-provided section artwork */
.hero-photo img { object-position: center; }
.intro-photo img { object-position: center; }
.promo-image { object-position: center; }
.air-api-logo {
  width: min(100%, 410px);
  max-height: 300px;
  object-fit: contain;
}
@media (max-width:700px) {
  .air-api-logo { width: min(100%, 330px); max-height: 230px; }
}


/* === Layout refinement based on the latest reference === */
:root {
  --mono: "Roboto Mono", monospace;
  --sans: "Native Record Sans", monospace;
  --script: "Native Record Script", monospace;
  --serif: "Native Record Serif", monospace;
}
body { font-family: var(--sans), monospace; }

/* Section 1: full-frame image with the title and event details overlaid on the right. */
.hero {
  display: block;
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: 1366 / 768;
  background: #000;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  opacity: 1;
}
.hero-copy {
  position: absolute;
  z-index: 2;
  inset: 0 0 0 59%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3% 3.5%;
  text-align: center;
  background: transparent;
}
.arc {
  font-family: var(--sans);
  font-size: clamp(12px, 2.35vw, 32px);
  line-height: 1.25;
  letter-spacing: .03em;
  font-weight: 600;
  margin: 0 0 2.5%;
  transform: rotate(-8deg);
}
.air-api-logo {
  width: min(100%, 410px);
  max-height: 49%;
  object-fit: contain;
  margin: 0 0 5%;
}
.event-meta {
  display: grid;
  gap: .55em;
  font-family: var(--sans);
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: .015em;
}
.event-meta strong { font-weight: 500; }
.event-meta span { font-size: 24px; }

/* Section 2: same full-width image-as-background treatment, copy anchored right. */
.intro {
  display: block;
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: 1366 / 768;
  background: #111;
}
.intro-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  opacity: 1;
}
.intro-copy {
  position: absolute;
  z-index: 2;
  inset: 0 0 0 59%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3%;
  background: transparent;
}
.invitation-text-image {
  display: block;
  width: min(100%, 420px);
  max-height: 94%;
  object-fit: contain;
}

/* Keep every photographic section edge-to-edge in the browser. */
main, .event-promo, .gallery-section, .wishes-section, .rsvp-section, .donation-section {
  width: 100%;
  max-width: none;
}
.event-promo {
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: 1366 / 768;
  display: flex;
  align-items: center;
  background: #071d29;
}
.promo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}
.promo-overlay { background: linear-gradient(90deg, rgba(0, 30, 48, .10), rgba(0,0,0,.04)); }
.promo-copy {
  width: 50%;
  padding: 4% 5%;
  text-align: center;
}
.pementasan-art { width: min(100%, 500px); margin: 0 auto 3%; }
.remember-button-link { width: min(100%, 360px); }
.ticket-link {
  font-family: var(--sans);
  font-size: 24px;
  line-height: 1.35;
  margin-top: 24px;
  letter-spacing: .02em;
}

/* Section 4 gallery stays edge-to-edge; the carousel cards use the available width. */
.gallery-section { width: 100%; }
.gallery-viewport, .gallery-track { width: 100%; }

/* Guest wish results: requested Roboto Mono hierarchy. */
.wish-card { font-family: var(--sans); font-size: 16px; line-height: 1.5; }
.wish-card strong { font-size: 24px; font-weight: 600; }
.wish-card p { font-size: 16px; line-height: 1.5; }
.wish-card time { font-size: 14px; }
.wishes-section {
  min-height: 0;
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 72px);
}
.wishes-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .42; }

/* Background media cover the full viewport width while the content controls section height. */
.rsvp-section, .donation-section { width: 100%; }
.rsvp-image, .donation-image { width: 100%; height: 100%; object-fit: cover; }
.donation-qr-image { display: block; width: 150px; height: 150px; object-fit: contain; background: #fff; border-radius: 8px; }
#donationQr { display: none; }

@media (min-width: 1100px) {
  .hero, .intro { min-height: 0; }
}
@media (max-width: 700px) {
  .hero, .intro {
    aspect-ratio: auto;
    min-height: 480px;
  }
  .hero-photo, .intro-photo { height: 100%; }
  .hero-photo img, .intro-photo img { object-fit: cover; }
  .hero-photo img { object-position: 35% center; }
  .intro-photo img { object-position: 35% center; }
  .hero-copy, .intro-copy {
    inset: 0 0 0 48%;
    padding: 18px 12px;
  }
  .arc { font-size: clamp(11px, 3.2vw, 16px); margin-bottom: 12px; }
  .air-api-logo { width: 100%; max-height: 35%; margin-bottom: 16px; }
  .event-meta { font-size: 16px; gap: 7px; }
  .event-meta span { font-size: 12px; }
  .invitation-text-image { width: 100%; max-height: 92%; }
  .event-promo {
    aspect-ratio: auto;
    min-height: 560px;
    align-items: flex-end;
  }
  .promo-image { object-position: 60% center; }
  .promo-copy { width: 100%; padding: 36px 18px 38px; }
  .pementasan-art { width: min(100%, 370px); }
  .remember-button-link { width: min(88%, 300px); }
  .ticket-link { font-size: 24px; margin-top: 18px; }
  .wish-card { font-size: 16px; }
  .wish-card strong { font-size: 24px; }
  .wish-card p { font-size: 16px; }
  .wish-card time { font-size: 14px; }
  .wishes-section { width: 100%; }
  .rsvp-image, .donation-image { object-fit: cover; }
}


/* === Latest refinement: gallery, full-size backgrounds, typography and buttons === */
/* Section 2: enlarge the supplied invitation artwork while keeping generous vertical breathing room. */
.intro-copy {
  inset: 0 0 0 52%;
  padding: 180px 3.5%;
}
.invitation-text-image {
  width: min(100%, 560px);
  max-height: 100%;
}

/* Section 3: a 500px-tall stage image on desktop, full bleed edge to edge. */
.event-promo {
  height: 500px;
  min-height: 500px;
  aspect-ratio: auto;
  width: 100%;
}
.promo-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Section 4: full-size background plus all 15 supplied photos in the carousel. */
.gallery-section {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  padding: 48px 0 52px;
  color: #fff;
  background-color: #06131c;
  background-image: linear-gradient(rgba(0, 9, 16, .72), rgba(0, 9, 16, .82)), url("assets/gallery-pementasan-01.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section-heading {
  position: relative;
  z-index: 1;
  font-family: var(--sans);
  font-size: 24px;
  margin-bottom: 34px;
}
.gallery-viewport { position: relative; z-index: 1; width: 100%; }
.gallery-track {
  width: 100%;
  gap: 16px;
  padding: 0 5%;
}
.gallery-card,
.gallery-card:nth-child(2),
.gallery-card:nth-child(3),
.gallery-card:nth-child(4) {
  flex: 0 0 34%;
  height: 430px;
  background: rgba(0, 0, 0, .42);
  border: 1px solid rgba(255,255,255,.16);
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.carousel-controls { position: relative; z-index: 1; }
.circle-button {
  color: #fff;
  border-color: rgba(255,255,255,.6);
  background: rgba(0,0,0,.35);
}
.circle-button:hover { background: rgba(255,255,255,.18); }

/* Full-size background imagery for Sections 5, 6 and 7. */
.wishes-section, .rsvp-section, .donation-section { width: 100%; max-width: none; }
.wishes-section { min-height: 620px; }
.wishes-bg img, .rsvp-image, .donation-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.rsvp-section { min-height: 620px; }
.donation-section { min-height: 620px; }

/* Small supporting text and donation CTA use 16px. */
.eyebrow, .dark-form label, .attendance-option, .form-status,
.qr-note, .donation-button, .text-link, .site-footer {
  font-size: 16px;
}
.dark-form input:not(.honeypot),
.dark-form textarea,
.rsvp-form input:not([type="checkbox"]):not(.honeypot) {
  font-size: 16px;
}
.donation-button { padding: 14px 24px; }

/* The supplied Submit and RSVP artwork has a native height of exactly 63px. */
.image-submit-button, .rsvp-image-button {
  width: auto;
  height: 63px;
  min-height: 63px;
  line-height: 0;
}
.image-submit-button img {
  display: block;
  width: auto;
  height: 63px;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 700px) {
  .intro { aspect-ratio: auto; min-height: 540px; }
  .intro-copy { inset: 0 0 0 43%; padding: 100px 12px; }
  .invitation-text-image { width: 100%; max-height: 100%; }
  .event-promo { height: auto; min-height: 500px; }
  .gallery-section { min-height: 0; padding: 36px 0 40px; }
  .gallery-track { gap: 12px; padding: 0 6%; }
  .gallery-card,
  .gallery-card:nth-child(2),
  .gallery-card:nth-child(3),
  .gallery-card:nth-child(4) {
    flex: 0 0 88%;
    height: min(68vh, 520px);
  }
  .wishes-section { min-height: 0; }
  .rsvp-section, .donation-section { min-height: 560px; }
  .eyebrow, .dark-form label, .attendance-option, .form-status,
  .qr-note, .donation-button, .text-link, .site-footer { font-size: 16px; }
  .image-submit-button, .rsvp-image-button { height: 63px; min-height: 63px; }
  .image-submit-button img { height: 63px; }
}

/* Desktop Section 2: reserve approximately 180px above and below the larger invitation artwork. */
@media (min-width: 701px) {
  .intro { height: 920px; min-height: 920px; aspect-ratio: auto; }
  .intro-photo { height: 100%; }
  .intro-copy { padding-top: 180px; padding-bottom: 180px; }
  .invitation-text-image { width: min(100%, 560px); max-height: 100%; }
}


/* === Latest update: full-width backgrounds and supplied gallery controls === */
/* Section 1: retain a generous 180px vertical inset around the right-hand artwork. */
@media (min-width: 701px) {
  .hero { aspect-ratio: 1366 / 768; min-height: 0; height: auto; }
  .hero-copy { padding-top: 180px; padding-bottom: 180px; }
  .hero-photo { min-height: 0; }
}

/* Section 3: let the source artwork scale to the browser width without cropping. */
.event-promo {
  height: auto;
  min-height: 0;
  aspect-ratio: 1366 / 768;
  overflow: hidden;
}
.promo-image { object-fit: cover; object-position: center; }
.promo-copy { position: relative; z-index: 2; }
@media (max-width: 700px) {
  .event-promo { aspect-ratio: auto; min-height: 500px; }
}

/* Section 4: use the supplied Artboard as a full-width background. */
.gallery-section {
  background-image: linear-gradient(rgba(0, 9, 16, .12), rgba(0, 9, 16, .28)), url("assets/section4-background.png");
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #06131c;
}
.circle-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.circle-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.circle-button:hover { background: transparent; transform: scale(1.05); }
.carousel-controls { gap: 12px; margin-top: 28px; }

/* Sections 5-7: keep each background image edge-to-edge and scaled with the section. */
.wishes-section, .rsvp-section, .donation-section {
  width: 100%;
  max-width: none;
  background-size: 100% 100%;
  background-position: center;
}
.wishes-bg img, .rsvp-image, .donation-image {
  width: 100%;
  height: 100%;
  object-fit: fill;
  max-width: none;
}
.wishes-bg img { opacity: .42; }
@media (max-width: 700px) {
  .hero-copy { padding-top: 70px; padding-bottom: 70px; }
  .gallery-section { background-size: auto 100%; }
  .circle-button { width: 48px; height: 48px; }
  .wishes-bg img, .rsvp-image, .donation-image { object-fit: cover; }
}

/* Latest artboard updates: keep each supplied 16:9 background at its intended scale. */
@media (min-width: 701px) {
  .air-api-logo {
    width: min(100%, 480px);
    max-height: 340px;
  }
  .gallery-section {
    min-height: 56.22vw;
    padding: clamp(34px, 5vw, 70px) 0 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #a5f0f5;
    background-image: url("assets/section4-background.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
  }
  .wishes-section,
  .rsvp-section,
  .donation-section {
    height: 768px;
    min-height: 768px;
  }
  .wishes-bg img,
  .rsvp-image,
  .donation-image {
    object-fit: fill;
    object-position: center;
  }
  .wishes-list {
    max-height: 390px;
    overflow-y: auto;
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
  }
  .wish-card { scroll-snap-align: start; }
}
.wishes-bg img { filter: none; opacity: 1; }
.wishes-shade { background: linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.48)); }
.rsvp-image { opacity: 1; }
.rsvp-overlay { background: linear-gradient(90deg,rgba(0,32,58,.18),rgba(0,32,58,.48)); }
.donation-image { opacity: 1; filter: none; }
.donation-overlay { background: linear-gradient(90deg,rgba(0,0,0,.5),rgba(0,0,0,.1)); }
.wishes-list { scroll-behavior: smooth; }
@media (max-width: 700px) {
  .air-api-logo { width: min(100%, 350px); max-height: 260px; }
  .gallery-section {
    min-height: 0;
    background-image: url("assets/section4-background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .wishes-section { height: auto; min-height: 700px; }
  .wishes-bg img { object-fit: cover; }
  .rsvp-section { height: 680px; min-height: 680px; }
  .rsvp-image { object-fit: cover; }
  .donation-section { height: 680px; min-height: 680px; }
  .donation-image { object-fit: cover; }
  .wishes-list { max-height: 300px; overflow-y: auto; scroll-snap-type: y proximity; }
}

/* === Background proportion fix: Sections 2, 5, 6 and 7 === */
/* The supplied artboards are 1366 x 768 (16:9). Match the section ratio on desktop
   and use object-fit: cover so images retain their original proportions. */
@media (min-width: 701px) {
  .intro {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1366 / 768;
    background: #171717 url("assets/section2-wedding.png") center / cover no-repeat;
  }
  .intro-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
  }
  .intro-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .intro-copy {
    position: absolute;
    inset: 0 0 0 52%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 9% 4%;
    background: transparent;
  }
  .invitation-text-image {
    display: block;
    width: min(100%, 460px);
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }

  .wishes-section,
  .rsvp-section,
  .donation-section {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1366 / 768;
    overflow: hidden;
  }
  .wishes-bg img,
  .rsvp-image,
  .donation-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
  }
  .wishes-section { padding: 4.5% 7%; }
  .wishes-list { max-height: min(390px, 58%); }
}

@media (max-width: 700px) {
  /* On portrait screens, fill the section without distorting the image. */
  .intro {
    display: block;
    position: relative;
    width: 100%;
    height: 560px;
    min-height: 560px;
    aspect-ratio: auto;
    background: #171717;
  }
  .intro-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
  }
  .intro-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 36% center;
  }
  .intro-copy {
    position: absolute;
    inset: 0 0 0 42%;
    padding: 70px 12px;
    background: transparent;
  }
  .invitation-text-image {
    width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
  }
  .wishes-bg img,
  .rsvp-image,
  .donation-image {
    object-fit: cover;
    object-position: center;
  }
}


/* === Tablet and mobile layout: same HTML, responsive CSS only === */
@media (max-width: 1099px) {
  /* Section 1: photo first, followed by its own black text panel. */
  .hero {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    overflow: hidden;
    background: #000;
  }
  .hero-photo {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    width: 100%;
    height: clamp(320px, 53vw, 560px);
    min-height: 0;
    overflow: hidden;
  }
  .hero-photo img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: left center;
  }
  .hero-copy {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 0;
    padding: clamp(36px, 6vw, 64px) 24px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .air-api-logo {
    width: min(86%, 420px);
    max-height: none;
    margin: 0 0 30px;
  }
  .event-meta {
    font-size: clamp(18px, 3vw, 28px);
    line-height: 1.4;
  }
  .event-meta span { font-size: clamp(13px, 2vw, 20px); }

  /* Section 2: photo first, invitation artwork in its own dark panel below. */
  .intro {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    overflow: hidden;
    background: #171717;
  }
  .intro-photo {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    width: 100%;
    height: clamp(320px, 53vw, 560px);
    min-height: 0;
    overflow: hidden;
  }
  .intro-photo img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: left center;
  }
  .intro-copy {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 0;
    padding: clamp(38px, 7vw, 72px) 24px;
    background: #171717;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .invitation-text-image {
    width: min(88%, 460px);
    max-height: none;
    height: auto;
    object-fit: contain;
  }

  /* Section 3: keep all promotional content centered vertically over the artwork. */
  .event-promo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1366 / 768;
    overflow: hidden;
  }
  .promo-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .promo-copy {
    align-self: center;
    width: min(76%, 620px);
    padding: 5% 4%;
    margin: auto;
  }

  /* Section 6: center RSVP content horizontally over the background. */
  .rsvp-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 560px;
    height: auto;
    aspect-ratio: 1366 / 768;
    padding: 40px 20px;
    overflow: hidden;
  }
  .rsvp-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .rsvp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 49, 82, .32);
  }
  .rsvp-form-wrap {
    width: min(100%, 430px);
    margin: 0;
    padding: 36px 0;
  }

  /* Section 7: center donation title, QR code and link as one group. */
  .donation-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 560px;
    height: auto;
    aspect-ratio: 1366 / 768;
    padding: 40px 20px;
    overflow: hidden;
  }
  .donation-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .donation-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .34);
  }
  .donation-copy {
    width: min(100%, 430px);
    padding: 24px 12px;
    align-items: center;
    text-align: center;
  }
  .donation-copy .eyebrow { text-align: center; }
  .qr-note { text-align: center; }
}

/* Portrait phones: tune image framing and vertical rhythm without touching desktop. */
@media (max-width: 700px) {
  .hero-photo,
  .intro-photo {
    height: clamp(285px, 88vw, 430px);
  }
  .hero-photo img,
  .intro-photo img {
    object-position: left center;
  }
  .hero-copy { padding: 38px 20px 42px; }
  .air-api-logo { width: min(88%, 340px); margin-bottom: 26px; }
  .event-meta { font-size: 20px; }
  .event-meta span { font-size: 13px; }
  .intro-copy { padding: 42px 20px 46px; }
  .invitation-text-image { width: min(92%, 360px); }
  .event-promo {
    aspect-ratio: auto;
    min-height: 500px;
    padding: 36px 0;
  }
  .promo-copy {
    width: 100%;
    padding: 32px 20px;
  }
  .pementasan-art { width: min(100%, 370px); }
  .remember-button-link { width: min(88%, 260px); }
  .ticket-link { font-size: 16px; }
  .rsvp-section {
    aspect-ratio: auto;
    min-height: 620px;
    padding: 34px 22px;
  }
  .rsvp-form-wrap { width: min(100%, 390px); padding: 28px 0; }
  .rsvp-form-wrap h2 { font-size: 28px; }
  .attendance-option { justify-content: center; text-align: left; }
  .donation-section {
    aspect-ratio: auto;
    min-height: 580px;
    padding: 34px 22px;
  }
  .donation-copy { padding: 24px 12px; }
  .donation-copy .eyebrow { font-size: 14px; }
  .qr-frame { min-width: 150px; min-height: 150px; }
  .donation-qr-image { width: 150px; height: 150px; }
  .donation-button { font-size: 12px; padding: 13px 20px; }
}

/* Tablet landscape: retain the stacked mobile composition while using more space. */
@media (min-width: 701px) and (max-width: 1099px) {
  .hero-photo, .intro-photo { height: clamp(380px, 52vw, 570px); }
  .hero-copy, .intro-copy { padding-top: 58px; padding-bottom: 58px; }
  .air-api-logo { width: min(70%, 430px); }
  .invitation-text-image { width: min(72%, 460px); }
  .event-promo { min-height: 0; }
  .rsvp-section, .donation-section { min-height: 620px; }
}



/* === Opening invitation screen ===
   The uploaded background artwork is kept in its original proportions.
   Keep this small block at the end so it overrides older layout rules cleanly. */
.invitation-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  background: #000 url("assets/invitation-cover-background.png") center center / cover no-repeat;
  transform: translateY(0);
  visibility: visible;
  transition: transform 900ms cubic-bezier(.76, 0, .24, 1), visibility 900ms;
  will-change: transform;
}
.invitation-gate-content {
  width: min(92%, 620px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 80px;
  text-align: center;
}
.invitation-gate-title {
  display: block;
  width: min(100%, 540px);
  height: auto;
  object-fit: contain;
  margin: 0 0 10px;
}
.invitation-gate-button {
  display: block;
  width: min(54%, 270px);
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  transition: transform 180ms ease;
}
.invitation-gate-button img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.invitation-gate-button:hover { transform: translateY(-2px); }
.invitation-gate-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
  border-radius: 30px;
}
body.invitation-locked { overflow: hidden; }
body.invitation-locked > header,
body.invitation-locked > main,
body.invitation-locked > .site-footer {
  visibility: hidden;
}
body.invitation-open { overflow-x: hidden; }
body.invitation-open .invitation-gate {
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 700px) {
  .invitation-gate {
    background-position: center center;
    background-size: auto 100%;
  }
  .invitation-gate-content {
    width: min(92%, 440px);
    padding-top: clamp(42px, 8vh, 72px);
  }
  .invitation-gate-title {
    width: min(88%, 320px);
    margin-bottom: 8px;
  }
  .invitation-gate-button { width: min(64%, 250px); }
}
@media (prefers-reduced-motion: reduce) {
  .invitation-gate { transition-duration: 1ms; }
  .invitation-gate-button { transition: none; }
}

/* === Wedding page sections 1–3: updated artwork layout === */
:root {
  --script: "Native Record Script", "Brush Script MT", cursive;
  --story-sans: "Napzer Sans", "Native Record Sans", sans-serif;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: #000;
}
.hero-photo {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.14);
  filter: grayscale(1);
  opacity: 1;
}
.hero-copy {
  min-width: 0;
  padding: clamp(24px, 4vw, 64px);
  background: #000;
  justify-content: center;
  gap: clamp(16px, 2.2vw, 30px);
}
.air-api-logo {
  display: block;
  width: min(100%, 528px);
  max-height: 46%;
  object-fit: contain;
  margin: 0 auto;
}
.hero-preview-buttons {
  width: min(100%, 360px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-preview-buttons img { width: 100%; height: auto; object-fit: contain; }
.intro {
  min-height: 0;
  aspect-ratio: 16 / 9;
  grid-template-columns: 1fr 1fr;
  background: #171717;
}
.intro-photo { min-height: 0; height: 100%; }
.intro-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.intro-copy {
  min-width: 0;
  min-height: 0;
  padding: clamp(20px, 3vw, 48px);
  background: #171717;
}
.invitation-text-image {
  display: block;
  width: min(100%, 560px);
  max-height: 90%;
  object-fit: contain;
}
.event-promo {
  min-height: 0;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  background: #171717;
}
.promo-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: grayscale(1);
}
.promo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0) 34%, rgba(0,0,0,.24) 52%, rgba(0,0,0,.55) 100%);
}
.promo-copy {
  z-index: 1;
  width: 50%;
  min-width: 0;
  padding: clamp(22px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  color: #fff;
}
.promo-copy h2 {
  font-family: var(--script);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 clamp(12px, 2vw, 26px);
}
.promo-body {
  font-family: var(--story-sans);
  font-size: clamp(10px, 1.05vw, 15px);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.promo-body p { margin: 0 0 1em; }
.promo-body p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .hero, .intro, .event-promo {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    min-height: 0;
  }
  .hero-photo {
    height: auto;
    aspect-ratio: 640 / 1138;
    min-height: 0;
    flex: none;
  }
  .hero-photo img { transform: scale(1.08); object-position: center 54%; }
  .hero-copy {
    min-height: 0;
    padding: 30px 22px 38px;
    gap: 16px;
  }
  .air-api-logo { width: min(88%, 430px); max-height: none; }
  .hero-preview-buttons { width: min(80%, 330px); gap: 8px; }
  .intro-photo { height: auto; aspect-ratio: 16 / 9; min-height: 0; flex: none; }
  .intro-copy { min-height: 0; padding: 28px 22px 36px; }
  .invitation-text-image { width: min(100%, 500px); max-height: none; }
  .event-promo { padding: 0; }
  .promo-image {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1366 / 768;
    object-fit: cover;
    flex: none;
  }
  .promo-overlay { display: none; }
  .promo-copy {
    width: 100%;
    padding: 30px 24px 40px;
    background: #171717;
    text-align: left;
  }
  .promo-copy h2 { font-size: clamp(40px, 10vw, 58px); margin-bottom: 18px; }
  .promo-body { font-size: clamp(13px, 3.6vw, 16px); line-height: 1.65; }
}

/* === Latest requested layout refinements: sections 2, 4, 6 and 7 === */
/* Section 2: transparent image-art panel on desktop, stacked colored panel on mobile. */
.intro { background: #000; }
.intro-copy {
  background: transparent;
  justify-content: center;
  align-items: center;
  padding: clamp(20px, 3vw, 48px);
}
.invitation-text-image {
  width: 100%;
  max-width: 680px;
  max-height: none;
  height: auto;
  object-fit: contain;
}

/* Section 4: one centered square photo per slide; navigation stays underneath. */
.gallery-section { padding: 48px 0 54px; }
.gallery-viewport { width: 100%; overflow: hidden; }
.gallery-track {
  display: flex;
  width: 100%;
  gap: 0;
  padding: 0;
  align-items: center;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.gallery-card,
.gallery-card:nth-child(2),
.gallery-card:nth-child(3),
.gallery-card:nth-child(4) {
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  background: transparent;
  cursor: zoom-in;
}
.gallery-card img {
  display: block;
  width: min(78vw, 620px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.carousel-controls { margin-top: 26px; gap: 18px; }

/* Section 6: make the QR and heading the focus, without alternate donation links. */
.donation-copy {
  width: 100%;
  align-items: center;
  text-align: center;
  padding: clamp(36px, 5vw, 72px) 24px;
}
.donation-copy .eyebrow {
  margin: 0 0 28px;
  font-size: clamp(24px, 3vw, 24px);
  letter-spacing: .08em;
  max-width: 650px;
}
.qr-frame {
  width: min(42vw, 390px);
  padding: 14px;
  background: #fff;
  border-radius: 18px;
}
.donation-qr-image { display: block; width: 100%; height: auto; }

/* Section 7: preserve the uploaded 16:9 background proportion without stretching. */
.countdown-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 0;
  aspect-ratio: 1366 / 768;
  background: #031c2c;
  color: #fff;
}
.countdown-background {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.countdown-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,.18) 58%, rgba(0,0,0,.04));
}
.countdown-copy {
  position: relative;
  z-index: 2;
  width: 50%;
  padding: clamp(28px, 5vw, 76px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 1.6vw, 22px);
}
.countdown-copy .eyebrow {
  margin: 0;
  font-size: clamp(12px, 1.2vw, 16px);
  letter-spacing: .18em;
}
.countdown-copy h2 {
  margin: 0;
  font-family: var(--script, cursive);
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 400;
  line-height: 1.05;
}
.countdown-timer { display: flex; gap: clamp(12px, 2vw, 28px); }
.countdown-unit { display: flex; flex-direction: column; align-items: center; min-width: clamp(56px, 6vw, 88px); }
.countdown-unit strong { font-size: clamp(28px, 3.5vw, 48px); line-height: 1.1; font-weight: 500; }
.countdown-unit span { margin-top: 7px; font-size: clamp(9px, .9vw, 12px); letter-spacing: .15em; }
.ticket-purchase-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 28px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.35);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .08em;
  transition: background .2s ease, transform .2s ease;
}
.ticket-purchase-button:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

@media (max-width: 700px) {
  .intro { aspect-ratio: auto; }
  .intro-photo { width: 100%; height: auto; aspect-ratio: 2 / 3; }
  .intro-photo img { width: 100%; height: 100%; object-fit: cover; }
  .intro-copy { width: 100%; background: #171717; padding: 30px 22px 36px; }
  .invitation-text-image { width: min(100%, 520px); }
  .gallery-section { padding: 34px 0 42px; }
  .gallery-card img { width: min(84vw, 520px); }
  .donation-copy { padding: 42px 20px; }
  .donation-copy .eyebrow { font-size: clamp(22px, 7vw, 32px); margin-bottom: 22px; }
  .qr-frame { width: min(74vw, 340px); padding: 12px; }
  .countdown-section {
    aspect-ratio: 1366 / 768;
    min-height: 480px;
    align-items: flex-end;
  }
  .countdown-background { object-position: 62% center; }
  .countdown-shade { background: linear-gradient(0deg, rgba(0,0,0,.7), rgba(0,0,0,.1) 100%); }
  .countdown-copy { width: 100%; padding: 30px 22px 38px; align-items: center; text-align: center; gap: 14px; }
  .countdown-copy h2 { font-size: clamp(32px, 9vw, 46px); }
  .countdown-unit { min-width: 66px; }
  .countdown-unit strong { font-size: 32px; }
  .countdown-unit span { font-size: 9px; }
  .ticket-purchase-button { min-height: 42px; padding: 11px 24px; }
}


/* === User refinement: section 2 image, gallery seams, donation alignment, countdown number tiles === */
@media (min-width: 701px) {
  .intro {
    grid-template-columns: 66% 34%;
    min-height: 0;
    align-items: stretch;
  }
  .intro-photo {
    min-height: 0;
    height: auto;
    aspect-ratio: 2 / 3;
  }
  .intro-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    filter: grayscale(1);
  }
}
@media (max-width: 700px) {
  .intro-photo {
    aspect-ratio: 2 / 3;
    height: auto;
    min-height: 0;
  }
  .intro-photo img {
    object-fit: cover;
    object-position: center 35%;
  }
}

/* Remove visible hairlines/borders around the gallery image and its viewport. */
.gallery-section,
.gallery-viewport,
.gallery-track,
.gallery-card,
.gallery-card img {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
.gallery-viewport { background: transparent; }
.gallery-card { background: transparent !important; }
.gallery-card:focus,
.gallery-card:focus-visible { outline: none !important; }

/* Donation copy sits flush-left rather than centered. */
.donation-copy {
  align-items: flex-start !important;
  text-align: left !important;
  margin-left: 0;
}
.donation-copy .eyebrow { text-align: left !important; }

/* The supplied rounded blue tile sits behind each countdown number. */
.countdown-unit {
  gap: 0;
  min-width: clamp(82px, 8.5vw, 122px);
}
.countdown-unit strong {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(82px, 8.5vw, 122px);
  height: clamp(82px, 8.5vw, 122px);
  background: url("assets/countdown-number-background.png") center / 100% 100% no-repeat;
  color: #fff;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1;
  font-weight: 600;
}
.countdown-unit span { margin-top: 12px; }
.countdown-copy { gap: clamp(16px, 2vw, 26px); }
@media (max-width: 700px) {
  .countdown-unit { min-width: 72px; }
  .countdown-unit strong {
    width: 72px;
    height: 72px;
    font-size: 27px;
  }
  .countdown-unit span { margin-top: 9px; }
  .donation-copy {
    align-items: flex-start !important;
    text-align: left !important;
  }
}


/* === Latest refinements: desktop section 2 photo, framing, donation offset, larger live countdown === */
@media (min-width: 1100px) {
  .intro {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }
  .intro-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }
  .intro-photo picture,
  .intro-photo img {
    display: block;
    width: 100%;
    height: 100%;
  }
  .intro-photo img {
    object-fit: cover;
    object-position: center;
  }
  .intro-copy {
    position: absolute;
    inset: 0 0 0 59%;
    width: auto;
    height: 100%;
    background: transparent;
  }
}

/* Do not crop the hero couple as aggressively; keep both people comfortably in frame. */
.hero-photo img {
  transform: scale(1.02);
  object-position: center 52%;
}

/* Keep donation content aligned left with a deliberate inset from the viewport edge. */
@media (min-width: 701px) {
  .donation-copy {
    margin-left: clamp(18px, 2.5vw, 42px);
    padding-left: clamp(34px, 6vw, 88px);
    box-sizing: border-box;
  }
}

/* Countdown tiles are larger and include seconds; values update every second in app.js. */
.countdown-timer {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(10px, 1.5vw, 24px);
}
.countdown-unit {
  min-width: clamp(92px, 9.5vw, 142px);
}
.countdown-unit strong {
  width: clamp(92px, 9.5vw, 160px);
  height: clamp(92px, 9.5vw, 160px);
  font-size: clamp(34px, 4vw, 64px);
}
.countdown-unit span {
  margin-top: 14px;
  font-size: clamp(10px, 1vw, 24px);
}
.countdown-copy { gap: clamp(18px, 2.2vw, 32px); }
@media (max-width: 1099px) {
  .countdown-timer { gap: clamp(8px, 2vw, 18px); }
  .countdown-unit { min-width: clamp(66px, 12vw, 96px); }
  .countdown-unit strong {
    width: clamp(66px, 12vw, 96px);
    height: clamp(66px, 12vw, 96px);
    font-size: clamp(25px, 4.5vw, 40px);
  }
}
@media (max-width: 700px) {
  .countdown-timer { gap: 7px; }
  .countdown-unit { min-width: 0; flex: 1 1 0; }
  .countdown-unit strong {
    width: min(20vw, 78px);
    height: min(20vw, 78px);
    font-size: clamp(22px, 6vw, 30px);
  }
  .countdown-unit span { font-size: 8px; letter-spacing: .08em; }
}


/* === Responsive refinements requested: rounded gallery, mobile framing, final countdown === */
/* Desktop gallery: softly rounded square photo, without rounding the whole section. */
@media (min-width: 901px) {
  .gallery-card img {
    border-radius: 16px;
    overflow: hidden;
  }
}

/* Mobile/tablet: use the same Section 2 photo as desktop and frame it from the left. */
@media (max-width: 900px) {
  .intro-photo {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 2 / 3;
    overflow: hidden;
  }
  .intro-photo picture {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .intro-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    transform: scale(1.12);
    transform-origin: left center;
  }

  /* Section 3 image: keep it flush-left and gently zoomed, with no stretching. */
  .event-promo {
    overflow: hidden;
  }
  .event-promo .promo-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: left center;
    transform: scale(1.12);
    transform-origin: left center;
  }

  /* Rounded gallery image on mobile too. */
  .gallery-card img {
    border-radius: 14px;
    overflow: hidden;
  }
}

/* Keep the final countdown centered, legible, and fully visible above the footer. */
.countdown-section {
  display: flex;
  align-items: center;
  justify-content: center;
}
.countdown-copy {
  box-sizing: border-box;
  width: min(100%, 900px);
  align-items: center;
  text-align: center;
  margin: 0 auto;
}
.countdown-timer {
  width: 100%;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
}
.ticket-purchase-button {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
@media (max-width: 700px) {
  .countdown-section {
    aspect-ratio: auto;
    height: auto;
    min-height: 610px;
    padding: 34px 14px;
    align-items: center;
  }
  .countdown-background {
    object-fit: cover;
    object-position: 62% center;
  }
  .countdown-copy {
    width: 100%;
    max-width: 440px;
    padding: 22px 6px;
    gap: 22px;
  }
  .countdown-timer {
    width: 100%;
    gap: clamp(4px, 1.5vw, 10px);
    justify-content: space-between;
  }
  .countdown-unit {
    flex: 1 1 0;
    min-width: 0;
  }
  .countdown-unit strong {
    width: clamp(54px, 19vw, 76px);
    height: clamp(54px, 19vw, 76px);
    font-size: clamp(21px, 6vw, 29px);
  }
  .countdown-unit span {
    font-size: clamp(7px, 2.1vw, 9px);
    letter-spacing: .04em;
    white-space: nowrap;
  }
  .ticket-purchase-button {
    min-height: 46px;
    padding: 12px 22px;
    font-size: 12px;
    margin-bottom: 6px;
  }
}
@media (min-width: 701px) and (max-width: 900px) {
  .countdown-section {
    min-height: 600px;
    aspect-ratio: auto;
    padding: 34px 20px;
  }
  .countdown-copy {
    width: min(100%, 680px);
  }
}


/* === Final countdown and desktop gallery refinements === */
@media (min-width: 901px) {
  .gallery-card {
    border-radius: 16px !important;
    overflow: hidden !important;
    isolation: isolate;
  }
  .gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 16px !important;
    clip-path: inset(0 round 16px);
  }
}

/* Desktop countdown aligns to the left with a comfortable page inset. */
@media (min-width: 701px) {
  .countdown-copy {
    align-items: flex-start !important;
    text-align: left !important;
    margin-left: clamp(28px, 7vw, 112px) !important;
    margin-right: auto !important;
  }
  .countdown-timer {
    justify-content: flex-start !important;
  }
  .ticket-purchase-button {
    align-self: center;
  }
}

/* Mobile keeps the countdown centered; the timer contains only days, hours, minutes. */
@media (max-width: 700px) {
  .countdown-copy {
    align-items: center !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .countdown-timer {
    justify-content: center !important;
  }
  .ticket-purchase-button {
    align-self: center;
  }
}

/* === V6: desktop gallery returns to a centered 1:1 photo on a 16:9 section === */
@media (min-width: 901px) {
  .gallery-section {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0 !important;
    height: auto;
    box-sizing: border-box;
    padding: clamp(24px, 3vw, 44px) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-size: 100% 100%;
    background-position: center;
  }

  .gallery-section .section-heading {
    flex: 0 0 auto;
    margin-bottom: clamp(16px, 2vw, 28px);
  }

  .gallery-section .gallery-viewport {
    width: 100%;
    flex: 0 0 auto;
  }

  .gallery-section .gallery-track {
    width: 100%;
    align-items: center;
  }

  /* Each slide keeps the full viewport width for navigation, while its photo stays square and centered. */
  .gallery-section .gallery-card,
  .gallery-section .gallery-card:nth-child(2),
  .gallery-section .gallery-card:nth-child(3),
  .gallery-section .gallery-card:nth-child(4) {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    overflow: visible !important;
    background: transparent;
  }

  .gallery-section .gallery-card img {
    display: block;
    width: min(38vw, 560px) !important;
    max-width: calc(100vw - 48px);
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px !important;
    clip-path: inset(0 round 16px);
    overflow: hidden;
  }

  .gallery-section .carousel-controls {
    flex: 0 0 auto;
    margin-top: clamp(16px, 2vw, 26px);
  }
}
.hero-photo video {
    display: block;
    width: 100%;
    height: 100%;
    
    object-position: center;
  }
