/* ngallery — caption gallery.
   Its own dark ground rather than the shared navy: the strip reads as a break
   in the page, and the tiles need a darker surround than a section of cards. */
.ngallery { background: #0f1547; color: var(--color-white); }

/* The block brings its own dark ground, so the shared de-emphasis tokens have
   to be re-pointed inside it. Without this, .sec__intro keeps --text-muted
   (#555) and lands at 2.3:1 against #0f1547 — well under the 4.5:1 minimum,
   and the reason Pastel #13/#15 reported the intro as hard to read.
   This is the mechanism base.css already uses for tone modifiers: re-point the
   token once rather than correct each block by name. */
.ngallery {
  --text-muted: #ffffffbf;
  --text-subtle: #ffffff8c;
  --rule: #ffffff26;
}

.ngallery__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--space-section-y) var(--margin);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.ngallery__eyebrow { color: var(--accent-decor); margin: 0; }
.ngallery__headline {
  font-family: var(--font-display-condensed);
  font-weight: var(--weight-poster-heavy);
  text-transform: uppercase;
  font-size: var(--fs-section-headline);
  line-height: 1;
  margin: 0;
  text-wrap: balance;
  letter-spacing: .01em;
}

.ngallery__grid {
  width: 100%;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  /* Fade the trailing edge only. Flag fades both, which dims the first tile
     before the strip has been scrolled at all — the affordance you want is
     "there is more to the right", not "this content is disabled". */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
          mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
}
.ngallery__grid::-webkit-scrollbar { display: none; }

/* The scrolling unit is the figure: photo on top, caption beneath. The width
   lives here rather than on the image so the caption wraps inside the column
   instead of widening it. */
.ngallery__figure {
  flex: 0 0 auto;
  width: clamp(260px, 28vw, 360px);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ngallery__tile {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  background: #0a0e30 center / cover no-repeat;
}
.ngallery__cap {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* Two lines, not one: the place in bold and then what the photo is. The pair
   does the work a single line of overlay text was being asked to do. */
.ngallery__cap-label {
  font-family: var(--font-ui);
  font-weight: var(--weight-bold);
  font-size: var(--fs-meta);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-white);
}
.ngallery__cap-text {
  font-size: var(--fs-body-sm);
  line-height: 1.4;
  color: #ffffffbf;
}

@media (max-width: 599px) { .ngallery__figure { width: 74vw; } }
