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

/* Hero image */
.hero figure {
  margin: 2em auto 0;
  max-width: 100%;
}

.hero .hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--component-radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.hero figcaption {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--caption-size);
  margin-top: 0.75em;
}

/* Article images */
.article-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--component-radius);
  box-shadow: var(--shadow-subtle);
  aspect-ratio: 800 / 500;
  object-fit: cover;
}

/* Figures in article sections */
[data-content] figure {
  margin: 2em 0;
  max-width: 100%;
}

[data-content] figcaption {
  text-align: center;
  font-size: var(--caption-size);
  color: var(--color-text-secondary);
  margin-top: 0.75em;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  .hero .hero-image {
    border-radius: 4px;
  }

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

  [data-content] figure {
    margin: 1.5em -1rem;
  }

  [data-content] figure .article-image {
    border-radius: 0;
  }

  [data-content] figcaption {
    padding: 0 1rem;
  }
}

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

  .hero .hero-image {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  }
}
