.loc-hero {
  --map-caption-height: 27px;
  grid-template-columns: minmax(0, calc((100% - 42px) * 9 / 23 + var(--map-caption-height))) minmax(0, 1fr);
}

.loc-hero-map {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  aspect-ratio: 1;
  padding-block-start: 15px;
}

.loc-hero-map::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(165, 167, 171, .16);
  pointer-events: none;
}

.loc-hero-map img {
  justify-self: center;
  width: auto;
  max-width: 100%;
  height: 100%;
  min-height: 0;
}

/* Use the existing caption space to clear the 1px inset border by 4px. */
.loc-hero-map figcaption {
  padding-block-start: 4px;
}

@media (max-width: 1100px) {
  .loc-hero {
    grid-template-columns: minmax(0, calc((100% - 28px) * 9 / 23 + var(--map-caption-height))) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .loc-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .loc-hero-map {
    max-width: calc(400px + var(--map-caption-height));
  }
}
