.scroll-tour {
  --tour-top: 69px;
  --tour-height: max(240px, calc(100svh - var(--tour-top)));
  --tour-travel: 910svh;
  position: relative;
  color: #faf4e5;
  background: #2c241a;
}
.scroll-tour[data-active] { height: calc(var(--tour-height) + var(--tour-travel)); }
@media (scripting: enabled) {
  .scroll-tour { height: calc(var(--tour-height) + var(--tour-travel)); }
}
.scroll-tour [hidden] { display: none !important; }
.tour-stage {
  position: sticky;
  top: var(--tour-top);
  height: var(--tour-height);
  isolation: isolate;
  overflow: hidden;
}
.tour-still, .tour-still picture, .tour-still img, .tour-frame, .tour-stage::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tour-still img, .tour-frame { display: block; object-fit: cover; object-position: center; }
.tour-film { position: absolute; width: 1px; height: 1px; visibility: hidden; pointer-events: none; }
.tour-stage::after {
  content: '';
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, #18130eb0, transparent 27%);
}
.tour-stage[data-stop="entrance"]::after {
  background: linear-gradient(17deg, #1b2018f5 0%, #1b2018db 24%, transparent 57%);
}
.tour-top, .tour-bottom {
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  pointer-events: none;
}
.tour-top {
  top: max(17px, env(safe-area-inset-top));
  display: flex;
  justify-content: end;
}
.tour-top a, .tour-bottom a { pointer-events: auto; }
.tour-walk, .tour-catalog, .tour-stops {
  border: 1px solid #efe1c16b;
  background: #20221aeb;
  color: #fff3d9;
}
.tour-walk {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 4px;
  text-decoration: none;
  font-size: .875rem;
  white-space: nowrap;
}
.tour-walk:hover { background: #4e4938; }
.tour-catalog { display: none; }
.tour-bottom {
  bottom: max(22px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px 24px;
}
.tour-intro, .tour-caption { grid-column: 1; }
.tour-intro h1 {
  max-width: 7em;
  margin: 0 0 12px;
  font: 500 clamp(4.4rem, 7.6vw, 8.2rem)/.79 var(--font-display);
  letter-spacing: -.042em;
}
.tour-intro em { color: #f5deac; font-weight: inherit; }
.tour-intro p { max-width: 43ch; margin: 0 0 16px; font-size: clamp(1rem, 1.35vw, 1.15rem); text-wrap: pretty; }
.tour-intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tour-down, .tour-action { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; text-underline-offset: 4px; }
.tour-down, .tour-shortcut {
  justify-content: center;
  border-radius: 4px;
  padding-inline: 13px;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}
.tour-down { color: #27221a; background: #f0ddb3; }
.tour-down:hover { background: #ffebc0; }
.tour-shortcut {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid #d8c8a0a6;
  background: #20221aeb;
  color: #fff3d9;
}
.tour-shortcut:hover { background: #4e4938; }
.tour-caption {
  justify-self: start;
  min-width: 0;
  max-width: min(100%, 460px);
  padding: 13px 17px 2px;
  border: 1px solid #d5c2a0;
  border-radius: 4px;
  background: #f3e9d6;
  color: #29251d;
  box-shadow: 0 6px 24px #100d0985;
  pointer-events: auto;
}
.tour-caption h2 { margin: 0; font: 500 clamp(1.85rem, 3.1vw, 2.9rem)/.96 var(--font-display); letter-spacing: -.035em; }
.tour-caption p { margin: 5px 0 0; color: #5a4c3b; font-size: clamp(.81rem, 1.07vw, .94rem); }
.tour-action { color: #2d4838; font-size: .9rem; font-weight: 650; }
.tour-action::after { content: "↗"; }
.tour-stops {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  width: 304px;
  border-radius: 4px;
  pointer-events: auto;
}
.tour-location {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 7px 11px;
  border-bottom: 1px solid #efe1c13b;
  font-size: .8125rem;
}
.tour-count { color: #e9d5a9; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tour-stops a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.tour-prev { justify-content: center; border-inline-end: 1px solid #efe1c13b; }
.tour-next { justify-content: space-between; gap: 8px; padding: 5px 11px; font-size: .875rem; font-weight: 600; }
.tour-stops a:hover { background: #4e4938; }
.tour-top a:focus-visible, .tour-stops a:focus-visible, .tour-intro-actions a:focus-visible { outline-color: #ffe8b3; }
.tour-artwork { position: absolute; z-index: 2; cursor: pointer; }
.tour-stop { display: none; position: absolute; top: calc(var(--tour-travel) * var(--position)); inset-inline-start: 0; width: 1px; height: 1px; pointer-events: none; }
.scroll-tour[data-active] .tour-stop { display: block; }
@media (max-width: 640px) {
  .scroll-tour { --tour-top: 59px; --tour-travel: 960svh; }
  .tour-top { justify-content: space-between; gap: 8px; }
  .tour-catalog { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 4px; font-size: .875rem; text-decoration: none; }
  .tour-catalog:hover { background: #4e4938; }
  .tour-bottom { grid-template-columns: 1fr; bottom: max(12px, env(safe-area-inset-bottom)); }
  .tour-intro h1 { font-size: clamp(3.5rem, 13vw, 5.25rem); line-height: .83; }
  .tour-caption { padding: 11px 12px 1px; }
  .tour-stops { grid-column: 1; grid-row: 2; justify-self: start; width: 100%; }
  .tour-stage[data-stop="entrance"]::after { background: linear-gradient(to top, #171b12f5, #171b12b8 37%, transparent 65%); }
}
@media (max-width: 420px) {
  .tour-down { flex-basis: 100%; }
  .tour-shortcut { flex: 1; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .tour-intro h1 { font-size: 3.8rem; line-height: .9; }
  .tour-bottom { bottom: max(7px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-tour { --tour-travel: 480svh; }
}
