/* =========================================================
   images-styles.css — стили изображений article
   ========================================================= */

/* Hero image (внутри [data-content="hero"] > figure) */
[data-content="hero"] figure {
  margin: 32px auto 0;
  max-width: 1080px;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border, #2d2d31);
  background: var(--color-card, #18181b);
}

[data-content="hero"] figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
}

/* Контентные изображения в статье */
.article-figure {
  margin: 36px 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border, #2d2d31);
  background: var(--color-card, #18181b);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
}

.article-figure figcaption {
  padding: 14px 20px 16px;
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-secondary, #a1a1a6);
  border-top: 1px solid var(--color-border, #2d2d31);
  background: rgba(255, 255, 255, 0.02);
}

/* Tablet */
@media (max-width: 900px) {
  .article-figure {
    margin: 28px 0;
    border-radius: 10px;
  }
  .article-figure img {
    max-height: 360px;
  }
  [data-content="hero"] figure img {
    max-height: 380px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .article-figure {
    margin: 24px 0;
    border-radius: 8px;
  }
  .article-figure img {
    max-height: 260px;
  }
  .article-figure figcaption {
    padding: 12px 14px 14px;
    font-size: 0.8125rem;
  }
  [data-content="hero"] figure {
    margin-top: 24px;
    border-radius: 10px;
  }
  [data-content="hero"] figure img {
    max-height: 260px;
  }
}
