/* ==========================================
   Images Styles — Pillar Page
   ========================================== */

/* --- Hero Image --- */
[data-content="hero"] figure {
  margin: 2rem auto 0;
  max-width: 100%;
}

[data-content="hero"] figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

[data-content="hero"] figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5em;
  padding: 0 1.25rem;
}

/* --- Content Section Images --- */
section[data-content] figure {
  margin: 2em auto;
  max-width: 100%;
}

section[data-content] figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

section[data-content] figure img:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

section[data-content] figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-secondary, #64748B);
  margin-top: 0.6em;
  line-height: 1.4;
  font-style: italic;
}

/* --- Dark Mode Adjustments --- */
@media (prefers-color-scheme: dark) {
  section[data-content] figure img {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  }

  section[data-content] figure img:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  }

  section[data-content] figcaption {
    color: var(--color-text-secondary, #94A3B8);
  }
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
  section[data-content] figure {
    margin: 1.5em auto;
  }

  section[data-content] figure img {
    border-radius: 4px;
  }
}
