.header {
    position: relative;
}

.header__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.header__swiper .swiper-container {
    height: 100%;
}

.header__swiper .swiper-wrapper {
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    height: 100% !important;
}

.header__img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.header__overlay {
    min-height: 55vh;
    position: relative;
}
body:not(.bhe-state-editing) .header__overlay {
   pointer-events: none;
}

.headersmall .header__overlay {
    height: calc(30vh - 10rem);
    min-height: 20rem;
}
.headermedium .header__overlay {
    height: calc(55vh - 10rem);
    min-height: 40rem;
}
.headerfull .header__overlay {
    height: calc(100vh - 10rem);
    min-height: 60rem;
}

.withHeadline .header__overlay {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row nowrap;
    flex-flow: row nowrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    z-index: 100;
    background: rgb(0,0,0);
    background: -moz-linear-gradient(180deg, rgba(0,0,0,0) 0%, var(--template-bg-2-fill-color) 100%);
    background: -webkit-linear-gradient(180deg, rgba(0,0,0,0) 0%, var(--template-bg-2-fill-color) 100%);
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, var(--template-bg-2-fill-color) 100%);
}
body[data-layout="1"] .withHeadline .header__overlay {
    background: rgb(0,0,0);
    background: -moz-linear-gradient(180deg, rgba(0,0,0,0) 0%, var(--template-bg-1-fill-color) 100%);
    background: -webkit-linear-gradient(180deg, rgba(0,0,0,0) 0%, var(--template-bg-1-fill-color) 100%);
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, var(--template-bg-1-fill-color) 100%);
}