.custom-block-banner {
    position: relative;
    width: 100%;
    height: 100vh;
}
.custom-block-banner-custom {
    position: relative;
    width: 100%;
    height: 80vh;
}

.custom-block-container {
    position: absolute;
    height: 100%;
    width: 100%;
    text-align: center;
}
.custom-block-grid {
    display: grid;
    height: 100%;
    width: 100%;
    max-width: 1280px;
    padding: 50px 20px;
    margin: auto;
}
.custom-block-wide-1 .custom-block-grid {
    max-width: 80%;
}


.custom-block-paralax {
    position: relative;
    width: 100%;
    height: 60vh;
}
.custom-block-paralax-custom {
    position: relative;
    width: 100%;
    height: 80vh;
}

/* ------------- BACKGROUND ------------- */
.custom-block-banner .custom-block-link,
.custom-block-banner-custom .custom-block-link {
    display: block;
    width: 100%;
    height: 100%;
    background-position:center center;
    background-size:cover;
    background-repeat: no-repeat;
}
.custom-block-banner video,
.custom-block-banner-custom video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.custom-block-paralax,
.custom-block-paralax-custom {
    min-height: 500px;
    max-height: 800px;
}

.custom-block-paralax .custom-block-link,
.custom-block-paralax-custom .custom-block-link {
    display: block;
    width: 100%;
    height: 100%;
    /*background-position: 50% 60%;*/
    background-position:center center;
    background-size:cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.custom-block-paralax video,
.custom-block-paralax-custom video {
    display: block;
    width: 100%;
    height: 100%;
    background-position:center center;
    background-size:cover;
    background-repeat: no-repeat;
}

/* --------------------- TEXT POSITION --------------------- */

.custom-block-text-container {
    align-self: center;
    justify-self: center;
}
/* left column */
.custom-block-position-lt .custom-block-text-container {
    align-self: start;
    justify-self: left;
}
.custom-block-position-lm .custom-block-text-container {
    align-self: center;
    justify-self: left;
}
.custom-block-position-lb .custom-block-text-container {
    align-self: end;
    justify-self: left;
}
/* center column */
.custom-block-position-ct .custom-block-text-container {
    align-self: start;
    justify-self: center;
}
.custom-block-position-cm .custom-block-text-container {
    align-self: center;
    justify-self: center;
}
.custom-block-position-cb .custom-block-text-container {
    align-self: end;
    justify-self: center;
}
/* right column */
.custom-block-position-rt .custom-block-text-container {
    align-self: start;
    justify-self: right;
}
.custom-block-position-rm .custom-block-text-container {
    align-self: center;
    justify-self: right;
}
.custom-block-position-rb .custom-block-text-container {
    align-self: end;
    justify-self: right;
}

/* --------------------- TEXT POSITION GRADIENT --------------------- */


.custom-block-position-lt .custom-block-container,
.custom-block-position-lm .custom-block-container,
.custom-block-position-lb .custom-block-container {
    background: -webkit-linear-gradient(left, rgba(0,0,0,0) 40%,rgba(0,0,0,0.15) 70%,rgba(0,0,0,0.3) 100%);
    background: linear-gradient(to left, rgba(0,0,0,0) 40%,rgba(0,0,0,0.15) 70%,rgba(0,0,0,0.3) 100%);
}


.custom-block-position-ct .custom-block-container {
    background: -webkit-linear-gradient(top, rgba(0,0,0,0) 40%,rgba(0,0,0,0.15) 70%,rgba(0,0,0,0.3) 100%);
    background: linear-gradient(to top, rgba(0,0,0,0) 40%,rgba(0,0,0,0.15) 70%,rgba(0,0,0,0.3) 100%);
}
.custom-block-position-cm .custom-block-container {
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 20%,rgba(0,0,0,0.05) 50%,rgba(0,0,0,0) 100%);
}
.custom-block-position-cb .custom-block-container {
    background: -webkit-linear-gradient(bottom, rgba(0,0,0,0) 40%,rgba(0,0,0,0.15) 70%,rgba(0,0,0,0.3) 100%);
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%,rgba(0,0,0,0.15) 70%,rgba(0,0,0,0.3) 100%);
}


.custom-block-position-rt .custom-block-container,
.custom-block-position-rm .custom-block-container,
.custom-block-position-rb .custom-block-container {
    background: -webkit-linear-gradient(right, rgba(0,0,0,0) 40%,rgba(0,0,0,0.15) 70%,rgba(0,0,0,0.3) 100%);
    background: linear-gradient(to right, rgba(0,0,0,0) 40%,rgba(0,0,0,0.15) 70%,rgba(0,0,0,0.3) 100%);
}

/* --------------------- TEXT CSS --------------------- */

.custom-block-text-container {
    width: 100%;
    max-width: 55%;
}
.custom-block-wide-1 .custom-block-text-container {
    max-width: 50%;
}

.custom-block-position-lt .custom-block-text-container,
.custom-block-position-lm .custom-block-text-container,
.custom-block-position-lb .custom-block-text-container {
    text-align: left;
}
.custom-block-position-ct .custom-block-text-container,
.custom-block-position-cm .custom-block-text-container,
.custom-block-position-cb .custom-block-text-container {
    text-align: center;
}
.custom-block-position-rt .custom-block-text-container,
.custom-block-position-rm .custom-block-text-container,
.custom-block-position-rb .custom-block-text-container {
    text-align: right;
}

.custom-block-text-container,
.custom-block-text-container * {
    color: #fff;
    font-family: var(--titles-font-family);
    font-size: 1.4rem;
}
.custom-block-text-container * {
    text-align: inherit;
    text-shadow: 0 0 2px rgba(0,0,0,1), 0 0 4px rgba(0,0,0,1), 0 0 6px rgba(0,0,0,1);
}

.custom-block-text-container h1,
.custom-block-text-container h2,
.custom-block-text-container h3 {
    color: #fff;
    font-family: var(--titles-font-family);
    font-size: 2.4rem;
    line-height: 2.4rem;
    text-shadow: 0 0 6px rgba(0,0,0,1);
}
.custom-block-text-container .editorButton {
    margin-top: 15px;
}


@media only screen and (max-height: 767px){
    .custom-block-text-container .editorButton {
        margin-top: 5px;
    }
    .custom-block-text-container-grid {
        padding: 30px;
    }
}
@media only screen and (max-height: 576px){
    .custom-block-text-container .editorButton {
        margin-top: 0px;
    }
}


@media only screen and (max-width: 992px){
    .custom-block-text-container,
    .custom-block-text-container * {
        font-size: 1.2rem;
    }
    .custom-block-text-container h1,
    .custom-block-text-container h2,
    .custom-block-text-container h3 {
        font-size: 2rem;
        line-height: 2rem;
    }
}
@media only screen and (max-width: 767px){
    .custom-block-text-container,
    .custom-block-wide-1 .custom-block-text-container {
        max-width: 80%;
    }

    .custom-block-text-container,
    .custom-block-text-container * {
        font-size: 1rem;
    }
    .custom-block-text-container h1,
    .custom-block-text-container h2,
    .custom-block-text-container h3 {
        font-size: 1.6rem;
        line-height: 1.6rem;
    }
}
@media only screen and (max-width: 576px){
    .custom-block-text-container,
    .custom-block-wide-1 .custom-block-text-container {
        max-width: 100%;
    }

    .custom-block-text-container,
    .custom-block-text-container * {
        font-size: 0.95rem;
    }
    .custom-block-text-container h1,
    .custom-block-text-container h2,
    .custom-block-text-container h3 {
        font-size: 1.4rem;
        line-height: 1.4rem;
    }
}

/* --------------------- CUSTOM BANNER TEXT CSS --------------------- */

.custom-block-banner-custom .custom-block-text-container {
    padding: 100px 0px 100px 0px;
}
.custom-block-banner-custom .custom-block-text-container,
.custom-block-banner-custom .custom-block-text-container * {
    font-size: 1.6rem;
    text-shadow: 0 0 2px rgba(0,0,0,1), 0 0 4px rgba(0,0,0,1), 0 0 6px rgba(0,0,0,1);
}
.custom-block-banner-custom .custom-block-text-container h1,
.custom-block-banner-custom .custom-block-text-container h2,
.custom-block-banner-custom .custom-block-text-container h3 {
    font-size: 3.6rem;
    line-height: 3.6rem;
}

@media only screen and (max-width: 992px){
    .custom-block-banner-custom .custom-block-text-container,
    .custom-block-banner-custom .custom-block-text-container * {
        font-size: 1.4rem;
    }
    .custom-block-banner-custom .custom-block-text-container h1,
    .custom-block-banner-custom .custom-block-text-container h2,
    .custom-block-banner-custom .custom-block-text-container h3 {
        font-size: 3.6rem;
        line-height: 3.6rem;
    }
}
@media only screen and (max-width: 767px){
    .custom-block-banner-custom .custom-block-text-container,
    .custom-block-banner-custom .custom-block-text-container * {
        font-size: 1.1rem;
    }
    .custom-block-banner-custom .custom-block-text-container h1,
    .custom-block-banner-custom .custom-block-text-container h2,
    .custom-block-banner-custom .custom-block-text-container h3 {
        font-size: 3.2rem;
        line-height: 3.2rem;
    }
}
@media only screen and (max-width: 576px){
    .custom-block-banner-custom .custom-block-text-container,
    .custom-block-banner-custom .custom-block-text-container * {
        font-size: 1rem;
    }
    .custom-block-banner-custom .custom-block-text-container h1,
    .custom-block-banner-custom .custom-block-text-container h2,
    .custom-block-banner-custom .custom-block-text-container h3 {
        font-size: 2.6rem;
        line-height: 2.6rem;
    }
}


/* --------------------- CUSTOM PARALAX TEXT CSS --------------------- */

.custom-block-paralax .custom-block-container,
.custom-block-paralax-custom .custom-block-container {
    background: none !important;
}

.custom-block-paralax-custom .custom-block-text-container {
    padding: 100px 0px 100px 0px;
}
.custom-block-paralax-custom .custom-block-text-container,
.custom-block-paralax-custom .custom-block-text-container * {
    font-size: 1.6rem;
    text-shadow: 0 0 2px rgba(0,0,0,1), 0 0 4px rgba(0,0,0,1), 0 0 6px rgba(0,0,0,1);
}
.custom-block-paralax-custom .custom-block-text-container h1,
.custom-block-paralax-custom .custom-block-text-container h2,
.custom-block-paralax-custom .custom-block-text-container h3 {
    font-size: 3.6rem;
    line-height: 3.6rem;
}

@media only screen and (max-width: 992px){
    .custom-block-paralax-custom .custom-block-text-container,
    .custom-block-paralax-custom .custom-block-text-container * {
        font-size: 1.4rem;
    }
    .custom-block-paralax-custom .custom-block-text-container h1,
    .custom-block-paralax-custom .custom-block-text-container h2,
    .custom-block-paralax-custom .custom-block-text-container h3 {
        font-size: 3.6rem;
        line-height: 3.6rem;
    }
}
@media only screen and (max-width: 767px){
    .custom-block-paralax-custom .custom-block-text-container,
    .custom-block-paralax-custom .custom-block-text-container * {
        font-size: 1.1rem;
    }
    .custom-block-paralax-custom .custom-block-text-container h1,
    .custom-block-paralax-custom .custom-block-text-container h2,
    .custom-block-paralax-custom .custom-block-text-container h3 {
        font-size: 3.2rem;
        line-height: 3.2rem;
    }
}
@media only screen and (max-width: 576px){
    .custom-block-paralax-custom .custom-block-text-container,
    .custom-block-paralax-custom .custom-block-text-container * {
        font-size: 1rem;
    }
    .custom-block-paralax-custom .custom-block-text-container h1,
    .custom-block-paralax-custom .custom-block-text-container h2,
    .custom-block-paralax-custom .custom-block-text-container h3 {
        font-size: 2.6rem;
        line-height: 2.6rem;
    }
}