/* ============================================================
   images-styles.css — figure / img / figcaption styles
   ============================================================ */

article figure{
  margin: clamp(1.5rem, 3vw, 2.25rem) auto;
  padding: 0;
  max-width: 100%;
}

article figure img{
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--radius-lg, 8px);
  background-color: var(--bg-card, #181818);
  border: 1px solid var(--border, #2a2a2a);
}

article figure figcaption{
  font-family: var(--font-body, "IBM Plex Sans", sans-serif);
  font-size: 0.825rem;
  line-height: 1.5;
  color: var(--text-muted, #999999);
  text-align: center;
  margin-top: 0.7em;
  letter-spacing: 0.01em;
  padding: 0 0.5rem;
}

/* Hero image: no border, no rounded corners — fills its grid cell */
[data-content="hero"] figure{
  margin: 0;
}
[data-content="hero"] figure img.hero-image{
  border: 0;
  border-radius: var(--radius-lg, 8px);
  background-color: transparent;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

/* Reduce vertical breathing room around inline figures on tight screens */
@media (max-width: 640px){
  article figure{
    margin-left: -8px;
    margin-right: -8px;
  }
  article figure img{
    border-radius: var(--radius, 4px);
  }
  article figure figcaption{
    font-size: 0.78rem;
    padding: 0 0.25rem;
  }
}
