.id-shared-photos {
	position: relative;
	display: block;
	width: 100%;
	touch-action: pan-y;
}

.id-shared-photos__slide {
	transition: opacity 0.45s ease;
}

.id-shared-photos__slide:not(.is-current) {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
}

.id-instructor .wp-block-media-text__media .id-shared-photos__slide.is-current {
	height: auto;
}

/* About uses one square frame. Every slide fills it, so a different
   photo shape cannot change the section height. */
.id-about-photo .id-shared-photos {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 14px;
}

.id-about-photo .id-shared-photos__slide,
.id-about-photo .id-shared-photos__slide.is-current {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 14px;
}

/* The tuition-car frame matches the current photograph, so a different
   photo shape cannot change the section height. */
.id-tuition .id-shared-photos {
	aspect-ratio: 1370 / 1148;
	overflow: hidden;
	border-radius: 10px;
}

.id-tuition .id-shared-photos__slide,
.id-tuition .id-shared-photos__slide.is-current {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
}

.id-shared-photos__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
	cursor: pointer;
	transform: translateY(-50%);
}

.id-shared-photos__nav--prev {
	left: 10px;
}

.id-shared-photos__nav--next {
	right: 10px;
}

.id-shared-photos__nav:hover,
.id-shared-photos__nav:focus-visible {
	background: #fff;
}

.id-shared-photos__nav:focus-visible {
	outline: 2px solid #111;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.id-shared-photos__slide {
		transition: none;
	}
}
