/* =========================================================
   images-styles.css — image styling for the pillar article.
   These rules complement the inline <style> in index.html.
   They are exported as a separate file per the build pipeline.
   ========================================================= */

/* Hero image — large, eager, prominent */
.hero-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(26,26,26,0.04), 0 4px 12px rgba(26,26,26,0.06);
}

/* Article body images (lazy-loaded) */
.article-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5em auto;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(26,26,26,0.04), 0 1px 3px rgba(26,26,26,0.06);
}

/* Figure container (used everywhere) */
figure {
  margin: 1.5em auto;
  max-width: 100%;
}

figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

figcaption {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: #5c5450;
  text-align: center;
  margin-top: 0.6em;
  font-style: italic;
  line-height: 1.5;
}

/* Hero figure — keep within content-width to avoid full-bleed image */
.hero figure {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  margin-top: 2rem;
  margin-bottom: 0;
}

/* Section figures — aligned to text column max-width */
[data-content] figure {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

/* Mobile: smaller figcaption */
@media (max-width: 768px) {
  figcaption {
    font-size: 0.8rem;
  }
  .article-image {
    border-radius: 4px;
  }
}
