/* ========================================
   IMAGES STYLES — Handball WM Tipps 2027
   ======================================== */

/* --- Article Images (inside <figure>) --- */
figure {
  margin: 2rem auto;
  max-width: 100%;
}

figure img.article-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(26, 39, 68, 0.08);
  transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

figure img.article-image:hover {
  box-shadow: 0 8px 24px rgba(26, 39, 68, 0.12);
}

figure figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: #64748B;
  margin-top: 0.625rem;
  line-height: 1.5;
}

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

[data-content="hero"] img.hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

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

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

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

  figure figcaption {
    color: #94A3B8;
  }

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

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

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

  [data-content="hero"] img.hero-image {
    border-radius: 8px;
  }
}
