/**
 * Werken bij Laméris — team carousel card polish.
 *
 * Each slide embeds a separate Elementor library template with divergent
 * absolute positions for the white wave + subtitle. Normalize geometry so
 * every card matches production proportions.
 */

/* -------------------------------------------------------------------------- */
/* Equal card shell                                                           */
/* -------------------------------------------------------------------------- */
body.page-id-19 .onsteam .team1,
body.page-id-19 .onsteam #teamid.team1 {
	position: relative !important;
	height: 365px !important;
	min-height: 365px !important;
	max-height: 365px !important;
	overflow: hidden !important;
	border-radius: 25px !important;
	padding: 40px 0 0 30px !important;
	box-sizing: border-box !important;
	box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25) !important;
}

body.page-id-19 .onsteam .swiper-slide {
	height: auto !important;
}

body.page-id-19 .onsteam .elementor-testimonial,
body.page-id-19 .onsteam .elementor-testimonial__content,
body.page-id-19 .onsteam .elementor-testimonial__text {
	height: 100%;
}

body.page-id-19 .onsteam .elementor-testimonial__text > .elementor {
	height: 100%;
}

body.page-id-19 .onsteam .elementor-testimonial__text .e-con,
body.page-id-19 .onsteam .elementor-testimonial__text .e-con-inner {
	height: 100% !important;
	min-height: 0 !important;
}

/* -------------------------------------------------------------------------- */
/* Portrait                                                                   */
/* -------------------------------------------------------------------------- */
body.page-id-19 .onsteam .team1 > .elementor-widget-image:not(.jpbslideimg):not(.elementor-absolute) {
	position: relative !important;
	z-index: 0 !important;
	width: 100% !important;
}

body.page-id-19 .onsteam .team1 > .elementor-widget-image:not(.jpbslideimg):not(.elementor-absolute)
	> .elementor-widget-container {
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
}

body.page-id-19 .onsteam .team1 > .elementor-widget-image:not(.jpbslideimg):not(.elementor-absolute) img {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: 320px !important;
	object-fit: cover !important;
	object-position: top center !important;
}

/* -------------------------------------------------------------------------- */
/* White wave — natural SVG size, pinned bottom-left (matches production)     */
/* -------------------------------------------------------------------------- */
body.page-id-19 .onsteam .team1 .jpbslideimg,
body.page-id-19 .onsteam .team1 .elementor-element-a87c1aa {
	position: absolute !important;
	left: -12px !important;
	right: auto !important;
	/* Match production: pin top so the SVG white sits mid-chest, not over the face */
	top: 175px !important;
	bottom: auto !important;
	width: 270px !important;
	max-width: 92% !important;
	height: auto !important;
	z-index: 1 !important;
	transform: none !important;
	--e-transform-scale: 1 !important;
	flex-grow: 0 !important;
	flex-shrink: 0 !important;
	pointer-events: none;
	overflow: visible !important;
}

body.page-id-19 .onsteam .team1 .jpbslideimg > .elementor-widget-container,
body.page-id-19 .onsteam .team1 .elementor-element-a87c1aa > .elementor-widget-container {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	transform: none !important;
	--e-transform-scale: 1 !important;
	width: 100% !important;
}

body.page-id-19 .onsteam .team1 .jpbslideimg img,
body.page-id-19 .onsteam .team1 .elementor-element-a87c1aa img {
	display: block !important;
	width: 270px !important;
	max-width: 100% !important;
	height: 255px !important;
	max-height: 255px !important;
	object-fit: fill !important;
	object-position: left bottom !important;
	border-radius: 0 !important;
}

/* -------------------------------------------------------------------------- */
/* Name / role / contact — stay inside the white wave                         */
/* -------------------------------------------------------------------------- */
body.page-id-19 .onsteam .team1 .jpbslideimgsubtitle,
body.page-id-19 .onsteam .team1 .elementor-element-8d7022f {
	position: absolute !important;
	left: 26px !important;
	right: auto !important;
	bottom: 28px !important;
	top: auto !important;
	width: 200px !important;
	max-width: 200px !important;
	z-index: 2 !important;
	text-align: left !important;
	overflow: visible !important;
}

body.page-id-19 .onsteam .team1 .jpbslideimgsubtitle > .elementor-widget-container,
body.page-id-19 .onsteam .team1 .elementor-element-8d7022f > .elementor-widget-container {
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
}

body.page-id-19 .onsteam .team1 .jpbslideimgsubtitle .elementor-heading-title,
body.page-id-19 .onsteam .team1 .elementor-element-8d7022f .elementor-heading-title {
	font-family: "filision-pro", Sans-serif !important;
	font-size: 12.5px !important;
	font-weight: 400 !important;
	font-style: italic !important;
	line-height: 1.35 !important;
	color: #002b44 !important;
	margin: 0 !important;
	white-space: normal !important;
	text-overflow: clip !important;
	overflow: visible !important;
	word-break: break-word !important;
	overflow-wrap: anywhere !important;
	-webkit-line-clamp: unset !important;
	line-clamp: unset !important;
	display: block !important;
}

body.page-id-19 .onsteam .team1 .jpbslideimgsubtitle .elementor-heading-title b,
body.page-id-19 .onsteam .team1 .elementor-element-8d7022f .elementor-heading-title b {
	font-weight: 600 !important;
	font-style: italic !important;
}

/* -------------------------------------------------------------------------- */
/* Carousel chrome                                                            */
/* -------------------------------------------------------------------------- */
body.page-id-19 .onsteam .swiper-pagination {
	position: relative !important;
	text-align: center !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	margin-top: 18px !important;
	bottom: auto !important;
}

body.page-id-19 .onsteam .elementor-swiper-button {
	top: 50% !important;
	transform: translateY(-50%) !important;
}

body.page-id-19 .onsteam.elementor-arrows-yes .elementor-main-swiper {
	width: calc(100% - 56px) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* -------------------------------------------------------------------------- */
/* Tablet / mobile — keep carousel usable                                     */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	body.page-id-19 .ourteambg.elementor-hidden-mobile {
		display: flex !important;
	}

	body.page-id-19 .ourteambg,
	body.page-id-19 .onsteam {
		scroll-margin-top: 120px;
	}

	body.page-id-19 .onsteam .team1,
	body.page-id-19 .onsteam #teamid.team1 {
		height: 365px !important;
		min-height: 365px !important;
		max-height: 365px !important;
	}
}

@media (max-width: 767px) {
	/* Hero was pulled under the old in-flow masthead; compact header is fixed. */
	body.page-id-19 .elementor-element-9162361 {
		--margin-top: 0px !important;
		margin-top: 0 !important;
		--min-height: 200px !important;
	}

	body.page-id-19 .elementor-element-bd8a76c {
		--margin-top: 0px !important;
		margin-top: 0 !important;
	}

	body.page-id-19 .ourteambg,
	body.page-id-19 .onsteam {
		scroll-margin-top: 110px;
		padding-top: 8px;
	}

	body.page-id-19 .onsteam .team1,
	body.page-id-19 .onsteam #teamid.team1 {
		height: 400px !important;
		min-height: 400px !important;
		max-height: 400px !important;
		padding: 36px 0 0 24px !important;
		margin-left: auto !important;
		margin-right: auto !important;
		max-width: 340px !important;
	}

	body.page-id-19 .onsteam .team1 > .elementor-widget-image:not(.jpbslideimg):not(.elementor-absolute) img {
		height: 350px !important;
	}

	body.page-id-19 .onsteam .team1 .jpbslideimg,
	body.page-id-19 .onsteam .team1 .elementor-element-a87c1aa {
		left: -8px !important;
		top: 185px !important;
		width: 300px !important;
		max-width: 94% !important;
	}

	body.page-id-19 .onsteam .team1 .jpbslideimg img,
	body.page-id-19 .onsteam .team1 .elementor-element-a87c1aa img {
		width: 300px !important;
		height: 280px !important;
		max-height: 280px !important;
	}

	body.page-id-19 .onsteam .team1 .jpbslideimgsubtitle,
	body.page-id-19 .onsteam .team1 .elementor-element-8d7022f {
		left: 24px !important;
		bottom: 28px !important;
		width: 240px !important;
		max-width: 240px !important;
	}

	body.page-id-19 .onsteam .team1 .jpbslideimgsubtitle .elementor-heading-title,
	body.page-id-19 .onsteam .team1 .elementor-element-8d7022f .elementor-heading-title {
		font-size: 13px !important;
		line-height: 1.4 !important;
	}

	body.page-id-19 .onsteam.elementor-arrows-yes .elementor-main-swiper {
		width: 100% !important;
	}

	body.page-id-19 .onsteam .elementor-swiper-button {
		width: 28px !important;
		height: 28px !important;
	}
}
