.tour-overview, .tour-gallery {
  padding-block: clamp(2.8rem, 5vw, 5rem);
}
.tour-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(265px, 0.86fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
}
.tour-overview h1, .tour-gallery h1 {
  font-size: clamp(2.65rem, 5.75vw, 5.5rem);
  max-width: 16ch;
  overflow-wrap: anywhere;
}
.tour-intro > p, .tour-gallery header > p {
  margin-block: 1rem 1.8rem;
  max-width: 50rem;
  font-size: 1.1rem;
}
.tour-directory h2, .tour-more h2 {
  font-size: clamp(1.6rem, 2.2vw, 2.3rem);
  margin-bottom: .75rem;
}
.tour-directory ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.tour-directory li { border-bottom: 1px solid var(--line); }
.tour-gallery-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: .75rem;
}
.tour-gallery-link:hover strong { text-decoration: underline; }
.tour-gallery-link img {
  width: 4.4rem;
  height: 3.6rem;
  object-fit: cover;
  border-radius: .3rem;
}
.tour-gallery-link strong, .tour-gallery-link small { display: block; }
.tour-gallery-link small { font-size: .9rem; color: var(--muted); }
.tour-map {
  position: relative;
  isolation: isolate;
  border-radius: 1rem;
  border: 1px solid var(--line);
  overflow: hidden;
  background: white;
  width: min(100%, 495px);
  justify-self: center;
}
.tour-map > img { width: 100%; height: auto; }
.tour-hotspot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 50%;
  height: 25%;
  text-align: center;
}
.tour-hotspot::before {
  content: "";
  position: absolute;
  left: 48%;
  top: 46%;
  width: .78rem;
  height: .78rem;
  background: var(--terra);
  border: 2px solid #fff;
  border-radius: 100% 100% 100% 0;
  transform: rotate(-45deg);
  box-shadow: 0 1px 4px #241c15b3;
}
.tour-hotspot span {
  position: relative;

  color: #fff;
  background: #263e31;
  padding: .35rem .7rem;
  border-radius: .35rem;
  font-weight: 600;
  opacity: 0;
}
.tour-hotspot:hover, .tour-hotspot:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: -3px;
  background: #fffded29;
}
.tour-hotspot:hover span, .tour-hotspot:focus-visible span { opacity: 1; }
.tour-tile-1 { left: 0; top: 0; }
.tour-tile-3 { left: 0; top: 25%; }
.tour-tile-5 { left: 0; top: 50%; }
.tour-tile-7 { left: 0; top: 75%; }
.tour-tile-8 { left: 50%; top: 75%; }
.tour-gallery header .text-link { margin-bottom: 1.1rem; }
.tour-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.65rem 1.25rem;
}
.tour-photo {
  display: block;
  cursor: zoom-in;
  border-radius: .65rem;
  overflow: hidden;
  background: var(--cream);
}
.tour-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.tour-gallery-grid figcaption {
  margin-top: .5rem;
  color: var(--muted);
  font-size: 1rem;
}
.tour-more {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.tour-more > div { display: flex; gap: .55rem 1.3rem; flex-wrap: wrap; }
.tour-more a, .tour-viewer-tools a {
  text-decoration: underline;
  text-underline-offset: .18em;
}
[data-tour-viewer] {
  border: none;
  border-radius: .8rem;
  background: #fdfbf4;
  color: var(--ink);
  width: min(50rem, calc(100% - 1.3rem));
  max-height: calc(100dvh - 1.5rem);
  padding: 1rem;
}
[data-tour-viewer]::backdrop { background: #172520dd; }
[data-tour-viewer] img {
  margin-inline: auto;
  max-height: 60vh;
  max-height: 60dvh;
  width: 100%;
  object-fit: contain;
  background: #efede3;
}
.tour-viewer-nav, .tour-viewer-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  flex-wrap: wrap;
}
.tour-viewer-tools { margin-bottom: .7rem; }
.tour-viewer-nav { margin-top: .8rem; }
[data-tour-viewer] figcaption {
  margin-top: .6rem;
  font-size: 1rem;
}
[data-tour-count] { font-variant-numeric: tabular-nums; font-weight: 700; margin-right: .3em; }
[data-tour-viewer] button {
  display: inline-block;
  background: var(--forest);
  color: white;
  font: inherit;
  padding: .4rem .75rem;
  border: 1px solid transparent;
  border-radius: .4rem;
  min-height: 2.75rem;
}
[data-tour-viewer] button:hover { background: #273e31; }

@media (max-width: 700px) {
  .tour-overview { display: flex; flex-direction: column; gap: 1.8rem; }
  .tour-directory { display: contents; }
  .tour-intro { order: 0; }
  .tour-intro > p { margin-bottom: 0; }
  .tour-map { order: 1; align-self: center; width: 100%; max-width: 440px; }
  .tour-directory nav { order: 2; width: 100%; }
  .tour-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .tour-gallery-grid { grid-template-columns: 1fr; }
}
