.before-after-section .result-card {
	overflow: hidden;
}

.before-after-section .result-visual {
	position: relative;
	height: auto;
	min-height: 186px;
	aspect-ratio: 16 / 10;
	background-position: center;
	background-size: cover;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.before-after-section .result-card:nth-child(1) .result-visual {
	background-image: url("../images/before-after-terras.jpg");
}

.before-after-section .result-card:nth-child(2) .result-visual {
	background-image: url("../images/before-after-gevel.jpg");
}

.before-after-section .result-card:nth-child(3) .result-visual {
	background-image: url("../images/before-after-dakgoot.jpg");
}

.before-after-section .result-card:nth-child(4) .result-visual {
	background-image: url("../images/before-after-zonnepanelen.jpg");
}

.before-after-section .result-visual::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	z-index: 2;
	width: 2px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 0 0 1px rgba(8, 34, 51, 0.18), 0 0 18px rgba(255, 255, 255, 0.55);
	transform: translateX(-50%);
}

.before-after-section .result-visual span {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: flex-end;
	min-width: 0;
	padding: 12px;
	color: transparent;
	font-size: 0;
	font-weight: 950;
	line-height: 1.15;
	text-shadow: none;
	background: linear-gradient(180deg, rgba(8, 34, 51, 0.02), rgba(8, 34, 51, 0.56)) !important;
	overflow-wrap: anywhere;
	white-space: normal !important;
	word-break: normal;
}

.before-after-section .result-visual span:last-child {
	justify-content: flex-start;
	text-align: left;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(6, 75, 120, 0.44)) !important;
}

.before-after-section .result-visual span::after {
	content: "Voor";
	display: inline-flex;
	align-items: center;
	min-height: 25px;
	padding: 5px 8px;
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 950;
	line-height: 1;
	text-transform: uppercase;
	background: rgba(8, 34, 51, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(8, 34, 51, 0.24);
}

.before-after-section .result-visual span:last-child::after {
	content: "Na";
	background: rgba(6, 75, 120, 0.72);
}

@media (max-width: 1180px) {
	.before-after-section .result-visual {
		min-height: 200px;
	}
}

@media (max-width: 640px) {
	.before-after-section .result-visual {
		min-height: 176px;
	}

	.before-after-section .result-visual span {
		padding: 10px;
	}
}
