/* Shared base styles apply to mobile, tablet, and desktop. Responsive overrides below are kept in cascade order. */
:root {
  --paper: #fff;
  --ink: #222;
  --muted: #000;
}

* {
  box-sizing: border-box;
  font-family: "Times New Roman", Times, serif !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
body.invitation-locked {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.welcome-gate {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #111;
  color: #fff;
  text-align: center;
  transition: opacity 650ms ease, visibility 0s linear 650ms;
}
.welcome-gate::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .48);
  content: "";
}
.welcome-gate.is-opening {
  pointer-events: none;
  animation: welcome-gate-open 900ms cubic-bezier(.76, 0, .24, 1) forwards;
}
@keyframes welcome-gate-open {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
  }
}
.welcome-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.6);
  transform-origin: center top;
}
.welcome-content {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  padding: 0;
  color: #fff;
}
.welcome-eyebrow {
  position: absolute;
  right: 0;
  top: 16%;
  left: 0;
  width: max-content;
  max-width: 90%;
  margin: 0 auto;
  text-align: center;
  color: rgb(255 255 255 / 88%);
  font-size: clamp(18px, 3vw, 26px);
  line-height: 1;
}

.welcome-names {
  position: absolute;
  right: 0;
  top: 22%;
  left: 0;
  width: max-content;
  max-width: 96%;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  font-size: clamp(42px, 10vw, 82px);
  letter-spacing: -.04em;
  line-height: 1;
}
.welcome-names span {
  color: #ddd;
  font-size: .6em;
  font-style: italic;
}
.welcome-button {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 9%;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  transform: scale(1);
  padding: 13px 26px;
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  animation: welcome-button-pulse 1.8s ease-in-out infinite;
  transition: background-color .2s ease;
}
.welcome-button:hover,
.welcome-button:focus-visible {
  background: rgb(0 0 0 / 48%);
}
@keyframes welcome-button-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(.94); }
}
/* Responsive styles */
@media (max-height: 520px) {
  .welcome-eyebrow { top: 10%; }
  .welcome-names { top: 20%; }
  .welcome-button { bottom: 7%; }
}

.invite-section {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 24px;
}

.section-container {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  text-align: center;
}
.fly-in {
  opacity: 0;
}
.fly-in.is-visible {
  opacity: 1;
  animation: fly-in-from-bottom 950ms cubic-bezier(.22, .61, .36, 1) var(--fly-in-delay, 0ms) both;
}
.gallery-fly-in {
  opacity: 0;
  transform: translateY(32px);
}
.gallery-fly-in.is-visible {
  opacity: 1;
  animation: gallery-fly-in-from-bottom 620ms cubic-bezier(.22, 1, .36, 1) var(--fly-in-delay, 0ms) both;
}
.verse-section .gallery-title.fly-in.is-visible,
.verse-section .hashtag.hashtag-fly-in.is-visible {
  animation-duration: 500ms;
}
.fly-in-from-left,
.fly-in-from-right {
  opacity: 0;
}
.parents-fly-in {
  opacity: 0;
}
.parents-fly-in.is-visible {
  opacity: 1;
  animation: fly-in-from-bottom 950ms cubic-bezier(.22, .61, .36, 1) var(--fly-in-delay, 0ms) both;
}
.hashtag-fly-in {
  opacity: 0;
}
.hashtag-fly-in.is-visible {
  opacity: 1;
  animation: hashtag-fly-in 950ms cubic-bezier(.22, .61, .36, 1) var(--fly-in-delay, 0ms) both;
}
.fly-in-from-left.is-visible {
  opacity: 1;
  animation: fly-in-from-left 950ms cubic-bezier(.22, .61, .36, 1) var(--fly-in-delay, 0ms) both;
}
.fly-in-from-right.is-visible {
  opacity: 1;
  animation: fly-in-from-right 950ms cubic-bezier(.22, .61, .36, 1) var(--fly-in-delay, 0ms) both;
}
@keyframes fly-in-from-bottom {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes gallery-fly-in-from-bottom {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fly-in-from-left {
  from {
    opacity: 0;
    transform: translateX(-64px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fly-in-from-right {
  from {
    opacity: 0;
    transform: translateX(64px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes hashtag-fly-in {
  from {
    opacity: 0;
    transform: translateY(44px);
  }
  to {
    opacity: 1;
    transform: translateY(8px);
  }
}
.eyebrow {
  color: #000;
  font-size: 30px;
  font-weight: 600;
}
.section-title {
  margin: 20px;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.12;
}



/* 01 ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â Cover */
.cover-section {
  min-height: 100svh;
  color: white;
  background: #111;
}
.cover-section {
  height: 100vh;
  height: 100svh;
  padding: 0;
  flex: 0 0 100vh;
  flex-basis: 100svh;
  isolation: isolate;
}
.cover-section::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  content: "";
}
.cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cover-photo {
  object-fit: cover;
  object-position: center 48%;
}
.cover-content {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 60px 20px;
}
.cover-open-text {
  opacity: 0;
}
.cover-open-text.is-visible {
  opacity: 1;
  animation: cover-text-open 900ms cubic-bezier(.2, .7, .25, 1) var(--cover-open-delay, 0ms) both;
}
@keyframes cover-text-open {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.cover-names {
  margin: 0;
  font-size: 80px;
  font-weight: 400;
  letter-spacing: -.055em;
}
.cover-names span {
  color: #ddd;
  font-size: .6em;
  font-style: italic;
}
.cover-invitation {
  margin: auto auto 0;
  color: rgb(255 255 255 / 94%);
  font-size: 20px;
  line-height: 1.8;
  text-shadow: 0 1px 8px rgb(0 0 0 / 45%);
}

.cover-invitation p {
  margin: 0 0 5px;
}
.cover-invitation .name-invitator {
  font-size: 30px;
  font-weight: 600;
}

/* 02 ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â Invitation and event details */
.om-swastyastu-image {
  display: block;
  width: min(124px, 35vw);
  height: auto;
  margin: 0 auto 24px;
}
.opening-section {
  min-height: 92svh;
  padding: 60px 24px;
  align-items: flex-start;
}
.opening-copy {
  max-width: 610px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 22px;
  line-height: 2;
}

.event-intro {
  max-width: 570px;
  margin: 20px auto 20px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 22px;
}
.event-panel {
  display: grid;
  width: min(100%, 590px);
  min-height: 280px;
  grid-template-columns: 31% minmax(0, 1fr);
  margin: 18px auto 0;
  overflow: hidden;
  border: 6px solid #000;
  border-radius: 22px;
  background: #fff;
  color: #000;
}
.event-panel .event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  border-right: 4px solid #000;
  color: #000;
  letter-spacing: 0;
}
.event-panel .event-month,
.event-panel .event-year {
  display: block;
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 400;
  line-height: 1.2;
}
.event-panel .event-year {
  margin-top: 0;
}
.event-panel .event-date strong {
  display: block;
  margin: 0;
  padding: 0;
  transform: none;
  color: #000;
  font-size: clamp(84px, 16vw, 140px);
  font-weight: 400;
  line-height: .9;
}
.event-details {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr;
  text-align: center;
}
.event-details .event-time {
  margin: 0;
  padding: 14px 6px;
  border-bottom: 4px solid #000;
  font-size: clamp(15px, 3.4vw, 27px);
  line-height: 1.25;
  white-space: nowrap;
}
.event-venue {
  align-self: center;
  padding: 14px 8px;
}
.event-venue h3 {
  margin: 0 0 3px;
  font-size: clamp(20px, 4vw, 31px);
  font-weight: 400;
}
.event-venue p {
  margin: 0;
  font-size: clamp(13px, 3vw, 21px);
  line-height: 1.45;
}
.maps-button {
  display: inline-block;
  margin-top: 12px;
}

/* 03 ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â Couple details */
.couple-section {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  isolation: isolate;
  background: #303030;
}
.couple-section .section-container {
  display: grid;
  min-height: calc(100vh - 48px);
  min-height: calc(100dvh - 48px);
  grid-template-rows: auto 1fr auto;
  align-items: center;
}
.couple-section::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  content: "";
}
.couple-background {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: none !important;
  transition: none !important;
  transform: none !important;
}
.couple-section .eyebrow {
  margin-bottom: 20px;
  color: #fff;
  font-size: 30px;
  font-weight: 600;
}
.couple-details {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  justify-content: space-between;
  width: min(100%, 680px);
  margin: 0 auto;
}
.couple-person {
  text-align: center;
}
.couple-role {
  margin: 0 0 5px;
  color: white;
  font-size: 15px;
  letter-spacing: 0;
}
.couple-name {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  line-height: 1.2;
}
.couple-family {
  margin: 10px 0 0;
  color: rgb(255 255 255 / 90%);
  font-size: 20px;
  line-height: 1.6;
}
.couple-family strong {
  color: #fff;
  font-weight: 600;
}
.couple-and {
  margin: 60px 0;
  color: #fff;
  font-size: 24px;
  font-style: italic;
  text-align: center;
}
.hashtag {
  margin: 50px 0 30px;
  color: rgb(255 255 255 / 88%);
  font-size: 20px;
  letter-spacing: .12em;
}
.couple-section .hashtag,
.verse-section .hashtag {
  margin: 0 0 12px;
  letter-spacing: 0;
  font-style: italic;
  transform: translateY(8px);
}
.couple-section .hashtag {
  margin-top: 0;
  padding-top: 24px;
}

/* Give the couple details clear top and bottom anchors on desktop. */
@media (min-width: 1024px) {
  .cover-photo,
  .couple-section .couple-background {
    object-fit: cover;
    object-position: center;
  }

  .cover-content {
    padding: clamp(56px, 8vh, 100px) 32px;
  }

  .cover-names {
    font-size: clamp(88px, 8vw, 132px);
  }

  .cover-invitation {
    max-width: 900px;
    font-size: clamp(23px, 1.8vw, 30px);
    line-height: 1.7;
  }

  .cover-invitation .name-invitator {
    font-size: clamp(32px, 2.4vw, 42px);
  }

  .cover-photo {
    object-position: center 48%;
  }

  .couple-section {
    padding: clamp(36px, 5vh, 64px) 48px;
  }

  .couple-section .section-container {
    min-height: calc(100svh - clamp(72px, 10vh, 128px));
    max-width: 1200px;
  }

  .couple-section .eyebrow {
    margin: 0;
    font-size: clamp(34px, 3vw, 46px);
  }

  .couple-details {
    width: min(100%, 900px);
  }

  .couple-role {
    font-size: 19px;
  }

  .couple-name {
    margin-bottom: 12px;
    font-size: clamp(38px, 3.3vw, 52px);
  }

  .couple-family {
    margin-top: 0;
    font-size: clamp(21px, 1.7vw, 26px);
    line-height: 1.5;
  }

  .couple-and {
    margin: 0;
    font-size: 30px;
  }

  .couple-section .hashtag {
    padding-top: 16px;
    font-size: 24px;
  }
}

/* 04 ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â Verse and gallery */
.verse-section {
  min-height: auto;
  padding-bottom: 20px;
  background: #fff;
}
.verse {
  margin: 0 auto;
  color: var(--ink);
  font-size: 25px;
  font-style: italic;
  line-height: 1.7;
}
.verse-source {
  margin: 7px 0 18px;
  color: var(--muted);
  font-size: 20px;
  font-style: italic;
}
.translation {
  max-width: 580px;
  font-size: 22px;
  line-height: 1.75;
  margin-bottom: 34px;
}
.translation strong {
  color: var(--ink);
  font-weight: 700;
}
.gallery-title {
  margin: 26px 0 5px;
  font-size: 30px;
  font-weight: 600;
}
.envelope-section .section-title {
  font-size: 30px;
  font-weight: 600;
}
.verse-section .gallery-grid {
  position: relative;
  left: 50%;
  width: calc(100vw - 40px);
  max-width: none;
  margin: 0;
  transform: translateX(-50%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.verse-section .gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.verse-section .gallery-grid img:nth-child(2) {
  margin-top: 0;
}

/* Shared gallery grid styles */
.gallery-grid {
  display: grid;
  max-width: 900px;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  margin: auto;
}
.gallery-grid img {
  width: 100%;
  height: clamp(220px, 37vw, 410px);
  object-fit: cover;
  background: #d9d9d9;
}
.gallery-grid img:nth-child(2) {
  margin-top: 35px;
}

/* Photo collage */
.collage-grid {
  position: relative;
  left: 50%;
  display: grid;
  width: calc(100vw - 40px);
  max-width: none;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: clamp(190px, 50vw, 320px) clamp(180px, 50vw, 280px) clamp(120px, 28vw, 190px);
  gap: 10px;
  margin: 0;
  transform: translateX(-50%);
}
.verse-section .collage-grid {
  margin-block: clamp(8px, 1.2vw, 16px);
}
.collage-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collage-large {
  grid-column: span 4;
}
.collage-small {
  grid-column: span 2;
}
.collage-wide {
  grid-column: 1 / -1;
}
.collage-bottom {
  grid-column: span 2;
}

/* Responsive grids for the merged Section 4 and Section 5 galleries */
@media (min-width: 992px) {
  .verse-section .gallery-grid img {
    aspect-ratio: 4 / 5;
  }
}

/* Mobile landscape and tablet responsive styles */
@media (min-width: 576px) and (max-width: 991.98px) {
  .verse-section .collage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: clamp(170px, 34vw, 280px) clamp(160px, 32vw, 250px) clamp(120px, 24vw, 180px);
    gap: 12px;
  }

  .verse-section .collage-large {
    grid-column: span 2;
  }

  .verse-section .collage-small,
  .verse-section .collage-bottom {
    grid-column: span 1;
  }
}

/* Mobile responsive styles */
@media (max-width: 575.98px) {
  .verse-section .gallery-grid {
    gap: 10px;
  }

  .verse-section .collage-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: clamp(160px, 55vw, 260px) clamp(150px, 48vw, 240px) clamp(105px, 32vw, 160px);
    gap: 10px;
  }

  .verse-section .collage-large {
    grid-column: span 4;
  }

  .verse-section .collage-small {
    grid-column: span 2;
  }

  .verse-section .collage-bottom {
    grid-column: span 2;
  }
}

/* 07 ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â Digital envelope */
.envelope-section {
  min-height: auto;
  background: #fff;
}
.bank-card {
  display: grid;
  justify-items: stretch;
  gap: 22px;
  width: min(100%, 350px);
  margin: 20px auto 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: 25px;
  text-align: center;
}
.bank-account {
  display: grid;
  justify-items: stretch;
  gap: 5px;
  width: 100%;
  text-align: center;
}
.bank-account strong {
  width: 100%;
  color: var(--ink);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
}
.bank-account > span {
  display: block;
  width: 100%;
  font-weight: 700;
  text-align: center;
}
.bank-underline {
  display: block;
  width: 200px;
  height: 1px;
  margin: 20px auto 0;
  border: 0;
  background-color: #000;
  opacity: 1;
}
.bank-picture {
  display: block;
  width: 400px;
  height: auto;
  margin: 25px auto 0;
}
.closing-blessing {
  margin: 20px 0 0;
  font-size: 30px;
  font-weight: 600;
}
.closing-blessing-photo {
  display: block;
  width: 100vw;
  height: clamp(220px, 48vw, 420px);
  margin: 20px calc(50% - 50vw) -80px;
  object-fit: cover;
  object-position: center 70%;
}

/* Mobile Responsive */
/* Applies up to 575.98px. */
@media (max-width: 575.98px) {
  /* Shared responsive styles */
  .invite-section {
    min-height: 100svh;
    padding: 70px 20px;
  }
  /* Section 1 ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â Cover */
  .cover-section {
    min-height: 88svh;
  }
  .cover-section {
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
  }
  .opening-copy {
    font-size: 15px;
  }
  /* Section 4 ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â Gallery */
  .gallery-grid {
    gap: 7px;
  }
  .gallery-grid img {
    height: 52vw;
  }
  .gallery-grid img:nth-child(2) {
    margin-top: 20px;
  }
  /* Section 2 ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â Invitation and event details */
  .opening-section {
    min-height: 92svh;
    padding: 36px 20px 44px;
  }
  .opening-copy {
    font-size: 20px;
    line-height: 1.8;
  }
  /* Section 3 ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â Couple details */
  .couple-section {
    padding-top: 48px;
    padding-bottom: 60px;
  }
  .couple-section .section-container {
    min-height: calc(100svh - 108px);
  }
  /* Section 4 ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â Verse and gallery */
  .verse-section {
    padding-top: 48px;
    padding-bottom: 60px;
  }
  .verse-section .gallery-grid img {
    height: 29vw;
  }
  .verse-section .gallery-grid {
    width: calc(100vw - 40px);
  }
  .collage-grid {
    grid-template-rows: clamp(170px, 50vw, 275px) clamp(170px, 50vw, 260px) clamp(110px, 28vw, 160px);
    gap: 9px;
  }

}

/* Shared Responsive ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â mobile, tablet, and laptop widths up to 1399.98px */
@media (max-width: 1399.98px) {
  .verse-section {
    min-height: auto;
    padding-bottom: 20px;
  }
  .envelope-section {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 0;
  }
  .bank-picture {
    width: min(100%, 400px);
  }
  .closing-blessing-photo {
    max-width: none;
    margin-bottom: 0;
  }
}

/* Mobile Responsive */
/* Additional overrides up to 767.98px, including small tablets. */
@media (max-width: 767.98px) {
  .collage-large, .collage-small {
    grid-column: span 3;
  }
  .envelope-section {
    min-height: 0;
    padding: 24px 20px 0;
    justify-content: flex-start;
  }
  .cover-names {
    font-size: clamp(42px, 11vw, 68px);
  }
  .cover-content {
    padding: 32px 12px;
  }
  .event-panel .event-date strong {
    font-size: clamp(56px, 18vw, 90px);
  }
  .event-details .event-time {
    padding: 12px 3px;
    font-size: clamp(14px, 3.6vw, 19px);
    white-space: normal;
  }
  .couple-section { padding: 16px; }
  .verse-section .gallery-grid img {
    height: auto;
  }

  .closing-blessing {
    font-size: 20px;
  }

  .eyebrow {
    font-size: 25px;
  }
}

/* Mobile Responsive */
/* Padding refinement up to 575.98px. */
@media (max-width: 575.98px) {
  .envelope-section .bank-card {
    position: static;
    left: auto;
    margin-right: auto;
    margin-left: auto;
  }

  .couple-section { padding: 16px; }

  .couple-name {
    margin: 0 0 22px;
  }

  .couple-section .eyebrow {
    font-size: 25px;
  }
  .envelope-section .section-title {
    font-size: 30px;
    font-weight: 600;
  }
  .verse {
    font-size: 22px;
  }
  .verse-source {
    font-size: 15px;
  }
  .translation {
    font-size: 20px;
  }
  .opening-copy {
    font-size: 20px;
  }
  .envelope-section .opening-copy {
    font-size: 20px;
  }
  .event-intro {
    font-size: 20px;
  }

  .section-container .event-panel {
    min-height: 150px;
  }
}

/* Mobile Responsive */
@media (max-width: 575.98px) {
  .event-panel .event-month,
  .event-panel .event-year {
    font-size: clamp(18px, 4vw, 23px);
  }

  .event-panel .event-date strong {
    font-size: clamp(60px, 19vw, 94px);
  }

  .event-details .event-time {
    font-size: clamp(15px, 4vw, 20px);
  }

  .event-venue h3 {
    font-size: clamp(22px, 4.5vw, 32px);
  }

  .event-venue p {
    font-size: clamp(16px, 3.8vw, 22px);
  }

  .verse-section .collage-grid {
    margin-top: 8px;
    margin-bottom: 60px;
  }

  .verse-section {
    padding-bottom: 0;
  }

  .envelope-section {
    padding-top: 0;
  }

  .envelope-section .section-title {
    margin-top: 0;
  }
}

/* Mobile responsive styles */
@media (min-width: 576px) and (max-width: 767.98px) {
  .event-venue p {
    font-size: clamp(16px, 3.2vw, 21px);
  }
}

/* Responsive styles */
@media (min-width: 992px) {
  .verse-section {
    padding-top: 50px;
    padding-bottom: 0;
  }

  .verse-section .collage-grid {
    margin-bottom: 50px;
  }

  .envelope-section {
    padding-top: 0;
  }

  .envelope-section .section-title {
    margin-top: 0;
  }
}

/* Shared responsive styles */
@media (max-width: 991.98px) {
  .opening-section {
    width: 100%;
    padding: 24px 16px 28px;
  }

  .opening-section .section-container {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
  }
}

/* Section 1: white text over the cover image. */
.cover-section,
.cover-section * {
  color: #fff !important;
}

/* Section 2, 4, and 5: white surfaces with black text. */
.opening-section,
.verse-section,
.envelope-section {
  background-color: #fff !important;
  color: #000 !important;
}

.opening-section *,
.verse-section *,
.envelope-section * {
  color: #000 !important;
}

/* Section 3: white text over the couple image. */
.couple-section,
.couple-section * {
  color: #fff !important;
}

/* Keep the map button's mobile appearance on desktop too. */
.maps-button {
  padding: 8px 16px;
  border-radius: 6px;
  background-color: #198754 !important;
  color: #fff !important;
  font-size: 14px;
  text-decoration: none;
}

.maps-button:hover,
.maps-button:focus-visible {
  background-color: #157347 !important;
}

.copy-bank-button {
  justify-self: center;
  border: 0;
  cursor: pointer;
}

.music-toggle {
  position: fixed;
  z-index: 1500;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  padding: 0;
  border: 1px solid #111;
  border-radius: 50%;
  background: #fff;
  color: #111;
  box-shadow: 0 4px 14px rgb(0 0 0 / 18%);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.music-toggle.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  animation: none;
}

@media (hover: hover) and (pointer: fine) {
  .music-toggle:hover {
    transform: translateY(-3px) scale(1.04);
    background: #111;
    color: #fff;
    box-shadow: 0 7px 18px rgb(0 0 0 / 24%);
  }
}

.music-toggle:focus-visible {
  outline: 2px solid #666;
  outline-offset: 3px;
}

.music-icon {
  display: block;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.music-toggle .icon-on {
  display: none;
}

.music-toggle[aria-pressed="true"] .icon-off {
  display: none;
}

.music-toggle[aria-pressed="true"] .icon-on {
  display: block;
}

/* Mobile responsive styles */
@media (max-width: 575.98px) {
  .music-toggle {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
  }

  .music-icon {
    width: 23px;
    height: 23px;
  }
}

/* Accessibility motion preference */
@media (prefers-reduced-motion: reduce) {
  .music-toggle.is-visible { animation: none; }
}

/* Desktop responsive styles */
@media (min-width: 1024px) {
  .cover-section::before,
  .couple-section::before {
    position: absolute;
    z-index: -1;
    inset: -24px;
    background-position: center;
    background-size: cover;
    filter: blur(20px) brightness(.72);
    transform: scale(1.04);
    content: "";
  }

  .cover-section::before {
    background-image: url("../image/preview/halaman1.webp");
  }

  .couple-section::before {
    background-image: url("../image/preview/halaman3.webp");
  }

  .cover-photo,
  .couple-section .couple-background {
    object-fit: contain;
    object-position: center;
  }

  .couple-section .section-container {
    min-height: calc(100svh - 2 * clamp(36px, 5vh, 64px));
  }
}

/* Keep the photos full bleed and scale couple typography with screen height. */
.cover-photo,
.couple-section .couple-background {
  object-fit: cover;
}

.gallery-lightbox {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 88px;
  overflow: hidden;
  background: rgb(0 0 0 / 94%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
  touch-action: pan-y;
}

.gallery-grid img,
.collage-grid img {
  cursor: zoom-in;
}

.gallery-grid img:focus-visible,
.collage-grid img:focus-visible {
  outline: 3px solid #666;
  outline-offset: 2px;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 176px);
  max-height: calc(100vh - 128px);
  max-height: calc(100svh - 128px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: pan-y;
  opacity: 1;
  transition: opacity .28s ease-in-out;
  will-change: opacity;
  backface-visibility: hidden;
}

.lightbox-image.is-changing {
  opacity: 0;
}

.lightbox-control {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.lightbox-control:hover {
  transform: scale(1.06);
  background: transparent;
  color: #ddd;
}

.lightbox-control:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.lightbox-download:disabled {
  cursor: wait;
  opacity: .55;
}

.lightbox-control svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.lightbox-close {
  top: max(20px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
}

.lightbox-download {
  top: max(20px, env(safe-area-inset-top));
  left: max(20px, env(safe-area-inset-left));
}

.lightbox-previous {
  top: 50%;
  left: max(20px, env(safe-area-inset-left));
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: max(20px, env(safe-area-inset-right));
  transform: translateY(-50%);
}

.lightbox-previous:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.06);
}

/* Mobile landscape and tablet responsive styles */
@media (min-width: 576px) and (max-width: 991.98px) {
  .gallery-lightbox {
    padding: 72px 78px;
  }

  .lightbox-image {
    max-width: calc(100vw - 156px);
    max-height: calc(100vh - 144px);
    max-height: calc(100svh - 144px);
  }

  .lightbox-control {
    width: 56px;
    height: 56px;
  }

  .lightbox-close {
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
  }

  .lightbox-download {
    top: max(16px, env(safe-area-inset-top));
    left: max(16px, env(safe-area-inset-left));
  }

  .lightbox-previous {
    left: max(16px, env(safe-area-inset-left));
  }

  .lightbox-next {
    right: max(16px, env(safe-area-inset-right));
  }
}

/* Mobile responsive styles */
@media (max-width: 575.98px) {
  .gallery-lightbox {
    padding: 64px 12px 58px;
  }

  .lightbox-image {
    max-width: calc(100vw - 104px);
    max-height: calc(100vh - 132px);
    max-height: calc(100svh - 132px);
  }

  .lightbox-control {
    width: 48px;
    height: 48px;
  }

  .lightbox-previous,
  .lightbox-next {
    width: 44px;
    height: 44px;
  }

  .lightbox-control svg {
    width: 24px;
    height: 24px;
  }

  .lightbox-close {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
  }

  .lightbox-download {
    top: max(10px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
  }

  .lightbox-previous {
    left: max(10px, env(safe-area-inset-left));
  }

  .lightbox-next {
    right: max(10px, env(safe-area-inset-right));
  }
}

/* Use the same black and white button colors throughout the invitation. */
button,
a.maps-button {
  background-color: #000 !important;
  color: #fff !important;
}

button:hover,
button:focus-visible,
a.maps-button:hover,
a.maps-button:focus-visible {
  background-color: #222 !important;
  color: #fff !important;
}

.envelope-section .copy-bank-button,
.envelope-section .copy-bank-button:hover,
.envelope-section .copy-bank-button:focus-visible {
  background-color: #000 !important;
  color: #fff !important;
}

.lightbox-control,
.lightbox-control:hover,
.lightbox-control:focus-visible {
  background-color: transparent !important;
}

/* Use stable viewport sizing for the image sections at every breakpoint. */
.welcome-photo,
.cover-section > .cover-photo,
.couple-section > .couple-background {
  animation: none !important;
  transition: none !important;
  backface-visibility: hidden;
}

.couple-section {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  max-width: 100%;
}

.couple-section .section-container {
  min-height: 0;
  width: 100%;
  max-width: 1040px;
  padding-right: 0;
  padding-left: 0;
}

.couple-section .couple-background {
  inset: 0;
  width: 100%;
  height: 100%;
}

.couple-section .couple-details,
.couple-section .couple-person {
  width: 100%;
  min-width: 0;
}

.couple-section .couple-name,
.couple-section .couple-family {
  overflow-wrap: anywhere;
}

/* Compact layout for phones held horizontally and other short viewports. */
@media (max-width: 950px) and (max-height: 520px) and (orientation: landscape) {
  .welcome-eyebrow {
    top: 8%;
    font-size: clamp(15px, 3vh, 20px);
  }

  .welcome-names {
    top: 19%;
    font-size: clamp(34px, 9vh, 56px);
  }

  .welcome-button {
    bottom: 5%;
    padding: 9px 20px;
    font-size: 15px;
  }

  .cover-content {
    padding: 16px 12px;
  }

  .cover-names {
    font-size: clamp(34px, 9vh, 58px);
  }

  .cover-invitation {
    font-size: clamp(14px, 3.5vh, 18px);
    line-height: 1.35;
  }

  .cover-invitation .name-invitator {
    font-size: clamp(19px, 5vh, 25px);
  }

  .couple-section {
    padding: 10px 18px;
  }

  .couple-section .section-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }

  .couple-section .eyebrow {
    margin: 0;
    font-size: clamp(18px, 4.5vh, 23px);
  }

  .couple-section .couple-details {
    flex: 0 1 auto;
    justify-content: center;
    gap: 4px;
  }

  .couple-section .couple-role {
    margin-bottom: 2px;
    font-size: 13px;
  }

  .couple-section .couple-name {
    margin-bottom: 4px;
    font-size: clamp(19px, 5vh, 25px);
    line-height: 1.05;
  }

  .couple-section .couple-family {
    margin-top: 3px;
    font-size: clamp(13px, 3.4vh, 16px);
    line-height: 1.25;
  }

  .couple-section .couple-and {
    margin: 0;
    font-size: 18px;
    line-height: 1;
  }

  .couple-section .hashtag {
    margin: 2px 0 0;
    font-size: 15px;
  }
}

/* Keep phone layouts on one narrow content canvas, regardless of phone width. */
@media (max-width: 767.98px) {
  .welcome-eyebrow {
    font-size: 20px;
  }

  .welcome-names {
    top: 22%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    padding-inline: 12px;
    transform: none;
    font-size: clamp(36px, 11vw, 48px);
    white-space: nowrap;
  }

  .cover-content {
    right: auto;
    left: 50%;
    width: min(100%, 430px);
    padding-right: 20px;
    padding-left: 20px;
    transform: translateX(-50%);
  }

  .cover-names {
    font-size: 46px;
  }

  .cover-invitation {
    font-size: 18px;
  }

  .cover-invitation .name-invitator {
    font-size: 24px;
  }

  .couple-section .section-container {
    max-width: 430px;
  }

  .couple-section .eyebrow {
    font-size: 25px;
  }

  .couple-section .couple-name {
    font-size: 24px;
  }

  .couple-section .couple-and {
    align-self: center;
    margin: 18px 0;
  }

  .couple-section .couple-family {
    font-size: 17px;
  }
}

/* Tablet widths get a wider reading column than phones. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .cover-content {
    right: auto;
    left: 50%;
    width: min(100%, 760px);
    transform: translateX(-50%);
  }

  .cover-names {
    font-size: clamp(60px, 8vw, 76px);
  }

  .cover-invitation {
    max-width: 680px;
    font-size: 20px;
    line-height: 1.6;
  }

  .couple-section .section-container {
    max-width: 760px;
  }

  .couple-section .eyebrow {
    font-size: 28px;
  }

  .couple-section .couple-name {
    font-size: clamp(28px, 4vw, 34px);
  }
}

/* Short-screen landscape responsive styles */
@media (max-width: 950px) and (max-height: 520px) and (orientation: landscape) {
  .welcome-eyebrow {
    font-size: clamp(15px, 3vh, 20px);
  }

  .welcome-names {
    font-size: clamp(34px, 9vh, 56px);
  }

  .cover-content {
    width: min(100%, 430px);
  }

  .cover-names {
    font-size: clamp(34px, 9vh, 58px);
  }

  .cover-invitation {
    font-size: clamp(14px, 3.5vh, 18px);
  }

  .cover-invitation .name-invitator {
    font-size: clamp(19px, 5vh, 25px);
  }

  .couple-section .eyebrow {
    font-size: clamp(18px, 4.5vh, 23px);
  }

  .couple-section .section-container {
    max-width: 430px;
  }

  .couple-section .couple-and {
    align-self: center;
    margin: clamp(8px, 2vh, 14px) 0;
  }

  .couple-section .couple-name {
    font-size: clamp(19px, 5vh, 25px);
  }

  .couple-section .couple-family {
    font-size: clamp(13px, 3.4vh, 16px);
  }
}

/* Accessibility motion preference */
@media (prefers-reduced-motion: reduce) {
  html,
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Desktop responsive styles */
@media (min-width: 1024px) {
  .couple-section .section-container {
    min-height: calc(100svh - 2 * clamp(36px, 5vh, 64px));
  }

  .couple-section .eyebrow {
    font-size: clamp(32px, min(3vw, 4.2vh), 48px);
  }

  .couple-section .couple-role {
    font-size: clamp(17px, min(1.5vw, 2.2vh), 23px);
  }

  .couple-section .couple-name {
    font-size: clamp(34px, min(3.3vw, 5vh), 58px);
  }

  .couple-section .couple-family {
    font-size: clamp(19px, min(1.8vw, 2.8vh), 30px);
  }

  .couple-section .couple-and {
    font-size: clamp(24px, 3vh, 34px);
  }

  .couple-section .hashtag {
    font-size: clamp(20px, min(1.8vw, 2.7vh), 28px);
  }
}

/* Mobile responsive styles */
@media (max-width: 767.98px) {
  .couple-section {
    padding: 16px;
  }

  .couple-section .section-container {
    display: grid;
    min-height: calc(100svh - 32px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .couple-section .eyebrow {
    margin: 0;
    font-size: clamp(22px, min(7vw, 3.2svh), 31px);
  }

  .couple-section .couple-details {
    min-height: 0;
    justify-content: space-between;
    padding-top: clamp(16px, 3svh, 30px);
  }

  .couple-section .couple-role {
    margin-bottom: 4px;
    font-size: clamp(14px, min(4.6vw, 2svh), 19px);
  }

  .couple-section .couple-name {
    margin-bottom: 8px;
    font-size: clamp(23px, min(8vw, 3.5svh), 34px);
    line-height: 1.12;
  }

  .couple-section .couple-family {
    margin-top: 0;
    font-size: clamp(16px, min(5.3vw, 2.15svh), 21px);
    line-height: 1.4;
  }

  .couple-section .couple-and {
    align-self: center;
    margin: 0;
    font-size: clamp(18px, min(6.4vw, 2.6svh), 25px);
  }

  .couple-section .hashtag {
    margin: 0 0 4px;
    padding-top: clamp(10px, 2svh, 20px);
    font-size: clamp(16px, min(5.6vw, 2.3svh), 22px);
  }
}

.couple-section .couple-and {
  margin-block: clamp(2px, .5svh, 7px);
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .couple-section .eyebrow {
    font-size: clamp(27px, min(3.6vw, 4svh), 38px);
  }

  .couple-section .couple-role {
    font-size: clamp(16px, min(2.2vw, 2.4svh), 22px);
  }

  .couple-section .couple-name {
    font-size: clamp(29px, min(4.2vw, 4.8svh), 43px);
  }

  .couple-section .couple-family {
    font-size: clamp(18px, min(2.4vw, 2.8svh), 25px);
  }

  .couple-section .hashtag {
    font-size: clamp(19px, min(2.4vw, 2.6svh), 25px);
  }
}

/* Mobile responsive styles */
@media (max-width: 767.98px) and (max-height: 520px) and (orientation: landscape) {
  .couple-section .eyebrow {
    font-size: clamp(18px, 4.5svh, 23px);
  }

  .couple-section .couple-role {
    font-size: clamp(12px, 3.2svh, 15px);
  }

  .couple-section .couple-name {
    font-size: clamp(18px, 5svh, 25px);
  }

  .couple-section .couple-family {
    font-size: clamp(12px, 3.3svh, 16px);
  }

  .couple-section .hashtag {
    font-size: clamp(14px, 3.6svh, 18px);
  }

  .couple-section .couple-and {
    margin-block: clamp(1px, .3svh, 3px);
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .couple-section {
    padding: 24px;
  }

  .couple-section .section-container {
    display: grid;
    width: 100%;
    max-width: 820px;
    min-height: calc(100svh - 48px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .couple-section .eyebrow {
    margin: 0;
    font-size: clamp(32px, min(4.5vw, 4.5svh), 46px);
  }

  .couple-section .couple-details {
    min-height: 0;
    width: 100%;
    justify-content: space-between;
    padding-top: clamp(20px, 3svh, 36px);
  }

  .couple-section .couple-role {
    margin-bottom: 6px;
    font-size: clamp(18px, min(2.6vw, 2.7svh), 25px);
  }

  .couple-section .couple-name {
    margin-bottom: 10px;
    font-size: clamp(34px, min(5.2vw, 5svh), 52px);
    line-height: 1.12;
  }

  .couple-section .couple-family {
    margin-top: 0;
    font-size: clamp(20px, min(3.1vw, 3.2svh), 30px);
    line-height: 1.4;
  }

  .couple-section .couple-and {
    align-self: center;
    margin-block: clamp(2px, .5svh, 7px);
    font-size: clamp(24px, 3.2svh, 34px);
  }

  .couple-section .hashtag {
    margin: 0 0 4px;
    padding-top: clamp(12px, 2svh, 22px);
    font-size: clamp(21px, min(2.8vw, 2.8svh), 28px);
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) and (max-height: 600px) and (orientation: landscape) {
  .couple-section {
    padding: 12px 24px;
  }

  .couple-section .section-container {
    min-height: calc(100svh - 24px);
  }

  .couple-section .eyebrow {
    font-size: clamp(24px, 4.5svh, 29px);
  }

  .couple-section .couple-details {
    padding-top: 8px;
  }

  .couple-section .couple-role {
    margin-bottom: 2px;
    font-size: clamp(14px, 2.5svh, 17px);
  }

  .couple-section .couple-name {
    margin-bottom: 4px;
    font-size: clamp(26px, 5svh, 32px);
  }

  .couple-section .couple-family {
    font-size: clamp(16px, 3.1svh, 20px);
  }

  .couple-section .hashtag {
    padding-top: 6px;
    font-size: clamp(17px, 2.8svh, 20px);
  }
}

/* Responsive styles */
@media (min-width: 768px) {
  .welcome-gate {
    isolation: isolate;
  }

  .welcome-gate::before {
    position: absolute;
    z-index: -1;
    inset: -24px;
    background: url("../image/preview/coverpertama.webp") center / cover no-repeat;
    filter: blur(20px) brightness(.72);
    transform: scale(1.04);
    content: "";
  }

  .welcome-photo {
    object-fit: contain;
    object-position: center;
    transform: none;
  }

  .cover-section::before {
    position: absolute;
    z-index: -1;
    inset: -24px;
    background: url("../image/preview/halaman1.webp") center / cover no-repeat;
    filter: blur(20px) brightness(.72);
    transform: scale(1.04);
    content: "";
  }

  .cover-photo {
    object-fit: contain;
    object-position: center;
  }

  .cover-content {
    padding-top: clamp(42px, 7svh, 76px);
    padding-bottom: clamp(28px, 5svh, 56px);
  }

  .cover-names {
    max-width: 100%;
    font-size: clamp(56px, min(4.3vw, 7svh), 76px);
    letter-spacing: -.06em;
    white-space: nowrap;
  }

  .cover-invitation {
    font-size: clamp(18px, min(1.8vw, 2.5svh), 26px);
  }

  .cover-invitation .name-invitator {
    font-size: clamp(25px, min(2.4vw, 3.5svh), 38px);
  }

  .couple-section::before {
    position: absolute;
    z-index: -1;
    inset: -24px;
    background: url("../image/preview/halaman3.webp") center / cover no-repeat;
    filter: blur(20px) brightness(.72);
    transform: scale(1.04);
    content: "";
  }

  .couple-section .couple-background {
    object-fit: contain;
    object-position: center;
  }

}

/* Desktop responsive styles */
@media (min-width: 1024px) {
  .couple-section .couple-background {
    object-fit: contain;
    object-position: center;
  }
}

.closing-blessing-photo {
  height: clamp(260px, 65svh, 640px);
  object-position: center 58%;
}

/* Mobile responsive styles */
@media (max-width: 767.98px) {
  .closing-photo-frame {
    display: block;
    left: 50%;
    width: 100vw;
    max-width: none;
    height: clamp(200px, 58vw, 223px);
    margin: 0;
    overflow: hidden;
    transform: translateX(-50%);
  }

  .closing-photo-frame::before {
    display: none;
  }

  .closing-blessing-photo {
    display: block;
    width: 100vw;
    max-width: none;
    height: clamp(200px, 58vw, 223px);
    object-fit: cover;
    object-position: center 70%;
    margin: 0;
    transform: scale(1.06);
    transform-origin: center 70%;
  }
}

/* Responsive styles */
@media (max-width: 1023.98px) {
  .closing-photo-frame {
    left: 50%;
    width: 100vw;
    max-width: none;
    height: clamp(200px, 58vw, 223px);
    margin: 0;
    transform: translateX(-50%);
  }

  .closing-photo-frame::before {
    display: none;
  }

  .closing-blessing-photo {
    display: block;
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center 85%;
    transform: none;
  }
}

/* Mobile responsive styles */
@media (max-width: 767.98px) {
  .closing-blessing-photo {
    position: relative;
    left: 50%;
    display: block;
    width: 100vw;
    max-width: none;
    height: clamp(200px, 55vw, 220px);
    margin: 20px 0 0;
    object-fit: cover;
    object-position: center 70%;
    transform: translateX(-50%);
  }
}

/* Responsive styles */
@media (min-width: 768px) {
  .closing-photo-frame {
    position: relative;
    left: 50%;
    display: grid;
    width: 100vw;
    max-width: none;
    height: clamp(220px, 32svh, 360px);
    place-items: center;
    margin: 20px 0 0;
    overflow: hidden;
    isolation: isolate;
    transform: translateX(-50%);
  }

  .closing-photo-frame::before {
    position: absolute;
    z-index: -1;
    inset: -24px;
    background: url("../image/preview/halamanterakhir.webp") center / cover no-repeat;
    filter: blur(20px) brightness(.72);
    transform: scale(1.04);
    content: "";
  }

  .closing-blessing-photo {
    position: relative;
    z-index: 1;
    left: auto;
    width: auto;
    max-width: min(100vw, 540px);
    height: 100%;
    margin: 0;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center 70%;
    transform: none;
  }
}

/* Mobile responsive styles */
@media (max-width: 767.98px) {
  .closing-photo-frame {
    display: contents;
  }

  .closing-photo-frame::before {
    display: none;
  }
}

/* Match the attached stylesheet's full-width closing photo treatment. */
.closing-blessing-photo {
  display: block;
  position: relative;
  left: auto;
  width: 100vw;
  height: clamp(220px, 48vw, 420px);
  max-width: none;
  margin-top: 20px;
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;
  margin-left: calc(50% - 50vw);
  object-fit: cover;
  object-position: center 70%;
  transform: none;
}

/* Keep the gallery on the same narrow, portrait canvas at every large width. */
.verse-section .gallery-grid,
.verse-section .collage-grid {
  position: relative;
  left: 50%;
  width: min(calc(100vw - 40px), 430px);
  max-width: 430px;
  margin-right: 0;
  margin-left: 0;
  transform: translateX(-50%);
}

.verse-section .gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.verse-section .gallery-grid img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.closing-photo-frame {
  position: relative;
  left: 50%;
  display: grid;
  width: 100vw;
  max-width: none;
  height: 223px;
  place-items: center;
  margin: 20px 0 0;
  overflow: hidden;
  isolation: isolate;
  transform: translateX(-50%);
}

.envelope-section {
  padding-bottom: 0;
}

.closing-photo-frame::before {
  position: absolute;
  z-index: -1;
  inset: -24px;
  background: url("../image/preview/halamanterakhir.webp") center / cover no-repeat;
  filter: blur(20px) brightness(.72);
  transform: scale(1.04);
  content: "";
}

.closing-blessing-photo {
  position: relative;
  z-index: 1;
  width: min(100%, 334px);
  max-width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center 58%;
}

/* Tablet and desktop responsive styles */
@media (min-width: 576px) {
  .verse-section .collage-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: clamp(170px, 34vw, 230px) clamp(150px, 32vw, 210px) clamp(110px, 24vw, 150px);
  }

  .verse-section .collage-large {
    grid-column: span 4;
  }

  .verse-section .collage-small,
  .verse-section .collage-bottom {
    grid-column: span 2;
  }
}

/* Desktop responsive styles */
@media (min-width: 1024px) {
  .welcome-photo {
    top: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
  }

  .welcome-eyebrow {
    top: 6%;
    font-size: clamp(18px, min(2vw, 2.6svh), 26px);
  }

  .welcome-names {
    top: 11%;
    font-size: clamp(50px, min(6vw, 7svh), 76px);
  }
}

/* Responsive styles */
@media (max-width: 1023.98px) {
  .closing-photo-frame {
    left: 50%;
    width: 100vw;
    max-width: none;
    height: clamp(200px, 58vw, 223px);
    margin: 0;
    transform: translateX(-50%);
  }

  .closing-photo-frame::before {
    display: none;
  }

  .closing-blessing-photo {
    display: block;
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center 85%;
    transform: none;
  }
}



/* Mobile responsive styles */
@media (max-width: 767.98px) {
  .closing-blessing-photo {
    position: relative;
    left: 50%;
    display: block;
    width: 100vw;
    max-width: none;
    height: clamp(200px, 55vw, 220px);
    margin: 20px 0 0;
    object-fit: cover;
    object-position: center 70%;
    transform: translateX(-50%);
  }
}

/* Responsive styles */
@media (min-width: 768px) {
  .closing-photo-frame {
    position: relative;
    left: 50%;
    display: grid;
    width: 100vw;
    max-width: none;
    height: clamp(220px, 32svh, 360px);
    place-items: center;
    margin: 20px 0 0;
    overflow: hidden;
    isolation: isolate;
    transform: translateX(-50%);
  }

  .closing-photo-frame::before {
    position: absolute;
    z-index: -1;
    inset: -24px;
    background: url("../image/preview/halamanterakhir.webp") center / cover no-repeat;
    filter: blur(20px) brightness(.72);
    transform: scale(1.04);
    content: "";
  }

  .closing-blessing-photo {
    position: relative;
    z-index: 1;
    left: auto;
    width: auto;
    max-width: min(100vw, 540px);
    height: 100%;
    margin: 0;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center 70%;
    transform: none;
  }
}

/* Mobile responsive styles */
@media (max-width: 767.98px) {
  .closing-photo-frame {
    display: contents;
  }

  .closing-photo-frame::before {
    display: none;
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .closing-photo-frame {
    height: clamp(280px, 42svh, 420px);
  }

  .closing-blessing-photo {
    max-width: min(100vw, 630px);
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .closing-photo-frame {
    height: clamp(360px, 55svh, 560px);
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .closing-photo-frame {
    height: clamp(480px, 65svh, 680px);
  }

  .closing-blessing-photo {
    object-position: center 80%;
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .closing-blessing-photo {
    object-position: center 50%;
  }
}

/* Desktop responsive styles */
@media (min-width: 1024px) {
  .closing-blessing-photo {
    object-position: center 50%;
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .closing-blessing-photo {
    object-position: center 80%;
  }
}

/* Desktop responsive styles */
@media (min-width: 1024px) {
  .closing-photo-frame {
    height: clamp(360px, 55svh, 620px);
  }
}

/* Desktop responsive styles */
@media (min-width: 1024px) {
  .closing-blessing-photo {
    transform: translateY(-30%);
  }
}

/* Desktop responsive styles */
@media (min-width: 1024px) {
  .closing-blessing-photo {
    height: 115%;
    transform: translateY(-17%);
  }
}

/* Desktop responsive styles */
@media (min-width: 1024px) {
  .closing-photo-frame::before {
    inset: auto -24px auto;
    top: -17%;
    height: 115%;
    background-position: center 50%;
  }

  .closing-blessing-photo {
    align-self: start;
    transform: translateY(-17%);
  }
}

/* Desktop responsive styles */
@media (min-width: 1024px) {
  .closing-photo-frame::before {
    top: -17%;
    height: 117%;
  }

  .closing-blessing-photo {
    height: 117%;
    transform: translateY(-14.5%);
  }
}

/* Desktop responsive styles */
@media (min-width: 1024px) {
  .verse-section .gallery-grid img {
    height: clamp(300px, 38vh, 440px);
    aspect-ratio: auto;
    object-fit: contain;
  }

  .verse-section .collage-grid {
    grid-template-rows: 300px 260px 180px;
  }

  .verse-section .collage-grid img {
    object-fit: contain;
  }
}

/* Desktop responsive styles */
@media (min-width: 1024px) {
  .verse-section .gallery-grid img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .verse-section .collage-grid img {
    object-fit: cover;
  }
}

/* Tablet-only refinements. Phone and desktop rules keep their existing layouts. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .welcome-eyebrow {
    top: 5%;
    font-size: clamp(26px, 3.8vw, 34px);
  }

  .welcome-names {
    top: 12%;
    font-size: clamp(62px, 8vw, 82px);
  }

  .welcome-button {
    bottom: 7%;
    padding: 17px 36px;
    font-size: clamp(20px, 2.8vw, 24px);
  }

  .cover-section .eyebrow {
    font-size: clamp(32px, 4.2vw, 40px);
  }

  .cover-names {
    font-size: clamp(72px, 8.5vw, 92px);
  }

  .cover-invitation {
    font-size: clamp(22px, 2.8vw, 27px);
    line-height: 1.55;
  }

  .cover-invitation .name-invitator {
    font-size: clamp(30px, 3.8vw, 38px);
  }

  .opening-section .opening-copy,
  .opening-section .event-intro,
  .envelope-section .opening-copy,
  .translation {
    font-size: clamp(22px, 2.8vw, 27px);
    line-height: 1.65;
  }

  .event-venue h3,
  .gallery-title,
  .envelope-section .section-title {
    font-size: clamp(30px, 4vw, 38px);
  }

  .event-venue p,
  .event-time,
  .bank-account {
    font-size: clamp(20px, 2.8vw, 26px);
  }

  .couple-section .eyebrow {
    font-size: clamp(34px, 4.5vw, 46px);
  }

  .couple-section .couple-role {
    font-size: clamp(19px, 2.8vw, 25px);
  }

  .couple-section .couple-name {
    font-size: clamp(38px, 5vw, 52px);
  }

  .couple-section .couple-family {
    font-size: clamp(21px, 3.1vw, 30px);
  }

  .verse-section .gallery-grid,
  .verse-section .collage-grid {
    left: 50%;
    width: min(calc(100vw - 32px), 720px);
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    transform: translateX(-50%);
  }

  .verse-section .gallery-grid img {
    height: clamp(280px, 40vw, 380px);
  }

  .verse-section .collage-grid {
    grid-template-rows: clamp(220px, 34vw, 320px) clamp(200px, 31vw, 290px) clamp(140px, 23vw, 210px);
  }

  .closing-photo-frame {
    position: relative;
    left: 50%;
    display: block;
    width: 100vw;
    max-width: none;
    height: clamp(280px, 42vw, 380px);
    margin: 20px 0 0;
    overflow: hidden;
    transform: translateX(-50%);
  }

  .closing-photo-frame::before {
    display: none;
  }

  .closing-blessing-photo {
    position: relative;
    left: 50%;
    display: block;
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center 70%;
    transform: translateX(-50%);
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .welcome-eyebrow {
    top: 5%;
  }

  .welcome-names {
    top: 9%;
  }

  .welcome-button {
    padding: 21px 44px;
    font-size: clamp(24px, 3.2vw, 30px);
  }

  .cover-invitation {
    font-size: clamp(26px, 3.2vw, 34px);
    line-height: 1.5;
  }

  .cover-invitation .name-invitator {
    font-size: clamp(38px, 4.5vw, 46px);
  }

  .opening-section {
    min-height: 0;
    align-items: flex-start;
    padding: clamp(28px, 4svh, 44px) 24px;
  }

  .opening-section .section-container {
    width: 100%;
    max-width: 820px;
  }

  .om-swastyastu-image {
    width: min(160px, 20vw);
    margin-bottom: 16px;
  }

  .opening-section .eyebrow {
    font-size: clamp(32px, 4vw, 40px);
  }

  .opening-section .opening-copy,
  .opening-section .event-intro,
  .envelope-section .opening-copy,
  .translation {
    max-width: 760px;
    font-size: clamp(25px, 3.2vw, 33px);
    line-height: 1.5;
  }

  .event-panel {
    width: min(100%, 700px);
    min-height: clamp(350px, 42svh, 440px);
    grid-template-columns: 32% minmax(0, 1fr);
    margin-top: 24px;
  }

  .event-panel .event-month,
  .event-panel .event-year {
    font-size: clamp(22px, 2.8vw, 29px);
  }

  .event-panel .event-date strong {
    font-size: clamp(108px, 15vw, 158px);
  }

  .event-details .event-time {
    padding: 18px 8px;
    font-size: clamp(24px, 3.2vw, 34px);
  }

  .event-venue {
    padding: 18px 12px;
  }

  .event-venue h3 {
    font-size: clamp(34px, 4.2vw, 43px);
  }

  .event-venue p {
    font-size: clamp(22px, 2.8vw, 29px);
  }

  .event-intro {
    margin-top: 24px;
  }

  .couple-section .eyebrow {
    font-size: clamp(38px, 4.8vw, 48px);
  }

  .couple-section .couple-role {
    font-size: clamp(21px, 2.9vw, 27px);
  }

  .couple-section .couple-name {
    font-size: clamp(42px, 5.4vw, 56px);
  }

  .couple-section .couple-family {
    font-size: clamp(23px, 3.2vw, 31px);
  }

  .couple-section .hashtag {
    font-size: clamp(22px, 3vw, 29px);
  }

  .verse,
  .verse-source {
    font-size: clamp(23px, 3vw, 30px);
  }

  .gallery-title,
  .envelope-section .section-title {
    font-size: clamp(34px, 4.2vw, 43px);
  }

  .bank-account {
    font-size: clamp(22px, 2.9vw, 30px);
  }

  .verse-section .gallery-grid img {
    height: clamp(360px, 48vw, 500px);
  }

  .verse-section .collage-grid {
    grid-template-rows: clamp(260px, 38vw, 360px) clamp(230px, 34vw, 320px) clamp(160px, 25vw, 230px);
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .opening-section .section-container .event-panel {
    width: min(100%, 700px);
    min-height: clamp(350px, 42svh, 440px);
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .welcome-eyebrow {
    font-size: clamp(28px, 4.2vw, 38px);
  }

  .welcome-names {
    font-size: clamp(68px, 9vw, 90px);
  }

  .cover-section .eyebrow {
    font-size: clamp(36px, 4.8vw, 46px);
  }

  .cover-names {
    font-size: clamp(78px, 9vw, 98px);
  }

  .cover-invitation {
    font-size: clamp(28px, 3.6vw, 36px);
  }

  .cover-invitation .name-invitator {
    font-size: clamp(42px, 5vw, 52px);
  }

  .opening-section .eyebrow {
    font-size: clamp(36px, 4.6vw, 46px);
  }

  .opening-section .opening-copy,
  .opening-section .event-intro,
  .envelope-section .opening-copy,
  .translation {
    font-size: clamp(28px, 3.6vw, 36px);
  }

  .event-panel .event-month,
  .event-panel .event-year {
    font-size: clamp(25px, 3.2vw, 32px);
  }

  .event-panel .event-date strong {
    font-size: clamp(126px, 17vw, 174px);
  }

  .event-details .event-time {
    font-size: clamp(27px, 3.6vw, 37px);
  }

  .event-venue h3 {
    font-size: clamp(38px, 4.8vw, 48px);
  }

  .event-venue p {
    font-size: clamp(25px, 3.2vw, 32px);
  }

  .couple-section .eyebrow {
    font-size: clamp(42px, 5.2vw, 54px);
  }

  .couple-section .couple-role {
    font-size: clamp(23px, 3.2vw, 30px);
  }

  .couple-section .couple-name {
    font-size: clamp(46px, 6vw, 62px);
  }

  .couple-section .couple-family {
    font-size: clamp(25px, 3.6vw, 34px);
  }

  .couple-section .hashtag {
    font-size: clamp(24px, 3.3vw, 32px);
  }

  .verse {
    font-size: clamp(26px, 3.4vw, 34px);
  }

  .verse-source {
    font-size: clamp(21px, 2.8vw, 28px);
  }

  .gallery-title,
  .envelope-section .section-title {
    font-size: clamp(36px, 4.8vw, 46px);
  }

  .bank-account {
    font-size: clamp(24px, 3.2vw, 32px);
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .welcome-eyebrow { font-size: clamp(30px, 4.4vw, 40px); }
  .welcome-names { font-size: clamp(74px, 9.5vw, 96px); }
  .welcome-button {
    padding: 23px 48px;
    font-size: clamp(27px, 3.5vw, 33px);
  }

  .cover-section .eyebrow { font-size: clamp(40px, 5vw, 50px); }
  .cover-names { font-size: clamp(86px, 9.5vw, 106px); }
  .cover-invitation { font-size: clamp(31px, 3.8vw, 39px); }
  .cover-invitation .name-invitator { font-size: clamp(46px, 5.4vw, 56px); }

  .opening-section .eyebrow { font-size: clamp(38px, 4.8vw, 48px); }
  .opening-section .opening-copy,
  .opening-section .event-intro,
  .envelope-section .opening-copy,
  .translation {
    font-size: clamp(30px, 3.8vw, 39px);
    line-height: 1.45;
  }

  .opening-section .section-container .event-panel {
    min-height: clamp(390px, 48svh, 490px);
  }
  .event-panel .event-month,
  .event-panel .event-year { font-size: clamp(28px, 3.5vw, 36px); }
  .event-panel .event-date strong { font-size: clamp(136px, 18vw, 184px); }
  .event-details .event-time { font-size: clamp(31px, 3.9vw, 40px); }
  .event-venue h3 { font-size: clamp(42px, 5.2vw, 52px); }
  .event-venue p { font-size: clamp(28px, 3.5vw, 36px); }
  .maps-button { font-size: clamp(19px, 2.5vw, 24px); }

  .couple-section .eyebrow { font-size: clamp(46px, 5.6vw, 58px); }
  .couple-section .couple-role { font-size: clamp(26px, 3.4vw, 34px); }
  .couple-section .couple-name { font-size: clamp(50px, 6.4vw, 66px); }
  .couple-section .couple-family { font-size: clamp(28px, 3.8vw, 38px); }
  .couple-section .couple-and { font-size: clamp(30px, 4vw, 40px); }
  .couple-section .hashtag { font-size: clamp(29px, 4vw, 38px); }

  .verse { font-size: clamp(30px, 3.8vw, 38px); }
  .verse-source { font-size: clamp(24px, 3vw, 31px); }
  .gallery-title,
  .envelope-section .section-title { font-size: clamp(40px, 5vw, 50px); }
  .bank-account { font-size: clamp(26px, 3.4vw, 35px); }
  .closing-blessing { font-size: clamp(30px, 3.8vw, 38px); }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .couple-section .hashtag {
    font-size: clamp(36px, 5vw, 46px);
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .couple-section .hashtag {
    font-size: clamp(29px, 4vw, 38px);
  }

  .verse-section .hashtag {
    font-size: clamp(30px, 4vw, 38px);
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .bank-account > span {
    font-size: clamp(30px, 3.8vw, 38px);
    line-height: 1.25;
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .envelope-section .bank-card {
    width: min(100%, 560px);
  }

  .bank-account > span {
    font-size: clamp(32px, 4vw, 40px);
    line-height: 1.25;
  }

  .bank-account > strong {
    font-size: clamp(32px, 4vw, 40px);
  }

  .bank-account .copy-bank-button {
    padding: 14px 24px;
    font-size: clamp(22px, 2.8vw, 28px);
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .envelope-section .bank-underline {
    height: 3px;
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .envelope-section .bank-underline {
    position: relative;
    left: auto;
    width: 100vw;
    height: 3px;
    margin: 20px calc(50% - 50vw) 0;
    transform: none;
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .envelope-section .bank-underline {
    position: static;
    width: min(100%, 400px);
    height: 3px;
    margin: 20px auto 0;
    transform: none;
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .opening-section {
    min-height: 0;
    height: auto;
  }

  .opening-section .section-container {
    min-height: 0;
  }

  .opening-section .section-container .event-panel {
    min-height: clamp(300px, 34svh, 360px);
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .event-venue .maps-button {
    padding: 14px 26px;
    font-size: clamp(26px, 3.4vw, 34px);
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .envelope-section .bank-card {
    width: min(100%, 620px);
  }

  .bank-account > span {
    font-size: clamp(36px, 4.4vw, 44px);
  }

  .bank-account > strong {
    font-size: clamp(36px, 4.4vw, 44px);
  }

  .bank-account .copy-bank-button {
    padding: 16px 30px;
    font-size: clamp(26px, 3.2vw, 33px);
  }

  .closing-photo-frame {
    height: clamp(380px, 50vw, 520px);
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .closing-photo-frame {
    height: clamp(420px, 54vw, 560px);
  }
}

/* Taller gallery previews at each responsive size; the grid arrangement is unchanged. */
@media (max-width: 767.98px) {
  .verse-section .gallery-grid img {
    height: clamp(210px, 58vw, 280px);
  }

  .verse-section .collage-grid {
    grid-template-rows: clamp(200px, 62vw, 300px) clamp(180px, 54vw, 270px) clamp(130px, 36vw, 180px);
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .verse-section .gallery-grid img {
    height: clamp(420px, 54vw, 560px);
  }

  .verse-section .collage-grid {
    grid-template-rows: clamp(300px, 42vw, 390px) clamp(270px, 38vw, 350px) clamp(180px, 28vw, 250px);
  }
}

/* Desktop responsive styles */
@media (min-width: 1024px) {
  .verse-section .gallery-grid img {
    height: clamp(380px, 45svh, 540px);
  }

  .verse-section .collage-grid {
    grid-template-rows: 360px 320px 220px;
  }
}

/* Desktop responsive styles */
@media (min-width: 1024px) {
  .verse-section .gallery-grid,
  .verse-section .collage-grid {
    width: min(calc(100vw - 80px), 960px);
    max-width: 960px;
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .verse-section .collage-grid {
    grid-template-rows: clamp(360px, 48vw, 480px) clamp(320px, 42vw, 420px) clamp(220px, 31vw, 310px);
  }
}

/* Desktop responsive styles */
@media (min-width: 1024px) {
  .verse-section .collage-grid {
    grid-template-rows: 480px 420px 300px;
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .verse-section .collage-grid {
    grid-template-rows: clamp(360px, 48vw, 480px) clamp(400px, 52vw, 540px) clamp(300px, 40vw, 410px);
  }
}

/* Desktop responsive styles */
@media (min-width: 1024px) {
  .verse-section .collage-grid {
    grid-template-rows: 480px 540px 400px;
  }
}

/* Mobile responsive styles */
@media (max-width: 767.98px) {
  .couple-section .couple-name {
    margin-bottom: clamp(16px, 2svh, 22px);
  }
}

/* Tablet responsive styles */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .couple-section .couple-name {
    margin-bottom: clamp(20px, 2.5svh, 28px);
  }
}

/* Desktop responsive styles */
@media (min-width: 1024px) {
  .couple-section .couple-name {
    margin-bottom: clamp(24px, 2.5svh, 32px);
  }
}

/* Mobile responsive styles */
@media (max-width: 767.98px) and (min-height: 800px) and (orientation: portrait) {
  .couple-section .eyebrow {
    font-size: clamp(27px, min(7.5vw, 3.8svh), 35px);
  }

  .couple-section .couple-role {
    font-size: clamp(16px, min(4.8vw, 2.3svh), 20px);
  }

  .couple-section .couple-name {
    font-size: clamp(26px, min(8.5vw, 4svh), 36px);
  }

  .couple-section .couple-family {
    font-size: clamp(18px, min(5.6vw, 2.4svh), 23px);
  }

  .couple-section .couple-and {
    font-size: clamp(20px, min(6.6vw, 2.8svh), 27px);
  }

  .couple-section .hashtag {
    font-size: clamp(18px, min(6vw, 2.6svh), 24px);
  }
}

/* Mobile responsive styles */
@media (max-width: 767.98px) and (min-height: 800px) and (orientation: portrait) {
  .cover-invitation {
    font-size: clamp(20px, min(5vw, 2.5svh), 25px);
    line-height: 1.6;
  }

  .cover-invitation .name-invitator {
    font-size: clamp(27px, min(7vw, 3.3svh), 34px);
  }
}

/* Mobile responsive styles */
@media (max-width: 767.98px) and (min-height: 800px) and (orientation: portrait) {
  .opening-section {
    min-height: 0;
    height: auto;
    padding: clamp(24px, 3.5svh, 34px) 20px clamp(28px, 4svh, 38px);
  }

  .opening-section .event-panel {
    margin-top: 14px;
  }
}

/* Mobile responsive styles */
@media (max-width: 767.98px) and (min-height: 800px) and (orientation: portrait) {
  .couple-section .couple-name {
    font-size: clamp(24px, min(7.8vw, 3.7svh), 33px);
  }
}


/* Desktop responsive styles: add breathing room below the Section 3 heading. */
@media (min-width: 1024px) {
  .couple-section .eyebrow {
    margin-bottom: clamp(18px, 2.5vh, 32px);
  }
}


/* Desktop responsive styles: slightly reduce Section 3 couple names. */
@media (min-width: 1024px) {
  .couple-section .couple-name {
    font-size: clamp(24px, 2vw, 34px);
  }
}


/* Desktop responsive styles: add a little space around the ampersand. */
@media (min-width: 1024px) {
  .couple-section .couple-and {
    margin-block: 12px;
  }
}


/* Mobile responsive styles: lift the Welcome title on both short and tall phones. */
@media (max-width: 767.98px) {
  .welcome-eyebrow {
    top: clamp(8%, 11svh, 12%);
  }

  .welcome-names {
    top: clamp(13%, 15svh, 16%);
  }
}


/* Mobile responsive styles: slightly enlarge Section 3 text on short phones, excluding couple names. */
@media (max-width: 767.98px) and (max-height: 720px) and (orientation: portrait) {
  .couple-section .eyebrow {
    font-size: clamp(19px, 4.8svh, 24px);
  }

  .couple-section .couple-role {
    font-size: 14px;
  }

  .couple-section .couple-family {
    font-size: clamp(14px, 3.6svh, 17px);
  }

  .couple-section .couple-and {
    font-size: 19px;
  }

  .couple-section .hashtag {
    font-size: 16px;
  }
}

/* Mobile responsive styles: slightly enlarge Section 3 text on tall phones, excluding couple names. */
@media (max-width: 767.98px) and (min-height: 800px) and (orientation: portrait) {
  .couple-section .eyebrow {
    font-size: clamp(28px, min(7.8vw, 3.9svh), 36px);
  }

  .couple-section .couple-role {
    font-size: clamp(17px, min(5vw, 2.4svh), 21px);
  }

  .couple-section .couple-family {
    font-size: clamp(19px, min(5.8vw, 2.5svh), 24px);
  }

  .couple-section .couple-and {
    font-size: clamp(21px, min(6.8vw, 2.9svh), 28px);
  }

  .couple-section .hashtag {
    font-size: clamp(19px, min(6.2vw, 2.7svh), 25px);
  }
}
/* Shared responsive styles: keep scroll-triggered Section 3 reveals compact. */
.couple-section .fly-in.is-visible,
.couple-section .fly-in-from-left.is-visible,
.couple-section .fly-in-from-right.is-visible,
.couple-section .parents-fly-in.is-visible,
.couple-section .hashtag-fly-in.is-visible {
  animation-duration: 420ms;
}
/* Tall mobile responsive styles: move the Welcome photo upward toward the heading. */
@media (max-width: 767.98px) and (min-height: 800px) and (orientation: portrait) {
  .welcome-photo {
    object-position: center 16%;
  }
}
