/* ── Blog Post Hero — confident full-height photo, vertically-centred title/excerpt + thumb strip ── */
.blog-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  /* min-height, not height: a short title/excerpt still gets the confident
     full-height look, but if the text runs long the row grows to fit it
     instead of clipping it — the image (height: 100%) stretches taller to
     match, and the thumbnail strip below the text is pushed down with it. */
  min-height: clamp(560px, 82vh, 780px);
}

.blog-hero-image { overflow: hidden; }
.blog-hero-image picture { display: block; height: 100%; }
.blog-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.blog-hero-right {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  background: var(--bg);
  overflow: hidden;
  /* No bottom padding: the thumbnail strip runs flush to the section's
     bottom edge so it lines up with the big photo beside it. */
  padding: 3rem 4rem 0;
}

/* Short text: flex:1 grows into whatever free space the min-height row
   leaves, and justify-content centers it there (unchanged look for normal
   titles). Long text: there's no free space left to grow into, so this just
   sizes to its content — no overflow:hidden here, so it's never clipped. */
.blog-hero-text {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-hero-text .label { margin-bottom: 0.9rem; }
.blog-hero-text h1 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(2.1rem, 3.6vw, 3.25rem);
  line-height: 1.08;
  color: var(--charcoal);
  margin-bottom: 1.3rem;
}
.blog-hero-excerpt {
  color: #6b635c;
  line-height: 1.75;
  font-size: 1.02rem;
  max-width: 42ch;
}

.blog-hero-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  /* Bleed left AND right to cancel .blog-hero-right's horizontal padding,
     so the first thumbnail sits flush against the big hero image (left)
     and the last thumbnail sits flush against the section's right edge. */
  margin-left: -4rem;
  width: calc(100% + 8rem);
}
.blog-hero-thumb { overflow: hidden; aspect-ratio: 1; }
.blog-hero-thumb picture { display: block; height: 100%; }
.blog-hero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: var(--cursor-view); transition: transform 0.5s ease; }
.blog-hero-thumb:hover img { transform: scale(1.06); }

@media (max-width: 1024px) {
  .blog-hero-right { padding: 2.5rem 3rem; }
  .blog-hero-text h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); }
  .blog-hero-thumbs { margin-left: -3rem; width: calc(100% + 6rem); }
}

@media (max-width: 768px) {
  .blog-hero { grid-template-columns: 1fr; height: auto; }
  .blog-hero-image { height: 62vw; }
  .blog-hero-right { justify-content: flex-start; padding: 2.25rem 1.5rem 2.5rem; gap: 1.75rem; }
  /* Layout is stacked here (image full-width above), but .blog-hero-right's
     left padding still insets the thumb strip from the section edge, so the
     same flush-bleed treatment applies to match the image's edges. */
  .blog-hero-thumbs { margin-left: -1.5rem; width: calc(100% + 3rem); }
}

/* ── Blog article body — full page width, scoped to this template only ──
   .section-inner is a shared global class (max-width: var(--max-w), 1200px)
   used across post.njk/project.njk/service.njk too, so we don't touch it
   there. Overriding just the .blog-article-full combination removes the
   1200px cap for this blog post's article container while keeping a normal
   horizontal gutter (matching --section-pad's 2rem) instead of running the
   text edge-to-edge. */
.blog-article-full {
  max-width: none;
  padding-left: 2rem;
  padding-right: 2rem;
}
