/* Projects index repair layer — typography, duplicate counters, grouping and image consistency. */
body.projects-index h1,
body.projects-index h2 { font-family: 'Cormorant Garamond', Georgia, serif !important; font-weight: 600; }
body.projects-index h3,
body.projects-index p,
body.projects-index .nav,
body.projects-index .cta,
body.projects-index .eyebrow,
body.projects-index .kicker,
body.projects-index .num,
body.projects-index .gallery-card__link { font-family: 'Be Vietnam Pro', Arial, sans-serif; }

/* The number is already rendered in .case-story-copy .num; hide the decorative duplicate. */
body.projects-index .case-story-image > span { display: none !important; }
body.projects-index .case-story-copy > .num { display: block; }

/* Keep every project thumbnail visually consistent while preserving the source image. */
body.projects-index .gallery-card { min-width: 0; }
body.projects-index .gallery-card img {
  display: block;
  width: 100%;
  height: clamp(190px, 18vw, 240px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  background: #141210;
}
body.projects-index .gallery-card__body { min-height: 170px; display: flex; flex-direction: column; }
body.projects-index .gallery-card__body p { flex: 1; }
body.projects-index .gallery-card--personal { border-style: dashed; border-color: rgba(201,161,90,.55); }
body.projects-index .gallery-card--personal .gallery-card__link { color: var(--accent-gold,#C9A15A); }
@media (max-width: 850px) {
  body.projects-index .gallery-card img { height: 220px; }
}
@media (max-width: 560px) {
  body.projects-index .gallery-card img { height: 218px; }
  body.projects-index .gallery-card__body { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.projects-index .gallery-card { transition: none; }
  body.projects-index .gallery-card:hover { transform: none; }
}
