/*------------------------------------*\
    
    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)

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


.image-text {
    color: #4E4444;
    padding-top: 10px;
}

.image-text h2 {
    position: relative;
}

.image-text h2 span {
    font-family: 'Square Peg', cursive;
    font-size: 48px;
}

.image-text__img {
    margin-top: 35px;
}

.image-text__img__wrap {
    box-sizing: border-box;
    display: flex;
    flex: 0 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 auto;
    justify-content: flex-start;
    text-align: center;
}

.image-text__img__col {
    box-sizing: border-box;
    flex: 0 0 auto;
    flex-basis: auto;
    padding-right: 0;
    padding-left: 0;
    margin: 0 6px;
    width: calc(50% - 12px);
    height: 201px;
}

.image-text__img__right {
    margin-top: 46px;
}

.image-text__img img {
    object-position: top;
}

.btn-fixed-width {
    max-width: 208px;
}

.image-text h2 i {
    position: absolute;
    left: -68px;
    top: 0;
    font-size: 60px;
    color: #D1C392;
    display: none;
}

.image-text-testimonial__content {
    padding-left: 46px;
    position: relative;
}

.image-text-testimonial__content i {
    position: absolute;
    left: 0;
    top: -4px;
    font-size: 36px;
    color: #D1C392;
    font-weight: 600;
}

.image-text-testimonial__content h5 {
    font-size: 14px;
    color: #4E4444;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.17em;
    padding-bottom: 30px;
    font-family: 'Outfit', sans-serif;
}

.image-text-testimonial__content .btn-fixed-width {
    max-width: 225px;
    text-align: left;
}

.image-text-testimonial__images {
    box-sizing: border-box;
    display: flex;
    flex: 0 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    margin-right: -7px;
    margin-left: -7px;
    justify-content: flex-start;
    text-align: center;
    align-items: center;
}

.image-text-testimonial__image-col {
    box-sizing: border-box;
    flex: 0 0 auto;
    flex-basis: auto;
    padding-right: 0;
    padding-left: 0;
    margin: 0 7px;
    width: calc(50% - 14px);
}

.image-text-testimonial__image01 {
    width: 100%;
    height: auto;
    margin-bottom: 16px;
}

.image-text-testimonial__image02 {
    width: 100%;
    height: auto;
}

.image-text-testimonial__image03 {
    width: 100%;
    height: auto;
}

.image-text-testimonial {
    padding-top: 45px;
}

.image-text-testimonial--inner {
    padding-top: 50px;
    padding-bottom: 50px
}

.image-text-testimonial__img__wrap {
    padding: 0;
}

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

.image-text--row-reverse .image-text__img__wrap {
    flex-direction: row-reverse;
}

@media (min-width: 768px) {
    .image-text {
        padding-top: var(--section-margins);
    }

    .flex-row {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    
    .flex-opposite {
        flex-direction: row-reverse;
    }

    .image-text__img__wrap {
        margin-right: -0px;
        margin-left: -0px;
        position: relative;
        padding-bottom: 160px;
    }
    
    .image-text__img__col {
        margin: 0 0px;
        width: 60%;
        height: auto;
    }
    
    .image-text__img__right {
        margin-top: 0;
        position: absolute;
        bottom: 0;
        left: 120px;
    }

    .image-text__img {
        margin-top: 0;
    }

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

    .testimonial-read-more {
        padding-bottom: 24px;
    }

    .image-text-testimonial__content .btn-fixed-width {
        max-width: 100%;
    }

    .image-text-testimonial__content {
        padding-bottom: 50px;
    }

    .image-text-testimonial .image-text__img__wrap {
        padding-bottom: 0;
    }

    .image-text-testimonial__images {
        margin-right: -12px;
        margin-left: -12px;
        width: 100%;
    }

    .image-text-testimonial__image-col {
        margin: 0 12px;
        width: calc(50% - 24px);
    }

    .image-text-testimonial__image01 {
        height: auto;
        margin-bottom: 0;
    }
    
    .image-text-testimonial__image02 {
        height: auto;
        margin: -52px 0px 0 60px;
        position: relative;
    }
    
    .image-text-testimonial__image03 {
        height: auto;
    }

    .image-text-testimonial {
        padding-top: 75px;
    }

    .image-text-testimonial--inner {
        padding-top: 60px;
        padding-bottom: 70px
    }

    .image-text-testimonial__img__wrap {
        padding: 0;
    }

    .image-text--row-reverse .image-text__img__wrap {
        margin-top: 35px;
        padding-bottom: 0;
    }

    .image-text--row-reverse .image-text__img__right {
        margin-top: 58px;
        position: relative;
        bottom: 0;
        left: 0;
        padding-right: 13px;
    }

    .image-text--row-reverse .image-text__img__left {
        padding-left: 13px;
    }

    .image-text--row-reverse .image-text__img__col {
        width: 50%;
    }
    
    .image-text--row-reverse .image-text__img img {
        height: auto;
    }

    .image-text__text__wrap .btn+.btn {
        margin-left: 0;
    }
    
}

@media (min-width: 1024px){
    .image-text__img__col {
        width: 70%;
        height: auto;
    }

    .image-text__img__wrap {
        padding-bottom: 180px;
    }

    .image-text__text__wrap .btn+.btn {
        margin-left: 35px;
    }

    .image-text-testimonial__img__wrap {
        width: 80%;
        margin: 0 auto;
    }

    .image-text-testimonial__img__wrap {
        padding: 0;
    }
}

@media (min-width: 1200px) {
    .flex-row {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    
    .flex-opposite {
        flex-direction: row-reverse;
    }

    .home .image-text {
        padding-top: var(--section-margins);
    }

    .image-text {
        padding-top: 40px;
    }

    .image-text__img__wrap {
        margin-right: -16px;
        margin-left: -16px;
        position: relative;
        padding-bottom: 0;
    }

    .image-text__img__wrap.right {
        float: left;
    }

    .image-text__img__wrap.left {
        float: right;
    }

    .image-text-testimonial__img__wrap {
        width: auto;
        float: right;
    }
    
    .image-text__img__col {
        margin: 0 16px;
        width: calc(50% - 32px);
        height: 330px;
    }
    
    .image-text__img__right {
        margin-top: 134px;
        position: relative;
        bottom: 0;
        left: 0;
    }

    .image-text__img {
        margin-top: 0;
    }

    .btn-fixed-width {
        max-width: 100%;
    }

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

    .image-text h2 i {
        left: -80px;
        top: -8px;
        display: block;
    }

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

    .image-text-testimonial__images {
        margin-right: -16px;
        margin-left: -16px;
        width: 100%;
    }

    .image-text-testimonial__image-col {
        margin: 0 16px;
        width: calc(50% - 32px);
    }

    .image-text-testimonial__image01 {
        height: 200px;
        margin-bottom: 32px;
    }
    
    .image-text-testimonial__image02 {
        height: 350px;
        margin: 0;
        position: relative;
    }
    
    .image-text-testimonial__image03 {
        height: 400px;
    }

    .image-text-testimonial__content {
        padding-bottom: 0;
    }

    .image-text-testimonial {
        padding-top: 65px;
    }

    .image-text--right .image-text__img__wrap {
        flex-direction: row-reverse;
    }

    .image-text-testimonial--inner {
        padding-top: 100px;
        padding-bottom: 100px
    }

    .image-text--row-reverse .image-text__img__wrap {
        margin-top: 0;
    }

    .image-text--row-reverse .image-text__img__right {
        margin-top: 80px;
        position: relative;
        bottom: 0;
        left: 0;
        padding-right: 0;
    }

    .image-text--row-reverse .image-text__img__left {
        padding-left: 0;
    }

    .image-text--row-reverse .image-text__img__col {
        width: calc(50% - 32px);
    } 

    .half-and-half--video .half-and-half__text-overlay {
        padding: 100px 65px 100px 45px;
    }

    .image-text-testimonial .image-text__img__wrap,
    .image-text-testimonial--inner .image-text__img__wrap {
        float: right;
    }
}

@media (min-width: 1366px) {
    .image-text__img__col {
        height: 400px;
    }

    .image-text__text__wrap {
        padding-right: 50px;
    }

    .flex-opposite .image-text__text__wrap {
        padding-left: 60px;
        padding-right: 0;
    }

    .flex-row {
        align-items: center;
    }

    .image-text-testimonial .flex-opposite .image-text__text__wrap {
        padding-left: 40px;
    }

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

    .image-text--right-inner .image-text__text__wrap {
        padding-top: 50px;
    }

    .image-text--right-inner {
        padding-bottom: 40px;
    }

    .image-text--row-reverse.image-text--right-inner .image-text__text__wrap {
        padding-top: 0;
    }

    .image-text--row-reverse .image-text__img__right {
        margin-top: 120px;
    }
}

@media (min-width: 1440px) {
    .image-text .container-fluid {
        padding: 0 80px;
    }

    .image-text__text__wrap {
        padding-right: 44px;
        max-width: 647px;
        float: right;
    }

    .flex-opposite .image-text__text__wrap {
        padding-left: 60px;
        padding-right: 0;
        float: left;
    }
}

@media (min-width: 1660px) {
    .image-text__img__col {
        height: 497px;
    }

    .image-text .flex-opposite .image-text__text__wrap {
        padding-left: 119px;
    }

    .image-text-testimonial__image01 {
        height: 280px;
    }
    
    .image-text-testimonial__image02 {
        height: 444px;
    }
    
    .image-text-testimonial__image03 {
        height: 497px;
    }

    .image-text-testimonial .flex-opposite .image-text__text__wrap {
        padding-left: 40px;
        padding-top: 50px;
    }

    .image-text-testimonial__image03 {
        margin-bottom: 30px;
    }

    .image-text.image-text-testimonial h2 {
        padding-bottom: 25px;
    }

    .image-text-testimonial__content h5 {
        font-size: 15px;
        padding-bottom: 45px;
        padding-top: 5px;
    }

    .image-text-testimonial__images {
        width: auto;
    }
}


@media (min-width: 768px) {
    .count-two {
        column-count: 2;
        margin-bottom: 15px;
    }
}
