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

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

.contained-image-text__image {
	margin: 0 auto 25px;
	max-width: 496px;
}

.contained-image-text {
	padding-bottom: 50px;
}

.contained-image-text__content {
	padding-right: 4px;
}

.contained-image-text.with-bg {
	background: rgb(19, 19, 59);
	background: linear-gradient(50deg, rgba(19, 19, 59, 1) 0%, rgba(26, 71, 130, 1) 100%);
	position: relative;
	z-index: 1;
}

.contained-image-text.with-bg .half-pattern {
	right: -69px;
	width: 414px;
	bottom: -49px;
	position: absolute;
	z-index: -1;
}


.with-bg .contained-image-text__image {
	width: 459px;
	height: 383px;
	position: relative;
	margin-top: 18px;
	/* margin-bottom: -56px; */
	margin-bottom: 0;
	max-width: unset;
	display: inline-block;
}

.with-bg .contained-image-text__image img {
	position: absolute;
	left: -77px;
}

.contained-image-text__image_float {
	position: absolute;
	left: unset;
	right: 125px;
	display: inline-block;
	bottom: 103px;
	background-color: rgba(255, 255, 255, 0.80);
	border-radius: 14px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.10);
	padding: 14px;
}

.with-bg .contained-image-text__image .contained-image-text__image_float img {
	position: relative;
	left: unset;
	width: 137px;
}

.with-bg .contained-image-text__content h2,
.with-bg .contained-image-text__content p {
	color: #fff;
}

.with-bg .contained-image-text__image img {
	z-index: 1;
}

.contained-image-text__image_float {
	z-index: 3;
}

.contained-image-text__content {
	z-index: 4;
	position: relative;
}

@media(min-width: 768px) {
	.contained-image-text {
		padding-bottom: 60px;
		padding-top: 60px;
	}

	.contained-image-text__image {
		margin: 0 auto 30px;
	}

	.contained-image-text__content {
		padding-right: 36px;
		position: relative;
		z-index: 3;
	}

	.contained-image-text__content .btn {
		margin-top: 15px;
	}

	.with-bg .contained-image-text__image img {
		left: -28px;
		z-index: 1;
	}

	.with-bg .contained-image-text__image {
		width: 770px;
		height: 643px;
		margin-bottom: -164px;
	}

	.contained-image-text__image_float {
		right: 123px;
		bottom: 179px;
		border-radius: 10px;
		box-shadow: 0 0 20px rgba(0, 0, 0, 0.20);
		padding: 25px;
		z-index: 3;
	}

	.with-bg .contained-image-text__image .contained-image-text__image_float img {
		width: 240px;
	}

	.contained-image-text__content .sub-heading {
		font-size: 17px;
	}
}

@media(min-width: 1200px) {
	.contained-image-text-wrapper {
		display: flex;
		align-items: center;
		position: relative;
	}

	.negative-margin .contained-image-text-wrapper {
		align-items: flex-end;
	}

	.contained-image-text-wrapper.flex-opposite {
		flex-direction: row-reverse;
	}

	.contained-image-text .contained-image-text__content {
		margin-top: 0;
	}

	.contained-image-text__image {
		width: 50%;
		margin: 0;
		padding-right: 92px;
		max-width: unset;
	}

	.contained-image-text .contained-image-text__image img {
		width: 100%;
	}

	.flex-opposite .contained-image-text__image {
		padding-right: 0;
		padding-left: 92px;
	}

	.contained-image-text__content {
		width: 50%;
		padding-right: 23px;
	}

	.contained-image-text {
		padding: 45px 0 90px;
	}

	.with-bg .contained-image-text__image {
		width: 50%;
		height: 558px;
		margin: 0;
	}

	.with-bg .contained-image-text__image img {
		width: 715px;
		max-width: unset;
		left: -95px;
	}

	.with-bg .contained-image-text-wrapper {
		align-items: center;
	}

	.contained-image-text.with-bg {
		padding: 0;
	}

	.with-bg .contained-image-text__content {
		padding: 90px 0;
		padding-right: 45px;
	}

	.with-bg .contained-image-text__image .contained-image-text__image_float img {
		width: 204px;
	}

	.contained-image-text__image_float {
		right: 83px;
		bottom: 133px;
		padding: 22px;
	}
}


@media(min-width: 1400px) {
	.contained-image-text {
		padding: 0 0 106px;
		padding-top: var(--section-margins);
		padding-bottom: 0;
	}

	.contained-image-text.negative-margin {
		margin-top: -148px;
		padding: 0 0 106px;
	}

	.contained-image-text.negative-margin .contained-image-text__content {
		margin-top: 257px;
		padding-right: 0;
	}

	.with-bg .contained-image-text__image {
		height: 603px;
	}

	.with-bg .contained-image-text__content {
		padding: 100px 0;
		padding-right: 0;
		margin: 0;
	}

	.with-bg .contained-image-text__image img {
		width: 820px;
		left: -50px;
	}

	.contained-image-text.with-bg {
		margin: 0;
	}

	.with-bg .contained-image-text__image .contained-image-text__image_float img {
		width: 240px;
	}

	.contained-image-text__image_float {
		right: 101px;
		bottom: 102px;
		padding: 26px;
	}
}