/* Match the invitation's authored stage, including its short-landscape track. */
#wedding-venue-viewport {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  overflow: hidden;
  contain: layout paint style;
  background: var(--wedding-surround, #1b090e);
}
#wedding-venue-viewport[hidden], #wedding-venue[hidden] { display: none !important; }
html[data-wedding-return="venue"] #wedding-venue-viewport,
html[data-wedding-return="cover"] #wedding-venue-viewport,
html[data-wedding-return="closing"] #wedding-venue-viewport { background: transparent; }
/* Music uses the shared navigation dock on both retained pages. */
/* Back matches the original Reset and Music controls in the shared dock. */
#wedding-music-control .venue-back {
  position: absolute;
  left: var(--wedding-return-x, 50%);
  top: var(--wedding-music-y, 90.6%);
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  height: 11.5cqw;
  min-height: 44px;
  width: max-content;
  max-width: 44cqw;
  padding: 0 3.8cqw;
  border: 1px solid #e8c78c66;
  border-radius: 999px;
  color: #fff0c9;
  background: #99795f26;
  box-shadow: 0 1px 5px #0002, inset 0 0 12px #7a362412;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  transition: color .45s ease;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
  font: 400 clamp(11px, 3.55cqw, 16px)/1 VenueSerif, Georgia, serif;
  letter-spacing: .01em;
  white-space: nowrap;
}
#wedding-music-control[data-music-surface="light"] .venue-back { color: #57151b; }
#wedding-music-control .venue-back:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
#wedding-music-control .venue-back[hidden] { display: none !important; }
#wedding-music-control .venue-back:disabled { cursor: default; opacity: .7; }
#wedding-music-control .venue-back[data-venue-back="hidden"] { opacity:0; pointer-events:none; }
#wedding-music-control .venue-back[data-venue-back="revealing"] {
  animation:venue-back-arrive .45s ease-out both;
  pointer-events:none;
}
@keyframes venue-back-arrive { from { opacity:0; } to { opacity:1; } }
#wedding-music-control[data-motion-mode="reduced"] .venue-back { transition: none; animation:none; }
#wedding-venue.wedding-view {
  position: relative;
  inset: auto;
  width: min(100%, calc(var(--invitation-height, 100vh) * .5625));
  width: min(100%, 56.25svh);
  height: auto;
  min-height: 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  contain: layout paint style;
  container: wedding-venue / inline-size;
  background: #fbf5e9;
}
/* Only the page and the landscape wrapper scroll. Focus must never pan the frame. */
@supports (overflow: clip) {
  #wedding-venue.wedding-view { overflow: clip; }
}
@media (orientation: landscape) and (max-height: 600px) {
  #wedding-venue-viewport {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    grid-template-rows: minmax(693.333px, auto);
  }
  #wedding-venue.wedding-view { width: 390px; max-width: 100%; }
  #wedding-venue .venue-page { overscroll-behavior-y: auto; }
}
