.sauna-tour {
  --tour-paper: #f9f8f4;
  --tour-dark: #182326;
  --tour-focus: 50%;
  position: relative;
  background: var(--tour-dark);
  color: var(--tour-paper);
}
.tour-sticky {
  position: relative;
  height: clamp(460px, 76svh, 840px);
  isolation: isolate;
}
.tour-screen, .tour-shade {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.tour-screen { z-index: -2; background: var(--tour-dark); }
.tour-screen img, .tour-screen video {
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: none;
  inset: 0;
  display: block;
  object-fit: cover;
  object-position: var(--tour-focus) 50%;
}
.tour-film { opacity: 0; pointer-events: none; }
.tour-has-frame .tour-film { opacity: 1; }
.tour-shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(11,19,21,.78) 0%, rgba(11,19,21,.50) 23%, rgba(11,19,21,.06) 57%, transparent 82%),
              linear-gradient(0deg,rgba(8,14,16,.63),transparent 32%);
}
.tour-inner {
  width: min(calc(100% - 88px), var(--wrap));
  height: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  position: relative;
  padding: 48px 0 0;
}
.tour-copy {
  max-width: min(54%, 680px);
  padding-bottom: clamp(32px, 7svh, 76px);
}
.tour-location {
  margin: 0 0 14px;
  color: #f5dda0;
  font-size: clamp(13px, 1.12vw, 16px);
  font-weight: 700;
  letter-spacing: .025em;
}
.tour-copy h1, .tour-caption {
  color: white;
  font-family: var(--headline);
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 0 1px 6px #10181942;
  margin: 0;
  line-height: .99;
  letter-spacing: -.035em;
}
.tour-copy h1 { font-size: clamp(45px, 5.8vw, 86px); }
.tour-caption { max-width: 12em; font-size: clamp(36px, 4vw, 60px); }
.tour-interior .tour-copy h1, .tour-interior .tour-location {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; margin: 0;
}
.tour-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tour-actions .btn { min-height: 45px; text-shadow: none; }
.tour-actions .tour-secondary {
  color: white;
  border-color: #ffffffc9;
  background: rgba(17,25,26,.57);
}
.tour-actions .tour-secondary:hover { color: var(--ink); background: white; border-color: white; }
.tour-toolbar {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 0 20px;
}
.tour-toolbar:has(> .tour-cue[hidden]):has(> .tour-skip[hidden]) { display: none; }
.tour-cue, .tour-skip {
  font-size: 14px; font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px #000;
}
.tour-cue { display: inline-flex; align-items: center; gap: 9px; }
.tour-cue span { color: #f4cf76; font-size: 20px; line-height: 1; }
.tour-skip { text-underline-offset: 4px; padding: 9px 2px; }
.tour-progress {
  position: absolute; inset: auto 0 0; display: none; height: 3px;
  background: #ffffff3b; pointer-events: none;
}
.tour-progress span {
  height: 100%; display: block; background: var(--gold);
  transform: scaleX(0); transform-origin: left center;
}
.sauna-tour.tour-ready { height: 280vh; height: 280svh; }
.tour-ready .tour-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; }
.tour-ready .tour-progress { display: block; }
.tour-ready a:focus-visible { outline-color: #ffd77a; }
#shop-saunas:focus { outline: none; }
.tour-photos .tour-photo-gallery { aspect-ratio: 2.7; min-height: 230px; max-height: 380px; }
.tour-photo-gallery.hero:after { background: linear-gradient(to top, #0006, transparent 30%); }
.tour-photo-gallery .hero-media img { object-position: center 57%; }
.tour-photo-gallery .slides-controls { right: 16px; bottom: 12px; }
@media (max-width: 730px) and (orientation: portrait) {
  .tour-sticky {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--tour-dark);
  }
  .sauna-tour.tour-ready { height: 250svh; }
  .tour-ready .tour-sticky { height: 100svh; }
  .tour-screen {
    position: relative;
    inset: auto;
    z-index: auto;
    flex: 0 0 auto;
    width: 100%;
    height: min(54svh, 110vw);
  }
  .tour-shade { display: none; }
  .tour-inner {
    flex: 1 0 auto;
    width: calc(100% - 40px);
    height: auto; padding: 19px 0 7px;
    align-items: stretch; justify-content: space-between;
  }
  .tour-copy { max-width: none; padding-bottom: 13px; }
  .tour-copy h1, .tour-caption { font-size: clamp(34px, 8.5vw, 48px); line-height: 1.01; }
  .tour-location { font-size: 13px; margin-bottom: 9px; }
  .tour-actions { gap: 7px; margin-top: 16px; }
  .tour-actions .btn { padding: 8px 11px; min-height: 42px; font-size: 14px; }
  .tour-toolbar { padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .tour-toolbar a, .tour-toolbar span { text-shadow: none; }
}
@media (min-width: 731px) and (max-width: 970px) {
  .tour-inner { width: calc(100% - 52px); }
  .tour-copy { max-width: 57%; }
  .tour-actions .btn { min-height: 42px; padding: 10px 14px; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .tour-sticky { min-height: 310px; }
  .tour-inner { width: calc(100% - 44px); padding-top: 12px; }
  .tour-copy { max-width: 65%; padding-bottom: 12px; }
  .tour-copy h1 { font-size: clamp(30px, 6vw, 52px); }
  .tour-caption { font-size: clamp(28px, 5vw, 44px); }
  .tour-actions { margin-top: 10px; }
  .tour-actions .btn { min-height: 38px; padding: 7px 10px; font-size: 14px; }
  .tour-toolbar { padding-bottom: 5px; }
}
@media (max-width: 730px) {
  .tour-photos .tour-photo-gallery { aspect-ratio: 1.65; min-height: 175px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.sauna-tour) { scroll-behavior: auto; }
}
@media (min-width: 731px), (orientation: landscape) {
  .tour-inner { justify-content: center; padding-bottom: 38px; }
  .tour-copy { padding-bottom: 0; }
  .tour-toolbar { position: absolute; bottom: 0; left: 0; }
  .tour-interior .tour-copy { max-width: min(40%, 440px); }
  .tour-interior .tour-caption { max-width: 11ch; }
}
@media (max-width: 730px) and (orientation: portrait) and (max-height: 660px) {
  .tour-screen { height: 46svh; }
  .tour-inner { padding-top: 12px; }
  .tour-copy { padding-bottom: 6px; }
  .tour-actions { margin-top: 8px; }
}

.tour-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 731px), (orientation: landscape) {
  .tour-toolbar {
    position: static;
    justify-content: flex-start;
    gap: 20px;
    width: auto;
    padding: 8px 0 0;
  }
}
@media (max-width: 730px) and (orientation: portrait) {
  .tour-inner { justify-content: flex-start; }
  .tour-toolbar { width: auto; align-self: flex-start; gap: 20px; }
}

/* Keep the whole photograph or collage visible, including its outer edges. */
#sauna-photos .tour-photo-gallery {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  background: var(--light);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
}
#sauna-photos .tour-photo-gallery::after { content: none; }
#sauna-photos .hero-media {
  position: relative;
  inset: auto;
  z-index: auto;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: 100%;
  height: min(64vh, 600px, 78vw);
  height: min(64svh, 600px, 78vw);
  padding: clamp(6px, 1vw, 14px);
}
#sauna-photos .hero-media img {
  grid-area: 1 / 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}
#sauna-photos .slides-controls {
  position: static;
  justify-content: center;
  gap: 10px;
  padding: 6px 12px;
  border-top: 1px solid var(--line);
  background: white;
}
#sauna-photos .slides-controls .slide-button {
  width: 44px;
  height: 44px;
  color: var(--brand);
  border: 1px solid var(--line);
  background: white;
}
#sauna-photos .slides-controls .slide-button:hover {
  color: white;
  border-color: var(--brand);
  background: var(--brand);
}
@media (max-width: 640px) {
  #sauna-photos .hero-media {
    height: min(90vw, 56vh);
    height: min(90vw, 56svh);
  }
}