.bbs-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 7;
  min-height: 220px;
}

.bbs-slider-fallback-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.bbs-slider-track {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.65s ease;
  will-change: transform;
  z-index: 1;
}

.bbs-slide {
  position: relative;
  flex: 0 0 100%;
  max-width: 100%;
  height: 100%;
}

/* Fade mode: slides stack in place and cross-fade via opacity instead of the track sliding horizontally. No directional artifacts on loop since there is no positional jump, only an opacity change. */

.bbs-slider--fade .bbs-slider-track {
  display: block;
  transition: none;
  transform: none !important;
}

.bbs-slider--fade .bbs-slide {
  position: absolute;
  inset: 0;
  flex: none;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s ease;
}

.bbs-slider--fade .bbs-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.bbs-slide-media {
  position: absolute;
  inset: 0;
}

.bbs-slide-media img.bbs-slide-image,
.bbs-slide-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Centered caption overlay */
.bbs-slide-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  justify-content: center;
  text-align: start;
  padding: 24px;
  /* pointer-events: none; */
}

.bbs-slide-caption-inner {
  max-width: 80%;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  padding: 20px 28px;
  border-radius: 6px;
  pointer-events: auto;
  margin-bottom: 30px;
}

.bbs-slide-caption-inner h2,
.bbs-slide-caption-inner h3 {
	color: #fff;
	font-size: 3em;
	font-weight: 700;
}

.bbs-slide-caption-inner h3 {
	font-size: 2.6em;
}

.bbs-slide-caption-inner p {
	color: #fff;
	font-size: 1.2em;
	font-weight: 400;
	line-height: 1.6;
}

.bbs-slide-caption-inner :first-child {
  margin-top: 0;
}

.bbs-slide-caption-inner :last-child {
  margin-bottom: 0;
}

/* Arrows */
.bbs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 5;
}

.bbs-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.bbs-arrow-prev {
  left: 16px;
}

.bbs-arrow-next {
  right: 16px;
}

/* Indicators */
.bbs-indicators {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.bbs-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.bbs-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

.bbs-indicator.is-active {
  background: #fff;
  transform: scale(1.2);
}

@media (max-width: 600px) {
  .bbs-arrow {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .bbs-slide-caption-inner {
    max-width: 92%;
    padding: 14px 18px;
  }
}