/* ============================================================
   Images styling — $$SITE_NAME$$ pillar page
   Complements existing figure / .article-image rules in design.
   ============================================================ */

/* Hero figure — placed inside .hero-inner, right after H1 */
.hero-figure {
  margin: 1.5rem 0 0;
  max-width: 100%;
  width: 100%;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border-muted);
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

/* Inline article images inside sections */
.article-image {
  margin: 2.25rem auto;
  max-width: 100%;
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border-muted);
  aspect-ratio: 1200 / 675;
  object-fit: cover;
}

.article-image figcaption {
  margin-top: 0.85rem;
  text-align: center;
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Subtle accent left-bar on the caption to echo the data-dashboard motif */
.article-image figcaption {
  padding-left: 0.85rem;
  border-left: 2px solid var(--accent);
  text-align: left;
}

/* Responsive — keep images crisp on smaller viewports */
@media (max-width: 720px) {
  .hero-figure {
    margin-top: 1.25rem;
  }
  .hero-figure img,
  .article-image img {
    border-radius: 10px;
  }
  .article-image {
    margin: 1.75rem auto;
  }
  .article-image figcaption {
    font-size: 0.825rem;
    padding-left: 0.7rem;
  }
}

@media (max-width: 420px) {
  .article-image figcaption {
    font-size: 0.8rem;
  }
}
