/* ========================================
   Article Images — images-styles.css
   ======================================== */

/* --- Article figures inside data-content --- */
[data-content] figure {
  margin: 2em 0;
  padding: 0;
}

[data-content] figure img.article-image {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-content] figure figcaption {
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #5c5a54;
  margin-top: 0.6em;
  padding: 0 0.5rem;
}

/* --- Hero figure override (no figcaption, full-width within hero) --- */
[data-content="hero"] figure {
  margin: 2rem auto 0;
  max-width: 740px;
}

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

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

  [data-content] figure figcaption {
    font-size: 0.8rem;
    padding: 0 0.25rem;
  }

  [data-content="hero"] figure {
    margin: 1.5rem auto 0;
  }
}

@media (max-width: 480px) {
  [data-content] figure img.article-image,
  [data-content="hero"] figure img.hero-image {
    border-radius: 2px;
  }

  [data-content] figure figcaption {
    font-size: 0.78rem;
  }
}
