/* ========================================
   Images Styles - ApuestaElite
   Figures have same width as content sections
   No cropping on mobile - full width display
   ======================================== */

/* All figures in article - same width as text content */
article > figure,
article section > figure {
    max-width: var(--content-width);
    margin: var(--space-8) auto;
    padding: 0 var(--space-4);
    box-sizing: border-box;
}

article figure img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: block;
}

article figure figcaption {
    margin-top: var(--space-3);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    text-align: center;
    font-style: italic;
    line-height: var(--line-height-normal);
}

/* Hero image specific styles */
[data-content="hero"] figure {
    max-width: var(--content-width);
    margin: var(--space-8) auto 0;
    padding: 0 var(--space-4);
}

[data-content="hero"] figure img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    article > figure,
    article section > figure,
    [data-content="hero"] figure {
        margin: var(--space-6) auto;
        padding: 0 var(--space-4);
        max-width: 100%;
    }

    article figure img {
        border-radius: var(--radius-md);
    }

    article figure figcaption {
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 480px) {
    article > figure,
    article section > figure,
    [data-content="hero"] figure {
        margin: var(--space-4) 0;
        padding: 0;
        max-width: 100%;
    }

    article figure img {
        border-radius: 0;
        width: 100%;
    }

    article figure figcaption {
        padding: var(--space-2) var(--space-4) 0;
    }
}
