.carousel {
  position: relative;
}

.carousel-container {
  position: relative;
  width: 100%;
}

.banner-carousel {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-right: -50vw;
  margin-left: -50vw;
  overflow: hidden;
  box-shadow: none;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.banner-carousel-container {
  position: relative;
  height: 300px;
  overflow: hidden;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.banner-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

.banner-carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.banner-carousel-link {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.banner-carousel-slide img {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  height: 100%;
  margin: auto;
  object-fit: contain;
  display: block;
  background: #f8f8f8;
}

.banner-carousel-controls {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: 85vw;
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.banner-carousel-controls .left,
.banner-carousel-controls .right {
  pointer-events: auto;
}

.banner-carousel-prev {
  left: 0;
}

.banner-carousel-next {
  right: 0;
}

@media (max-width: 768px) {
  .banner-carousel-container {
    height: 250px;
  }

  .banner-carousel-controls {
    display: none;
  }
}

@media (max-width: 480px) {
  .banner-carousel-container {
    height: 200px;
  }
}