.el-picture {
    --el-picture-background-image-height-fixed: var(
        --picture-background-image-height-fixed
    );
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/* !- type */
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

.el-picture__image,
.el-picture__image img {
    border-radius: inherit;
}

.el-picture__image img {
    width: 100%;
    /**
     * @info picture slidetool (zoom) does not work when max-width is set
     * @see `img` styles defined in `/fileadmin/templates/ext/bh_landingpages/css/framework.css`
     */
    max-width: unset;
    height: auto;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/* !- background */

:where(.picture-type--background) .el-picture__image--background {
    width: 100%;
    height: auto;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* !- size */

:where(.picture-type--background.picture-background-size--landscape)
    .el-picture__image--background {
    aspect-ratio: 1.6;
}

:where(.picture-type--background.picture-background-size--portrait)
    .el-picture__image--background {
    aspect-ratio: 0.8;
}

:where(.picture-type--background.picture-background-size--square)
    .el-picture__image--background {
    aspect-ratio: 1;
}

:where(.picture-type--background.picture-background-size--fixed)
    .el-picture__image--background {
    height: var(--el-picture-background-image-height-fixed);
}
