/* ============================================================================
   T10142.com — Carousel Stylesheet (Build #1479)
   Adapted from the carousel of our Plazdiez web property (same Toptronic
   carousel engine), re-paletted to the T10142 navy (#0f0f1a) / gold
   (#e6b422) identity. The JavaScript engine lives in js/carousel_001.js
   and js/carousel_002.js and builds all of these elements from scratch.

   FOR AVA (7): this file is the colouring book for the picture machine —
     it says how big the arrows are and what colour the pause button is.
   FOR RYAN (14): CSS classes style the elements the JS creates; the JS
     never hardcodes colours, this file owns the look.
   FOR JACQUES: palette constants are inlined (no var() indirection) so the
     file stands alone; the layout is the plazdiez one, only the colours
     and spacing values changed to match this site.
   ============================================================================ */

/* ── Layout constants (were CSS variables on the other property) ──
   sp-xs .25rem · sp-sm .5rem · sp-md 1rem · sp-lg 2rem · sp-2xl 4rem
   radius: sm 6px · md 8px · lg 12px · round 50%                        */

.carousel-section {
  padding: 4rem 2rem;
  text-align: center;
}

.carousel-heading {
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: #0f0f1a;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

/* The carousel container — holds the image + arrows */
.carousel {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  background-color: #10101c;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(15, 15, 26, 0.35);
}

/* Image wrapper — 16:10 keeps app screenshots fully visible */
.carousel-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  cursor: zoom-in;
  overflow: hidden;
}

/* Slides are stacked <picture> elements; only .active is visible.
   400ms cross-fade + subtle 12px directional glide. */
.carousel-image-wrap picture.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(0);
  transition: opacity 400ms ease, transform 400ms ease,
              visibility 0s linear 400ms;
}
.carousel-image-wrap picture.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 400ms ease, transform 400ms ease,
              visibility 0s;
}
.carousel-image-wrap picture.carousel-slide.enter-right { transform: translateX(12px); }
.carousel-image-wrap picture.carousel-slide.enter-left  { transform: translateX(-12px); }

.carousel-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;          /* the WHOLE screenshot, never cropped */
  background-color: #10101c;
  border-radius: 8px;
  border: 1px solid rgba(20, 22, 26, 0.08);
}

.carousel-instruction {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #333;
  opacity: 0.9;
  font-style: italic;
}

/* Left / right arrows — gold-ringed dark circles, always visible */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: rgba(15, 15, 26, 0.85);
  color: #e6b422;
  border: 2px solid #e6b422;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.15s ease, border-color 0.15s ease,
              color 0.15s ease;
  box-shadow: 0 0 8px rgba(230, 180, 34, 0.3);
}
.carousel-arrow:hover,
.carousel-arrow:focus {
  background-color: #e6b422;
  color: #0f0f1a;
  border-color: #f2c14e;
  box-shadow: 0 0 16px rgba(230, 180, 34, 0.6);
}
.carousel-arrow-left  { left: 2rem; }
.carousel-arrow-right { right: 2rem; }

/* Filmstrip of thumbnails (desktop luxury — hidden ≤820px) */
.carousel-filmstrip {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background-color: #17172b;
  overflow-x: auto;
  scrollbar-width: thin;
}
.carousel-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background-color: #0f0f1a;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.65;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-thumb.active {
  border-color: #e6b422;
  opacity: 1;
}
.carousel-thumb:hover,
.carousel-thumb:focus-visible {
  opacity: 1;
  border-color: #f2c14e;
}
@media screen and (max-width: 820px) {
  .carousel-filmstrip { display: none; }
}

/* Caption chip — bottom-left overlay, one short line per image */
.carousel-caption {
  position: absolute;
  bottom: calc(0.5rem + 6px);   /* just above the progress bar */
  left: 1rem;
  max-width: 65%;
  background-color: rgba(15, 15, 26, 0.8);
  color: #f5f4ef;
  font-size: 0.8rem;
  line-height: 1.3;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  z-index: 10;
  pointer-events: none;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Progress bar — slim 3px gold line; fills, then the slide advances */
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.12);
  z-index: 10;
  pointer-events: none;
}
.carousel-progress-fill {
  width: 0%;
  height: 100%;
  background-color: #e6b422;
}

/* Pause/Play toggle — top-right corner (WCAG 2.2.2 pause motion).
   44px: the minimum comfortable finger target. */
.carousel-pause-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 44px;
  height: 44px;
  background-color: rgba(15, 15, 26, 0.85);
  color: #e6b422;
  border: 2px solid #e6b422;
  border-radius: 50%;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.carousel-pause-btn:hover,
.carousel-pause-btn:focus-visible {
  background-color: #e6b422;
  color: #0f0f1a;
}

/* Counter text ("3 / 6") — tabular numbers so it never wobbles */
.carousel-counter {
  position: absolute;
  bottom: calc(0.5rem + 6px);
  right: 1rem;
  background-color: rgba(15, 15, 26, 0.8);
  color: #f5f4ef;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  z-index: 10;
  pointer-events: none;
}

/* Reduced motion: instant slide swaps, autoplay disabled in JS */
@media (prefers-reduced-motion: reduce) {
  .carousel-image-wrap picture.carousel-slide,
  .carousel-image-wrap picture.carousel-slide.active,
  .carousel-thumb {
    transition: none;
  }
}

/* ── FULLSCREEN OVERLAY — click a slide, it fills the window ── */
.fullscreen-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  cursor: zoom-out;
}
.fullscreen-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.fullscreen-overlay img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}
.fullscreen-media {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 95vh;
}
.fullscreen-hint {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #f5f4ef;
  font-size: 0.85rem;
  opacity: 0.7;
  pointer-events: none;
}
.fullscreen-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #f5f4ef;
  border: 2px solid #f5f4ef;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
  transition: background-color 0.15s ease;
}
.fullscreen-arrow:hover {
  background-color: #e6b422;
  border-color: #e6b422;
  color: #0f0f1a;
}
.fullscreen-arrow-left  { left: 2rem; }
.fullscreen-arrow-right { right: 2rem; }

/* Focus outlines inside the carousel use the brand gold */
.carousel :focus-visible,
.fullscreen-overlay :focus-visible {
  outline: 2px solid #e6b422;
  outline-offset: 2px;
}

/* ── RESPONSIVE ── */
/* Small phones: taller frame, smaller arrows pulled to the edges */
@media screen and (max-width: 480px) {
  .carousel { border-radius: 6px; }
  .carousel-image-wrap { aspect-ratio: 4 / 3; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 1.2rem; }
  .carousel-arrow-left  { left: 0.25rem; }
  .carousel-arrow-right { right: 0.25rem; }
  .fullscreen-arrow { width: 44px; height: 44px; font-size: 1.3rem; }
  .fullscreen-arrow-left  { left: 0.5rem; }
  .fullscreen-arrow-right { right: 0.5rem; }
  .carousel-section { padding: 2rem 0.75rem; }
}
/* Tablets / small laptops: 16:9 widescreen */
@media screen and (min-width: 481px) and (max-width: 1366px) {
  .carousel-image-wrap { aspect-ratio: 16 / 9; }
}
@media screen and (min-width: 481px) and (max-width: 768px) {
  .carousel { border-radius: 8px; }
}
@media screen and (min-width: 769px) and (max-width: 1366px) {
  .carousel-arrow { width: 48px; height: 48px; font-size: 1.6rem; }
  .carousel-arrow-left  { left: 1rem; }
  .carousel-arrow-right { right: 1rem; }
}
