.heritage {
  display: block;
  padding: 115px 6vw 125px;
}

.heritage-copy {
  position: static;
  max-width: 900px;
  margin: 0 auto 68px;
  text-align: center;
}

.heritage-copy > p:not(.overline) {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
}

.heritage-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  max-width: 1450px;
  margin: 0 auto;
}

.heritage-photo {
  display: flex;
  min-width: 0;
  flex-direction: column;
  box-shadow: 0 18px 42px rgba(51, 47, 42, .14);
}

.heritage-open {
  width: 100%;
  aspect-ratio: 1 / .78;
  flex: 0 0 auto;
}

.heritage-photo .heritage-open img,
.heritage-landmark .heritage-open img,
.reggia-photo .heritage-open img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.heritage-photo figcaption {
  min-height: 175px;
  flex: 1;
  padding: 23px 21px;
  grid-template-columns: 30px 1fr;
  gap: 12px;
}

.heritage-photo figcaption strong {
  font-size: 23px;
}

.heritage-distance {
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 9px 12px;
  font-size: 20px;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .heritage-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .heritage-open { aspect-ratio: 1.35 / 1; }
  .heritage-photo figcaption { min-height: 150px; }
}

@media (max-width: 620px) {
  .heritage { padding: 85px 24px; }
  .heritage-copy { margin-bottom: 48px; text-align: left; }
  .heritage-gallery { grid-template-columns: 1fr; }
  .heritage-open { aspect-ratio: 1.35 / 1; }
  .heritage-photo figcaption { min-height: 0; }
}
