.doctor-patient-photos {
	background: var(--color-porcelain);
	overflow: hidden;
}

.doctor-patient-photos__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}

.doctor-patient-photos__header {
	width: 100%;
}

.doctor-patient-photos__viewport {
	width: calc(100% + (2 * var(--section-padding-x)));
	margin-inline: calc(var(--section-padding-x) * -1);
	overflow: hidden;
}

.doctor-patient-photos__track {
	display: flex;
	align-items: stretch;
	gap: 0.75rem;
	width: max-content;
}

.doctor-patient-photos__viewport[data-photo-carousel-auto] .doctor-patient-photos__track {
	animation: doctor-patient-photos-scroll 100s linear infinite;
}

.doctor-patient-photos__viewport.is-paused .doctor-patient-photos__track,
.doctor-patient-photos__viewport[data-photo-carousel-auto]:hover .doctor-patient-photos__track {
	animation-play-state: paused;
}

.doctor-patient-photos__slide {
	margin: 0;
	flex: 0 0 auto;
	width: 11.5rem;
	overflow: hidden;
	border-radius: 1.15rem;
	background: var(--color-white);
	isolation: isolate;
}

.doctor-patient-photos__trigger {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.doctor-patient-photos__trigger:focus-visible {
	outline: 2px solid var(--color-ocean);
	outline-offset: 0.25rem;
}

.doctor-patient-photos__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 144 / 100;
	object-fit: cover;
	border-radius: 0;
	mix-blend-mode: multiply;
}

.doctor-patient-photos--adjust-image .doctor-patient-photos__slide {
	aspect-ratio: 144 / 100;
}

.doctor-patient-photos--adjust-image .doctor-patient-photos__trigger {
	height: 100%;
}

.doctor-patient-photos--adjust-image .doctor-patient-photos__image {
	height: 100%;
	aspect-ratio: auto;
	object-fit: contain;
}

.doctor-patient-photos__dialog {
	width: 90vw;
	height: 90dvh;
	max-width: 90vw;
	max-height: 90dvh;
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 1rem;
	background: var(--color-white);
	isolation: isolate;
	overflow: hidden;
}

.doctor-patient-photos__dialog[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.doctor-patient-photos__dialog::backdrop {
	background: rgba(0, 0, 0, 0.72);
}

.doctor-patient-photos__dialog-image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.doctor-patient-photos__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 2;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.doctor-patient-photos__close::before,
.doctor-patient-photos__close::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.35rem;
	height: 0.12rem;
	background: var(--color-ocean);
}

.doctor-patient-photos__close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.doctor-patient-photos__close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.doctor-patient-photos__close:focus-visible {
	outline: 2px solid var(--color-ocean);
	outline-offset: 0.25rem;
}

@keyframes doctor-patient-photos-scroll {
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.doctor-patient-photos__viewport[data-photo-carousel-auto] .doctor-patient-photos__track {
		animation: none;
	}
}

@media (min-width: 768px) {
	.doctor-patient-photos__viewport {
		width: 100%;
		margin-inline: 0;
	}

	.doctor-patient-photos__slide {
		width: 14.5rem;
	}
}

@media (min-width: 992px) {
	.doctor-patient-photos__inner {
		gap: 3rem;
	}

	.doctor-patient-photos__track {
		gap: 1rem;
	}

	.doctor-patient-photos__slide {
		width: 25rem;
		border-radius: 1.35rem;
	}

	.doctor-patient-photos--adjust-image .doctor-patient-photos__slide {
		border-radius: 1.35rem;
	}

	.doctor-patient-photos__viewport[data-photo-carousel-auto] .doctor-patient-photos__track {
		animation-duration: 125s;
	}
}
