@media (max-width: 64em) {
  #map figure.section-img {
    position: sticky;
    top: 0;
    z-index: 3;
    height:100vh;
    opacity:0.2;
  }

  #map .inner {
    margin-top:-100vh;
  }

  .map-overlay-heading {display:none;}

  #map figure.section-img svg.map-focus-svg {
    display: block;
    position: relative;
    z-index: 1;
  }

  #map h2[id] {
    visibility: hidden;
  }
}

.map-overlay-heading {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 100;
    margin: 0;
    border: 0;
    padding: 0.35em 0.5em;
    color: #000;
    background:#fff;
    pointer-events: none;
    font-size: var(--h3);
    }

svg {position:relative;}

.photo-gallery-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 1.618em;
    margin-top: 1.618em;
}

.photo-gallery {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 0;
}

.photo-gallery figure {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;

}

.photo-gallery figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.photo-gallery figcaption,
.photo-gallery-caption {
  opacity: 0;
  transition: opacity 360ms ease;
  margin-top: 0.75em;
}

.photo-gallery figure.is-active figcaption {
  opacity: 1;
}

.photo-gallery:not([data-gallery-ready="true"]) figure:first-child figcaption {
  opacity: 1;
}

.photo-gallery[data-gallery-ready="true"] figcaption {
  display: none;
}

.photo-gallery-caption.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .photo-gallery figcaption,
  .photo-gallery-caption {
    transition: none;
  }
}

.photo-gallery {
  scrollbar-width: none;
}

.photo-gallery::-webkit-scrollbar {
  display: none;
}

.photo-gallery-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  aspect-ratio: 1.618 / 1;
  pointer-events: none;
}

.photo-gallery-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border:none;
  background-color: #eeeef2;
  color: #363636;
  line-height: 1;
  font-size: 3em;
  cursor: pointer;
  margin: 0;
  border-radius:0;
  height: 0.8em;
  width: 0.8em;
}

.photo-gallery-btn:first-of-type {
  border-right:#bebebe 1px solid;
}

.photo-gallery-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.photo-gallery-btn .photo-gallery-arrow {
  place-items: center;
  align-self: center;
  width: 0.8em;
  height: 0.8em;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
  align-content: center;
  display: flex;
}

.photo-gallery-btn .photo-gallery-arrow svg {
  display: block;
  width: calc(0.8em*0.75);
  height: 100%;
}
