/*
© Copyright 1990-2026 Toptronic® Ltd, all rights reserved; no part of this document may be reproduced, modified or stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording or otherwise, without the prior written permission of Toptronic Limited.
For copyright inquiries: jacques@toptronic.com
  HOCWS :: House Of Concepts Website — CSS Styles Part 3 of 6
  Project: House Of Concepts Web Site (HOCWS) — www.houseofconcepts.co.za
  Generated: 2026-08-08T11:55:59+1000
  Audience: Jacques (French, hardware/C bg), Ryan (14), Ava (9), Students (15-23)
  Continuation from styles_002.css
  This file contains: the carousel (slideshow) styles and the
    fullscreen overlay. All carousel DOM is built by JS
    (HocwsCarousel) — this file only paints it.
  Content continues in styles_004.css (cards, quote band, CTA, footer).
*/

/* ============================================================
   SECTION 8: CAROUSEL (Image slideshow)
   ---------------------------------------------------------
   -- Jacques: The carousel shows Michael's past successes one at
     a time, auto-advancing every 15 seconds.
   -- Ryan: A carousel is like a photo album that turns pages by
     itself. You can also click arrows or swipe on a phone.
   -- Ava: The pictures change by themselves. You can also press
     the little round buttons to look at more pictures!
   ============================================================ */

/* Carousel outer wrapper */
.carousel-section {
  padding: var(--sp-2xl) var(--sp-lg);
  text-align: center;
}

/* Section heading above the carousel */
.carousel-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--clr-charcoal);
  margin-bottom: var(--sp-lg);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* The container div the JS builds the carousel into (id per D12) */
#hocws-carousel {
  max-width: var(--carousel-max-width);
  margin: 0 auto;
}

/* The carousel itself — holds the image + arrows */
.carousel {
  position: relative;         /* So arrows can be positioned absolutely */
  max-width: var(--carousel-max-width);
  margin: 0 auto;
  background-color: var(--clr-charcoal);
  border-radius: var(--radius-lg);
  overflow: hidden;           /* Clip images to rounded corners */
  box-shadow: var(--shadow-lg);
}

/* -- Students: "overflow: hidden" means anything outside the
   rounded corners gets cut off. Without this, images would show
   square corners overlapping the border-radius. */

/* Image wrapper — sizes the image maintaining aspect ratio */
.carousel-image-wrap {
  position: relative;
  width: 100%;
  /* Aspect ratio roughly 16:10 for product concept renders */
  aspect-ratio: 16 / 10;
  cursor: zoom-in;            /* the magnifier says "click = bigger" */
  overflow: hidden;
}

/* Slides are stacked <picture> elements inside the wrap.
   -- Ryan: Like a pile of transparent sheets — only the top one
     (the .active slide) is visible; the others wait underneath. */
.carousel-image-wrap picture.carousel-slide {
  position: absolute;
  inset: 0;                   /* top/right/bottom/left all 0 = fill wrap */
  opacity: 0;
  visibility: hidden;
  transform: translateX(0);
  /* 400ms cross-fade + subtle 12px directional glide */
  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;
}

/* Slide start positions: 12px off to the side it travels from */
.carousel-image-wrap picture.carousel-slide.enter-right { transform: translateX(12px); }
.carousel-image-wrap picture.carousel-slide.enter-left  { transform: translateX(-12px); }

/* Actual image inside each slide */
.carousel-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;        /* Show entire image, no cropping */
  background-color: var(--clr-charcoal);
  border-radius: var(--radius-md);
}

/* -- Jacques: "object-fit: contain" makes sure the whole image is
   visible, never cropped. Dark bars may appear on sides but the
   full concept is shown — the whole product must be visible. */

/* Instruction text below carousel */
.carousel-instruction {
  margin-top: var(--sp-sm);
  font-size: 0.8rem;
  color: var(--clr-text);
  opacity: 0.9;               /* keeps it AA on the warm page */
  font-style: italic;
}

/* Left and right arrow buttons — taupe rings on the dark well */
.carousel-arrow {
  position: absolute;
  top: 50%;                   /* Center vertically */
  transform: translateY(-50%);
  width: var(--carousel-arrow-size);
  height: var(--carousel-arrow-size);
  background-color: rgba(52, 52, 52, 0.85); /* Charcoal semi-transparent */
  color: var(--clr-taupe);
  border: 2px solid var(--clr-taupe);
  border-radius: var(--radius-round);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color var(--trans-fast),
              border-color var(--trans-fast),
              color var(--trans-fast);
  box-shadow: 0 0 8px rgba(164, 156, 144, 0.3);   /* soft taupe glow */
}

/* -- Ava: The arrow buttons are round with light rims and dark
   middles so you can always see them, even on busy pictures! */

.carousel-arrow:hover,
.carousel-arrow:focus {
  background-color: var(--clr-taupe);
  color: var(--clr-charcoal);
  border-color: var(--clr-taupe-dark);
  box-shadow: 0 0 16px rgba(164, 156, 144, 0.6);
}

.carousel-arrow-left {
  left: var(--sp-lg);
}

.carousel-arrow-right {
  right: var(--sp-lg);
}

/* Filmstrip of thumbnail buttons.
   -- Jacques: Like a darkroom contact strip — small previews in a
     row; the taupe frame marks the negative currently enlarging.
   Hidden on screens <= 820px (see styles_006.css). */
.carousel-filmstrip {
  display: flex;
  gap: var(--sp-xs);
  padding: var(--sp-sm) var(--sp-md);
  background-color: var(--clr-charcoal);
  overflow-x: auto;           /* Scroll sideways when many thumbs */
  scrollbar-width: thin;
}

.carousel-thumb {
  flex: 0 0 auto;             /* Thumbs keep their size, strip scrolls */
  width: 72px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background-color: var(--clr-charcoal-2);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.65;
  transition: opacity var(--trans-fast), border-color var(--trans-fast);
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* Fill the little frame nicely */
  display: block;
}

/* Active thumbnail: taupe border + full opacity */
.carousel-thumb.active {
  border-color: var(--clr-taupe);
  opacity: 1;
}

.carousel-thumb:hover,
.carousel-thumb:focus-visible {
  opacity: 1;
  border-color: var(--clr-taupe-dark);
}

/* Caption chip — bottom-left overlay, one short line per image.
   -- Ava: Like the little name tag under a painting in a museum! */
.carousel-caption {
  position: absolute;
  bottom: calc(var(--sp-sm) + 6px);   /* Sit just above the progress bar */
  left: var(--sp-md);
  max-width: 65%;
  background-color: rgba(52, 52, 52, 0.85);
  color: var(--clr-white);
  font-size: 0.8rem;
  line-height: 1.3;
  padding: var(--sp-xs) var(--sp-sm);
  border-radius: var(--radius-sm);
  z-index: 10;
  pointer-events: none;       /* Clicks pass through to the image */
  white-space: normal; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Progress bar — slim 3px taupe line along the bottom of the image.
   Fills over 15 seconds, then the slide advances.
   -- Ryan: Like the loading bar on a video, but for the next picture. */
.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: var(--clr-taupe);
}

/* Pause/Play toggle — top-right corner of the image (WCAG 2.2.2).
   44px so a fingertip can hit it comfortably on a phone.
   -- Ava: Press it to freeze the picture show, press again to go! */
.carousel-pause-btn {
  position: absolute;
  top: var(--sp-sm);
  right: var(--sp-sm);
  width: 44px;
  height: 44px;
  background-color: rgba(52, 52, 52, 0.85);
  color: var(--clr-taupe);
  border: 2px solid var(--clr-taupe);
  border-radius: var(--radius-round);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
  transition: background-color var(--trans-fast), color var(--trans-fast);
}

.carousel-pause-btn:hover,
.carousel-pause-btn:focus-visible {
  background-color: var(--clr-taupe);
  color: var(--clr-charcoal);
}

/* Counter text (e.g., "3 / 6") — tabular digits so it never wobbles */
.carousel-counter {
  position: absolute;
  bottom: calc(var(--sp-sm) + 6px);   /* Clear of the 3px progress bar */
  right: var(--sp-md);
  background-color: rgba(52, 52, 52, 0.85);
  color: var(--clr-white);
  font-size: 0.75rem;
  padding: var(--sp-xs) var(--sp-sm);
  border-radius: var(--radius-sm);
  z-index: 10;
  pointer-events: none;   /* Click passes through to image */
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   SECTION 9: FULLSCREEN OVERLAY
   ---------------------------------------------------------
   -- Ryan: When you click a carousel image, it opens in fullscreen
     mode covering the whole browser window. Click again to go back.
   ============================================================ */
.fullscreen-overlay {
  display: none;                /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95); /* Nearly black background */
  z-index: 2000;                /* Above everything including header */
  cursor: zoom-out;             /* the magnifier says "click = smaller" */
  /* -- Jacques: "position: fixed" anchors the overlay to the viewport,
     not the page. vw/vh = viewport width/height = 100% of screen. */
}

.fullscreen-overlay.active {
  display: flex;                /* Show as flex to center content */
  align-items: center;
  justify-content: center;
}

.fullscreen-overlay img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

/* Media box holds the fullscreen <picture> (large2x when available) */
.fullscreen-media {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 95vh;
}

/* Close hint in fullscreen */
.fullscreen-hint {
  position: absolute;
  top: var(--sp-lg);
  right: var(--sp-lg);
  color: var(--clr-white);
  font-size: 0.85rem;
  opacity: 0.7;
  pointer-events: none;
}

/* Fullscreen nav arrows (larger, more visible) */
.fullscreen-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--clr-white);
  border: 2px solid var(--clr-white);
  border-radius: var(--radius-round);
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
  transition: background-color var(--trans-fast);
}

.fullscreen-arrow:hover {
  background-color: var(--clr-taupe);
  border-color: var(--clr-taupe);
  color: var(--clr-charcoal);
}

.fullscreen-arrow-left  { left: var(--sp-lg); }
.fullscreen-arrow-right { right: var(--sp-lg); }

/* Content continues in styles_004.css (cards, quote band, CTA, footer) */
