/* The trip leaders (components/sections/trip-leaders.js): a centered gallery of
   square portraits across the full width (--full, as the homepage's mosaic
   grows to): four across, two on tablets and phones, one from 380px down, a
   short last row centered (flex-wrap, so an odd count never leaves a hole). Each card is the trio's
   devices: the name, the bold accent sub-line (.trio-sub, site.css), the copy
   in the secondary color. Every step of SIZES_LEADERS is this square frame. */

.leaders {
  --leader-gap: clamp(1rem, 2.5vw, 2rem);
  --across: 4;
  max-width: var(--full);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--xl) var(--leader-gap);
  margin-top: var(--xl);
}
.leader { flex: 0 1 calc((100% - (var(--across) - 1) * var(--leader-gap)) / var(--across)); }
.leader figure { overflow: hidden; margin-bottom: var(--md); }
.leader img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.leader h3 { margin-bottom: 0.2rem; }
.leader p:last-child { color: var(--text-2); }

@media (max-width: 1099px) {
  .leaders { --across: 2; }
}
@media (max-width: 700px) {
  .leaders { --across: 2; row-gap: var(--lg); }
}
@media (max-width: 380px) {
  .leaders { --across: 1; }   /* 320 to 380: a half-width square is too small a face (Costa, 2026-10-02) */
}
