.bs-slider {
  position: relative;
  width: 100%;
  container-type: inline-size;
  max-height: 520px;
}
.bs-slider__slides {
  height: min(520px, 27.78vw);
  height: min(520px, 27.78cqw);
}
.bs-slider__slide {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(16px, 2.8vw, 56px);
  height: 100%;
  min-height: 0;
}
.bs-slider__slide[hidden] {
  display: none !important;
}
.bs-slider__panel {
  display: block;
  width: 100% !important;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
}
.bs-slider .bs-slider__image {
  display: block;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
}
.bs-slider__controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 6px 9px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.bs-slider.is-ready .bs-slider__controls {
  display: flex;
}
.bs-slider:hover .bs-slider__controls,
.bs-slider:focus-within .bs-slider__controls {
  opacity: 1;
}
.bs-slider__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e50082;
  color: #fff;
  font: 30px/1 Arial, sans-serif;
  cursor: pointer;
}
.bs-slider__button:hover,
.bs-slider__button:focus-visible {
  background: #b90069;
}
.bs-slider__button:focus-visible,
.bs-slider__panel:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
}
.bs-slider__position {
  min-width: 52px;
  text-align: center;
  font-size: 14px;
}
.bs-slider.is-ready .bs-slider__slide:not([hidden]) {
  animation: bs-slider-fade 0.4s ease-out;
}
@keyframes bs-slider-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (max-width: 767px) {
  .bs-slider__slides {
    height: min(520px, 130vw);
    height: min(520px, 130cqw);
  }
  .bs-slider__slide {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .bs-slider__controls {
    right: 10px;
    bottom: 10px;
    opacity: 1;
  }
}
@media (hover: none) {
  .bs-slider__controls { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .bs-slider.is-ready .bs-slider__slide:not([hidden]) { animation: none; }
  .bs-slider__controls { transition: none; }
}
