/*------------------------------------*\
    
    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__img {
    height: 200px;
    margin-bottom: 28px;    
}

.image-text--top-section .image-text__img {
    height: 350px;
    position: relative;
    margin: 0 0 26px;
}

.image-text--top-section .image-text__img {
    padding-bottom: 20px;
}

.image-text__img__dubble {
    height: 100%;
    max-width: 310px;
    margin: 0 auto;
    position: relative;
}

/* Alternate flip transition */

.image-text__img__dubble img {
    -webkit-transition: -webkit-transform .3s ease-in-out;
    transition: -webkit-transform .3s ease-in-out;
    transition: transform .3s ease-in-out;
    transition: transform .3s ease-in-out,-webkit-transform .3s ease-in-out;
    -webkit-transform: translateZ(0);
}

.image-text__img__dubble .tilted {
    position: absolute;
    top: 45%;
    left: 50%;
    -webkit-transform-origin: bottom right;
    transform-origin: bottom right;
    -webkit-transform: translate(-50%,-40%) rotate(4deg);
    transform: translate(-50%,-40%) rotate(4deg);
}

.image-text__img__dubble .tilted.alt-tilt {
    -webkit-transform: rotate(-4deg);
    transform: rotate(-4deg);

    -webkit-transform: translate(-50%,-40%) rotate(-2deg)!important;
    transform: translate(-50%,-40%) rotate(-2deg)!important;
}

.image-text__img__dubble img.active.tilted.alt-tilt {
    z-index: 10;
    -webkit-transform: translate(-50%,-40%) rotate(6deg)!important;
    transform: translate(-50%,-40%) rotate(6deg)!important;
}

.image-text__img__dubble img.image-1:first-child {
    transform: none !important; 
    opacity: 1;
    position: static;
    height: auto;
}

@keyframes alternate-tilt {
	0% {
		transform: translatey(0px);
	}
	50% {
		transform: translatey(-20px);
	}
	100% {
		transform: translatey(0px);
	}
}


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

.image-text--video .image-text__img a {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
}

.image-text--video a img {
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(17, 30, 73, 0.18);  
}

.image-text--video .image-text__img {
    height: 186px;
}

.image-text--video .video-text__link svg {
    width: 68px;  
    box-shadow: 0 0 0 0 rgba(45, 180, 203, 1);
	transform: scale(1);
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(45, 180, 203, 0.7);
        border-radius: 100%;
	}

	70% {
		transform: scale(1);
		box-shadow: 0 0 0 10px rgba(45, 180, 203, 0);
        border-radius: 100%;
	}

	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(45, 180, 203, 0);
        border-radius: 100%;
	}
}

.btns-blocks {
    margin-top: 12px;
}

.btns-blocks .btn {
    border: 1px solid #003467;
    display: block;
    background: transparent;
}

.btns-blocks .btn + .btn {
    margin-top: 12px;
}

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

.bg-blue {
    background-color: #001830; 
    color: #fff;
}

.bg-blue h2,
.bg-blue h3{
    color: #fff;
}

.bg-blue .read-more__content::before {
    background: none;
}

.bg-blue .expand::before {
    background: var(--bg-dark-blue-green);
}

/* Animation */
.image-text .image-text__text.js-animated-two-columns-item {
    transform: translate(-50px,0);
}

.image-text .js-animated-reveal {
    transform: translate(50px,0);
}

.image-text.image-text--left .js-animated-reveal {
    transform: translate(-50px,0);
}

.image-text.image-text--left .js-animated-two-columns-item:not(.js-animated-reveal) {
    transform: translate(50px,0);
}


@media (min-width: 768px) {

    .image-text__img {
        height: 404px;
        margin-bottom: 50px;
    }

    .image-text--top-section .image-text__img {
        height: 530px;
        margin: 0 0 26px;
    }
    .image-text__img__dubble {
        max-width: 470px;
    }
    
    

    .image-text--top-section {
        padding: 70px 0;
    }

    .image-text--video .image-text__img {
        height: 373px;
        margin-bottom: 50px;
    }
    
    .image-text--video .video-text__link svg {
        width: 85px;
    }

    .btns-blocks {
        margin-top: 20px;
    }
    
    .btns-blocks .btn {
        display: inline-block;
        padding: 14px 28px;
    }
    
    .btns-blocks .btn + .btn {
        margin-top: 0;
        margin-left: 21px;
    }
    
    .image-text--video--inner .image-text__img {
        height: 410px;
    }

    .image-text--top-section.bg-blue+.image-text--top-section.bg-blue {
        padding: 70px 0;
    }
}


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

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

    .image-text__img {
        height: auto;
        padding-right: 60px;
        margin-bottom: 0;
    }    

    .image-text--top-section .image-text__img {
        align-self: flex-start;
        /* height: auto; */
        margin: 0 0 0;
        padding-bottom: 0;
    }
    .image-text__img__dubble {
        max-width: 100%;
        margin: 0;
    }
    
    
    .image-text--top-section {
        padding: 110px 0;
    }

    .image-text--video .image-text__img {
        height: auto;
        margin-bottom: 0;
        padding-right: 60px;
    }
    
    .image-text--video .video-text__link svg {
        width: 85px;
    }

    .image-text--video .flex-opposite .image-text__img {
        /* height: auto; */
        padding-right: 20px;
        padding-left: 60px;
    }

    .btns-blocks .btn + .btn {
        margin-top: 0;
        margin-left: 12px;
    }
    
    .image-text--video--inner .image-text__img {
        height: 400px;
    }

    .image-text--video--inner .image-text__text h2 {
        padding-bottom: 15px;
    }

    .image-text--top-section.bg-blue+.image-text--top-section.bg-blue {
        padding: 110px 0;
    }
}



@media (min-width: 1600px) {
    .flex-opposite .image-text__img {
        /* height: auto; */
        padding-right: 0;
        padding-left: 120px!important;
    }
}


