/*
 * Images du format `image` de get-field (`.acf_image`). Mise en file par Field::render_field (format image) seulement
 * quand une telle image est rendue — voir l'en-tête de custom.css.
 */

.et_pb_code_inner:has(.acf_image),
.et_pb_code_inner:has(.acf_image) *,
.et_pb_text_inner:has(.acf_image) *,
.et_pb_text_inner:has(.acf_image) {
    height: inherit;
    max-height: inherit;
}

*:has(>.acf_image) {
    height: inherit;
    max-height: inherit;
}

.acf_image {
    max-width: 100%;
    vertical-align: middle;
    max-height: inherit;

    &.full {
        width: 100%;
    }

    &.cover {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
    }

}

.et_pb_code:has(.acf_image.cover),
.et_pb_text:has(.acf_image.cover),
.et-l--body:has(.acf_image.cover),
.et_pb_code_inner:has(.acf_image.cover),
.et_pb_text_inner:has(.acf_image.cover) {
    position: relative;
    height: 100%;
}
