/* Reconstructed layout/interactivity for the builder's image-slider carousel
   (image-slider-DCyJJH-Jl3) on the Services page. The original Vue component's
   scoped styles did not migrate, so the track was display:none and the
   arrows/dots had no behavior. This restores a single-image slideshow with
   prev/next arrows, clickable pagination dots, autoplay, and an infinite loop. */

/* Layout */
.hl_page-preview--content .carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 450px;
  border-radius: 8px;
  background: #f4f4f4;
}
@media (max-width: 768px) {
  .hl_page-preview--content .carousel {
    height: 320px;
  }
}
@media (max-width: 480px) {
  .hl_page-preview--content .carousel {
    height: 240px;
  }
}

/* Track (override the inline display:none from the dead Vue component) */
.hl_page-preview--content .carousel__slides {
  display: flex !important;
  flex-wrap: nowrap;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  will-change: transform;
  transition: transform 300ms ease;
}

/* Each slide is one full-width frame */
.hl_page-preview--content .carousel__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  display: block;
  text-decoration: none;
  pointer-events: none; /* showcase only; let arrows/dots receive clicks */
}
.hl_page-preview--content .carousel__slide picture,
.hl_page-preview--content .carousel__slide .hl-image-picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hl_page-preview--content .carousel__slide img,
.hl_page-preview--content .carousel__slide .carousel__slide-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

/* Arrows: one .carousel__arrow holds two SVGs (prev = first, next = second) */
.hl_page-preview--content .carousel__arrow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.hl_page-preview--content .carousel__arrow svg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  padding: 9px;
  box-sizing: content-box;
  color: #046635;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 150ms ease, color 150ms ease;
}
.hl_page-preview--content .carousel__arrow svg:hover {
  background: #046635;
  color: #ffffff;
}
.hl_page-preview--content .carousel__arrow svg:first-child {
  left: 14px;
}
.hl_page-preview--content .carousel__arrow svg:nth-child(2) {
  right: 14px;
}

/* Pagination dots */
.hl_page-preview--content .carousel__pagination-container {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
  margin: 0;
  padding: 0;
}
.hl_page-preview--content .carousel__pagination {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
  border: none;
  transition: background-color 150ms ease, transform 150ms ease;
}
.hl_page-preview--content .carousel__pagination:hover {
  background: rgba(255, 255, 255, 0.9);
}
.hl_page-preview--content .carousel__pagination-active {
  background: #046635;
  transform: scale(1.15);
}