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

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

.half-and-half,
.image-text{
    overflow: hidden;
}


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

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

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

.image-text__img__flex {
    position: relative;
    margin: 0 -2px;
    display: flex;
    flex-wrap: wrap;
}

.image-text__img__left,
.image-text__img__right {
    width: 50%;
    padding: 0 2px;
    height: 193px;
}

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

.substraction {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #fff;
    transform: translate(-50%, -50%);
    font-size: 81px;
}

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

    .image-text__img__flex {
        margin: 0 -4px;
    }

    .image-text__img__left,
    .image-text__img__right {
        padding: 0 4px;
        height: 389px;
    }

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

    .substraction {
        font-size: 168px;
    }
}


@media (min-width: 1200px) {
    
    .image-text__text {
        padding-top: 0;
    }

    .image-text__img__flex {
        width: calc(100% - 20px);
        margin: 0 -3.5px;
    }

    .image-text__img__left,
    .image-text__img__right {
        height: 350px;
        padding: 0 3.5px;
    }

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

    .substraction {
        font-size: 150px;
    }
	
	.image-text__text p {
		margin-bottom: 15px
	}
    
    .flex-opposite {
        flex-direction: row-reverse;
    }
}