/* === Images Styles === */

/* Hero image container */
[data-content="hero"] figure {
  position: relative;
  z-index: 1;
  margin: 2rem auto 0;
  max-width: var(--content-width);
}

[data-content="hero"] figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Article images inside sections */
figure {
  margin: 2rem 0;
  padding: 0;
}

figure img.article-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}

figure figcaption {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.6rem;
  line-height: 1.5;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  figure {
    margin: 1.5rem 0;
  }

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

  figure figcaption {
    font-size: 0.78rem;
    padding: 0 0.5rem;
  }

  [data-content="hero"] figure img {
    border-radius: 6px;
  }
}

@media (max-width: 480px) {
  figure figcaption {
    font-size: 0.75rem;
  }
}
