#envelope-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

/* Desktop framing for the intro stage so it doesn't feel empty */
#envelope-page::before {
  content: "";
  position: absolute;
  inset: clamp(18px, 3.2vw, 46px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(176, 141, 87, 0.18);
  pointer-events: none;
  z-index: 1;
}

#envelope-page::after {
  content: "";
  position: absolute;
  inset: clamp(28px, 4.0vw, 62px);
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
}

main#content-page {
  color: var(--ink);
}

.site-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(28, 35, 48, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.70);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.14);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  color: rgba(28, 35, 48, 0.74);
  text-decoration: none;
  font-family: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  background: rgba(176, 141, 87, 0.14);
  color: var(--ink);
  transform: translateY(-1px);
}

.envelope-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 420px at 50% 40%, rgba(255, 250, 242, 0.16), transparent 60%),
    radial-gradient(980px 620px at 18% 12%, rgba(176, 141, 87, 0.28), transparent 62%),
    radial-gradient(760px 520px at 88% 16%, rgba(106, 32, 64, 0.22), transparent 64%),
    radial-gradient(1200px 900px at 50% 120%, rgba(0,0,0,0.42), transparent 70%),
    linear-gradient(180deg, rgba(15,16,18,0.92), rgba(15,16,18,0.74));
  opacity: 0.9;
}

.envelope-stage::before,
.envelope-stage::after {
  content: "";
  position: absolute;
  inset: -40%;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.26) 0 1px, transparent 2px);
  background-size: 84px 84px;
  opacity: 0.35;
  filter: blur(0.2px);
  animation: dustFloat 14s linear infinite;
}

.envelope-stage::after {
  background-size: 110px 110px;
  opacity: 0.22;
  animation-duration: 19s;
  animation-direction: reverse;
}

@keyframes dustFloat {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(120px, -160px, 0); }
}

.envelope-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 14px;
}

.monogram {
  font-family: "Cinzel", "Cormorant Garamond", ui-serif, serif;
  font-size: 22px;
  letter-spacing: 6px;
  color: rgba(255,255,255,0.80);
  margin-bottom: 10px;
  text-shadow: 0 18px 44px rgba(0,0,0,0.55);
}

@media (min-width: 980px) {
  .monogram {
    font-size: 30px;
    letter-spacing: 8px;
    margin-bottom: 12px;
  }

  #envelope-page .hint {
    font-size: 15px;
  }

  .envelope {
    transform: none;
  }
}


.envelope {
  width: 300px;
  height: 180px;
  background: var(--paper-2);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 1.2s ease;
  position: relative;
  z-index: 2;
}

.envelope.open {
  transform: scale(12);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.time-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, rgba(176, 141, 87, 0.10), transparent 36%),
    rgba(255, 250, 242, 0.82);
  backdrop-filter: blur(8px);
  padding: 18px 18px 16px;
  border-radius: var(--radius-md);
  min-width: 112px;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.time-box::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176, 141, 87, 0.42), transparent);
}

.time-box:hover {
  transform: translateY(-2px);
  border-color: rgba(176, 141, 87, 0.26);
  box-shadow: 0 20px 52px rgba(0,0,0,0.15);
}

.time-box span {
  display: block;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 1px;
  font-weight: 600;
}

.time-box small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  letter-spacing: 1px;
}

.map iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.map .map-open {
  margin: 16px auto 0;
}

/* Album story */
.album-heading {
  max-width: 760px;
  margin: 0 auto 56px;
  position: relative;
  z-index: 1;
}

.album-kicker {
  font-family: "Cinzel", "Cormorant Garamond", ui-serif, serif;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(176, 141, 87, 0.86);
  margin-bottom: 8px;
}

.album-heading h2 {
  font-size: clamp(34px, 5vw, 72px);
  letter-spacing: 1px;
  margin-bottom: 14px;
  line-height: 1.05;
}

.album-heading p:not(.album-kicker) {
  color: var(--muted);
  line-height: 1.9;
}

.album-inline-photo {
  display: inline-block;
  width: clamp(72px, 8vw, 128px);
  height: clamp(34px, 4vw, 54px);
  margin: 0 10px;
  border-radius: 999px;
  vertical-align: middle;
  background-size: cover;
  background-position: center;
  box-shadow: 0 14px 32px rgba(0,0,0,0.16);
  transform: translateY(-4px) rotate(-2deg);
}

.album-inline-photo.one {
  background-image: url("../assets/images/album_story_01_detail_01.jpg");
}

.album-inline-photo.two {
  background-image: url("../assets/images/album_story_02_detail_02.jpg");
  transform: translateY(-4px) rotate(2deg);
}

@media (max-width: 768px) {
  .album-inline-photo.one {
    background-image: url("../assets/images/album_story_01_detail_01_mobile.jpg");
  }

  .album-inline-photo.two {
    background-image: url("../assets/images/album_story_02_detail_02_mobile.jpg");
  }
}

.album-page {
  display: grid;
  grid-template-columns: minmax(420px, 1.18fr) minmax(280px, 0.82fr);
  align-items: center;
  gap: clamp(34px, 5vw, 76px);
  margin-bottom: 112px;
  position: relative;
  z-index: 1;
}

.album-page.reverse {
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
}

.album-page.reverse .album-visual {
  grid-column: 2;
}

.album-page.reverse .album-text {
  grid-column: 1;
  grid-row: 1;
}

.album-page:last-child {
  margin-bottom: 12px;
}

.album-visual {
  position: relative;
  min-height: 430px;
}

.album-photo {
  margin: 0;
}

.album-photo picture,
.album-photo img {
  width: 100%;
  display: block;
}

.album-photo img {
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.main-photo {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 10px;
  background: rgba(255, 250, 242, 0.88);
  border: 1px solid rgba(28, 35, 48, 0.12);
  border-radius: 18px;
  transform: rotate(-1.2deg);
}

.album-page.reverse .main-photo {
  transform: rotate(1.2deg);
}

.main-photo img {
  aspect-ratio: 4 / 5;
}

.accent-photo {
  position: absolute;
  width: min(190px, 34%);
  padding: 8px 8px 22px;
  background: rgba(255, 250, 242, 0.95);
  border: 1px solid rgba(28, 35, 48, 0.10);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.16);
}

.accent-photo img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}

.accent-photo.top {
  top: 28px;
  right: 4px;
  transform: rotate(6deg);
}

.accent-photo.bottom {
  left: 0;
  bottom: 22px;
  transform: rotate(-7deg);
}

.album-page.reverse .accent-photo.top {
  left: 4px;
  right: auto;
  transform: rotate(-6deg);
}

.album-page.reverse .accent-photo.bottom {
  right: 0;
  left: auto;
  transform: rotate(7deg);
}

/* Section reveal */
/* Fold animation: down = unfold from top, up = fold back toward bottom */
.fold {
  opacity: 0;
  transform: perspective(1200px) rotateX(-46deg) translateY(18px);
  transform-origin: top center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition:
    transform 760ms cubic-bezier(.2,.85,.2,1),
    opacity 420ms ease;
  will-change: transform, opacity;
}

.fold.show {
  opacity: 1;
  transform: perspective(1200px) rotateX(0deg) translateY(0);
}

.fold.retract {
  opacity: 1;
  transform: perspective(1200px) rotateX(0deg) translateY(0);
}

.album-text {
  max-width: 460px;
  text-align: left;
  padding: 26px 0;
  position: relative;
  z-index: 1;
}

.album-chapter {
  display: inline-block;
  font-family: "Cinzel", "Cormorant Garamond", ui-serif, serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: rgba(176, 141, 87, 0.88);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.album-text h3 {
  font-size: 32px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.album-text p {
  line-height: 1.8;
  color: var(--muted);
  font-size: 17px;
}

.album-notes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.album-notes span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(176, 141, 87, 0.28);
  background: rgba(255, 250, 242, 0.64);
  color: rgba(28, 35, 48, 0.72);
  font-size: 14px;
}
/* 翻頁效果滑入動畫（像翻書，不吵） */
.album-page {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.album-page.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .album-heading {
    margin-bottom: 34px;
  }

  .album-page,
  .album-page.reverse {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 78px;
  }

  .album-page.reverse .album-visual,
  .album-page.reverse .album-text {
    grid-column: auto;
    grid-row: auto;
  }

  .album-visual {
    min-height: auto;
    width: 100%;
    padding: 0 34px 74px;
  }

  .main-photo,
  .album-page.reverse .main-photo {
    transform: rotate(0deg);
  }

  .accent-photo {
    width: min(128px, 38%);
  }

  .accent-photo.top {
    top: auto;
    right: 16px;
    bottom: 4px;
    transform: rotate(5deg);
  }

  .accent-photo.bottom {
    left: 16px;
    bottom: 16px;
    transform: rotate(-5deg);
  }

  .album-page.reverse .accent-photo.top {
    left: auto;
    right: 16px;
    transform: rotate(5deg);
  }

  .album-page.reverse .accent-photo.bottom {
    left: 16px;
    right: auto;
    transform: rotate(-5deg);
  }

  .album-text {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
  }

  .album-notes {
    justify-content: center;
  }
}

/* === 背景音樂控制 === */
#music-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.92), rgba(255,255,255,0.56) 58%),
    rgba(255, 250, 242, 0.72);
  backdrop-filter: blur(10px);
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  z-index: 999;
  color: var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

#music-toggle::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  border: 1px dashed rgba(176, 141, 87, 0.48);
}

#music-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

#music-toggle.is-playing {
  color: var(--accent-3);
  animation: musicSpin 3.6s linear infinite;
  box-shadow:
    var(--shadow-sm),
    0 0 0 6px rgba(176, 141, 87, 0.10);
}

@keyframes musicSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 地圖像「邀請函的一頁」 */
.map iframe {
  border-radius: var(--radius-md);
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
}

/* 信紙風格（ */
.letter {
  max-width: 900px;
  margin: 80px auto;
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 35, 40, 0.08);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.letter::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: calc(var(--radius-lg) - 8px);
  border: 1px solid rgba(176, 141, 87, 0.22);
  pointer-events: none;
}

.letter-body {
  padding: 80px 60px;
  line-height: 2;
  font-size: 18px;
}

.opening {
  font-size: 22px;
  margin-bottom: 40px;
}

.hint {
  font-family: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: center;
  color: rgba(255, 255, 255, 0.74);
  letter-spacing: 0.5px;
  margin-bottom: 22px;
  line-height: 1.5;
}

#envelope-page .hint {
  color: rgba(255, 255, 255, 0.74);
}

/* Buttons / forms / utility */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(28, 35, 48, 0.18);
  background: rgba(255, 250, 242, 0.92);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 1px;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 0 32%, rgba(255,255,255,0.72) 44%, transparent 56% 100%);
  transform: translateX(-125%);
  opacity: 0;
}

.btn::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: 10px;
  border-radius: 999px;
  background: rgba(176, 141, 87, 0.70);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.10);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.16);
}

.btn:hover::before {
  animation: buttonGleam 780ms ease forwards;
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(176, 141, 87, 0.30);
}

.btn-ghost::after {
  background: rgba(28, 35, 48, 0.34);
  box-shadow: 0 0 0 3px rgba(28, 35, 48, 0.07);
}

.muted {
  color: var(--muted);
}

.details-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.bento-grid {
  grid-auto-flow: dense;
}

.details-card {
  position: relative;
  isolation: isolate;
  text-align: left;
  padding: 18px 18px 16px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.34), transparent 42%),
    rgba(255, 250, 242, 0.78);
  border: 1px solid rgba(28, 35, 48, 0.10);
  min-width: 0;
  overflow: hidden;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.details-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 0 42%, rgba(255,255,255,0.50) 50%, transparent 58% 100%);
  transform: translateX(-120%);
  opacity: 0;
}

.details-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  border-right: 1px solid rgba(176, 141, 87, 0.28);
  border-bottom: 1px solid rgba(176, 141, 87, 0.28);
  border-radius: 0 0 12px 0;
  opacity: 0.72;
  pointer-events: none;
}

.details-card:hover {
  transform: translateY(-3px);
  border-color: rgba(176, 141, 87, 0.28);
  box-shadow: 0 22px 54px rgba(0,0,0,0.14);
}

.details-card:hover::before {
  animation: cardGleam 900ms ease forwards;
  opacity: 1;
}

.details-card h3 {
  font-size: 18px;
  letter-spacing: 1px;
  margin-bottom: 10px;
  line-height: 1.45;
}

.details-card p {
  margin-top: 6px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(176, 141, 87, 0.38);
}

.travel-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: dense;
}

.travel-grid .details-card {
  grid-column: span 2;
}

.travel-grid .details-card:nth-child(1),
.travel-grid .details-card:nth-child(2),
.travel-grid .details-card:nth-child(4) {
  min-height: 170px;
}

.travel-grid .details-card:nth-child(3) {
  grid-column: span 4;
  grid-row: span 2;
}

.travel-grid .details-card:nth-child(5) {
  grid-column: span 2;
  grid-row: span 2;
  background:
    linear-gradient(145deg, rgba(176, 141, 87, 0.10), transparent 48%),
    rgba(255, 250, 242, 0.82);
}

.site-footer {
  max-width: min(1320px, calc(100vw - 64px));
  margin: 0 auto 64px;
  padding: clamp(72px, 9vw, 128px) 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(800px 420px at 50% 0%, rgba(176, 141, 87, 0.28), transparent 65%),
    linear-gradient(135deg, rgba(28, 35, 48, 0.98), rgba(15, 16, 18, 0.94));
  color: rgba(255,255,255,0.92);
  box-shadow: 0 34px 90px rgba(0,0,0,0.26);
}

.footer-kicker {
  font-family: "Cinzel", "Cormorant Garamond", ui-serif, serif;
  letter-spacing: 5px;
  color: rgba(222, 194, 143, 0.90);
  margin-bottom: 12px;
}

.site-footer h2 {
  font-size: clamp(30px, 5vw, 68px);
  line-height: 1.08;
  font-weight: 500;
  margin-bottom: 26px;
}

.site-footer .btn {
  background: rgba(255, 250, 242, 0.94);
}

.site-footer .btn-ghost {
  color: rgba(255,255,255,0.9);
  background: transparent;
  border-color: rgba(255,255,255,0.28);
}

.details-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}


.gallery-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

/* (legacy) gallery-item kept for safety; carousel is primary now */
.gallery-item {
  border: 1px solid rgba(28, 35, 48, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 242, 0.9);
  box-shadow: 0 18px 44px rgba(0,0,0,0.12);
  cursor: pointer;
  min-height: 180px;
  background-size: cover;
  background-position: center;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 70px rgba(0,0,0,0.16);
  filter: saturate(1.05);
}

.gallery-item:nth-child(1) { grid-column: 1 / span 7; }
.gallery-item:nth-child(2) { grid-column: 8 / span 5; }
.gallery-item:nth-child(3) { grid-column: 1 / span 12; min-height: 220px; }

/* Carousel (desktop-first, also works on mobile) */
.carousel {
  margin-top: 18px;
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  grid-template-rows: auto auto;
  gap: 10px;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}

.carousel-viewport {
  overflow: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: var(--radius-lg);
  max-width: 100%;
  min-width: 0;
  overscroll-behavior-x: contain;
  touch-action: pan-x pinch-zoom;
  cursor: grab;
  scroll-padding-inline: 6px;
  will-change: scroll-position;
}

.carousel-viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.carousel-viewport::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.carousel-track {
  display: flex;
  gap: 14px;
  padding: 6px;
  width: max-content;
  min-width: 100%;
  align-items: stretch;
}

.carousel-slide {
  position: relative;
  flex: 0 0 clamp(320px, 32vw, 460px);
  transform: translateZ(0);
  scroll-snap-align: center;
  scroll-snap-stop: normal;
  border: 1px solid rgba(28, 35, 48, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 242, 0.92);
  box-shadow: 0 24px 70px rgba(0,0,0,0.14);
  cursor: pointer;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  backface-visibility: hidden;
  contain: paint;
}

.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.24), transparent 28%),
    linear-gradient(0deg, rgba(15,16,18,0.18), transparent 34%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 520ms ease, filter 520ms ease;
  transform: translateZ(0);
  backface-visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.carousel-slide:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 90px rgba(0,0,0,0.18);
  filter: saturate(1.02);
}

.carousel-slide:hover::after {
  opacity: 1;
}

.carousel-slide:hover img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.03);
}

.carousel-nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(28, 35, 48, 0.16);
  background: rgba(255, 250, 242, 0.92);
  box-shadow: 0 16px 34px rgba(0,0,0,0.12);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: rgba(28, 35, 48, 0.72);
  display: grid;
  place-items: center;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.carousel-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 52px rgba(0,0,0,0.16);
}

.carousel-progress {
  grid-column: 2;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(520px, 100%);
  margin: 8px auto 0;
  color: rgba(28, 35, 48, 0.58);
  font-family: "Cinzel", "Cormorant Garamond", ui-serif, serif;
  letter-spacing: 3px;
  font-size: 11px;
  text-transform: uppercase;
}

.carousel-progress-track {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: rgba(176, 141, 87, 0.22);
}

.carousel-progress-track::before,
.carousel-progress-track::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 1px solid rgba(176, 141, 87, 0.42);
  background: rgba(255, 250, 242, 0.92);
}

.carousel-progress-track::before {
  left: 0;
}

.carousel-progress-track::after {
  right: 0;
}

.carousel-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  min-width: 24px;
  background:
    linear-gradient(90deg, rgba(106, 32, 64, 0.50), rgba(176, 141, 87, 0.94), rgba(255, 244, 217, 0.95));
  box-shadow: 0 0 18px rgba(176, 141, 87, 0.28);
  transition: width 220ms ease;
}

.carousel-progress-count {
  color: rgba(143, 115, 71, 0.86);
  min-width: 2.4ch;
  text-align: right;
}

@media (max-width: 860px) {
  .carousel {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .carousel-nav {
    display: none;
  }

  .carousel-track {
    width: max-content;
    min-width: 100%;
    gap: 10px;
    padding: 4px 6px;
  }

  .carousel-slide {
    flex-basis: clamp(250px, calc(84vw - 20px), 390px);
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    box-shadow: 0 18px 42px rgba(0,0,0,0.13);
  }

  .carousel-progress {
    grid-column: 1;
    width: min(340px, calc(100vw - 64px));
    margin-top: 10px;
    gap: 9px;
    font-size: 10px;
    letter-spacing: 2.4px;
  }
}

.faq-list {
  margin: 20px auto 0;
  max-width: 860px;
  text-align: left;
  display: grid;
  gap: 12px;
}

.faq-card {
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid rgba(176, 141, 87, 0.22);
  background:
    linear-gradient(135deg, rgba(176, 141, 87, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 242, 0.92), rgba(246, 240, 230, 0.82));
  padding: clamp(18px, 3.4vw, 28px);
  box-shadow: 0 18px 46px rgba(0,0,0,0.10);
  overflow: hidden;
}

.faq-card::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 14px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(176, 141, 87, 0.78), rgba(106, 32, 64, 0.42));
}

.faq-title {
  padding-left: 14px;
  font-weight: 600;
  letter-spacing: 0.8px;
  line-height: 1.5;
}

.faq-list p {
  margin-top: 10px;
  padding-left: 14px;
  color: var(--muted);
  line-height: 1.9;
}

.google-form-intro {
  max-width: 620px;
  margin: 0 auto 8px;
  color: var(--muted);
  line-height: 1.8;
}

.google-form-shell {
  position: relative;
  isolation: isolate;
  max-width: 860px;
  min-height: 280px;
  margin: 20px auto 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(28, 35, 48, 0.12);
  background:
    linear-gradient(135deg, rgba(176, 141, 87, 0.08), transparent 42%),
    rgba(255, 250, 242, 0.70);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.google-form-shell::before,
.google-form-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.google-form-shell::before {
  inset: 12px;
  z-index: 0;
  border-radius: calc(var(--radius-lg) - 10px);
  border: 1px dashed rgba(176, 141, 87, 0.28);
}

.google-form-shell::after {
  top: 0;
  bottom: 0;
  left: 24px;
  width: 1px;
  z-index: 0;
  background: repeating-linear-gradient(180deg, rgba(176,141,87,0.34) 0 8px, transparent 8px 17px);
  opacity: 0.72;
}

.google-form-shell:hover {
  border-color: rgba(176, 141, 87, 0.24);
}

.google-form-shell iframe {
  display: block;
  width: 100%;
  min-height: 620px;
  border: 0;
  background: #fff;
}

.google-form-placeholder {
  position: relative;
  z-index: 1;
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: rgba(28, 35, 48, 0.64);
  padding: 28px 18px;
}

.google-form-placeholder::before {
  content: "RSVP";
  position: absolute;
  top: 22px;
  right: clamp(18px, 4vw, 42px);
  width: 68px;
  height: 68px;
  border-radius: 999px;
  border: 1px solid rgba(176, 141, 87, 0.36);
  display: grid;
  place-items: center;
  font-family: "Cinzel", "Cormorant Garamond", ui-serif, serif;
  font-size: 13px;
  letter-spacing: 3px;
  color: rgba(143, 115, 71, 0.72);
  transform: rotate(10deg);
  box-shadow: inset 0 0 0 5px rgba(176, 141, 87, 0.06);
}

.google-form-placeholder span {
  font-family: "Cinzel", "Cormorant Garamond", ui-serif, serif;
  letter-spacing: 4px;
  color: rgba(176, 141, 87, 0.82);
}

.google-form-placeholder p {
  margin: 0;
}

.fake-form-link {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px dashed rgba(176, 141, 87, 0.38);
  background: rgba(255, 250, 242, 0.66);
  color: rgba(28, 35, 48, 0.56);
  text-decoration: none;
  letter-spacing: 1px;
  pointer-events: none;
  cursor: default;
}

.fake-form-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 36%, rgba(255,255,255,0.72) 50%, transparent 64% 100%);
  transform: translateX(-130%);
  animation: ticketHintSweep 4.2s ease-in-out infinite;
}

@keyframes buttonGleam {
  0% { transform: translateX(-125%); }
  100% { transform: translateX(125%); }
}

@keyframes cardGleam {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes ticketHintSweep {
  0%, 38% { transform: translateX(-130%); opacity: 0; }
  48% { opacity: 1; }
  62%, 100% { transform: translateX(130%); opacity: 0; }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 16, 18, 0.78);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  z-index: 2000;
  padding: 24px;
}

.lightbox-img {
  max-width: min(980px, 96vw);
  max-height: 86vh;
  border-radius: 18px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.55);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.90);
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .site-nav {
    top: auto;
    right: auto;
    left: 10px;
    bottom: max(12px, env(safe-area-inset-bottom));
    transform: none;
    width: calc(100dvw - 88px);
    max-width: none;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  @supports not (width: 100dvw) {
    .site-nav {
      width: calc(100vw - 88px);
    }
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .details-grid { grid-template-columns: 1fr; }
  .travel-grid { grid-template-columns: 1fr; }
  .travel-grid .details-card,
  .travel-grid .details-card:nth-child(3),
  .travel-grid .details-card:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
    min-height: auto;
  }

  .details-card {
    padding: 16px 16px 15px;
  }

  .details-card:hover,
  .carousel-slide:hover,
  .time-box:hover,
  .btn:hover {
    transform: none;
  }

  .details-card:hover::before,
  .btn:hover::before {
    animation: none;
    opacity: 0;
  }

  .carousel-slide:hover img {
    transform: none;
    filter: none;
  }

  .carousel-viewport {
    scroll-snap-type: x mandatory;
    border-radius: var(--radius-md);
  }

  .google-form-shell {
    border-radius: var(--radius-md);
  }

  .map iframe {
    height: 340px;
    border-radius: var(--radius-md);
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3) { grid-column: 1 / span 12; }

  .album-inline-photo {
    width: 62px;
    height: 30px;
    margin: 0 4px;
  }

  .site-footer {
    max-width: calc(100vw - 32px);
    margin-bottom: 92px;
  }

  #music-toggle {
    right: 14px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn::before,
  .details-card::before,
  .fake-form-link::before {
    animation: none !important;
    opacity: 0 !important;
  }

  .carousel-slide img,
  .time-box,
  .details-card,
  .btn,
  #music-toggle.is-playing {
    transition: none !important;
    animation: none !important;
  }
}
