/* Images Styles for Tennis Betting Article */

/* Hero Image */
.hero-image {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: var(--space-2xl, 3rem);
    margin-top: var(--space-lg, 1.5rem);
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

@media (min-width: 768px) {
    .hero-image {
        width: calc(100% + 6rem);
        margin-left: -3rem;
        border-radius: var(--radius-xl, 20px);
    }
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

/* Article Images */
.article-image {
    margin: var(--space-2xl, 3rem) 0;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.1));
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-image:hover img {
    transform: scale(1.02);
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
    .hero-image::after {
        background: linear-gradient(
            to bottom,
            transparent 40%,
            rgba(0, 0, 0, 0.5) 100%
        );
    }
    
    .article-image {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
}

/* Print Styles */
@media print {
    .hero-image,
    .article-image {
        page-break-inside: avoid;
        margin: 1rem 0;
        box-shadow: none;
    }
    
    .hero-image img,
    .article-image img {
        max-height: 300px;
        object-fit: contain;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .article-image img {
        transition: none;
    }
    
    .article-image:hover img {
        transform: none;
    }
}
