/* ===========================================
   Images Styles for Tennis Wett Tipps Pillar Page
   =========================================== */

/* Hero Image Styles */
.hero-image-container {
  margin: 2rem 0;
  position: relative;
}

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

.hero-image-container figcaption {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-top: 0.75rem;
  font-size: 14px;
}

/* Article Images - General Styles */
figure {
  margin: 2rem 0;
  max-width: 100%;
}

.article-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  aspect-ratio: 800 / 450;
  object-fit: cover;
  background-color: #F7F5F3;
}

figure figcaption {
  font-size: 14px;
  color: #4A5568;
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .hero-image {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }
  
  .article-image {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    background-color: #2D3748;
  }
  
  figure figcaption {
    color: #A0AEC0;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-image {
    border-radius: 0;
    box-shadow: none;
  }
  
  .hero-image-container {
    margin: 1.5rem -16px;
  }
  
  .article-image {
    border-radius: 4px;
  }
  
  figure {
    margin: 1.5rem 0;
  }
  
  figure figcaption {
    font-size: 13px;
    padding: 0 1rem;
  }
}

/* Loading State Placeholder */
.article-image[loading="lazy"] {
  transition: opacity 0.3s ease;
}

/* Focus State for Accessibility */
figure:focus-within {
  outline: 2px solid #1A5F3C;
  outline-offset: 4px;
  border-radius: 8px;
}

/* Print Styles */
@media print {
  .hero-image,
  .article-image {
    box-shadow: none;
    border: 1px solid #E2E8F0;
  }
  
  figure {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
