/**
 * Content Images Block Styles
 * Layout only — typography/colors come from canonical classes/tokens.
 */

/* Grey content card (Figma: #F5F5F5, radius 4px, padding 40/32) */
.contentimages-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    background: var(--color-muted);
    border-radius: var(--radius-sm);
    padding: var(--space-10) var(--space-8);
}

.contentimages-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 856px;
}

.contentimages-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.contentimages-body p {
    margin: 0;
}

/* Gallery base */
.contentimages-gallery {
    display: grid;
    gap: var(--space-6);
}

.contentimages-figure {
    margin: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.contentimages-figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 2 images — side by side */
.contentimages--two .contentimages-gallery {
    grid-template-columns: 1fr 1fr;
}

.contentimages--two .contentimages-figure {
    aspect-ratio: 16 / 10;
}

/* 3 images — one large on top, two small underneath */
.contentimages--three .contentimages-gallery {
    grid-template-columns: 1fr 1fr;
}

.contentimages--three .contentimages-figure--1 {
    grid-column: 1 / -1;
    aspect-ratio: 21 / 9;
}

.contentimages--three .contentimages-figure--2,
.contentimages--three .contentimages-figure--3 {
    aspect-ratio: 16 / 10;
}

/* Fallback stacked layout (1 or 4+ images) */
.contentimages--stack .contentimages-figure {
    aspect-ratio: 21 / 9;
}

@media (max-width: 768px) {
    .contentimages--two .contentimages-gallery,
    .contentimages--three .contentimages-gallery {
        grid-template-columns: 1fr;
    }

    .contentimages--three .contentimages-figure--1 {
        aspect-ratio: 16 / 10;
    }
}
