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

/* Hero Image */
[data-content="hero"] figure {
  margin-top: 2.5rem;
  margin-bottom: 0;
}

[data-content="hero"] figure img.hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

[data-content="hero"] figcaption {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--small-size);
  margin-top: 0.75em;
  padding-bottom: 0.5em;
}

/* Article Images — In-Content */
figure {
  margin: 2em auto;
  max-width: 100%;
}

figure img.article-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  aspect-ratio: 800 / 450;
  object-fit: cover;
  transition: box-shadow 0.3s ease;
}

figure img.article-image:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

figcaption {
  text-align: center;
  font-size: var(--small-size);
  color: var(--color-text-secondary);
  margin-top: 0.6em;
  line-height: 1.5;
  font-style: italic;
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
  figure img.article-image {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  }

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

  [data-content="hero"] figure img.hero-image {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  }
}

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

  figure img.article-image {
    border-radius: var(--radius-sm);
  }

  [data-content="hero"] figure img.hero-image {
    border-radius: var(--radius-sm);
  }

  figcaption {
    padding: 0 0.5rem;
    font-size: 0.8125rem;
  }
}
