/*------------------------------------*\

    Contained Image + Text Block Customizations - Global Styling

    The styles you add to this file will be applied to the 'Contained Image + Text' block.
    If there is any reasons why you would need to style them separately,
    please create a block-specific stylesheet for it (don't forget to register that block-specific stylesheet in acf-start-blocks.php)

\*------------------------------------*/

.flex-row {
    display: flex;
    flex-wrap: wrap;
}

.image-text {
    position: relative;
    z-index: 1;
}

.image-text__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.image-text .flex-row {
    align-items: center
}

.image-text--right .image-text__text {
    padding-bottom: 35px;
}

.image-text__img__wrap {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.image-text__img__wrap img{
    width: 100%;
    height: 100%; 
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.image-text__img__wrap::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%; 
    border-radius: 10px;
    background: #d8edfe;
    opacity: 0.25;
    z-index: 0;
    right: -10px;
    bottom: -10px;
}

.home .image-text__img__wrap::before {
    display: none;
}

.home .image-text__img__wrap img {
    width: auto;
}

.image-text__img__wrap--inner::before {
    content: none;
}

.sub-heading--sub::after {
    display: none;
}

.sub-heading--sub span {
    position: relative;
    z-index: 1;
}

.sub-heading--sub .sub-left::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0px;
    width: 62px;
    height: 4px;
    background: url(../../img/sub-left.png) 0 0 no-repeat;
    background-size: 100% 100%;
    z-index: -1;
}

.sub-heading--sub .sub-right::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0px;
    width: 77px;
    height: 4px;
    background: url(../../img/sub-right.png) 0 0 no-repeat;
    background-size: 100% 100%;
    z-index: -1;
}

.image-text h2 span {
    position: relative;
    color: #003262;
    font-size: 37px;
    font-weight: 700;
}

.image-text h2 span img {
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 146px;
    max-width: unset;
}

.image-text--right .image-text__img__sml img {
    height: 100%;
}

.image-text--left .image-text__img__sml img {
    height: 100%;
}

.heading-underline{
    position: relative;
    display: inline-block;

}

/*
.image-text .heading-underline::after {
    content: '';
    position: absolute;
    left: 0px;
    bottom: -4px;
    width: 206px;
    background: url(/wp-content/themes/itlandes/assets/img/image-text__text-line.png) 0 0 no-repeat;
}
*/

.image-text.bg-navy-blue {
    background: #003262;
    color: #ffffff;
}

.reverse-column {
    flex-direction: column-reverse;
}

.image-text.bg-navy-blue h2,
.image-text.bg-navy-blue h5,
.image-text.bg-navy-blue .sub-title{
    color: #ffffff;
}


.image-text.bg-navy-blue .sub-title{
    font-weight: 400;
}



@media (min-width: 400px) {
    .sub-heading--sub::after {
        display: block;
    }

    .sub-heading--sub span {
        position: relative;
        z-index: 1;
    }

    .sub-heading--sub .sub-left::after,
    .sub-heading--sub .sub-right::after {
        display: none;
    }
}

@media (min-width: 768px) {
    .image-text--right .image-text__text {
        padding-bottom: 45px;
    }

    .image-text__img__wrap {
        width: 466px;
    }

    .image-text h2 span {
        font-size: 43px;
        font-weight: 400;
    }

    .image-text h2 span img {
        left: -5px;
        bottom: -3px;
        width: 175px;
    }
}


@media (min-width: 1200px) {

    .flex-opposite {
        flex-direction: row-reverse;
    }

    .image-text--right .image-text__text {
        padding-bottom: 0;
    }

    .image-text__img__wrap {
        width: 565px;
        margin: 0;
        margin-left: 18px;
    }

    .image-text--left .image-text__img__wrap {
        margin-left: 0;
    }

    .image-text--right .image-text__img__wrap {
        margin-right: 0;
        margin-left: auto;
    }

    .image-text--top-margins {
        padding-top: 30px !important;
    }

    .image-text h2 span {
        font-size: 52px;
    }

    .image-text h2 span img {
        left: 0px;
        bottom: -4px;
        width: 206px;
    }

    .image-text h2 {
        margin-bottom: 10px;
    }
}

.image-text--inner  .image-text__text {
    padding-bottom: 0;
    padding-top: 34px;
}

.image-text__img__sml {
    position: relative;
    height: 235px;
    z-index: 1;
}

.image-text--right .image-text__img__sml {
    margin-right: 10px;
}

.image-text--left .image-text__img__sml {
    margin-left: 10px;
}

.image-text__img__sml::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 10px;
    opacity: 0.25;
    border-radius: 10px;
    z-index: -1;
    background: #D8EDFE;
}

.bg-blue .image-text__img__sml::before {
    background: #EDF4FA;
}


.image-text--right .image-text__img__sml::before {
    right: -10px;
}

.image-text--left .image-text__img__sml::before {
    left: -10px;
}

.bg-navy-blue .image-text__img__sml::before {
    background: #EDF4FA;
}

.bg-light-blue .image-text__img__wrap::before,
.bg-light-blue .image-text__img__sml::before {
    background: #003262;
}

.image-text__img__sml img {
    border-radius: 10px;
}

.video-image {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
}

.video-image svg {
    width: 61px;
    height: auto;
    transition: all .3s;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0,50,98,0.2);
}

.bg-navy-blue .image-text__text .btn-primary{
    background: #FFC60B;
    color: #003262;
}

.image-text--bg-navy-blue h1, .image-text--bg-navy-blue .h1,
.image-text--bg-navy-blue h2, .image-text--bg-navy-blue .h2,
.image-text--bg-navy-blue h3, .image-text--bg-navy-blue .h3,
.image-text--bg-navy-blue h4, .image-text--bg-navy-blue .h4,
.image-text--bg-navy-blue h5, .image-text--bg-navy-blue .h5,
.image-text--bg-navy-blue h6, .image-text--bg-navy-blue .h6 {
    color: #fff;
}

@media (min-width: 768px) {

    .image-text--inner  .image-text__text {
        padding-bottom: 0;
        padding-top: 42px;
    }

    .image-text__img__sml {
        height: 331px;
        width: 452px;
        margin: 0 auto;
    }

    .image-text--right .image-text__img__sml {
        margin-right: auto;
        transform: translate(-10px, 0);
    }

    .image-text--left .image-text__img__sml {
        margin-left: auto;
        transform: translate(10px, 0);
    }

    .video-image svg {
        width: 62px;
    }
}

@media (min-width: 1200px) {

    .image-text--inner  .image-text__text {
        padding-bottom: 0;
        padding-top: 0;
    }

    .image-text__img__sml {
        height: 372px;
        width: 100%;
        max-width: 508px;
        margin: 0;
    }

    .image-text--right .image-text__img__sml {
        margin-right: 14px;
        transform: translate(0, 0);
        margin-left: auto;
    }

    .image-text--left .image-text__img__sml {
        margin-left: 14px;
        transform: translate(0, 0);
    }

    .image-text__img__sml::before {
        top: 14px;
    }

    .image-text--right .image-text__img__sml::before {
        right: -14px;
    }

    .image-text--left .image-text__img__sml::before {
        left: -14px;
    }

    .video-image svg {
        width:  70px;
    }

    .video-image:hover svg {
        transform: scale(1.1);
    }
}