/*--------------------------------------------------------------
# POM Difference block
--------------------------------------------------------------*/

.difference-block__inner {
	max-width: var(--mid-width, 1160px);
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.difference-block__title {
	margin-bottom: 0.4em;
}

.difference-block__text {
	max-width: 620px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 60px;
}

/* Mobile first: horizontal scroll with snap, same pattern as the reviews tabs.
   The row starts at the .pom-section__inner content edge, so the first card lines
   up with the rest of the page, and only bleeds past the padding on the right to
   signal that it scrolls. */
.difference-list {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	text-align: left;
	margin-right: -32px;
}

.difference-list::-webkit-scrollbar {
	display: none;
}

/* Trailing spacer so the last card is not glued to the viewport edge. */
.difference-list::after {
	content: "";
	flex: 0 0 20px;
}

.difference-item {
	flex: 0 0 45%;
	scroll-snap-align: start;
}

.difference-item__media {
	position: relative;
	margin-bottom: 20px;
}

.difference-item__image {
	display: block;
	width: 100%;
	height: auto;
}

.difference-item__overlay {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	display: block;
	width: 100%;
	height: 70%;
	z-index: 1;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.81) 0%, rgba(0, 0, 0, 0) 100%);
	pointer-events: none;
}

.difference-item__label {
	position: absolute;
	left: 15px;
	right: 15px;
	bottom: 16px;
	z-index: 2;
	margin-bottom: 0;
	color: var(--white, #fff);
	font-size: var(--body-text-s, 1.125rem);
	line-height: 1.25;
	text-align: left;
}

.difference-item__text {
	margin-bottom: 0;
	font-size: var(--body-text-xs, 0.9375rem);
	line-height: 1.5;
}

@media (min-width: 769px) {
	.difference-list {
		flex-wrap: wrap;
		justify-content: center;
		gap: 14px 14px;
		overflow-x: visible;
		scroll-snap-type: none;
		margin-right: 0;
	}

	.difference-list::after {
		display: none;
	}

	.difference-item {
		flex: 0 0 159px;
		max-width: 159px;
	}
}

@media (min-width: 1241px) {
	.difference-block__text {
		margin-bottom: 80px;
	}
}
