/*---*\
Half/Half Image Gallery
Text column plus a two- or three-image collage and optional stat badge.

KEY FEATURES:
- White, light grey, and navy backgrounds
- Gallery left or right on desktop; stacked on tablet and mobile
- Top image and tall image fill remaining height
- Stat badge sits under the tall image

IMPLEMENTATION NOTES:
- WYSIWYG list and button styles come from fx_wysiwyg
- Gallery bleeds to the viewport edge on desktop
\*---*/

.half-image-gallery__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-inner);
    width: 100%;
}

.half-image-gallery__gallery {
    display: flex;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    min-height: 300px;
}

.half-image-gallery__col {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.half-image-gallery__media {
    position: relative;
    width: 100%;
    min-height: 0;
    overflow: hidden;
}

.half-image-gallery__media--top,
.half-image-gallery__media--tall {
    flex: 1 1 auto;
}

.half-image-gallery__media--bottom {
    flex: 0 0 120px;
}

.half-image-gallery__img {
    position: absolute;
    inset: 0;
    max-width: none;
}

.half-image-gallery__stat {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    min-width: 0;
    padding: 20px 18px;
    overflow: hidden;
    color: var(--color-text-inverse);
    background-color: var(--color-primary);
    box-shadow: var(--shadow-nav);
}

.half-image-gallery.bg-dark .half-image-gallery__stat {
    background-color: var(--color-secondary-hover);
}

.half-image-gallery__stat-value,
.half-image-gallery__stat-description {
    margin: 0;
    min-width: 0;
    overflow-wrap: break-word;
    color: var(--color-text-inverse);
}

.half-image-gallery__stat-value {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    text-transform: uppercase;
}

.half-image-gallery__stat-description {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-body);
}

.half-image-gallery__content {
    width: 100%;
    min-width: 0;
}

.half-image-gallery__content.no-padding-top {
    padding-top: 0;
}

.half-image-gallery.bg-dark .wysiwyg ul li::before,
.half-image-gallery.bg-dark .wysiwyg .wysiwyg__content ul li::before {
    background-color: var(--color-white);
}

@media (min-width: 768px) {
    .half-image-gallery__gallery {
        gap: 20px;
        min-height: 400px;
    }

    .half-image-gallery__col {
        gap: 20px;
    }

    .half-image-gallery__media--bottom {
        flex-basis: 190px;
    }

    .half-image-gallery__stat {
        padding: 24px 26px;
    }

    .half-image-gallery__stat-value {
        font-size: var(--font-size-h4);
    }

    .half-image-gallery__stat-description {
        font-size: var(--font-size-body);
    }
}

@media (min-width: 1200px) {
    .half-image-gallery--gallery-left .half-image-gallery__inner {
        flex-direction: row;
        align-items: stretch;
        gap: 32px;
        padding-right: var(--container-padding);
        padding-left: 0;
    }

    .half-image-gallery--gallery-right .half-image-gallery__inner {
        flex-direction: row-reverse;
        align-items: stretch;
        gap: 32px;
        padding-right: 0;
        padding-left: var(--container-padding);
    }

    .half-image-gallery__gallery {
        flex: 1 1 944px;
        gap: 32px;
        width: auto;
        max-width: 944px;
        min-height: 529px;
    }

    .half-image-gallery__col {
        gap: 32px;
    }

    .half-image-gallery__col--left {
        flex: 424 1 0;
    }

    .half-image-gallery__col--right {
        flex: 488 1 0;
    }

    .half-image-gallery__media--bottom {
        flex-basis: 230px;
    }

    .half-image-gallery__stat {
        padding: 30px 40px;
    }

    .half-image-gallery__content {
        flex: 1 1 728px;
        max-width: 728px;
        padding-top: 100px;
        padding-bottom: 100px;
    }
}

@media (min-width: 1367px) {
    .half-image-gallery--gallery-left .half-image-gallery__inner {
        padding-right: 216px;
    }

    .half-image-gallery--gallery-right .half-image-gallery__inner {
        padding-left: 216px;
    }
}
