.homepage {
  overflow: clip;
}

.highlight {
  color: var(--grey-181);
}

.homepage-empty {
  padding-block: 10rem;
}

.homepage-media-placeholder {
  display: block;
  background: #d9d9d9;
}

.hero__slider-navigation-line-hit {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

section.home-hero .hero__slider-navigation {
  z-index: 3;
}

section.home-hero .hero__slide-link {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 3.125rem;
}

@media screen and (min-width: 56.25rem) {
  section.home-hero .hero__slide-link {
    height: 100%;
    flex-direction: row;
    align-items: center;
  }
}

@media screen and (min-width: 75rem) {
  section.home-hero .hero__slide-link {
    gap: 5rem;
  }
}

.homepage-slider-track {
  display: grid;
  overflow-x: auto;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: 1rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.homepage-slider-track::-webkit-scrollbar {
  display: none;
}

.homepage-slider-slide {
  min-width: 0;
  scroll-snap-align: start;
}

.homepage-slider-slide picture {
  display: block;
}

.section-image-text__image,
.section-small-image-text__image,
.section-text-on-image-bg {
  object-fit: cover;
}

video.section-image-text__image,
video.section-small-image-text__image,
video.section-text-on-image-bg {
  display: block;
  width: 100%;
  height: 100%;
}

.section-text-on-image-media {
  position: absolute;
  z-index: 0;
  margin: 0;
  inset: 0;
}

.section-text-on-image-media > .homepage-media-placeholder,
.section-text-on-image-media > picture,
.section-text-on-image-media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.section-text-on-image-media > picture img {
  width: 100%;
  height: 100%;
}

section.section-text-on-image .section-text-on-image-media.has-credit > picture {
  bottom: 1.875rem;
  height: auto;
}

section.section-text-on-image .section-text-on-image-media.has-credit > video {
  bottom: 1.875rem;
  height: calc(100% - 1.875rem);
}

section.section-text-on-image .section-text-on-image-credit {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 2.3rem;
  align-items: center;
  gap: 0.313rem;
  color: var(--primary);
  transform: translateX(-50%);
}

section.section-text-on-image .section-text-on-image-credit b {
  color: var(--secondary);
  font-weight: 500;
}

.slider-parallax .homepage-media-placeholder {
  position: absolute;
}

/* The category teaser uses the same editorial module as the homepage, with
   the wider vertical rhythm defined by the static category-page dummy. */
.category-featured-content > .section-image-text {
  padding-top: 6rem;
  padding-bottom: 5.5625rem;
}

@media (min-width: 48rem) {
  .category-featured-content > .section-image-text {
    padding-top: 11.25rem;
    padding-bottom: 10.3125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .homepage-slider-track {
    scroll-behavior: auto;
  }
}
