/* ========================================
   Images Styles for IJshockey Wedden
   ======================================== */

/* Hero Image */
[data-content="hero"] figure {
  margin: 0 auto;
  max-width: 900px;
  padding: 0 var(--content-padding);
}

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

[data-content="hero"] figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-top: 1rem;
  padding-bottom: 3rem;
}

@media (prefers-color-scheme: dark) {
  [data-content="hero"] figure img {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  }
}

/* Article Images */
.article-image {
  margin: 2rem 0;
  text-align: center;
}

.article-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: box-shadow var(--transition-normal);
}

.article-image img:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.article-image figcaption {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-top: 0.75rem;
  font-style: italic;
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  .article-image img {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
  
  .article-image img:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  }
}

/* Responsive Images */
@media (max-width: 768px) {
  .article-image {
    margin: 1.5rem 0;
  }
  
  .article-image img {
    border-radius: 6px;
  }
  
  .article-image figcaption {
    font-size: 0.8125rem;
    padding: 0 0.5rem;
  }
}

/* Lazy Loading Placeholder */
.article-image img[loading="lazy"] {
  background-color: var(--color-bg-secondary);
  min-height: 200px;
}
