.customer-stories-page {
	--customer-stories-ink: #384758;
	--customer-stories-navy: #133156;
	background: #fff;
	color: var(--customer-stories-ink);
}

.customer-stories-container {
	width: min(100% - 40px, 1000px);
	margin-inline: auto;
}

.customer-stories-hero {
	display: flex;
	align-items: center;
	min-height: 170px;
	padding: 38px 0 55px;
	background-color: var(--customer-stories-navy);
	background-image: var(--sbi-customer-stories-hero-image), radial-gradient(circle at 42% 35%, #168bce 0%, #285e91 42%, #133156 100%);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}

.customer-stories-hero h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(1.8rem, 2.6vw, 2.1rem);
	font-weight: 700;
	line-height: 1.15;
	text-shadow: 0 2px 5px rgba(0, 20, 38, 0.45);
}

.customer-stories-intro {
	padding: 66px 0 54px;
}

.customer-stories-prose {
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	line-height: 1.75;
}

.customer-stories-prose > :first-child {
	margin-top: 0;
}

.customer-stories-prose > :last-child {
	margin-bottom: 0;
}

.customer-stories-list {
	width: 100%;
	padding: 0 clamp(16px, 2.4vw, 36px) 64px;
}

.customer-stories-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 2vw, 30px);
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
}

.customer-story-card {
	min-width: 0;
	margin: 0;
	background: #fff;
}

.customer-story-card__video {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 6px;
	background: #061a2c;
	isolation: isolate;
}

.customer-story-card__poster {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.customer-story-card__poster {
	z-index: 1;
	overflow: hidden;
	background: #061a2c;
}

.customer-story-card__poster::after {
	position: absolute;
	inset: 0;
	background: rgba(0, 24, 43, 0.08);
	content: "";
	transition: background-color 180ms ease;
}

.customer-story-card__poster:hover::after,
.customer-story-card__poster:focus-visible::after {
	background: rgba(0, 24, 43, 0.25);
}

.customer-story-card__poster:focus-visible {
	z-index: 2;
	outline: 4px solid #ffca28;
	outline-offset: -4px;
}

.customer-story-card__poster-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 240ms ease;
}

.customer-story-card__poster:hover .customer-story-card__poster-image {
	transform: scale(1.015);
}

.customer-story-card__play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: 58px;
	height: 58px;
	border: 4px solid #fff;
	border-radius: 50%;
	background: rgba(0, 47, 82, 0.35);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
	transform: translate(-50%, -50%);
}

.customer-story-card__play-icon::after {
	position: absolute;
	top: 50%;
	left: 54%;
	width: 0;
	height: 0;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	border-left: 16px solid #fff;
	content: "";
	transform: translate(-50%, -50%);
}

.customer-story-card__caption {
	min-height: 4.75rem;
	margin: 0;
	padding: 15px 22px 24px;
	color: var(--customer-stories-ink);
	font-size: 1rem;
	line-height: 1.45;
	text-align: center;
}

.customer-story-lightbox[hidden] {
	display: none;
}

.customer-story-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 60px 20px 28px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 180ms ease-out, visibility 0s linear 180ms;
}

.customer-story-lightbox.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

.customer-story-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 14, 27, 0.9);
	cursor: pointer;
}

.customer-story-lightbox__dialog {
	position: relative;
	z-index: 1;
	width: min(1100px, calc(100vw - 40px), 150vh);
	transform: scale(0.98);
	transition: transform 180ms ease-out;
}

.customer-story-lightbox.is-open .customer-story-lightbox__dialog {
	transform: scale(1);
}

.customer-story-lightbox__player {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 6px;
	background: #061a2c;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.customer-story-lightbox__iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.customer-story-lightbox__close {
	position: absolute;
	top: -48px;
	right: -6px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 2.25rem;
	font-weight: 300;
	line-height: 1;
}

.customer-story-lightbox__close:hover {
	color: #ffca28;
}

.customer-story-lightbox__close:focus-visible {
	border-radius: 50%;
	outline: 3px solid #ffca28;
	outline-offset: 1px;
}

.customer-stories-empty {
	padding: 60px 0;
	text-align: center;
}

@media (max-width: 980px) {
	.customer-stories-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.customer-stories-container {
		width: min(100% - 32px, 1000px);
	}

	.customer-stories-hero {
		min-height: 145px;
		padding: 32px 0 44px;
	}

	.customer-stories-intro {
		padding: 42px 0 38px;
	}

	.customer-stories-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.customer-story-card__caption {
		min-height: 0;
		padding-bottom: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.customer-story-card__poster::after,
	.customer-story-card__poster-image,
	.customer-story-lightbox,
	.customer-story-lightbox__dialog {
		transition: none;
	}
}
