.custom-slider {
  overflow: hidden;
  isolation: isolate;
}

.custom-slider > .custom-content {
  overflow: hidden;
  background: #111;
  visibility: hidden;
  pointer-events: none;
  transition: transform 600ms ease-in-out;
  will-change: transform;
}

.custom-slider > .custom-content > video,
.custom-slider > .custom-content > .custom-slide__bagImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.custom-slider > .custom-content > .custom-slide {
  z-index: 1;
  transform: none;
  transition: none;
}

.custom-slider > .custom-content.is-current,
.custom-slider > .custom-content.is-leaving,
.custom-slider > .custom-content:first-child:not([aria-hidden]) {
  visibility: visible;
  pointer-events: auto;
}

.custom-slide_overflow {
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.custom-slider > .custom-content.is-leaving {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .custom-slider > .custom-content {
    transition: none;
  }
}
