.ln-before-after {
	background-color: #fffcf7 !important;
	font-family: "Plus Jakarta Sans", sans-serif;
}

/* ── Inner ── */

.ln-before-after__inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 56px 48px;
}

/* ── Header ── */

.ln-before-after__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.ln-before-after__header-left {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ln-before-after__eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ln-before-after__eyebrow-line {
	display: block;
	width: 24px;
	height: 1px;
	background-color: #205247 !important;
	flex-shrink: 0;
}

.ln-before-after__eyebrow-text {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #205247 !important;
}

.ln-before-after__heading {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 40px;
	font-weight: 400;
	line-height: 1.15;
	color: #1A1410;
	margin: 0;
}

.ln-before-after__view-all {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #205247 !important;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	padding-bottom: 4px;
	transition: gap 0.2s ease;
}

.ln-before-after__view-all:hover {
	gap: 10px;
}

/* ── Grid ── */

.ln-before-after__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
}

/* ── Card ── */

.ln-before-after__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.ln-before-after__card-label {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #6B5E54;
	text-align: center;
	line-height: 1.4;
}

/* ── Before/After Slider ── */

.ln-ba-slider {
	position: relative;
	width: 100%;
	border-radius: 10px;
	overflow: clip;
	background: #2C2010;
	aspect-ratio: 2 / 3;
	user-select: none;
	touch-action: pan-y;   /* allow vertical scroll, lock horizontal for drag */
	contain: layout paint;
}

/* Before image — width-clipped for smooth GPU compositing */
.ln-ba-slider__before {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center top;
	display: block;
	clip-path: inset(0 50% 0 0);
	will-change: clip-path;
}

/* After image — full size, base layer */
.ln-ba-slider__after {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center top;
	display: block;
	will-change: transform;
}

/* Vertical divider line */
.ln-ba-slider__handle {
	position: absolute;
	top: 0;
	left: 50%;
	width: 1.5px;
	height: 100%;
	max-height: 100%;
	background: rgba(255, 255, 255, 0.9);
	transform: translateX(-50%);
	pointer-events: none;
	z-index: 2;
	will-change: left;
}

/* Circular drag knob */
.ln-ba-slider__handle::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B67A3C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8l-4 4 4 4'/%3E%3Cpath d='M17 8l4 4-4 4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px 18px;
}

/* Range input — invisible, covers the entire slider for interaction */
.ln-ba-slider__range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: ew-resize;
	z-index: 3;
	margin: 0;
	padding: 0;
	overflow: hidden;
	-webkit-appearance: none;
	appearance: none;
}

.ln-ba-slider__range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 44px;
	height: 9999px;
	cursor: ew-resize;
	background: transparent;
}

.ln-ba-slider__range::-moz-range-thumb {
	width: 44px;
	height: 9999px;
	cursor: ew-resize;
	border: none;
	background: transparent;
}

/* ── Labels — hidden by default, matching reference design ── */
.ln-ba-slider__label {
	display: none;
}

.ln-ba-slider__label--before {
	left: 10px;
}

.ln-ba-slider__label--after {
	right: 10px;
}

/* ── Responsive ── */

@media (max-width: 1280px) {
	.ln-before-after__inner {
		padding: 36px 40px 44px;
	}
}

@media (max-width: 1024px) {
	.ln-before-after__inner {
		padding: 32px 32px 40px;
	}

	.ln-before-after__heading {
		font-size: 34px;
	}

	.ln-before-after__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}
}

@media (max-width: 768px) {
	.ln-before-after__inner {
		padding: 28px 20px 36px;
	}

	.ln-before-after__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.ln-before-after__heading {
		font-size: 28px;
	}

	.ln-before-after__grid {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
	}

	.ln-before-after__card {
		flex: 0 0 calc((100% - 10px) / 2);
		max-width: calc((100% - 10px) / 2);
	}

	/* Lone card in the final row: full row, content centered at peer width */
	.ln-before-after__card:last-child:nth-child(odd) {
		flex: 0 0 100%;
		max-width: 100%;
		align-items: center;
	}

	.ln-before-after__card:last-child:nth-child(odd) .ln-ba-slider {
		width: calc((100% - 10px) / 2);
		max-width: calc((100% - 10px) / 2);
	}
}

@media (max-width: 480px) {
	.ln-before-after__inner {
		padding: 24px 16px 32px;
	}

	.ln-before-after__heading {
		font-size: 24px;
	}

	.ln-before-after__grid {
		gap: 8px;
	}

	.ln-before-after__card {
		flex: 0 0 calc((100% - 8px) / 2);
		max-width: calc((100% - 8px) / 2);
	}

	.ln-before-after__card:last-child:nth-child(odd) .ln-ba-slider {
		width: calc((100% - 8px) / 2);
		max-width: calc((100% - 8px) / 2);
	}
}