/**
 * Image with Text Widget Styles
 *
 * Mobile-first responsive design following WordPress coding standards.
 *
 * @package CustomElementor
 */

.ce-image-with-text {
	position: relative;
	width: 100%;
	display: block;
	overflow: hidden;
	flex-direction: column;
	height: auto;
	min-height: 70vh;
}

.ce-image-with-text__image-wrapper {
	position: relative;
	width: 100%;
	height: auto;
	min-height: 0;
	z-index: 1;
}

.ce-image-with-text__image-wrapper--desktop {
	display: none;
}

.ce-image-with-text__image-wrapper--mobile {
	display: block;
}

.ce-image-with-text__image-wrapper picture,
.ce-image-with-text__image-wrapper img {
	display: block;
	width: 100%;
	height: auto;
}

.ce-image-with-text__image-wrapper a {
	display: block;
	width: 100%;
}

.ce-image-with-text__image-wrapper a:hover {
	opacity: 0.9;
	transition: opacity 0.3s ease;
}

.ce-image-with-text__image {
	width: 100%;
	height: auto;
	min-height: 400px;
	max-height: 100%;
	object-fit: cover;
	object-position: center bottom;
	display: block;
}

.ce-image-with-text__content {
	position: relative;
	width: 100%;
	height: auto;
	min-height: auto;
	padding: 33px 90px 38px var(--elementor-container-padding-mobile-left, 16px);
	z-index: 2;
}

.elementor-widget[class*="elementor-widget-ce_"] .ce-image-with-text__headline {
	position: absolute;
	top: 20px;
	right: var(--elementor-container-padding-mobile-right, 0);
	left: var(--elementor-container-padding-mobile-left, 16px);
	max-width: 100%;
	padding: 0;
	margin: 0;
	font-size: 48px;
	font-weight: 300;
	line-height: 1;
	text-align: left;
	z-index: 3;
}

.ce-image-with-text__headline {
	position: absolute;
	right: var(--elementor-container-padding-mobile-right, 0);
	left: var(--elementor-container-padding-mobile-left, 16px);
	padding: 0;
	font-size: 48px;
	text-align: left;
	z-index: 3;
}

.ce-image-with-text__body-text {
	position: relative;
	top: auto;
	right: auto;
	left: auto;
	max-width: 100%;
	padding: 0;
	margin: 0;
	font-size: var(--elementor-typography-text-font-size, 16px);
	font-weight: var(--elementor-typography-text-font-weight, 400);
	line-height: 1.5;
	color: var(--elementor-color-text, #000000);
	text-align: justify;
	transform: none;
}

@media (min-width: 480px) {
	.ce-image-with-text__content {
		padding: 33px var(--elementor-container-padding-tablet-right, 90px) 38px var(--elementor-container-padding-tablet-left, 13px);
	}
}

@media (min-width: 769px) {
	.ce-image-with-text {
		display: flex;
		flex-direction: row;
		align-items: stretch;
		min-height: auto;
	}

	.ce-image-with-text__image-wrapper {
		width: 60%;
		flex-shrink: 0;
		min-height: 0;
		z-index: auto;
	}

	.ce-image-with-text__image-wrapper--desktop {
		display: block;
	}

	.ce-image-with-text__image-wrapper--mobile {
		display: none;
	}

	.ce-image-with-text__image-wrapper picture,
	.ce-image-with-text__image-wrapper img {
		min-height: 629px;
	}

	.ce-image-with-text__image {
		object-position: center;
		min-height: 629px;
	}

	.ce-image-with-text__content {
		width: 52%;
		padding: 0;
		align-self: stretch;
		z-index: auto;
	}

	.elementor-widget[class*="elementor-widget-ce_"] .ce-image-with-text__headline {
		position: absolute;
		top: 107px;
		right: var(--elementor-container-padding-table-right, 50px);
		left: auto;
		max-width: 79.2%;
		font-size: 48px;
		z-index: 10;
	}

	.ce-image-with-text__headline {
		position: absolute;
		top: 107px;
		right: 0;
		left: auto;
		max-width: 79.2%;
		font-size: 48px;
		z-index: 10;
	}

	.ce-image-with-text__body-text {
		position: absolute;
		top: 60%;
		right: var(--elementor-container-padding-table-right, 50px);
		left: auto;
		max-width: 395px;
		margin-left: 25px;
		padding-left: 16px;
		transform: translateY(-50%);
	}
}

@media (min-width: 1025px) {
	.elementor-widget[class*="elementor-widget-ce_"] .ce-image-with-text__headline {
		font-size: 70px;
		right: var(--elementor-container-padding-right, 87px);
	}

	.ce-image-with-text__headline {
		font-size: 70px;
		right: 16px;
	}

	.ce-image-with-text__body-text {
		right: var(--elementor-container-padding-right, 87px);
		padding-left: 0;
	}
}

@media (max-width: 439px) {
	.elementor-widget[class*="elementor-widget-ce_"] .ce-image-with-text__headline {
		right: 0;
	}
}
