.warmher-edit-carousel {
  overflow: hidden;
  padding: 54px 0 34px;
  background: #f7f4ee;
  color: #171717;
}

.warmher-edit-carousel__heading-wrap {
  padding: 0 3% 22px;
  text-align: center;
}

.warmher-edit-carousel__heading {
  margin: 0;
  font-family: var(--type-heading-font-family);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .01em;
}

.warmher-edit-carousel__viewport {
  overflow: hidden;
  width: 100%;
}

.warmher-edit-carousel__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: warmher-edit-marquee 42s linear infinite;
}

.warmher-edit-carousel__group {
  display: flex;
  flex: none;
  gap: 12px;
  padding-right: 12px;
}

.warmher-edit-carousel__slide {
  flex: 0 0 calc((100vw - 36px) / 4);
  width: calc((100vw - 36px) / 4);
  aspect-ratio: 2.62 / 1;
  margin: 0;
  overflow: hidden;
  background: #e7e0d5;
}

.warmher-edit-carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.002);
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}

.warmher-edit-carousel__slide:hover img {
  transform: scale(1.025);
}

.warmher-edit-carousel__viewport:hover .warmher-edit-carousel__track,
.warmher-edit-carousel__viewport:focus-within .warmher-edit-carousel__track {
  animation-play-state: paused;
}

@keyframes warmher-edit-marquee {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-50%,0,0); }
}

@media (max-width: 989px) {
  .warmher-edit-carousel__slide {
    flex-basis: 44vw;
    width: 44vw;
    aspect-ratio: 2 / 1;
  }
}

@media (max-width: 749px) {
  .warmher-edit-carousel {
    padding: 40px 0 30px;
  }

  .warmher-edit-carousel__heading-wrap {
    padding-bottom: 18px;
  }

  .warmher-edit-carousel__heading {
    font-size: 28px;
  }

  .warmher-edit-carousel__group {
    gap: 10px;
    padding-right: 10px;
  }

  .warmher-edit-carousel__slide {
    flex-basis: 74vw;
    width: 74vw;
    aspect-ratio: 1.85 / 1;
  }

  .warmher-edit-carousel__track {
    animation-duration: 36s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .warmher-edit-carousel__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .warmher-edit-carousel__viewport::-webkit-scrollbar {
    display: none;
  }

  .warmher-edit-carousel__track {
    animation: none;
  }

  .warmher-edit-carousel__slide {
    scroll-snap-align: start;
  }

  .warmher-edit-carousel__group[aria-hidden="true"] {
    display: none;
  }
}
