/*------------------------------------*\
    
    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 .flex-row {
    align-items: center
}

.image-text__text__wrap {
    padding-top: 10px;
}

.image-text__img__wrap {
    margin: 27px 0;
    position: relative;
    z-index: 1;
    height: 215px;
}

.image-text__img__wrap img {
    border-radius: 8px;
}

.image-text__video-bttn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-text__video-bttn svg {
    width: 87px;
    height: auto;
    transition: all .3s;
}

.image-text__img__wrap::before {
    content: "\e90a";
    font-family: 'gulf-icons';
    font-size: 269px;
    line-height: 1em;
    color: var( --blue );
    position: absolute;
    top: -27px;
    right: -106px;
    z-index: -1;
    opacity: 0.15;
}

.image-text__video-bttn {
    border: none;
}

@media (min-width: 768px) {
    
    .image-text__text__wrap {
        padding-top: 30px;
    }

    .image-text__img__wrap {
        margin: 61px 58px 61px 0;
        height: 394px;
    }

    .image-text__video-bttn svg {
        width: 159px;
    }

    .image-text__img__wrap::before {
        font-size: 516px;
        top: -61px;
        right: -126px;

    }
    
}

@media (min-width: 1200px) {

    .flex-opposite {
        flex-direction: row-reverse;
    }
    
    .image-text__text__wrap {
        padding-top: 0;
    }

    .image-text__img__wrap {
        margin: 65px 0 50px 0;
        height: auto;
    }


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

    .image-text__text__wrap {
        max-width: 608px;
    }

    .image-text--left .image-text__text__wrap {
        margin-left: auto;
    }

    .image-text__img__wrap::before {
        font-size: 516px;
        top: -67px;
        right: auto;
    }

    .image-text--right .image-text__img__wrap::before {
        right: -257px;
    }

    .image-text--left .image-text__img__wrap::before {
        left: -257px;
    }

    .single-project-gallery .image-text--left .image-text__img__wrap::before {
        left: auto;
    }

    .image-text--left .image-text__full {
        max-width: 100%;
    }

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

    .image-text + .timeline {
        margin-top: 0;
    }
}

.image-text--double__wrap {
    margin: 0 -16px;
    flex-wrap: wrap;
}

.image-text--double__text,
.image-text--double__image {
    padding: 0 16px;
    width: 100%;
}

.image-text--double .image-text__text__wrap {
    padding-top: 30px;
}

.image-text__img__double {
    position: relative;
    max-width: 330px;
    margin: 16px auto 0 auto;
    z-index: 1;
}

.image-text__img__double::before {
    content: "\e90a";
    font-family: 'gulf-icons';
    font-size: 269px;
    line-height: 1em;
    color: var( --blue );
    position: absolute;
    top: -16px;
    right: -150px;
    z-index: -1;
    opacity: 0.5;
}

.image-text__img__double img {
    border-radius: 8px;
    object-position: left;
}

.image-text__img__double__left {
    width: 231px;
    height: 231px;
}

.image-text__img__double__right {
    width: 149px;
    height: 149px;
    margin-left: auto;
    margin-top: -89px;
}

.image-text__img__double.disable-logo::before {
    display: none;
}

@media (min-width: 768px) {

    .image-text--double .flex-row {
        align-items: flex-start;
    }

    .image-text--double .flex-opposite {
        flex-direction: row-reverse;
    }
    
    .image-text--left .image-text--double__wrap { 
        margin-left: -52px;
    }

    .image-text--right .image-text--double__wrap { 
        margin-right: -52px;
    }

    .image-text--double__text {
        width: calc(100% - 312px);
    }

    .image-text--left .image-text--double__text {
        padding-left: 29px;
    }

    .image-text--right .image-text--double__text {
        padding-right: 29px;
    }

    .image-text--double__image {
        width: 312px;
        padding: 0;
    }
    
    .image-text--double .image-text__text__wrap {
        padding-top: 0;
    }

    .image-text__img__double {
        max-width: 100%;
        margin: 0;
    }

    .image-text--right .image-text__img__double { 
        margin-top: 53px;
        padding-right: 20px;
    }

    .image-text--left .image-text__img__double { 
        padding-left: 20px;
    }

    .image-text__img__double::before {
        font-size: 137px;
        top: auto;
        right: auto;
        opacity: 0.15;
    }

    .bg-dark-blue .image-text__img__double::before {
        opacity: 0.50;
    }

    .image-text--right .image-text__img__double::before { 
        top: -53px;
        right: -8px;
    }

    .image-text--left .image-text__img__double::before { 
        bottom: -60px;
        left: 52px;
    }

    .image-text__img__double__left {
        width: 258px;
        height: 258px;
    }

    .image-text__img__double__right {
        width: 202px;
        height: 202px;
        margin-top: -15px;
        box-shadow: -4px 5px 9px 4px rgba(0, 66, 122, .15);
        border-radius: 8px;
    }

    .image-text--double .flex-center {
        align-items: center;
    }
}


@media (min-width: 1200px) {
    
    .image-text--left .image-text--double__wrap { 
        margin-left: -16px;
    }

    .image-text--right .image-text--double__wrap { 
        margin-right: -16px;
    }

    .image-text--double__text {
        width: 50%;
    }

    .image-text--left .image-text--double__text {
        padding-left: 16px;
    }

    .image-text--right .image-text--double__text {
        padding-right: 16px;
    }

    .image-text--double__image {
        width: 50%;
        padding: 0 16px;
    }
    

    .image-text--right .image-text__img__double,
    .image-text--left .image-text__img__double { 
        margin-top: 40px;
    }

    .image-text__img__double::before {
        font-size: 516px;

    }

    .image-text--right .image-text__img__double::before { 
        top: -43px;
        right: -257px;
    }

    .image-text--left .image-text__img__double::before { 
        top: -43px;
        left: -257px;
    }

    .image-text__img__double__left {
        width: 530px;
        height: 530px;
    }

    .image-text__img__double__right {
        width: 292px;
        height: 292px;
        margin-top: -192px;
    }
}

@media (min-width: 1200px) {
    .image-text--sml-pattern {
        padding-top: 103px;
        padding-bottom: 50px;
    }

    .image-text--sml-pattern .flex-row {
        align-items: flex-start;
    }

    .image-text--sml-pattern .image-text__img__wrap {
        margin: 0;
    }

    .image-text--sml-pattern .image-text__img__wrap::before {
        font-size: 158px;
        top: -75px;
        right: -74px;
    }

    .image-text--right .image-text__img__double { 
        padding-right: 0;
    }

    .image-text--left .image-text__img__double { 
        padding-left: 0;
    }
}