/* ===== Images Styles for Motorsport Wetten ===== */

/* General figure styling */
figure {
    margin: 2rem auto;
    max-width: 100%;
}

figure img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #5A5A5A;
    margin-top: 0.75rem;
    line-height: 1.5;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    figcaption {
        color: #A0A0A0;
    }
    
    figure img {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* Hero image specific styling */
.hero-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-top: 1.5rem;
}

/* Hero section figure override */
[data-content="hero-section"] figure {
    margin: 1.5rem auto 0;
}

[data-content="hero-section"] figcaption {
    color: rgba(255, 255, 255, 0.8);
}

@media (prefers-color-scheme: dark) {
    [data-content="hero-section"] figcaption {
        color: rgba(255, 255, 255, 0.7);
    }
}

/* Content section images */
section[data-content] figure {
    margin: 2rem 0;
}

section[data-content] figure img {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    figure {
        margin: 1.5rem auto;
    }
    
    .hero-image {
        border-radius: 8px;
    }
    
    figcaption {
        font-size: 0.8125rem;
        padding: 0 0.5rem;
    }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
    figure img {
        transition: none;
    }
}

/* Print styles */
@media print {
    figure img {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    figcaption {
        color: #333;
    }
}
