/* ============================================
   IMAGES — styles for hero and article figures
   Loaded after main inline styles in design.html
   ============================================ */

/* Article figures (lazy-loaded body images) */
article > section[data-content] > figure,
article > div[data-content] > figure {
  margin: 1.75rem auto;
  max-width: 100%;
}

article > section[data-content] > figure > img,
article > div[data-content] > figure > img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.05),
              0 6px 18px rgba(26, 26, 26, 0.06);
  background: var(--color-surface);
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

article > section[data-content] > figure > figcaption,
article > div[data-content] > figure > figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-style: italic;
  line-height: 1.5;
  margin-top: 0.7em;
  padding: 0 0.5rem;
}

/* HERO image — overrides for the priority image */
.hero figure {
  margin: 1.5rem 0 0;
  max-width: 100%;
}

.hero figure > img.hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(26, 26, 26, 0.08),
              0 12px 36px rgba(26, 26, 26, 0.10);
  background: var(--color-surface);
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

/* Header logo — natural sizing without layout shift */
header .site-logo img {
  display: block;
  width: 200px;
  height: auto;
  max-width: 100%;
}

/* Tablet & mobile adjustments */
@media (max-width: 768px) {
  article > section[data-content] > figure,
  article > div[data-content] > figure {
    margin: 1.25rem auto;
  }
  article > section[data-content] > figure > img,
  article > div[data-content] > figure > img {
    border-radius: 4px;
  }
  .hero figure > img.hero-image {
    border-radius: 6px;
  }
}

@media (max-width: 480px) {
  article > section[data-content] > figure > figcaption,
  article > div[data-content] > figure > figcaption {
    font-size: 0.8125rem;
    padding: 0 0.25rem;
  }
  header .site-logo img { width: 180px; }
}
