/* ============================================================
   cs-gallery.css — Case Study Shared Styles
   Covers gallery system and cs-prose pattern.
   Loaded via $extra_head in each case study entry PHP file.
   ============================================================ */


/* ── Case study prose ────────────────────────────────────── */

.cs-prose p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.875;
  color: var(--body-text);
  max-width: var(--reading-width);
  margin: 0 0 1.5em;
}

.cs-prose p:last-child {
  margin-bottom: 0;
}


/* ── Gallery group wrapper ───────────────────────────────── */

.cv-gallery-group {
  margin-top: 64px;
}

.cv-gallery-group + .cv-gallery-group {
  margin-top: 56px;
}

.cv-gallery-group-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 20px;
}


/* ── Scrolling gallery ───────────────────────────────────── */

.cv-gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--pale) transparent;
}

.cv-gallery::-webkit-scrollbar       { height: 4px; }
.cv-gallery::-webkit-scrollbar-track { background: transparent; }
.cv-gallery::-webkit-scrollbar-thumb { background: var(--pale); border-radius: 2px; }


/* ── Gallery item ────────────────────────────────────────── */

.cv-gallery-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cv-gallery-img {
  height: 320px;
  background: none;
  display: block;
  overflow: hidden;
}

.cv-gallery-img img {
  width: auto;
  height: 100%;
  display: block;
}

.cv-gallery-caption {
  font-family: 'Open Sans', sans-serif;
  font-size: 11.6px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-grey);
  line-height: 1.5;
}


/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .cv-gallery-img { height: 220px; }
}
