/* Flexible Content layout: images_slider — template-parts/flexible/sections/images_slider.php */
.images-slider {
  padding: 48px 0;
  background-color: var(--fs-color-gray-light);
}

.images-slider__title {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 48px;
}

.images-slider__wrap {
  position: relative;
}

.images-slider__slider {
  overflow: hidden;
}

.images-slider__slide,
.images-slider__mobile {
  height: auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

.images-slider__image {
  width: 100%;
  aspect-ratio: 368/230;
  object-fit: cover;
  border-radius: 16px;
  margin: 0;
}

.images-slider__text {
  font-size: 14px;
  line-height: 140%;
  margin: 0;
  position: absolute;
  padding: 6px 12px;
  top: 16px;
  left: 16px;
  width: 100%;
  max-width: fit-content;
  color: #262626;
  background-color: var(--fs-color-white-soft);
  border-radius: 4px;
}

/* Overlays the full slider area (extending 24px — half the arrow's width — past each
   side via left/right, per .images-slider__arrow's 48px width) so the arrows sit
   vertically centered and hang half-off the slider's left/right edges. */
.images-slider__nav {
  position: absolute;
  top: 50%;
  left: -24px;
  right: -24px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

/* .swiper-button-prev/.swiper-button-next ship with absolute positioning + a default
   ::after arrow icon from swiper-bundle.min.css — reset both so these render as plain
   inline circular buttons with our own SVG icon instead of Swiper's overlay arrows. */
.images-slider__arrow {
  position: static !important;
  top: auto !important;
  margin: 0 !important;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--fs-color-blue);
  color: var(--fs-color-white-soft);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  pointer-events: auto;
}

.images-slider__arrow svg {
  fill: none;
  width: 7px;
  height: 12px;
}

.images-slider__arrow::after {
  content: none;
}

.images-slider__arrow.swiper-button-disabled {
  opacity: 0;
  cursor: default;
}

.images-slider__mobile {
  margin-bottom: 8px;
}
@media (max-width: 500px) {
  .images-slider {
    padding: 32px 20px;
  }
  .images-slider__title {
    margin-bottom: 32px;
    text-align: center;
  }
}
