/* =========================================
   IMAGE ZONES — Light Theme
   Placeholder treatment for missing photos.
   See spec: DESIGN_SYSTEM_OVERHAUL.md §9
   ========================================= */

/* Base image zone */
.img-zone {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #F7F7F8, #EFEFF2);
    border: var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Aspect ratio modifiers */
.img-zone--landscape {
    aspect-ratio: 4 / 3;
}

.img-zone--portrait {
    aspect-ratio: 3 / 4;
}

.img-zone--wide {
    aspect-ratio: 16 / 9;
}

.img-zone--square {
    aspect-ratio: 1 / 1;
}

.img-zone--cinematic {
    aspect-ratio: 21 / 9;
}

/* Border-radius contexts — apply via modifier or parent */
.card .img-zone,
.img-zone--card {
    border-radius: var(--radius-lg);
}

.section-split-left .img-zone,
.section-split-right .img-zone,
.img-zone--section {
    border-radius: var(--radius-md);
}

.section-fullbleed-image .img-zone,
.img-zone--fullbleed {
    border-radius: 0;
    border: none;
}

/* Optional placeholder label */
.img-zone::after {
    content: attr(data-placeholder);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    pointer-events: none;
}

/* Shadow for split-section image zones */
.section-split-left .img-zone,
.section-split-right .img-zone {
    box-shadow: var(--shadow-image);
}

/* Real image fill — replaces placeholder gradient automatically */
.img-zone .img-fill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

/* When an img-fill is present, hide the placeholder label */
.img-zone:has(.img-fill)::after {
    display: none;
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */

/* Mobile: split section images go landscape */
@media (max-width: 767px) {

    .section-split-left .img-zone,
    .section-split-right .img-zone,
    .split-section .img-zone {
        aspect-ratio: 16 / 9;
        box-shadow: none;
    }
}

/* Large screens: increase split section image natural height */
@media (min-width: 1024px) {

    .section-split-left .img-zone,
    .section-split-right .img-zone {
        height: 100%;
        aspect-ratio: var(--split-image-aspect);
    }
}