.case-block {
	width: 100%;
	padding: clamp(32px, 6vw, 80px) 16px;
	box-sizing: border-box;
}

.case-block.alignfull {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

.case-block__inner {
	width: 100%;
	max-width: 1312px;
	margin: 0 auto;
}

.case-block__heading {
	margin: 0 0 clamp(24px, 4vw, 48px);
	font-family: "Roboto Condensed", ui-sans-serif, system-ui, sans-serif;
	font-size: clamp(3rem, 6vw, 4rem);
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	color: #000;
}

.case-block__list {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	gap: clamp(8px, 1vw, 16px);
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.case-block__item {
	display: flex;
	flex: 1;
	min-width: 0;
}

.case-block__card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	width: 100%;
	aspect-ratio: 3 / 4;
	padding: 24px;
	overflow: hidden;
	color: #fff;
	text-decoration: none;
	background-color: #1a1a1a;
	box-sizing: border-box;
}

.case-block__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.4s ease;
}

.case-block__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.65) 0%,
		rgba(0, 0, 0, 0.3) 35%,
		rgba(0, 0, 0, 0) 70%,
		rgba(0, 0, 0, 0.35) 100%
	);
}

.case-block__featured {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	background-color: #e31923;
	border-radius: 999px;
}

.case-block__featured-icon {
	font-size: 12px;
	line-height: 1;
}

.case-block__story-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
	width: 100%;
	min-height: 0;
}

.case-block__story-heading {
	font-family: "Roboto Condensed", ui-sans-serif, system-ui, sans-serif;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
	color: #fff;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.case-block__story-quote {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	width: 100%;
	margin: 0;
	transform: translateY(-50%);
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.45;
	text-align: left;
	color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.case-block__btn {
	position: absolute;
	right: 20px;
	bottom: 20px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: calc(100% - 40px);
	padding: 10px 22px;
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	background-color: #e31923;
	border: 0;
	border-radius: 9999px;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

.case-block__btn:hover,
.case-block__btn:focus-visible {
	background-color: #b5141c;
	color: #fff;
	text-decoration: none;
	opacity: 1 !important;
}

.case-block__card--quote {
	justify-content: center;
	align-items: center;
	padding: 32px 28px;
	text-align: center;
	background-color: #000;
}

.case-block__quote-text {
	margin: 0 0 16px;
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
	font-size: clamp(1rem, 1.4vw, 1.25rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.45;
	color: #fff;
	quotes: "\201C" "\201D";
}

.case-block__quote-text::before {
	content: open-quote;
}

.case-block__quote-text::after {
	content: close-quote;
}

.case-block__quote-attribution {
	margin: 0;
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
	letter-spacing: 0.02em;
}

.case-block__placeholder {
	margin: 0 16px;
	padding: 24px;
	text-align: center;
	color: #6c757d;
	background: #f7f7f7;
	border: 1px dashed #d1d1d1;
	border-radius: 6px;
}

@media (max-width: 781px) {
	.case-block {
		padding: 40px 16px;
	}

	.case-block__list {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 12px;
		padding: 4px 16px 16px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-left: 16px;
		-webkit-overflow-scrolling: touch;
	}

	.case-block__item {
		flex: 0 0 78%;
		max-width: 320px;
		scroll-snap-align: start;
	}

	.case-block__card {
		aspect-ratio: 3 / 4;
		padding: 20px;
	}

	.case-block__card--quote {
		padding: 28px 24px;
	}

	.case-block__featured {
		top: 16px;
		left: 16px;
	}

	.case-block__btn {
		right: 16px;
		bottom: 16px;
	}
}
