/* ============================================================
   images-styles.css — Octacuota article imagery
============================================================ */

/* Shared base for any figure inside the article */
article figure {
  margin: 2.2rem 0;
  padding: 0;
  display: block;
}

article figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

article figure figcaption {
  margin-top: 0.75rem;
  padding: 0 0.25rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: left;
  border-left: 2px solid var(--accent);
  padding-left: 0.9rem;
}

/* Hero figure sits inside .hero-inner: no border, no caption, prominent placement */
.hero-wrap .hero-figure {
  margin: 1.2rem 0 1.6rem 0;
  width: 100%;
}

.hero-wrap .hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* Figures inside article content sections */
article .content-figure {
  margin: 2rem auto;
  max-width: 820px;
}

article .content-figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Tablet and below */
@media (max-width: 900px) {
  article figure {
    margin: 1.6rem 0;
  }

  article .content-figure {
    margin: 1.6rem 0;
  }

  article figure figcaption {
    font-size: 0.88rem;
    padding-left: 0.75rem;
  }

  .hero-wrap .hero-figure {
    margin-bottom: 1.2rem;
  }
}

/* Mobile */
@media (max-width: 560px) {
  article figure img {
    border-radius: 4px;
  }

  article figure figcaption {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .hero-wrap .hero-figure img {
    border-radius: 6px;
  }
}
