.section-viewport {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  min-height: 0;
  overflow: clip;
}
.section-panel {
  grid-area: 1 / 1;
  opacity: var(--section-opacity, 1);
}
.section-panel[hidden] { display: none; }
.section-panel.section-leaving { pointer-events: none; }
.section-panel.section-moving,
.section-panel.section-arriving {
  transform: translate(var(--section-x, 0px), var(--section-y, 0px));
}
.section-panel.section-moving {
  transition: transform 320ms ease-in-out, opacity 240ms ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .section-panel.section-moving { transition: none; }
}
.section-placeholder {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .6rem;
  padding: 1rem;
  text-align: center;
}
.section-placeholder h2 {
  margin: 0;
  font: 700 clamp(1.6rem, min(5vw, 10vh), 3rem)/1.08 Georgia, serif;
}
.section-placeholder p { margin: 0; }
.section-placeholder a { text-underline-offset: .2em; }
.section-panel:focus { outline: none; }
.menu {
  width: max-content;
  max-width: min(16rem, 65vw);
  max-height: calc(100dvh - 65px);
  overflow: auto;
  overscroll-behavior: contain;
}
.menu a[aria-current="location"] {
  background: #d9eeff;
  font-weight: 700;
}
@media (max-width: 560px) {
  footer > span { max-width: 26%; font-size: .65rem; letter-spacing: 0; }
}

.section-viewport { position: relative; }
.birthday-card-in-transition .cake-art { visibility: hidden; }
.birthday-travel-cake.cake-button {
  z-index: 5;
  display: block;
  bottom: auto;
  min-height: 0;
  padding: 0;
  pointer-events: none;
}
.birthday-travel-cake .cake-art { width: 100%; height: 100%; }

/* Keep the Wish foreground above the Capsule backdrop during their crossfade. */
.wish-chapter.wish-capsule-crossfade { z-index: 1; pointer-events: none; }
