/*------------------------------------*\
    
    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 seperately,
    please create a block-specific stylesheet for it (don't forget to resiger that block-specific stylesheet in acf-start-blocks.php)

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


.image-text__img {
    height: 290px;
    position: relative;
}

.image-text__img img {
    border-radius: 4px;
}

.image-text__text {
    padding-top: 50px;
    color: var(--color-charcoal);
}

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

.column-reverse .image-text__text {
    padding-top: 50px;
    padding-bottom: 0;
}

.image-text .btn {
    margin-top: 20px;
}

.image-text__text h5 br {
    display: none;
}

.image-text__img__info {
    position: absolute;
    right: 9px;
    bottom: 0;
    width: calc(100% - 18px);
    background: var(--color-white);
    padding: 25px 30px 20px;
    box-shadow: 0 0 16px rgba(29, 66, 138, 0.16);
    border-radius: 4px;
}

.image-text__img__info h4 {
    font-size: 22px;
    color: #161E43;
    padding: 0;
    position: relative;
    margin-bottom: 8px;
}

.image-text__img__info h4 span {
    position: relative;
    background: var(--color-white);
    display: inline-block;
    padding-right: 16px;
    z-index: 1;
}

.image-text__img__info h4::after {
    content: "";
    position: absolute;
    right: -30px;
    top: 18px;
    width: calc(100% - 30px);
    height: 2px;
    background: rgba(29,66,138,0.15);
}

.image-text__img__info h4 i {
    font-size: 29px;
    color: var(--color-teal);
    vertical-align: middle;
    padding: 0 10px 5px 0;
}

.image-text__img__info p {
    font-size: 16px;
    color: var(--color-teal);
    padding: 0;
    font-weight: 700;
    line-height: 1.37em;
}

.two-image .image-text__img {
    height: auto;
}

.image-text__img__overlay {
    position: relative;
    max-width: 330px;
}

.image-text__img__large {
    width: 100%;
    height: 228px;
    padding-right: 55px;
}

.flex-opposite .image-text__img__large {
    padding-right: 0;
    padding-left: 55px;
}

.image-text__img__small {
    width: 165px;
    height: 166px;
    padding: 8px;
    border-radius: 4px;
    background: var(--color-white);
    box-shadow: 0 0 16px rgba(29, 66, 138, 0.16);
    margin: -123px 0 0 auto;
    position: relative;
}

.flex-opposite .image-text__img__small {
    margin: -123px auto 0 0;
}

.image-text__img__info p:last-of-type {
    margin-bottom: 0;
}

@media (max-width: 767px) {
	.image-text--two-image .row {
		flex-direction: column-reverse;
	}
	
	.image-text--two-image .image-text__text {
		padding-top: 0;
		padding-bottom: 50px;
	}
}

@media (min-width: 768px) {
    .image-text__img {
        height: 410px;
    }

    .image-text__text {
        padding-top: 64px;
    }

    .column-reverse .image-text__text {
        padding-bottom: 0;
        padding-top: 90px;
    }

    .image-text__text h5 br {
        display: inline-block;
    }

    .image-text__img__info {
        width: 432px;
        padding: 25px 30px 26px;
        right: 16px;
    }

    .image-text__img__info p {
        font-size: 18px;
    }

    .image-text__img__overlay {
        max-width: 664px;
        margin: 0 auto;
    }
    
    .image-text__img__large {
        height: 457px;
        padding-right: 110px;
    }

    .flex-opposite .image-text__img__large {
        padding-right: 0;
        padding-left: 110px;
    }
    
    .image-text__img__small {
        width: 332px;
        height: 332px;
        margin-top: -245px;
    }

    .image-text--inner .column-reverse .image-text__text,
    .image-text--two-image .column-reverse .image-text__text {
        padding-bottom: 50px;
    }

    .image-text--inner .image-text__img {
        height: 584px;
    }

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


@media (min-width: 1200px) {
    .flex-row {
        display: flex;
        flex-wrap: wrap;
    }
    
    .image-text .flex-row {
        align-items: center
    }

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

    .image-text__img {
        height: 497px;
        padding-left: 16px;
    }

    .flex-opposite .image-text__img {
        padding-left: 97px;
    }

    .image-text__text {
        padding-top: 0;
        padding-left: 95px;
    }

    .flex-opposite .image-text__text {
        padding-left: 16px;
    }

    .column-reverse .image-text__text {
        padding-top: 0;
        padding-bottom: 0;
    }

    .image-text__img__overlay {
        max-width: 664px;
        margin: 0;
    }
    
    .image-text__img__large {
        height: 466px;
        padding-right: 82px;
    }

    .flex-opposite .image-text__img__large {
        padding-right: 0;
        padding-left: 82px;
    }
    
    .image-text__img__small {
        width: 339px;
        height: 339px;
        margin-top: -250px;
        margin-right: -30px;
    }

    .flex-opposite .image-text__img__small {
        margin-left: -30px;
    }

    .image-text--inner .column-reverse.flex-opposite {
        flex-direction: row-reverse;
    }

    .image-text--inner .column-reverse .image-text__text,
    .image-text--two-image .column-reverse .image-text__text {
        padding-bottom: 0;
        padding-top: 0;
    }

    .image-text--inner .image-text__img {
        height: 500px;
    }


}

.image-text--homepage .image-text__img__wrapper {
    height: 100%;
    position: relative;
    transform-origin: top;
    transform: scaleY(0);
}

.image-text--homepage .image-text__img__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-teal);
    transform-origin: bottom;
    transform: scaleY(1);
}

.image-text--homepage .image-text__img__info {
    transform-origin: bottom;
    transform: scaleY(0);
}


.image-text--homepage .image-text__img__info > span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    z-index: 2;
    transform-origin: top;
    transform: scaleY(1);
}

.image-text--homepage .image-text__text > * {
    position: relative; 
    opacity: 0;
}

.image-text-floating--homepage .image-text__img__large {
    position: relative;
    transform: scaleY(0);
    transform-origin: top;
}

.image-text-floating--homepage .image-text__img__small {
    transform: scaleY(0);
    transform-origin: bottom;
}

.image-text-floating--homepage .image-text__img__large > span,
.image-text-floating--homepage .image-text__img__small > span {
    width: calc(100% - 55px);
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--color-teal);
}

.image-text-floating--homepage .image-text__img__large > span {
    transform: scaleY(1);
    transform-origin: bottom;
}

.image-text-floating--homepage .image-text__img__small > span {
    background-color: var(--color-light-teal);
    width: 100%;
    transform: scaleY(1);
    transform-origin: top;
}

@media (min-width: 768px) {
    .image-text-floating--homepage .image-text__img__large > span {
        width: calc(100% - 110px);
    }
}

@media (min-width: 1200px) {
    .image-text-floating--homepage .image-text__img__large > span {
        width: calc(100% - 82px);
    }
}

.image-text-floating--homepage .image-text__text > * {
    position: relative;
    transform: translate(0, 50px);
    opacity: 0;
}

@media (max-width: 767px) {
	.image-text table, .image-text thead, .image-text tbody, .image-text th, .image-text td, .image-text tr {
		display: block;
		width: 100%;
	}
}