/* Image styles for Tricota */

/* All images: responsive and block-level */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero image: placed right after H1 in hero section */
.hero-image {
  margin: 2rem auto 1.5rem;
  max-width: 960px;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(13, 26, 42, 0.12);
  background: var(--bg-surface);
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1200 / 630;
}

/* Article images inside data-content sections */
.article-image {
  margin: 2rem auto;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: 0 4px 14px rgba(13, 26, 42, 0.08);
}
.article-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1200 / 630;
}
.article-image figcaption {
  padding: 0.9rem 1.25rem 1rem;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  text-align: center;
  line-height: 1.5;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .hero-image {
    margin: 1.5rem auto 1rem;
    border-radius: 10px;
  }
  .article-image {
    margin: 1.5rem auto;
    border-radius: 8px;
  }
  .article-image figcaption {
    font-size: 0.82rem;
    padding: 0.75rem 1rem 0.85rem;
  }
}
