/* ============================================
   Images Styles — Sweepstakes Casino Guide
   ============================================ */

/* --- Hero Image --- */
.hero-image-wrap {
  position: relative;
  z-index: 1;
  margin-top: 2em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

[data-content="hero"] figure {
  margin: 0 auto;
}

[data-content="hero"] figcaption {
  color: rgba(255, 255, 255, 0.5);
  font-size: clamp(0.7rem, 1.1vw, 0.8rem);
  text-align: center;
  margin-top: 0.75em;
  line-height: 1.5;
}

/* --- Article Images (all non-hero) --- */
figure {
  margin: 2em auto;
  max-width: 100%;
}

.article-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(15, 27, 45, 0.08);
  transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-image:hover {
  box-shadow: 0 4px 20px rgba(15, 27, 45, 0.12);
}

figcaption {
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  color: #64748B;
  text-align: center;
  margin-top: 0.6em;
  line-height: 1.5;
  font-style: italic;
}

/* --- Dark Mode Adjustments --- */
@media (prefers-color-scheme: dark) {
  .hero-image {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  }

  .article-image {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  }

  .article-image:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  }

  figcaption {
    color: #94A3B8;
  }
}

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

  .hero-image {
    border-radius: 6px;
  }

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