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

/* Hero image */
.hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Article images */
.article-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 2px;
}

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

[data-content] figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-secondary, #5A5A5A);
  margin-top: 0.75rem;
  font-style: italic;
  line-height: 1.5;
}

/* Hero figure — no border-radius, full bleed within hero */
[data-content="hero"] figure {
  max-width: 900px;
  margin: 0 auto;
}

[data-content="hero"] .hero-image {
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Article image subtle shadow on hover */
.article-image {
  transition: box-shadow 0.3s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

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

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  [data-content="hero"] .hero-image {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .article-image {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  }

  .article-image:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  }

  [data-content] figcaption {
    color: var(--color-text-secondary, #A09A90);
  }
}

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

  [data-content="hero"] figure {
    max-width: 100%;
  }
}
