.pm-hero.pm-hero--slider {
  display: block;
}

.pm-hero--slider::after {
  display: none;
}

.pm-hero__slides,
.pm-hero__slide,
.pm-hero__slide > picture {
  position: absolute;
  inset: 0;
}

.pm-hero__slide {
  visibility: hidden;
  opacity: 0;
  transition: opacity 650ms ease, visibility 650ms ease;
}

.pm-hero__slide.is-active {
  visibility: visible;
  z-index: 1;
  opacity: 1;
}

.pm-hero__slide::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(16, 17, 15, 0.96) 0%, rgba(16, 17, 15, 0.72) 42%, rgba(16, 17, 15, 0.12) 72%, rgba(16, 17, 15, 0.04) 100%);
  pointer-events: none;
}

.pm-hero__slide > picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
}

.pm-hero__slide .pm-hero__inner {
  height: 100%;
}

.pm-hero__controls {
  position: absolute;
  z-index: 5;
  bottom: 24px;
  left: max(24px, calc((100vw - 1280px) / 2));
  display: flex;
  direction: ltr;
  gap: 12px;
  align-items: center;
}

.pm-hero__arrow,
.pm-hero__dot {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(12, 13, 12, 0.48);
  color: #fff;
  cursor: pointer;
}

.pm-hero__arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
}

.pm-hero__dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.pm-hero__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
}

.pm-hero__dot.is-active {
  background: #fff;
}

.pm-hero__arrow:hover,
.pm-hero__arrow:focus-visible,
.pm-hero__dot:hover,
.pm-hero__dot:focus-visible {
  border-color: #fff;
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.pm-hero.pm-hero--poster-carousel {
  min-height: 0;
  height: auto;
  max-height: none;
  background: #f3f2ee;
}

.pm-hero--poster-carousel .pm-hero__slides {
  position: relative;
  inset: auto;
  width: 100%;
  aspect-ratio: 2400 / 1429;
}

.pm-hero__slide.is-poster::after {
  display: none;
}

.pm-hero__slide.is-poster > picture img {
  object-fit: cover;
  object-position: center;
}

.pm-hero--poster-carousel .pm-hero__controls {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  justify-content: center;
  height: 44px;
  border-bottom: 1px solid #d8d5cd;
  background: #f3f2ee;
}

.pm-hero--poster-carousel .pm-hero__arrow {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #20231f;
}

.pm-hero--poster-carousel .pm-hero__dot {
  border-color: rgba(32, 35, 31, 0.58);
  background: transparent;
}

.pm-hero--poster-carousel .pm-hero__dot.is-active {
  background: #20231f;
}

.pm-hero--poster-carousel .pm-hero__arrow:hover,
.pm-hero--poster-carousel .pm-hero__arrow:focus-visible,
.pm-hero--poster-carousel .pm-hero__dot:hover,
.pm-hero--poster-carousel .pm-hero__dot:focus-visible {
  border-color: #20231f;
  outline-color: rgba(32, 35, 31, 0.72);
}

@media (max-width: 720px) {
  .pm-hero__slide::after {
    background: linear-gradient(0deg, rgba(14, 15, 13, 0.96) 0%, rgba(14, 15, 13, 0.62) 58%, rgba(14, 15, 13, 0.2) 100%);
  }

  .pm-hero__slide > picture img {
    object-position: 50% 45%;
  }

  .pm-hero__controls {
    right: 18px;
    bottom: 14px;
    left: auto;
  }

  .pm-hero__arrow {
    width: 36px;
    height: 36px;
  }

  .pm-hero.pm-hero--poster-carousel {
    min-height: 0;
    height: auto;
    max-height: none;
  }

  .pm-hero--poster-carousel .pm-hero__controls {
    right: auto;
    bottom: auto;
    left: auto;
    height: 44px;
  }

  .pm-hero--poster-carousel .pm-hero__arrow {
    width: 30px;
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-hero__slide {
    transition: none;
  }
}
