/* Keep the fourth gallery tile (map) inside the same right column as the photos. */
.eh916-gallery.eh916-gallery-with-map {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(160px, .72fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  height: clamp(360px, 38vw, 480px);
  min-height: 360px;
  max-height: 480px;
  align-items: stretch;
}
.eh916-gallery-with-map > .eh9-gallery-hero {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  height: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
  overflow: hidden;
}
.eh916-gallery-with-map > .eh9-gallery-hero > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
}
.eh916-gallery-with-map > .eh9-gallery-thumbs {
  grid-column: 2;
  grid-row: 1;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  align-content: stretch;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.eh916-gallery-with-map > .eh9-gallery-thumbs > button {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
}
.eh916-gallery-with-map > .eh9-gallery-thumbs > .eh91-gallery-map-thumb {
  position: relative !important;
  inset: auto !important;
  grid-column: 1;
  grid-row: 4;
  overflow: hidden;
}
.eh91-map-switch [data-gallery-photos] {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #a81031;
  border-radius: 7px;
  background: #a81031;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.eh91-map-switch [data-gallery-photos]:hover,
.eh91-map-switch [data-gallery-photos]:focus-visible {
  background: #851027;
  color: #fff;
}
@media (min-width: 801px) and (max-width: 1024px) {
  .eh916-gallery.eh916-gallery-with-map {
    grid-template-columns: minmax(0, 1.65fr) minmax(140px, .65fr) !important;
    height: clamp(340px, 43vw, 440px);
    min-height: 340px;
  }
}
@media (max-width: 800px) {
  .eh916-gallery.eh916-gallery-with-map {
    height: auto;
    min-height: 0;
    max-height: none;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto;
  }
  .eh916-gallery-with-map > .eh9-gallery-hero {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    min-height: 220px;
    aspect-ratio: 4 / 3;
  }
  .eh916-gallery-with-map > .eh9-gallery-hero > img {
    height: 100%;
    min-height: 220px;
    max-height: 420px;
    aspect-ratio: 4 / 3;
  }
  .eh916-gallery-with-map > .eh9-gallery-thumbs {
    display: none !important;
  }
}
