:root {
  --navy: #17263d;
  --navy-dark: #0e192b;
  --blue-soft: #53647c;
  --white: #ffffff;
  --ivory: #f8f7f3;
  --line: #dfe2e6;
  --text: #273142;
  --muted: #7c8490;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.serif {
  font-family: "Cormorant Garamond", serif;
}

.center-text {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


/* Cover */

.cover {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.98),
      rgba(248,247,243,.98)
    );

  transition:
    opacity .7s ease,
    visibility .7s ease;
}

.cover.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cover-inner {
  position: relative;
  width: min(92%, 540px);
  padding: 50px 28px;
}

.cover-inner::before,
.cover-inner::after {
  content: "";

  position: absolute;
  left: 50%;

  width: 95px;
  height: 1px;

  background: rgba(23,38,61,.45);

  transform: translateX(-50%);
}

.cover-inner::before {
  top: 0;
}

.cover-inner::after {
  bottom: 0;
}

.cover-label {
  color: var(--blue-soft);

  font-size: 9px;
  letter-spacing: .38em;
  text-transform: uppercase;

  margin-bottom: 24px;
}

.cover-ornament {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 11px;
  margin-bottom: 17px;
}

.cover-ornament span {
  width: 48px;
  height: 1px;
  background: rgba(23,38,61,.35);
}

.cover-ornament svg {
  width: 13px;
  height: 13px;
  color: var(--navy);
}

.cover-ornament.bottom {
  margin-top: 17px;
  margin-bottom: 0;
}

.cover-names {
  color: var(--navy);

  font-size: clamp(40px, 9vw, 62px);
  line-height: .9;

  font-weight: 500;
  letter-spacing: -.02em;
}

.cover-date {
  color: var(--muted);

  font-size: 9px;
  letter-spacing: .25em;
  text-transform: uppercase;

  margin-top: 28px;
}

.open-btn {
  margin-top: 35px;

  padding: 14px 28px;

  color: var(--white);
  background: var(--navy);

  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;

  transition:
    transform .25s ease,
    background .25s ease;
}

.open-btn:hover {
  transform: translateY(-2px);
  background: var(--navy-dark);
}


/* General */

.section {
  position: relative;
  padding: 100px 20px;
}

.section-inner {
  width: min(100%, 980px);
  margin: 0 auto;
}

.section-label {
  color: var(--blue-soft);

  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;

  margin-bottom: 16px;
}

.section-title {
  color: var(--navy);

  font-size: clamp(38px, 7vw, 64px);
  line-height: .95;
  font-weight: 500;
}

.section-line {
  width: 46px;
  height: 1px;

  background: var(--navy);

  margin: 24px 0;
}

.section-text {
  max-width: 620px;

  color: var(--muted);

  font-size: 13px;
  line-height: 2;
}


/* Hero */

.hero {
  min-height: 100svh;

  position: relative;
  overflow: hidden;

  background: var(--ivory);
}

.hero::before {
  content: "";

  position: absolute;
  top: 42px;
  left: 42px;

  width: 90px;
  height: 90px;

  border-top: 1px solid rgba(23,38,61,.35);
  border-left: 1px solid rgba(23,38,61,.35);
}

.hero::after {
  content: "";

  position: absolute;
  right: 42px;
  bottom: 42px;

  width: 90px;
  height: 90px;

  border-right: 1px solid rgba(23,38,61,.35);
  border-bottom: 1px solid rgba(23,38,61,.35);
}

.hero-grid {
  width: min(100%, 1180px);
  min-height: 100svh;

  margin: 0 auto;

  padding: 60px 42px;

  display: grid;
  grid-template-columns: .85fr 1.15fr;

  align-items: center;

  gap: 70px;
}

.hero-content {
  position: relative;
  z-index: 2;

  padding: 30px 0;
}

.hero-content::before {
  content: "01";

  position: absolute;

  top: -15px;
  left: -20px;

  color: rgba(23,38,61,.045);

  font-family: "Cormorant Garamond", serif;

  font-size: 170px;
  line-height: 1;

  pointer-events: none;
}

.hero-label {
  position: relative;

  color: var(--blue-soft);

  font-size: 9px;
  letter-spacing: .35em;
  text-transform: uppercase;

  margin-bottom: 28px;
}

.hero-ornament-top,
.hero-ornament-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  gap: 11px;
}

.hero-ornament-top {
  margin-bottom: 25px;
}

.hero-ornament-bottom {
  margin-top: 26px;
}

.hero-ornament-top span,
.hero-ornament-bottom span {
  width: 48px;
  height: 1px;

  background: rgba(23,38,61,.35);
}

.hero-ornament-top svg,
.hero-ornament-bottom svg {
  width: 12px;
  height: 12px;

  color: var(--navy);
}

.hero-names {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  color: var(--navy);

  font-family: "Cormorant Garamond", serif;

  font-size: clamp(68px, 8vw, 105px);

  line-height: .72;

  font-weight: 500;

  letter-spacing: -.03em;

  text-align: left;
}

.hero-name {
  display: block;
}

.hero-name-and {
  display: block;

  margin: 17px 0;

  color: var(--blue-soft);

  font-size: .48em;

  line-height: .7;
}

.hero-date {
  position: relative;

  margin-top: 30px;
  padding-top: 20px;

  border-top: 1px solid var(--line);

  color: var(--muted);

  font-size: 9px;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.hero-location {
  position: relative;

  margin-top: 10px;

  color: var(--blue-soft);

  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}


/* Hero Photo */

.hero-photo-wrap {
  position: relative;

  height: min(78svh, 760px);
  min-height: 560px;
}

.hero-photo-frame {
  position: absolute;

  inset: 0 20px 20px 0;

  border: 1px solid rgba(23,38,61,.28);

  pointer-events: none;

  z-index: 2;
}

.hero-photo {
  position: absolute;

  inset: 20px 0 0 20px;

  overflow: hidden;

  background: #dfe2e5;
}

.hero-photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 1s ease;
}

.hero-photo:hover img {
  transform: scale(1.025);
}

.hero-photo-number {
  position: absolute;

  right: 25px;
  bottom: 20px;

  z-index: 3;

  color: var(--white);

  font-family: "Cormorant Garamond", serif;

  font-size: 72px;
  line-height: .8;

  text-shadow:
    0 2px 10px rgba(0,0,0,.18);
}

.hero-side-note {
  position: absolute;

  right: -15px;
  top: 50%;

  z-index: 4;

  color: var(--blue-soft);

  font-size: 8px;
  letter-spacing: .3em;
  text-transform: uppercase;

  writing-mode: vertical-rl;

  transform: translateY(-50%);
}

.hero-ornament {
  position: absolute;

  left: -35px;
  bottom: 45px;

  z-index: 4;

  width: 90px;
  height: 90px;

  border: 1px solid rgba(23,38,61,.18);

  transform: rotate(45deg);

  background: rgba(248,247,243,.55);
}

.hero-ornament::before,
.hero-ornament::after {
  content: "";

  position: absolute;

  inset: 16px;

  border: 1px solid rgba(23,38,61,.18);
}

.hero-ornament::after {
  inset: 30px;
}


/* Couple */

.couple {
  background: var(--ivory);
  text-align: center;
}

.couple-inner {
  max-width: 900px;
  margin: 0 auto;
}

.couple-title {
  color: var(--navy);

  font-size: clamp(42px, 7vw, 68px);
  font-weight: 500;
}

.couple-description {
  max-width: 580px;

  margin: 22px auto 60px;

  color: var(--muted);

  font-size: 13px;
  line-height: 2;
}

.couple-grid {
  display: grid;

  grid-template-columns: 1fr auto 1fr;

  align-items: center;

  gap: 36px;
}

.person {
  text-align: center;
}

.person-photo {
  width: 190px;
  height: 190px;

  margin: 0 auto 26px;

  border-radius: 50%;

  overflow: hidden;

  background: #e1e4e7;

  border: 8px solid var(--white);

  box-shadow:
    0 12px 35px rgba(23,38,61,.08);
}

.person-photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.person-name {
  color: var(--navy);

  font-size: 40px;
  line-height: .95;
}

.person-role {
  margin-top: 12px;

  color: var(--muted);

  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.couple-symbol {
  color: var(--navy);

  font-size: 50px;
}


/* Quote */

.quote {
  background: var(--navy);
  color: var(--white);

  text-align: center;
}

.quote-inner {
  max-width: 760px;
  margin: auto;
}

.quote-icon {
  margin-bottom: 28px;
  opacity: .75;
}

.quote-text {
  font-size: clamp(30px, 5vw, 50px);

  line-height: 1.15;
  font-weight: 400;
}

.quote-source {
  margin-top: 28px;

  color: rgba(255,255,255,.6);

  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
}


/* Details */

.details {
  background: var(--white);
}

.details-heading {
  text-align: center;
  margin-bottom: 60px;
}

.details-heading .section-line {
  margin: 22px auto;
}

.details-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.detail-card {
  padding: 48px 35px;

  text-align: center;

  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-icon {
  color: var(--navy);
  margin-bottom: 20px;
}

.detail-title {
  color: var(--navy);

  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;

  margin-bottom: 16px;
}

.detail-date {
  color: var(--navy);
  font-size: 34px;
}

.detail-text {
  margin-top: 10px;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.8;
}

.map-btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  margin-top: 20px;

  padding: 11px 17px;

  color: var(--white);
  background: var(--navy);

  font-size: 8px;
  letter-spacing: .16em;
  text-transform: uppercase;

  transition:
    transform .25s ease,
    background .25s ease;
}

.map-btn:hover {
  transform: translateY(-2px);
  background: var(--navy-dark);
}


/* Countdown */

.countdown {
  background: var(--ivory);
  text-align: center;
}

.countdown-grid {
  max-width: 700px;

  margin: 50px auto 0;

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.count-item {
  padding: 26px 12px;

  border-right: 1px solid var(--line);
}

.count-item:last-child {
  border-right: 0;
}

.count-number {
  color: var(--navy);

  font-family: "Cormorant Garamond", serif;

  font-size: 48px;
  line-height: 1;
}

.count-label {
  margin-top: 8px;

  color: var(--muted);

  font-size: 8px;
  letter-spacing: .2em;
  text-transform: uppercase;
}


/* Gallery */

.gallery {
  background: var(--white);
}

.gallery-heading {
  text-align: center;
  margin-bottom: 50px;
}

.gallery-heading .section-line {
  margin: 22px auto;
}

.gallery-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 8px;
}

.gallery-item {
  aspect-ratio: 4 / 5;

  overflow: hidden;

  background: #e4e6e8;

  cursor: pointer;

  position: relative;
}

.gallery-item:nth-child(2) {
  margin-top: 35px;
}

.gallery-item:nth-child(5) {
  margin-top: -35px;
}

.gallery-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform .6s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}


/* Wishes */

.wishes {
  background: var(--ivory);
}

.wishes-heading {
  text-align: center;
  margin-bottom: 45px;
}

.wishes-heading .section-line {
  margin: 22px auto;
}

.wish-viewport {
  width: min(100%, 680px);

  margin: 0 auto;

  overflow: hidden;
}

.wish-list {
  display: flex;

  gap: 16px;

  transition: transform .45s ease;
}

.wish-card {
  min-width: 100%;

  padding: 34px;

  background: var(--white);

  border-left: 2px solid var(--navy);

  box-shadow:
    0 10px 30px rgba(23,38,61,.05);
}

.wish-card-name {
  color: var(--navy);

  font-size: 13px;
  font-weight: 600;
}

.wish-card-status {
  margin-top: 5px;

  color: var(--muted);

  font-size: 8px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.wish-card-text {
  margin-top: 24px;

  color: var(--navy);

  font-size: 28px;
  line-height: 1.15;

  display: -webkit-box;

  overflow: hidden;

  line-clamp: 4;
  -webkit-line-clamp: 4;

  -webkit-box-orient: vertical;
}

.wish-controls {
  display: flex;

  justify-content: center;
  align-items: center;

  gap: 20px;

  margin-top: 28px;
}

.wish-arrow {
  width: 38px;
  height: 38px;

  display: flex;

  align-items: center;
  justify-content: center;

  color: var(--navy);
  background: var(--white);

  border: 1px solid var(--line);
}

.wish-dots {
  display: flex;
  gap: 6px;
}

.wish-dot {
  width: 5px;
  height: 5px;

  padding: 0;

  border-radius: 50%;

  background: #c4c8cd;
}

.wish-dot.active {
  background: var(--navy);
}


/* RSVP */

.rsvp {
  background: var(--white);
}

.rsvp-inner {
  max-width: 620px;
  margin: 0 auto;
}

.rsvp-heading {
  text-align: center;
  margin-bottom: 45px;
}

.rsvp-heading .section-line {
  margin: 22px auto;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;

  margin-bottom: 8px;

  color: var(--navy);

  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;

  padding: 14px 15px;

  color: var(--text);
  background: var(--white);

  border: 1px solid var(--line);

  outline: none;

  transition: border-color .2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--navy);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.submit-btn {
  width: 100%;

  padding: 16px;

  color: var(--white);
  background: var(--navy);

  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;

  transition: background .25s ease;
}

.submit-btn:hover {
  background: var(--navy-dark);
}


/* Gift */

.gift {
  background: var(--navy);
  color: var(--white);
}

.gift-inner {
  width: min(100%, 820px);

  margin: 0 auto;

  text-align: center;
}

.gift .section-label {
  color: rgba(255,255,255,.6);
}

.gift .section-title {
  color: var(--white);
}

.gift .section-line {
  background: rgba(255,255,255,.65);
}

.gift-description {
  max-width: 560px;

  margin: 0 auto 48px;

  color: rgba(255,255,255,.65);

  font-size: 13px;
  line-height: 2;
}

.gift-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 16px;

  text-align: left;
}

.gift-card {
  padding: 34px;

  background: var(--white);

  color: var(--text);
}

.gift-icon {
  width: 42px;
  height: 42px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin-bottom: 22px;

  color: var(--white);
  background: var(--navy);

  border-radius: 50%;
}

.gift-type {
  color: var(--blue-soft);

  font-size: 8px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.gift-name {
  margin-top: 8px;

  color: var(--navy);

  font-size: 32px;
}

.gift-number {
  margin-top: 20px;

  color: var(--navy);

  font-size: 18px;
  font-weight: 500;

  letter-spacing: .04em;

  word-break: break-word;
}

.gift-owner {
  margin-top: 6px;

  color: var(--muted);

  font-size: 10px;
  line-height: 1.7;
}

.gift-copy {
  margin-top: 22px;

  padding: 11px 18px;

  color: var(--white);
  background: var(--navy);

  font-size: 8px;
  letter-spacing: .18em;
  text-transform: uppercase;

  transition: background .25s ease;
}

.gift-copy:hover {
  background: var(--navy-dark);
}


/* Footer */

.footer {
  padding: 80px 20px;

  text-align: center;

  color: var(--white);
  background: var(--navy-dark);
}

.footer-initials {
  font-size: 64px;
  line-height: .8;
}

.footer-text {
  margin-top: 24px;

  color: rgba(255,255,255,.55);

  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
}


/* Music */

.music-btn {
  position: fixed;

  right: 22px;
  bottom: 22px;

  z-index: 500;

  width: 44px;
  height: 44px;

  display: flex;

  align-items: center;
  justify-content: center;

  color: var(--white);
  background: var(--navy);

  border-radius: 50%;

  box-shadow:
    0 8px 25px rgba(23,38,61,.2);
}

.music-btn.playing svg {
  animation: spin 3s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;

  z-index: 2000;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 30px;

  background: rgba(10,17,29,.94);

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transition:
    opacity .3s ease,
    visibility .3s ease;
}

.lightbox.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox img {
  max-width: 100%;
  max-height: 82vh;

  object-fit: contain;
}

.lightbox-close {
  position: absolute;

  top: 22px;
  right: 22px;

  width: 42px;
  height: 42px;

  display: flex;

  align-items: center;
  justify-content: center;

  color: var(--white);

  background: rgba(255,255,255,.08);

  border: 1px solid rgba(255,255,255,.2);
}


/* Toast */

.toast {
  position: fixed;

  left: 50%;
  bottom: 30px;

  z-index: 3000;

  padding: 12px 20px;

  color: var(--white);
  background: var(--navy);

  font-size: 10px;
  letter-spacing: .08em;

  transform: translate(-50%, 20px);

  opacity: 0;

  pointer-events: none;

  transition:
    opacity .25s ease,
    transform .25s ease;
}

.toast.show {
  opacity: 1;

  transform: translate(-50%, 0);
}


/* Mobile */

/* =====================================================
   MOBILE BOTTOM NAVIGATION
   ===================================================== */

.mobile-nav {
  display: none;
}

@media (max-width: 760px) {

  .mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;

    z-index: 850;

    height: 58px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    background: rgba(23, 38, 61, .97);

    border: 1px solid rgba(255, 255, 255, .14);

    box-shadow:
      0 10px 35px rgba(14, 25, 43, .22);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .mobile-nav-item {
    position: relative;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 4px;

    color: rgba(255, 255, 255, .52);

    text-decoration: none;

    font-size: 7px;
    letter-spacing: .08em;
    text-transform: uppercase;

    transition:
      color .25s ease,
      background .25s ease;
  }

  .mobile-nav-item + .mobile-nav-item {
    border-left:
      1px solid rgba(255, 255, 255, .08);
  }

  .mobile-nav-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    height: 18px;

    color: rgba(255, 255, 255, .55);
  }

  .mobile-nav-icon svg {
    width: 16px;
    height: 16px;

    stroke-width: 1.6;
  }

  .mobile-nav-item.active {
    color: var(--white);

    background:
      rgba(255, 255, 255, .06);
  }

  .mobile-nav-item.active
  .mobile-nav-icon {
    color: var(--white);
  }

  body.locked .mobile-nav {
    opacity: 0;
    pointer-events: none;
  }

  .footer {
    padding-bottom: 100px;
  }

  .music-btn {
    position: fixed;

    right: 18px;
    bottom: 82px;

    z-index: 900;
  }
}

@media (max-width: 420px) {

  .mobile-nav {
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 850;

    height: 56px;
  }

  .mobile-nav-item {
    font-size: 6.5px;
  }

  .mobile-nav-icon svg {
    width: 15px;
    height: 15px;
  }

}

@media (max-width: 760px) {

  .section {
    padding: 78px 18px;
  }

  .cover-inner {
    padding: 42px 22px;
  }

  .cover-names {
    font-size: clamp(38px, 10vw, 55px);
  }

  .cover-ornament span {
    width: 38px;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    top: 20px;
    left: 20px;

    width: 55px;
    height: 55px;
  }

  .hero::after {
    right: 20px;
    bottom: 20px;

    width: 55px;
    height: 55px;
  }

  .hero-grid {
    grid-template-columns: 1fr;

    gap: 45px;

    min-height: auto;

    padding: 75px 26px 65px;
  }

  .hero-content {
    padding: 15px 0 0;
    text-align: left;
  }

  .hero-content::before {
    left: -8px;
    top: -20px;

    font-size: 130px;
  }

  .hero-label {
    margin-bottom: 25px;
  }

  .hero-names {
    font-size: clamp(64px, 20vw, 90px);
    line-height: .72;

    align-items: flex-start;
    text-align: left;
  }

  .hero-name-and {
    margin-top: 18px;
    margin-bottom: 18px;
  }

  .hero-ornament-top {
    margin-bottom: 22px;
  }

  .hero-ornament-bottom {
    margin-top: 23px;
  }

  .hero-ornament-top span,
  .hero-ornament-bottom span {
    width: 38px;
  }

  .hero-date {
    max-width: 280px;
    margin-top: 32px;
  }

  .hero-location {
    margin-top: 12px;
  }

  .hero-photo-wrap {
    height: 68svh;
    min-height: 480px;
  }

  .hero-photo-frame {
    inset: 0 12px 12px 0;
  }

  .hero-photo {
    inset: 12px 0 0 12px;
  }

  .hero-photo-number {
    right: 20px;
    bottom: 15px;

    font-size: 60px;
  }

  .hero-side-note {
    right: -9px;
  }

  .hero-ornament {
    left: -25px;
    bottom: 30px;

    width: 65px;
    height: 65px;
  }

  .hero-ornament::before {
    inset: 12px;
  }

  .hero-ornament::after {
    inset: 23px;
  }

  .couple-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .couple-symbol {
    order: 2;
  }

  .couple-grid .person:first-child {
    order: 1;
  }

  .couple-grid .person:last-child {
    order: 3;
  }

  .person-photo {
    width: 165px;
    height: 165px;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .count-item:nth-child(2) {
    border-right: 0;
  }

  .count-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .gallery-item:nth-child(2) {
    margin-top: 20px;
  }

  .gallery-item:nth-child(5) {
    margin-top: -20px;
  }

  .gift-grid {
    grid-template-columns: 1fr;
  }

  .gift-card {
    padding: 28px 24px;
  }

  .wish-card {
    padding: 27px 22px;
  }

  .wish-card-text {
    font-size: 25px;
  }

  .music-btn {
    right: 16px;
    bottom: 82px;
    z-index: 900;
  }
}


@media (max-width: 420px) {

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-grid {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero-photo-wrap {
    height: 60svh;
    min-height: 410px;
  }

  .hero-names {
    font-size: 56px;
  }

  .hero-name-and {
    margin-top: 16px;
    margin-bottom: 16px;
  }

  .person-name {
    font-size: 34px;
  }

  .quote-text {
    font-size: 31px;
  }

  .detail-card {
    padding: 40px 22px;
  }

  .count-number {
    font-size: 42px;
  }

  .wish-card-text {
    font-size: 23px;
  }

  .gift-number {
    font-size: 16px;
  }
}