/* ================================================
   gallery.css  —  Slideshow Gallery Styles
   Matches your existing site: navbar colours,
   fonts (Helvetica/Arial), and img-box image style.
   ================================================
   SECTIONS:
   1. Gallery section wrapper & title
   2. Slides area (main image + arrows)
   3. Caption bar
   4. Thumbnail row  ← uses your .img-box style
   5. Active / hover states
   ================================================ */


/* ── 1. GALLERY SECTION WRAPPER ───────────────── */

.gallery-section {
  max-width: 800px;          /* matches your .container max-width */
  margin: 40px auto 60px;
  padding: 0 20px;           /* matches your .container padding */
}

/* Title styled like your .weekh2 */
.gallery-title {
  text-align: center;
  color: hsla(313, 74%, 35%, 0.75);   /* your .weekh2 colour */
  font-family: Helvetica, Arial, sans-serif;
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 20px;
}


/* ── 2. SLIDES AREA ───────────────────────────── */

.slides-wrapper {
  position: relative;        /* needed to position arrows inside */
  background: #f9f9f9;       /* matches your .board-box background */
  border: 1px solid #ccc;    /* matches your .board-box border */
  border-radius: 8px;        /* matches your .doc-img border-radius */
  overflow: hidden;
}

/* Individual slide — hidden by default; JS adds .active */
.slide {
  display: none;
  position: relative;
}

.slide.active {
  display: block;
}

/* Main image — uses your .img-box img style */
.slide img {
  max-width: 90%;            /* your .img-box img max-width */
  height: auto;              /* keeps natural aspect ratio */
  object-fit: contain;       /* your .img-box img object-fit */
  display: block;
  margin: 20px auto;         /* centred, like your .img-box img */
  border-radius: 8px;        /* your .doc-img border-radius */
}

/* "1 / 4" counter — top-left corner */
.slide-number {
  position: absolute;
  top: 10px;
  left: 14px;
  background: rgba(42, 20, 88, 0.65);   /* #2A1458 semi-transparent */
  color: #fff;
  font-size: 12px;
  font-family: Helvetica, Arial, sans-serif;
  padding: 3px 10px;
  border-radius: 20px;       /* pill shape like your .download-btn */
  letter-spacing: 0.5px;
  pointer-events: none;      /* won't block arrow clicks */
}

/* ── ARROWS ──────────────────────────────────── */

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(42, 20, 88, 0.45);   /* #2A1458 at 45% opacity */
  color: #fff;
  border: none;
  font-size: 1.3rem;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10;
}

.arrow:hover {
  background: rgba(42, 20, 88, 0.9);    /* solid #2A1458 on hover */
}

.arrow.prev { left:  0; border-radius: 0 4px 4px 0; }
.arrow.next { right: 0; border-radius: 4px 0 0 4px; }


/* ── 3. CAPTION BAR ───────────────────────────── */

/* Warm peach background — matches your .reflection-box */
.caption-bar {
  background: hsla(28, 100%, 92%, 0.5);
  border-top: 1px solid #ccc;
  padding: 10px 20px;
  text-align: center;
}

.caption-text {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #2A1458;             /* your navbar link colour */
  font-weight: 500;
  letter-spacing: 0.5px;
}


/* ── 4. THUMBNAIL ROW ─────────────────────────── */

/* Container — mirrors your .img-box */
.thumb-row {
  display: flex;
  flex-wrap: wrap;             /* your .img-box flex-wrap */
  justify-content: center;     /* your .img-box justify-content */
  gap: 15px;                   /* your .img-box gap */
  margin: 0;
  padding: 12px;
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-top: none;            /* joins flush to .slides-wrapper */
  border-radius: 0 0 8px 8px;
  overflow-x: auto;
}

/* Each thumbnail — mirrors your .img-box img */
.thumb {
  max-width: 90%;              /* your .img-box img max-width */
  height: 80px;                /* fixed height; width scales automatically */
  object-fit: cover;
  display: block;
  margin: 0 auto;              /* your .img-box img centering */
  cursor: pointer;
  opacity: 0.5;                /* dimmed when not the active slide */
  border-radius: 8px;          /* matches your .doc-img */
  border: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}


/* ── 5. ACTIVE / HOVER STATES ─────────────────── */

/* Selected thumbnail — pink-purple border matching your .weektitles / hover colour */
.thumb.active {
  opacity: 1;
  border-color: #9B177E;
}

/* Hover lift — same as your .download-btn:hover */
.thumb:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
