/* === Image Styles — ApostaCerta === */

/* Hero image */
.hero-image {
  display: block;
  width: 100%;
  max-width: 740px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Article images */
.article-image {
  display: block;
  width: 100%;
  max-width: 740px;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.article-image:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Figure containers inside content sections */
[data-content] figure {
  margin: 2em auto;
  max-width: 100%;
}

[data-content] figure img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}

[data-content] figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: #5a5a5a;
  margin-top: 0.6em;
  line-height: 1.5;
  font-style: italic;
}

/* Hero figure — no figcaption, special sizing */
[data-content="hero"] figure {
  margin-left: auto;
  margin-right: auto;
  max-width: 740px;
}

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

/* Mobile adjustments */
@media (max-width: 768px) {
  .hero-image,
  .article-image {
    border-radius: 4px;
  }

  [data-content] figure {
    margin: 1.5em auto;
  }

  [data-content] figcaption {
    font-size: 0.78rem;
    padding: 0 0.5rem;
  }
}
