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

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

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

.image-text__border {
    position: relative;
    padding-left: 32px;
}

.image-text__border::before  {
    content: '';
    position: absolute;
    background: var(--charcoal);
    opacity: 0.1;
    width: 2px;
    height: calc(100% + 128px);
    top: -64px;
    left: 0;
}

.bg-black .image-text__border::before  {
    background: #fff;
    opacity: 0.2;
}

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

.image-text__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.image-text__text {
    position: relative;
    margin-top: 64px;
}

.bg-black .image-text__text .expand {
    color: var(--white);
    opacity: 0.8;
}

.btn-tertiary--down::after {
    transform: rotate(90deg);
    top: 7px;
}

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

    .image-text__text {
        padding-right: 24px;
    }

}

@media (min-width: 1200px) {
    .flex-opposite {
        flex-direction: row-reverse;
    }

    .image-text__border {
        padding-left: 0;
    }

    .image-text__border::before  {
        height: calc(100% + 252px);
        top: -126px;
    }
    
    .image-text--left .image-text__img {
        width: 100%;
        height: 100%;
        margin-left: 32px;
    }

    .image-text--right .image-text__img {
        margin-left: auto;
        height: 100%;
    }

    .image-text__img {
        img {
            width: 100%;
            height: 100%;
        }
    }

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

    .image-text--left .image-text__text {
        padding-right: 8px;
        margin-top: 0;
        padding-left: 32px;
    }

    .image-text--right .image-text__text {
        padding-right: 0;
        margin-top: 0;
        padding-left: 32px;
        margin-right: -16px;
    }

    .image-text__text .btn-group {
        gap: 32px;
        margin-right: -18px;
    }
	.image-text__img.--contain {
		display: flex;
		align-items: center;
	
	}
	.image-text__img.--contain img {
		height: auto;
	}

}