/* === images-styles.css — Image Styling for Pillar Page === */

/* Hero image in hero section */
[data-content="hero"] figure {
  margin: 1.5rem auto 0;
  max-width: 100%;
}

[data-content="hero"] .hero-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

[data-content="hero"] figcaption {
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 0.875rem;
  margin-top: 0.5em;
}

/* Article images within content sections */
figure {
  margin: 2em auto;
  max-width: 100%;
}

.article-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  .article-image {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  }
}

figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: #6B7280;
  margin-top: 0.5em;
  line-height: 1.4;
}

@media (prefers-color-scheme: dark) {
  figcaption {
    color: #9CA3AF;
  }
}

/* Responsive adjustments */
@media (max-width: 600px) {
  figure {
    margin: 1.5em auto;
  }

  .article-image {
    border-radius: 4px;
  }
}
