/*------------------------------------*\
    
    Half & Half Image + Text Block Customizations - Global Styling

    The styles you add to this file will be applied to the 'Half & Half Image + Text' block. 
    If there is any reasons why you would need to style this 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;
}

.half-and-half-image, 
.half-and-half-text {
    position: relative;
    flex: 0 0 100%;
}

.half-and-half-image img,
.half-and-half-text__bg {
    height: 250px;
    width: 100%;
    display: block;
    object-fit: cover;
    -o-object-fit: cover;
}

.half-and-half-text__bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100% !important;
}


.half-and-half-text { padding: 50px 22px; }

.half-and-half-text.right { margin-right: auto; }

.half-and-half-text.left { margin-left: auto; }

.half-and-half.white-bg { background-color: #fff; }

.half-and-half.gray-bg { background-color: #f7f7f7; }

.half-and-half-text__wrapper { position: relative; }

.contact-wrapper {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 5px 30px #F2F3E8;
}

.half-and-half-text__wrapper p a:not(.btn) {
	font-size: 16px;
	color: #415748;
	font-weight: 700;
	display: inline-block;
	position: relative;
	border: none;
}

.half-and-half-text__wrapper p a:not(.btn):hover { opacity: 0.5; }

.half-and-half-text__wrapper p a:not(.btn)::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 2px;
	background: url(../../img/read-more-bdr.png) 0 0 no-repeat;
	width: 100%;
	height: 2px;
	background-size: 100% 100%;
}

@media (min-width: 768px) { 
    .half-and-half-text { padding: 70px 52px 0; }

    .contact-wrapper { padding: 46px 40px; }   
}

@media (min-width: 1025px) {
    .bottom-padding { padding-bottom: 0 !important; }

    .half-and-half-text { padding-bottom: 350px; }
}

@media (min-width: 1200px) {
    .half-and-half-image, 
    .half-and-half-text {
        position: relative;
        flex: 0 0 50%;
    }
    
    .half-and-half-image img {
        position: absolute;
        height: 100%;
    }    

    .half-and-half-text__wrapper { max-width: 533px; }

    .half-and-half-text { padding: 96px 20px 335px 88px; }

    .half-and-half-text h2 { letter-spacing: 0; }

    .half-and-half-text p { font-size: 17px; }
}

@media (min-width: 1366px) {
    .half-and-half-text { padding: 96px 0 400px 128px; }

    .half-and-half-text h2 {
        font-size: 74px;
        line-height: 1em;
        padding-bottom: 0;
    }
}

@media (min-width: 2000px) {
    .half-and-half-text { padding-bottom: 500px; }
}

@media (min-width: 2500px) {
    .half-and-half-text { padding-bottom: 600px; }
}