.iws-slider {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  background: #161616;
}

.iws-slider .iws-slider__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}

.iws-slider .iws-slider__stage::before {
  content: "";
  display: block;
  grid-area: 1 / 1;
  width: 100%;
  aspect-ratio: 1920 / 700;
  min-height: 300px;
  max-height: 700px;
}

.iws-slider .iws-slider__slide {
  position: relative;
  display: grid;
  grid-area: 1 / 1;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding: 22px clamp(16px, 5%, 80px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 550ms ease, visibility 0s linear 550ms;
}

.iws-slider .iws-slider__stage--multiple .iws-slider__slide {
  padding-block: 64px;
}

.iws-slider .iws-slider__slide.is-current {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.iws-slider img.iws-slider__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

.iws-slider--zoom .is-current .iws-slider__image {
  animation: idealweb-slider-zoom var(--iws-duration, 7s) ease-out both;
}

.iws-slider--zoom .iws-slider__stage:not(.iws-slider__stage--multiple) .is-current .iws-slider__image {
  animation-duration: min(var(--iws-duration, 7s), 5s);
}

.iws-slider.is-paused .is-current .iws-slider__image { animation-play-state: paused; }

@keyframes idealweb-slider-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

.iws-slider p.iws-slider__caption {
  position: relative;
  box-sizing: border-box;
  max-width: min(100%, 52rem);
  margin: 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
  font-size: clamp(1.125rem, 2.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.23;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.iws-slider .iws-slider__controls {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
}

.iws-slider .iws-slider__controls[hidden],
.iws-slider .iws-slider__controls button[hidden] { display: none; }

.iws-slider .iws-slider__controls button {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font: 24px/1 system-ui, sans-serif;
  cursor: pointer;
}

.iws-slider .iws-slider__controls button:hover { background: #000; }
.iws-slider .iws-slider__controls button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.iws-slider .iws-slider__status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .iws-slider .iws-slider__slide { transition: none; }
  .iws-slider--zoom .is-current .iws-slider__image { animation: none; }
}
