/* =========================================
   WEDDING WEBSITE
   ARDIANTO & NURLAELA
   FINAL CSS - SAGE GREEN ELEGANT
========================================= */


/* ROOT */

:root {
  --paper: #F5F6EF;
  --paper-dark: #E8EDE3;
  --ink: #354438;
  --muted: #77786F;
  --green: #647A60;
  --green-dark: #405640;
  --sage-light: #DCE5D7;
  --gold: #AC9562;
  --line: #DEDbd1;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}


/* RESET */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 10px;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

body.cover-open {
  overflow: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

.section-pad {
  padding: 112px max(7vw, 24px);
}

.eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  line-height: 1.7;
}


/* =========================================
   COVER / PEMBUKA
========================================= */

.invitation-cover {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #354438;
  transition: transform 1s cubic-bezier(.76, 0, .24, 1);
  will-change: transform;
}

.invitation-cover.is-open {
  transform: translateY(-100%);
  pointer-events: none;
}

.cover-image,
.cover-shade,
.hero-photo,
.hero-shade,
.countdown-photo,
.countdown-overlay,
.closing-photo,
.closing-shade {
  position: absolute;
  inset: 0;
}

.cover-image {
  background-image: url("images/cover.jpg");
  background-position: center 48%;
  background-size: cover;
  transform: scale(1.02);
}

.cover-shade {
  background: linear-gradient(
    180deg,
    rgba(28, 31, 26, .27),
    rgba(28, 31, 26, .48)
  );
}

.cover-content {
  position: relative;
  z-index: 1;
  width: min(90%, 600px);
  text-align: center;
  animation: appear .9s both;
}

.cover-eyebrow {
  letter-spacing: .3em;
}

.cover-ornament {
  margin-top: 22px;
  color: #d9c99f;
  font-size: 20px;
}

.cover-content h1,
.hero h1 {
  margin: 18px 0 14px;
  font: 400 clamp(58px, 9vw, 96px)/1.08 var(--serif);
  letter-spacing: -.055em;
}

.cover-content h1 {
  margin: 12px 0 10px;
  font-size: clamp(46px, 7vw, 70px);
}

.cover-content h1 span,
.hero h1 em,
.closing-names span {
  color: #d9c99f;
  font-style: italic;
}

.cover-date {
  margin: 0;
  font-size: 10px;
  letter-spacing: .2em;
}

.cover-divider {
  width: 45px;
  height: 1px;
  margin: 25px auto;
  background: rgba(255,255,255,.7);
}

.cover-invite {
  margin: 34px 0 18px;
  font-size: 12px;
}

.cover-invite p {
  margin: 0 0 6px;
  opacity: .8;
}

.cover-invite strong {
  font-weight: 500;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 24px;
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  transition:
    transform .2s,
    background .2s,
    color .2s;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: .7;
}

.button-light {
  color: var(--ink);
  background: var(--paper);
}

.cover-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: .22em;
  white-space: nowrap;
  opacity: .72;
}


/* =========================================
   HEADER
========================================= */

.site-header {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 82px;
  align-items: center;
  justify-content: space-between;
  padding: 0 6.5%;
  color: #fff;
}

.brand {
  font: 500 24px var(--serif);
  letter-spacing: -.08em;
}

.brand span {
  padding: 0 2px;
  color: #d9c99f;
  font-style: italic;
  font-size: 17px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 31px;
}

.main-nav a,
.music-toggle {
  font-size: 10px;
  letter-spacing: .05em;
}

.main-nav a {
  opacity: .85;
  transition: opacity .2s;
}

.main-nav a:hover {
  opacity: 1;
}

.music-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border: 0;
  color: white;
  background: transparent;
  cursor: pointer;
}

.music-icon {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  font-size: 14px;
}

.music-toggle.is-playing .music-icon {
  animation: pulse 1.4s ease-in-out infinite;
}


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

.hero {
  position: relative;
  display: grid;
  min-height: min(800px, 100vh);
  min-height: min(800px, 100svh);
  place-items: center;
  overflow: hidden;
  color: white;
  text-align: center;
}

.hero-photo {
  background-image: url("images/hero.jpg");
  background-position: center 46%;
  background-size: cover;
}

.hero-shade {
  background: linear-gradient(
    180deg,
    rgba(26, 29, 24, .26),
    rgba(26, 29, 24, .48)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 100px 20px 70px;
}

.hero-eyebrow {
  font-size: 17px;
}

.hero-intro {
  margin-top: 22px;
  font-size: 10px;
  letter-spacing: .22em;
}

.hero h1 {
  font-size: clamp(68px, 10vw, 116px);
}

.hero-divider {
  width: 45px;
  height: 1px;
  margin: 20px auto;
  background: #d9c99f;
}

.hero-subtitle {
  margin: 24px 0 28px;
  color: rgba(255,255,255,.83);
  font-size: 13px;
  line-height: 1.9;
}

.hero-date {
  color: #f0e5c7;
  font-size: 10px;
  letter-spacing: .17em;
}

.scroll-cue {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin: 45px auto 0;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  font-size: 18px;
  transition: background .2s;
}

.scroll-cue:hover {
  background: rgba(255,255,255,.16);
}

.hero-index {
  position: absolute;
  right: 6.5%;
  bottom: 35px;
  font-size: 9px;
  letter-spacing: .14em;
}


/* =========================================
   INTRO & COUPLE
========================================= */

.intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #E8EDE3;
  text-align: center;
}

.intro::before {
  position: absolute;
  z-index: -1;
  top: 54px;
  right: 6%;
  width: 112px;
  height: 130px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 140' fill='none' stroke='%23ac9562' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M50 135C52 95 68 62 100 27M56 99C36 87 28 72 27 54c18 5 29 18 29 45Zm11-33C48 58 43 43 46 23c15 11 22 27 21 43Zm8 15c19-4 31-15 37-33-19 2-32 12-37 33Zm-5 24c18-1 31-10 41-26-19-1-33 8-41 26Z'/%3E%3C/svg%3E") center/contain no-repeat;
  content: "";
  opacity: .48;
}

.intro > .eyebrow {
  color: var(--green);
}

.intro h2,
.section-heading h2,
.rsvp-copy h2,
.countdown-content h2,
.closing-content h2 {
  font: 400 clamp(29px, 4vw, 44px)/1.4 var(--serif);
  letter-spacing: -.025em;
}

.intro h2 {
  margin: 25px 0 13px;
  color: var(--green-dark);
  font-size: clamp(23px, 3.2vw, 35px);
}

.verse {
  color: var(--muted);
  font: italic 14px var(--serif);
}

.couple-grid {
  display: grid;
  max-width: 760px;
  grid-template-columns: 1fr 70px 1fr;
  align-items: center;
  gap: 32px;
  margin: 67px auto 0;
}

.person-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.5;
  margin-bottom: 27px;
  background-position: center;
  background-size: cover;
}

.person-photo::after {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(238, 226, 194, .75);
  content: "";
}

.person-photo-bride {
  background-image: url("images/wanita.jpg");
}

.person-photo-groom {
  background-image: url("images/pria.jpg");
}

.person-card .eyebrow {
  color: var(--green);
}

.person-card h3 {
  margin: 8px 0 10px;
  font: 500 23px var(--serif);
}

.person-card > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.couple-and {
  color: var(--gold);
  font: italic 34px var(--serif);
}


/* =========================================
   COUNTDOWN
========================================= */

.countdown-section {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
  overflow: hidden;
  color: white;
  text-align: center;
}

.countdown-photo {
  background-image: url("images/countdown.jpg");
  background-position: center 48%;
  background-size: cover;
}

.countdown-overlay {
  background: rgba(32, 38, 31, .56);
}

.countdown-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.countdown-content .eyebrow {
  color: #e0d9cd;
}

.countdown-content h2 {
  margin: 12px 0 27px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 6vw, 72px);
  margin-bottom: 32px;
}

.countdown div {
  display: grid;
  gap: 5px;
}

.countdown strong {
  font: 400 clamp(34px, 5vw, 50px) var(--serif);
}

.countdown span {
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
}


/* =========================================
   EVENTS
========================================= */

.events {
  background-color: #DCE5D7;
}

.section-heading {
  max-width: 560px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-heading .eyebrow {
  color: var(--green);
}

.section-heading h2 {
  margin: 11px 0 12px;
  color: var(--green-dark);
}

.section-heading h2::after {
  display: block;
  width: 32px;
  height: 1px;
  margin: 15px auto 0;
  background: var(--gold);
  content: "";
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.event-grid {
  display: grid;
  max-width: 880px;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: auto;
}

.event-card {
  position: relative;
  min-height: 320px;
  padding: 38px 40px;
  border: 1px solid rgba(172,149,98,.36);
  background: #F9FAF5;
}

.event-number {
  position: absolute;
  top: 25px;
  right: 27px;
  color: var(--gold);
  font: italic 16px var(--serif);
}

.event-card .eyebrow {
  color: var(--green);
}

.event-card h3 {
  margin: 19px 0 8px;
  font: 500 21px var(--serif);
}

.event-time {
  color: var(--green);
  font-size: 11px;
  line-height: 1.7;
}

.event-rule {
  width: 35px;
  height: 1px;
  margin: 23px 0 17px;
  background: #b8b2a7;
}

.event-place {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.event-place strong {
  color: var(--ink);
  font-size: 12px;
}

.text-link {
  display: inline-block;
  margin-top: 15px;
  border-bottom: 1px solid #b9b5aa;
  padding-bottom: 3px;
  font-size: 10px;
}

.event-note {
  margin: 30px 0 0;
  color: var(--muted);
  text-align: center;
  font: italic 13px var(--serif);
}


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

.gallery-section {
  padding-bottom: 120px;
  background: #F5F6EF;
}

.gallery-section .section-heading {
  margin-bottom: 37px;
}

.gallery-grid {
  display: grid;
  max-width: 1050px;
  grid-template-columns: 1.15fr .85fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 14px;
  margin: auto;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .3s, filter .3s;
}

.gallery-grid img:hover {
  filter: brightness(.92);
}

.gallery-grid img:first-child {
  grid-row: span 2;
}

.gallery-grid img:nth-child(4) {
  grid-column: 2;
}

.gallery-grid img:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
}

.gallery-caption {
  margin: 25px 0 0;
  color: var(--muted);
  text-align: center;
  font: italic 13px var(--serif);
}


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

.rsvp-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 12%;
  background: #DCE5D7;
}

.rsvp-copy {
  position: relative;
  max-width: 360px;
}

.rsvp-copy .eyebrow {
  color: var(--green);
}

.rsvp-copy h2 {
  margin: 15px 0;
  color: var(--green-dark);
}

.rsvp-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.rsvp-flower {
  position: absolute;
  bottom: -30px;
  left: -6px;
  color: rgba(172,149,98,.42);
  font-size: 100px;
  line-height: 1;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  align-self: center;
}

.rsvp-form label {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 600;
}

.rsvp-form input,
.rsvp-form select,
.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  min-height: 47px;
  margin-bottom: 20px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #c8c2b8;
  border-radius: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.guestbook-form input:focus,
.guestbook-form textarea:focus {
  border-color: var(--green);
}

.rsvp-form select {
  color: #77766f;
}

.button-dark {
  align-self: flex-start;
  color: #fff;
  background: #647A60;
}

.button-dark:hover {
  background: #405640;
}

.form-feedback {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--green-dark);
  font-size: 11px;
  line-height: 1.6;
}


/* =========================================
   WEDDING GIFT
========================================= */

.gift-section {
  background: #E8EDE3;
}

.gift-grid {
  display: grid;
  max-width: 850px;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: auto;
}

.gift-card {
  padding: 40px 28px;
  border: 1px solid rgba(172,149,98,.45);
  background: #F9FAF5;
  box-shadow: 0 12px 30px rgba(0,0,0,.04);
  text-align: center;
}

.gift-icon {
  margin-bottom: 15px;
  color: var(--gold);
  font: 36px var(--serif);
}

.gift-card .eyebrow {
  color: var(--green);
}

.gift-card h3 {
  margin: 13px 0 24px;
  font: 500 25px var(--serif);
}

.gift-bank {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
}

.gift-owner {
  margin: 15px 0 8px;
  font-size: 12px;
}

.account-number {
  margin: 12px 0 25px;
  color: var(--gold);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 2px;
}

.gift-address {
  min-height: 70px;
  margin: 15px 0 25px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}


/* =========================================
   GUESTBOOK
========================================= */

.guestbook {
  background: #F5F6EF;
}

.guestbook .section-heading {
  margin-bottom: 30px;
}

.guestbook-form {
  display: grid;
  max-width: 620px;
  grid-template-columns: 1fr auto;
  gap: 0 24px;
  margin: 0 auto 38px;
}

.guestbook-form input {
  grid-column: 1 / -1;
}

.guestbook-form textarea {
  grid-column: 1 / -1;
  min-height: 85px;
  resize: vertical;
}

.guestbook-form .button {
  grid-column: 1;
}

.guestbook-form .form-feedback {
  grid-column: 2;
  align-self: center;
}

.wishes-list {
  display: grid;
  max-width: 820px;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: auto;
}

.wish-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: #F9FAF5;
}

.wish-card h3 {
  margin: 0 0 7px;
  font: 500 16px var(--serif);
}

.wish-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wish-card time {
  display: block;
  margin-top: 12px;
  color: #aaa59b;
  font-size: 9px;
}


/* =========================================
   CLOSING
========================================= */

.closing {
  position: relative;
  display: grid;
  min-height: 540px;
  place-items: center;
  overflow: hidden;
  color: white;
  text-align: center;
}

.closing-photo {
  background-image: url("images/closing.jpg");
  background-position: center 48%;
  background-size: cover;
}

.closing-shade {
  background: rgba(29, 33, 27, .56);
}

.closing-content {
  position: relative;
  z-index: 1;
  padding: 70px 20px;
}

.closing-content .eyebrow {
  color: #e0d9cd;
}

.closing-content h2 {
  max-width: 750px;
  margin: 18px auto 25px;
  font-size: clamp(29px, 4vw, 42px);
}

.closing-names {
  margin: 0 0 9px;
  font: 400 37px var(--serif);
}

.closing-content > p:last-child {
  font-size: 10px;
  letter-spacing: .15em;
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
  display: grid;
  min-height: 130px;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  padding: 22px 7%;
  background: #E1E8DC;
}

.site-footer .brand {
  justify-self: start;
  color: var(--ink);
}

.site-footer p {
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}

.site-footer .footer-credit {
  justify-self: end;
  text-align: right;
}


/* =========================================
   LIGHTBOX
========================================= */

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
  background: rgba(20, 24, 20, .94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s, visibility .25s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox img {
  display: block;
  max-width: min(100%, 1100px);
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 15px 50px rgba(0,0,0,.25);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 25px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  color: white;
  background: transparent;
  font-size: 28px;
  line-height: 1;
}


/* =========================================
   TOAST
========================================= */

.toast {
  position: fixed;
  z-index: 110;
  right: 22px;
  bottom: 22px;
  max-width: min(380px, calc(100% - 44px));
  padding: 14px 18px;
  transform: translateY(20px);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 35px #25251f18;
  color: var(--ink);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}


/* =========================================
   ACCESSIBILITY
========================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  clip-path: inset(50%);
}


/* =========================================
   ANIMATION
========================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .7s ease,
    transform .7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes appear {
  from {
    transform: translateY(12px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 6px rgba(255,255,255,.14);
  }
}


/* =========================================
   TABLET & MOBILE
========================================= */

@media (max-width: 700px) {

  .section-pad {
    padding: 78px 22px;
  }

  .site-header {
    height: 70px;
    padding: 0 22px;
  }

  .main-nav {
    position: fixed;
    z-index: 4;
    right: 0;
    bottom: 0;
    left: 0;
    justify-content: space-around;
    gap: 0;
    padding: 15px 8px calc(15px + env(safe-area-inset-bottom));
    background: rgba(247,244,239,.96);
    color: var(--ink);
    box-shadow: 0 -4px 20px #0000000c;
  }

  .main-nav a {
    font-size: 9px;
  }

  .music-toggle {
    gap: 0;
  }

  .music-toggle #music-label {
    display: none;
  }

  .music-icon {
    border-color: rgba(255,255,255,.7);
  }

  .hero {
    min-height: 720px;
    min-height: 100svh;
  }

  .hero h1 {
    font-size: clamp(48px, 11vw, 72px);
  }

  .cover-content h1 {
    font-size: clamp(44px, 11vw, 62px);
  }

  .cover-invite {
    margin: 28px 0 16px;
  }

  .hero-content {
    padding-top: 90px;
  }

  .hero-subtitle {
    font-size: 12px;
  }

  .couple-grid {
    grid-template-columns: 1fr 34px 1fr;
    gap: 10px;
    margin-top: 48px;
  }

  .person-photo {
    margin-bottom: 20px;
  }

  .person-card h3 {
    font-size: 17px;
  }

  .person-card > p:not(.eyebrow) {
    font-size: 10px;
  }

  .couple-and {
    font-size: 25px;
  }

  .countdown-section {
    min-height: 390px;
    padding: 68px 18px;
  }

  .countdown {
    gap: 20px;
  }

  .event-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .event-card {
    min-height: 0;
    padding: 30px 26px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 150px 150px;
    gap: 8px;
  }

  .gallery-grid img:first-child {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .gallery-grid img:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .gallery-grid img:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .gallery-grid img:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
  }

  .gallery-grid img:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
  }

  .rsvp-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .rsvp-flower {
    right: 0;
    bottom: -10px;
    left: auto;
    font-size: 65px;
  }

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

  .gift-card {
    padding: 32px 22px;
  }

  .wishes-list {
    grid-template-columns: 1fr;
  }

  .guestbook-form {
    grid-template-columns: 1fr;
  }

  .guestbook-form .button,
  .guestbook-form .form-feedback {
    grid-column: 1;
  }

  .closing {
    min-height: 470px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 7px;
    padding: 26px 20px 100px;
  }

  .site-footer .brand,
  .site-footer .footer-credit {
    justify-self: center;
    text-align: center;
  }

  .site-footer p {
    margin: 3px 0;
  }

  .toast {
    right: 15px;
    bottom: 85px;
    left: 15px;
    max-width: none;
    text-align: center;
  }

  .lightbox {
    padding: 20px;
  }

  .lightbox img {
    max-height: 80vh;
  }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {

  .cover-content h1 {
    font-size: 55px;
  }

  .couple-grid {
    grid-template-columns: 1fr 24px 1fr;
    gap: 7px;
  }

  .person-card h3 {
    font-size: 15px;
  }

  .gallery-grid {
    grid-template-rows: 150px 130px 130px;
  }

  .countdown {
    gap: 14px;
  }

  .countdown strong {
    font-size: 31px;
  }

  .main-nav a {
    font-size: 8px;
  }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}