.js-fade-slider {
  overflow: hidden;
  isolation: isolate;
}

.js-fade-slider > .carousel-track {
  position: relative;
  height: 100%;
}

.js-fade-slider .carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.5s ease;
}

.js-fade-slider:not(.is-carousel-ready) .carousel-slide:first-child,
.js-fade-slider .carousel-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.js-fade-slider .carousel-slide.is-previous {
  opacity: 1;
  z-index: 1;
}

.m-carousel .m-carousel_container.is-carousel-ready,
.sports-photo-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.m-carousel_container.is-carousel-ready::-webkit-scrollbar,
.sports-photo-viewport::-webkit-scrollbar {
  display: none;
}

.m-carousel .m-carousel_container.is-carousel-ready > .carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  margin: 0;
}

.m-carousel .m-carousel_container.is-carousel-ready > .carousel-track > .carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  margin: 0;
  scroll-snap-align: start;
}

.m-carousel_prev,
.m-carousel_next {
  position: absolute;
  top: 50%;
  z-index: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.m-carousel_prev:disabled,
.m-carousel_next:disabled,
.sports-carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.m-carousel_pagination,
.sports-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-carousel_pagination {
  position: absolute;
  inset: auto 0 8px;
  z-index: 1;
  pointer-events: none;
}

.carousel-dot {
  display: grid;
  place-items: center;
  width: 18px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
}

.carousel-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b0b0b0;
}

.carousel-dot[aria-current="true"]::before {
  background: #0160c1;
}

.m-sports-2 .slider {
  position: relative;
}

.sports-carousel-viewport,
.sports-photo-viewport {
  display: flex;
  align-items: stretch;
}

.sports-carousel-viewport {
  align-items: flex-start;
  overflow: hidden;
  scroll-snap-type: x mandatory;
  transition: height 320ms ease;
}

.m-sports-2 .slider .sports-carousel-viewport > .item {
  flex: 0 0 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  scroll-snap-align: start;
}

.sports-photo-viewport {
  --carousel-visible: 4;
  cursor: grab;
}

.sports-photo-viewport > * {
  flex: 0 0 calc(100% / var(--carousel-visible));
  min-width: 0;
  scroll-snap-align: start;
}

@media (max-width: 599px) {
  .sports-photo-viewport {
    --carousel-visible: 2;
  }
}

.m-carousel_container.is-dragging,
.sports-photo-viewport.is-dragging {
  scroll-snap-type: none !important;
  cursor: grabbing;
  user-select: none;
}

.sports-carousel-dots:empty {
  display: none;
}

.sports-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #0160c1;
  transform: translateY(-50%);
  cursor: pointer;
}

.sports-carousel-arrow::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 8px;
  width: 8px;
  height: 8px;
  border: solid white;
  border-width: 3px 3px 0 0;
  transform: rotate(45deg);
}

.sports-carousel-prev {
  left: -15px;
}

.sports-carousel-prev::before {
  left: 12px;
  transform: rotate(-135deg);
}

.sports-carousel-next {
  right: -15px;
}

@media (prefers-reduced-motion: reduce) {
  .sports-carousel-viewport,
  .js-fade-slider .carousel-slide {
    transition: none;
  }
}
