/* ========================================
   Images Styles — Tennis Aktuell Pillar
   ======================================== */

/* Hero image — full width within hero section */
[data-content="hero"] figure {
  margin: 0 auto;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

[data-content="hero"] figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

[data-content="hero"] figcaption {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.75rem;
  font-size: 0.825rem;
}

/* Article images — inside <figure> with <figcaption> */
figure {
  margin: 2rem auto;
  max-width: 100%;
}

figure .article-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(26, 26, 46, 0.06), 0 2px 12px rgba(26, 26, 46, 0.04);
}

figcaption {
  text-align: center;
  font-size: 0.825rem;
  color: #6B7280;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  figure .article-image {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2), 0 2px 12px rgba(0, 0, 0, 0.15);
  }

  figcaption {
    color: #9CA3AF;
  }
}

/* Responsive */
@media (max-width: 768px) {
  figure {
    margin: 1.5rem auto;
  }

  figure .article-image {
    border-radius: 4px;
  }
}
