/* ============================================================
   images-styles.css — image and figure styling for PUNKTQUOTE
   ============================================================ */

/* Hero figure already styled by .hero figure in main stylesheet.
   This file targets content figures inside article sections. */

.article-figure {
  margin: clamp(2rem, 4vw, 3rem) auto;
  max-width: var(--wide-width, 1080px);
  padding: 0;
  display: block;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  background: var(--surface, #161618);
  border: 1px solid var(--border, #2a2a2e);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--surface, #161618);
}

.article-figure figcaption {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted, #9a9aa3);
  padding: 0.95rem 1.25rem 1.05rem;
  border-top: 1px solid var(--border, #2a2a2e);
  text-align: left;
  font-style: italic;
}

/* Subtle accent stripe on figcaption left edge to echo callouts */
.article-figure figcaption {
  border-left: 3px solid var(--accent, #19e55d);
}

/* Make sure inline figures inside narrow sections don't overflow */
[data-content] .article-figure {
  max-width: 100%;
}

/* Reduce motion friendly: no hover animation by default; subtle on capable
   pointers only */
@media (hover: hover) and (pointer: fine) {
  .article-figure {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .article-figure:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}

/* Mobile tightening */
@media (max-width: 640px) {
  .article-figure {
    margin: 1.5rem auto;
    border-radius: var(--radius-md, 8px);
  }
  .article-figure figcaption {
    font-size: 0.86rem;
    padding: 0.75rem 1rem 0.85rem;
  }
}

/* Prevent any layout shift while images are loading */
.article-figure img,
.hero figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Hero image keeps its taller poster ratio defined in design.html */
.hero figure img {
  aspect-ratio: 1200 / 630;
}
