/* ==========================================================================
   Component — Page visuals (v0.4.9)
   --------------------------------------------------------------------------
   One wide illustrative banner per page, placed as a break in long copy:
   ai-marketing, seo, content-creative, about, contact.
   Each image is labelled "Illustration · AI-generated" and described in alt
   text. Logical properties only (RTL-safe).
   ========================================================================== */

.page-figure {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
}

.page-figure__image {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

@media (min-width: 64em) {
  .page-figure__image {
    aspect-ratio: 21 / 9;
  }
}

.page-figure__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--type-body-small-size);
  line-height: var(--leading-snug);
}

/* Screenshot-style images (our own website) keep their natural 8:5 shape and a readable width */
.page-figure--site {
  max-inline-size: 56rem;
  margin-inline: auto;
}

.page-figure--site .page-figure__image {
  aspect-ratio: 8 / 5;
}
