/* ==========================================================================
   AJIT BAN — ENHANCE
   Styles required by the optional CDN enhancement layer (js/enhance.js).
   Kept tiny; uses existing design tokens only. No visual redesign.
   ========================================================================== */

/* --- Safety: reduced motion or JS-off must never leave content hidden -- */
@media (prefers-reduced-motion: reduce) {
  .archive-swiper .swiper-slide {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- Photography carousel (Swiper, media page) ------------------------- */
.archive-swiper {
  position: relative;
}

.archive-swiper .swiper {
  overflow: hidden;
}

.archive-swiper .swiper-slide {
  height: auto;
}

.archive-swiper__controls {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.archive-swiper__btn {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}

.archive-swiper__btn:hover,
.archive-swiper__btn:focus-visible {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

.archive-swiper__btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

.archive-swiper__progress {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--color-line);
  overflow: hidden;
}

.archive-swiper__progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-fast) var(--ease-out);
}
