@media (max-width: 900px) {
  .memory-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .memory-card {
    height: 360px;
  }
}

@media (max-width: 700px) {
  .cover-frame {
    width: clamp(330px, 94vw, 520px);
    opacity: .96;
  }

  .cover-frame-top {
    top: -12px;
    left: -26vw;
  }

  .cover-frame-bottom {
    right: -28vw;
    bottom: -12px;
    width: clamp(350px, 100vw, 560px);
  }

  .corner-leaves {
    width: min(50vw, 205px);
  }

  .gate-content {
    width: min(72vw, 285px);
    height: 395px;
    margin-top: 12vh;
    padding: 0;
  }

  .gate-cover-image {
    width: min(100%, 275px);
  }

  .gate-wreath {
    height: 352px;
  }

  .gate-names {
    top: 130px;
    width: min(100%, 285px);
    font-size: clamp(54px, 17vw, 66px);
  }

  .btn-primary {
    top: 318px;
    min-width: 128px;
    min-height: 46px;
    padding: 10px 24px;
    border-radius: 999px;
    font-size: 14px;
  }

  .section {
    min-height: auto;
    padding: 84px 18px;
  }

  .hero {
    min-height: 100vh;
    padding: 0 18px 72px;
  }

  .hero-bg {
    height: 52vh;
  }

  .hero-overlay {
    top: 33vh;
    height: 25vh;
  }

  .hero-content {
    padding-top: 58vh;
  }

  .hero-logo {
    width: min(70vw, 220px);
  }

  .hero-rings {
    width: min(30vw, 104px);
    margin: -10px auto 0;
  }

  .wedding-countdown {
    padding: 34px 18px 42px;
  }

  .countdown-date {
    margin: 20px auto 24px;
  }

  .countdown-date-image {
    width: min(72vw, 220px);
    margin: 18px auto 22px;
  }

  .countdown-month-image {
    width: 100%;
    max-width: 390px;
    margin-top: 24px;
  }

  .countdown-month-card {
    margin-top: 24px;
    padding-top: 22px;
  }

  .calendar-leaves-top {
    top: -24px;
    left: -16%;
    width: min(25vw, 92px);
  }

  .calendar-leaves-bottom {
    right: -13%;
    bottom: -22px;
    width: min(23vw, 82px);
  }

  .calendar-grid span {
    min-height: 26px;
  }

  .gifts-section-custom {
  text-align: center;
}

.gifts-inner-custom {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gifts-title-custom {
  letter-spacing: 0;
  word-spacing: 0;
  line-height: 1.1;
  margin-bottom: 42px;
}

.gifts-copy-custom {
  font-size: 37px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  max-width: 620px;
  margin: 0 auto 55px;
  color: #fff;
}

.gifts-options-custom {
  width: 100%;
  display: flex;
  justify-content: center;
}

.gift-card-custom {
  width: 360px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qr-image-box-custom {
  width: 190px;
  height: 190px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-image-box-custom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gift-bank-text-custom {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

  .countdown-box {
    margin-top: 30px;
  }

  .family-grid,
  .memory-gallery,
  .event-cards {
    grid-template-columns: 1fr;
  }

  .event-details {
    min-height: auto;
    padding: 64px 24px;
  }

  .event-details::before {
    width: 210px;
    opacity: .07;
  }

  .event-details::after {
    width: 230px;
    opacity: .08;
  }

  .memory-card,
  .memory-card:nth-child(2),
  .memory-card:nth-child(3),
  .memory-card-featured {
    grid-column: auto;
    height: 430px;
    margin-top: 0;
    transform: none;
  }

  .couple-gallery {
    padding: 34px 18px 44px;
  }

  .couple-gallery .memory-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .couple-gallery .memory-card,
  .couple-gallery .memory-card:nth-child(2),
  .couple-gallery .memory-card:nth-child(3),
  .couple-gallery .memory-card-featured {
    height: auto;
  }

  .name-card,
  .family-block,
  .godparents,
  .event-card {
    padding: 30px 20px;
  }

  .event-details .event-card {
    min-height: 310px;
    padding: 32px 20px 28px;
  }

  .timeline {
    padding: 30px 18px 38px;
  }

  .timeline-title {
    margin-bottom: 0;
  }

  .timeline-subtitle {
    margin-bottom: 18px;
  }

  .timeline-path {
    top: 138px;
    width: 76%;
  }

  .timeline-items {
    gap: 10px;
  }

  .timeline-item {
    width: min(74%, 292px);
    min-height: 98px;
  }

  .timeline-art {
    width: min(29vw, 104px);
  }

  .timeline-art-large,
  .timeline-art-wide {
    width: min(32vw, 122px);
  }

  .timeline-art-toast,
  .timeline-art-photos {
    width: min(30vw, 112px);
  }

  .timeline-art-dance-open {
    width: min(32vw, 122px);
  }

  .guest-notes {
    min-height: auto;
    padding: 62px 18px 54px;
  }

  .photo-share-card {
    margin-bottom: 48px;
    padding: 30px 22px 28px;
  }

  .gifts {
    min-height: auto;
    padding: 68px 20px 76px;
  }

  .gift-options {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .farewell {
    padding: 68px 18px 0;
  }

  .farewell-inner {
    padding-bottom: 72px;
  }

  .farewell::after {
    width: 300px;
    right: -112px;
    top: 34%;
    opacity: .07;
  }

  .farewell-logo {
    width: min(56vw, 168px);
    margin-top: 76px;
  }

  .site-footer {
    margin-right: 0;
    margin-left: 0;
  }

  .music-control {
    right: 14px;
    bottom: 14px;
  }
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-6px);
  }
}
