/* ============================================================
   Affoscent Hero Slider — Frontend CSS
   Ultra-lightweight: ~2 KB minified
   ============================================================ */

.ahs-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: block;
  background: #f0f0f0;
  /* CSS custom properties set inline by shortcode */
  height: var(--ahs-desk-h, auto);
}

/* ---- Track (holds all slides side by side) ---- */
.ahs-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition-property: transform;
  transition-timing-function: ease-in-out;
  will-change: transform;
}

/* ---- Individual slide ---- */
.ahs-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.ahs-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.ahs-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

.ahs-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: none;
  outline: none;
}

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

.ahs-arrow:hover {
  background: rgba(0, 0, 0, 0.65);
  opacity: 1;
}

.ahs-arrow svg {
  width: 20px;
  height: 20px;
  display: block;
}

.ahs-prev { left: 14px; }
.ahs-next { right: 14px; }

/* ---- Dot indicators ---- */
.ahs-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}

.ahs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ahs-dot-active,
.ahs-dot:hover {
  background: #fff;
  transform: scale(1.25);
}

/* ---- Mobile overrides ---- */
@media (max-width: 767px) {
  .ahs-slider {
    height: var(--ahs-mob-h, auto);
  }

  .ahs-arrow {
    width: 36px;
    height: 36px;
  }

  .ahs-arrow svg {
    width: 16px;
    height: 16px;
  }

  .ahs-prev { left: 8px; }
  .ahs-next { right: 8px; }

  .ahs-dots { bottom: 10px; }
  .ahs-dot  { width: 7px; height: 7px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .ahs-track { transition-duration: 0ms !important; }
}
