
.horizontal-scroll-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  width: 100%;
}

.scroll-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: background-image 0.6s ease;
}

.scroll-wrapper {
  display: flex;
  height: 100%;
  width: max-content;
  position: relative;
  z-index: 1;
}

.scroll-item {
  flex: 0 0 auto;
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.scroll-item h2,
.scroll-item p {
  color: white;
  margin: 0;
}

.scroll-item img {
  max-width: 80%;
  height: auto;
  margin-top: 1rem;
}

/* Hide on mobile */
@media (max-width: 767px) {
  .horizontal-scroll-section {
    display: none;
  }
}


/* YouTube iframe styling */
.scroll-item .hscroll-yt {
  width: 80%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin-top: 1rem;
  display: block;
  border: 0;
}
@media (max-width: 1023px) {
  .scroll-item .hscroll-yt { width: 100%; margin-top: .75rem; }
}
