/* Scrollable examples gallery. Reuses design tokens + .vcard styles from deck.css. */

html, body {
  background: var(--bg);          /* light page, unlike the dark deck shell */
  color: var(--ink);
  margin: 0;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.gallery {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 40px 120px;
  box-sizing: border-box;
}

/* ---- page header ---- */
.ghead { margin-bottom: 56px; }
.ghead .eyebrow {
  margin-bottom: 22px;
  /* override the deck's fixed 24px / nowrap so it scales + wraps on narrow screens */
  font-size: clamp(12px, 2.2vw, 24px);
  letter-spacing: 0.12em;
  white-space: normal;
}
.ghead h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 9vw, 128px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0;
}
.ghead h1 em { font-style: italic; }
.ghead .lede {
  margin-top: 26px;
  max-width: 34ch;
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.35;
  color: var(--mute);
}

/* ---- category section ---- */
.category { margin-top: 72px; }
.category-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.category-head .cat {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.category-head .cnt {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

/* vertical (10:16) cards: they grow to fill the row but are capped so a
   portrait clip never gets oversized; centred when there are only a few. */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.gallery-grid > .vcard {
  flex: 0 1 229px;  /* compact, centred (not stretched to fill) */
}

/* gallery cards scale type down from the deck's huge slide sizes */
.gallery .vtag  { font-size: 13px; top: 14px; left: 14px; padding: 5px 10px; }
.gallery .vdur  { font-size: 13px; top: 15px; right: 14px; }
.gallery .vname { font-size: 19px; left: 16px; right: 16px; bottom: 16px; }
.gallery .vplay { width: 64px; height: 64px; }
.gallery .vplay::after { border-width: 10px 0 10px 16px; }

@media (max-width: 640px) {
  .gallery { padding: 84px 20px 80px; }
  .gallery-grid { gap: 14px; justify-content: flex-start; }
  .gallery-grid > .vcard { flex: 0 0 calc(50% - 7px); max-width: none; }  /* two per row on phones */
}
