.wp-block-chm-gutenberg-hero-image {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wp-block-chm-gutenberg-hero-image[data-alignment="left"] {
    align-items: flex-start;
}

.wp-block-chm-gutenberg-hero-image[data-alignment="right"] {
    align-items: flex-end;
}

.wp-block-chm-gutenberg-hero-image > * {
    z-index: 5;
}

.wp-block-chm-gutenberg-hero-image:before {
    content: '';
    z-index: 3;
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
}


.wp-block-chm-gutenberg-hero-image[data-overlay="dark"]:before {
    background-color: rgba(0,0,0,0.6);
}

.wp-block-chm-gutenberg-hero-image[data-overlay="light"]:before {
    background-color: rgba(255,255,255,0.6);
}

.wp-block-chm-gutenberg-hero-image picture {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.wp-block-chm-gutenberg-hero-image picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}