/* ===== Images & Figures ===== */

figure {
  margin: 2em 0;
  position: relative;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

figcaption {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.625rem;
  line-height: 1.5;
  padding: 0 1rem;
}

/* Hero figure: no shadow doubling with design.html hero styles */
[data-content="hero"] figure {
  margin: 1.5rem auto 0;
}

[data-content="hero"] figure img {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

  figure img {
    border-radius: 4px;
  }

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