.place-history {
  margin-block: 1.5rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid #aa916b;
  border-inline-start: .25rem solid #835531;
  background: #fcf3df;
  color: #302419;
  scroll-margin-top: 2rem;
}

.place-history h2,
.place-history h3 {
  margin: 0 0 .55rem;
  color: inherit;
  font-size: clamp(1.25rem, 2.8vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: normal;
}

.place-history p {
  max-width: 68ch;
  margin: 0 0 .65rem;
  color: inherit;
}

.place-history p:last-child {
  margin-bottom: 0;
}

.place-history .place-history-label {
  font: 700 .75rem/1.4 system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.place-history .place-history-sources {
  font-size: .875rem;
}

.place-history a {
  color: #673b22;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.place-history-index ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  padding: 0;
  margin: .8rem 0 0;
  list-style: none;
}

.history-map-marker {
  position: absolute;
  z-index: 2;
  left: var(--marker-x);
  top: var(--marker-y);
  display: grid;
  place-items: center;
  min-height: 36px;
  max-width: 29%;
  padding: .22em .55em;
  transform: translateX(-50%);
  border: 3px double #684623;
  border-radius: .45em;
  background: #f6dda1;
  box-shadow: 0 2px 3px #35251755;
  color: #382818;
  font: bold clamp(.69rem, 1.35vw, 1rem)/1.12 Georgia, serif;
  text-align: center;
  text-decoration: none;
}

.history-map-marker:hover,
.history-map-marker:focus-visible {
  background: #fff0bf;
}

.nearby-history {
  margin-block: 2.5rem;
}

.nearby-history > h2 {
  margin: 0 0 .85rem;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.16;
}

.history-stop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
}

.history-stop {
  margin: 0;
}

.history-stop figure {
  margin: .75rem 0;
}

.history-stop img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #e9d7b5;
}

.history-stop figcaption {
  margin-top: .35rem;
  font-size: .75rem;
  line-height: 1.4;
}

.place-history-photo {
  margin: .75rem 0;
}

.place-history-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.place-history-photo figcaption {
  margin-top: .35rem;
  font-size: .875rem;
}

#theobald-history-title,
#old-quarry-title {
  margin: 1.25rem 0 .45rem;
  font-size: 1.15rem;
}

.place-history-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .8rem;
  margin-block: .9rem;
}

.place-history-gallery figure {
  margin: 0;
}

.place-history-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #e9d7b5;
}

.place-history-gallery figcaption {
  margin-top: .25rem;
  font-size: .8rem;
  line-height: 1.4;
}
