/* ==========================================================
   IMAGE STYLES — $$SITE_NAME$$ pillar
   Loaded after the in-page <style> block; complements
   --accent, --border, --text-muted, --bg-surface.
   ========================================================== */

/* Generic <figure> (caption variant, the 5 in-text images) */
article figure {
  margin: 2.25em auto;
  max-width: 100%;
}

article figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 4px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(12, 12, 12, 0.05),
              0 4px 14px rgba(12, 12, 12, 0.06);
  background: var(--bg-surface);
}

article figcaption {
  margin-top: 0.85em;
  padding: 0 0.25em;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  text-wrap: pretty;
  border-top: 1px solid var(--accent-line);
  padding-top: 0.7em;
}

/* Hero <figure> override (no caption, full-bleed within section) */
[data-content="hero"] figure {
  margin: 1.6rem auto 0;
  max-width: 880px;
}

[data-content="hero"] figure img {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  border-radius: 6px;
  border: 1px solid var(--accent-line);
  box-shadow: 0 4px 18px rgba(12, 12, 12, 0.08),
              0 12px 40px rgba(9, 82, 36, 0.10);
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

/* Responsive tightening on phones */
@media (max-width: 768px) {
  article figure {
    margin: 1.6em auto;
  }
  article figcaption {
    font-size: 0.85rem;
    padding-top: 0.55em;
  }
  [data-content="hero"] figure img {
    border-radius: 4px;
  }
}

@media (max-width: 480px) {
  article figure img {
    border-radius: 3px;
  }
}
