.patients-story-grid-videos {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(5rem, 6vw, 7rem) 0;
}

.patients-story-grid-videos__container {
	position: relative;
	z-index: 1;
}

.patients-story-grid-videos__title {
	margin: 0 auto 2.75rem;
	max-width: 52rem;
	text-align: center;
}

.patients-story-grid-videos__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.75rem, 3vw, 2.5rem);
}

.patients-story-grid-videos__item {
	min-width: 0;
}

.patients-story-grid-videos__video {
	position: relative;
	aspect-ratio: 16 / 10;
	width: 100%;
	overflow: hidden;
	background: var(--color-section-dark-blue);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
}

.patients-story-grid-videos__video picture {
	display: block;
	width: 100%;
	height: 100%;
}

.patients-story-grid-videos__video picture img,
.patients-story-grid-videos__poster {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.patients-story-grid-videos__poster--empty {
	background: linear-gradient(135deg, #2c383d 0%, var(--color-slate) 100%);
}

.patients-story-grid-videos__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4.25rem;
	height: 4.25rem;
	padding: 0;
	border: 2px solid var(--color-white);
	border-radius: 50%;
	background: transparent;
	color: var(--color-white);
	cursor: pointer;
	transform: translate(-50%, -50%);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.patients-story-grid-videos__play:hover,
.patients-story-grid-videos__play:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	transform: translate(-50%, -50%) scale(1.04);
}

.patients-story-grid-videos__play-icon {
	display: block;
	width: 0;
	height: 0;
	margin-left: 0.2rem;
	border-top: 0.55rem solid transparent;
	border-bottom: 0.55rem solid transparent;
	border-left: 0.9rem solid currentColor;
}

.patients-story-grid-videos__caption,
.patients-story-grid-videos__caption:link,
.patients-story-grid-videos__caption:visited,
.patients-story-grid-videos__caption:active {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	width: 100%;
	max-width: 100%;
	margin: 1rem 0 0;
	color: var(--color-yellow);
	font-size: 0.95rem;
	font-weight: var(--font-weight-semibold);
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	transition: color 0.35s ease;
}

.patients-story-grid-videos__caption > span:first-of-type {
	position: relative;
	display: inline-block;
	transition: color 0.35s ease;
}

.patients-story-grid-videos__caption > span:first-of-type::after {
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 0;
	height: 1px;
	background-color: var(--color-primary);
	content: "";
	transition: width 0.35s ease;
	pointer-events: none;
}

.patients-story-grid-videos__caption:hover > span:first-of-type::after,
.patients-story-grid-videos__caption:focus-visible > span:first-of-type::after {
	width: 100%;
}

.patients-story-grid-videos__caption-icon-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 0.75rem;
	height: 0.75rem;
	overflow: hidden;
	flex: 0 0 0.75rem;
}

.patients-story-grid-videos__caption-icon {
	position: absolute;
	inset: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	line-height: 1;
	transition: transform 0.28s ease, opacity 0.28s ease;
}

.patients-story-grid-videos__caption-icon--current {
	transform: rotate(-45deg);
}

.patients-story-grid-videos__caption-icon--next {
	opacity: 0;
	transform: translate(-120%, 120%) rotate(-45deg);
}

.patients-story-grid-videos__caption:hover .patients-story-grid-videos__caption-icon--current,
.patients-story-grid-videos__caption:focus-visible .patients-story-grid-videos__caption-icon--current {
	opacity: 0;
	transform: translate(120%, -120%) rotate(-45deg);
}

.patients-story-grid-videos__caption:hover .patients-story-grid-videos__caption-icon--next,
.patients-story-grid-videos__caption:focus-visible .patients-story-grid-videos__caption-icon--next {
	opacity: 1;
	transform: translate(0, 0) rotate(-45deg);
}

.patients-story-grid-videos__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-top: clamp(2rem, 4vw, 3rem);
}

html.text-and-video-lightbox-open,
body.text-and-video-lightbox-open {
	overflow: hidden;
}

.text-and-video-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: rgba(15, 20, 22, 0.88);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.24s ease, visibility 0.24s ease;
}

.text-and-video-lightbox.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.text-and-video-lightbox__dialog {
	position: relative;
	width: min(1120px, 100%);
}

.text-and-video-lightbox__frame-wrap {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	overflow: hidden;
	background: #000;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.text-and-video-lightbox__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.text-and-video-lightbox__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--color-white);
	cursor: pointer;
}

.text-and-video-lightbox__close span {
	position: absolute;
	width: 1.35rem;
	height: 2px;
	background: currentColor;
}

.text-and-video-lightbox__close span:first-child {
	transform: rotate(45deg);
}

.text-and-video-lightbox__close span:last-child {
	transform: rotate(-45deg);
}

.text-and-video-lightbox__close:hover,
.text-and-video-lightbox__close:focus-visible {
	opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
	.patients-story-grid-videos__caption > span:first-of-type,
	.patients-story-grid-videos__caption > span:first-of-type::after,
	.patients-story-grid-videos__caption-icon {
		transition: none;
	}
}

@media (max-width: 767px) {
	.patients-story-grid-videos {
		padding: 2.5rem 0 3rem;
	}

	.patients-story-grid-videos__title {
		margin-bottom: 2rem;
	}

	.patients-story-grid-videos__grid {
		grid-template-columns: 1fr;
	}

	.patients-story-grid-videos__caption,
	.patients-story-grid-videos__caption:link,
	.patients-story-grid-videos__caption:visited,
	.patients-story-grid-videos__caption:active {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		text-align: left;
	}

	.patients-story-grid-videos__caption > span:first-of-type {
		flex: 1;
		min-width: 0;
		text-align: left;
	}

	.patients-story-grid-videos__caption-icon-wrap {
		flex-shrink: 0;
		margin-top: 0.2rem;
	}

	.text-and-video-lightbox {
		padding: 3.5rem 0.75rem 0.75rem;
	}

	.text-and-video-lightbox__close {
		top: 0.65rem;
		right: 0.65rem;
	}
}
