.horizontal-scroll-section {
  position: relative;
  height: 100vh; /* overridden by JS */
  overflow: visible;
}

.horizontal-scroll-gallery {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  align-items: center;
  will-change: transform;
  padding: 50px 5vw;
  & > * {
    padding: 0 5vw;
  }
}

.horizontal-scroll-gallery h1 {
  flex: 0 0 auto;
  text-wrap: nowrap;
  margin: 0;
}

.horizontal-scroll-gallery figure {
  flex: 0 0 auto;
  margin: 0;
}

.horizontal-scroll-gallery img {
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
}
