.work-gallery .gallery-hero {
	display: flex;
	align-items: center;
	min-height: clamp(310px, 37.5vw, 550px);
	isolation: isolate;
}

.gallery-hero picture,
.gallery-hero img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.gallery-hero-copy {
	position: relative;
	z-index: 51;
	padding-block: 2rem;
}

.work-gallery .gallery-intro {
	margin: 0;
}

.gallery-section,
.gallery-project + .gallery-project {
	margin-top: clamp(3rem, 6vw, 5rem);
}

.gallery-section > h2 {
	margin-bottom: 1.75rem;
}

.gallery-project img {
	display: block;
	width: 100%;
	height: auto;
}

.gallery-project figure,
.gallery-project .carousel {
	margin: 0;
}

.gallery-project figcaption {
	margin-top: .5rem;
	font-size: .9rem;
}

.gallery-project .carousel-control-prev,
.gallery-project .carousel-control-next {
	padding: 0;
	background: transparent;
	border: 0;
	opacity: 1;
}

.gallery-project .carousel-control-prev-icon,
.gallery-project .carousel-control-next-icon {
	width: 42px;
	height: 42px;
	background-color: rgba(0, 0, 0, .55);
	background-size: 45%;
	border-radius: 50%;
}

.gallery-project .carousel-indicators {
	gap: 3px;
	margin-bottom: .5rem;
}

.gallery-project .carousel-indicators button {
	flex: 0 1 28px;
	height: 26px;
	border: 0;
	border-radius: 0;
	padding: 0 2px;
	background: transparent;
}

.gallery-project .carousel-indicators button::after {
	content: "";
	display: block;
	height: 4px;
	background: #fff;
	opacity: .65;
	box-shadow: 0 0 2px 1px #333;
}

.gallery-project .carousel-indicators .active::after {
	height: 6px;
	opacity: 1;
}

.gallery-project :focus-visible {
	outline: 3px solid white;
	outline-offset: -4px;
	box-shadow: inset 0 0 0 6px #222;
}

@media (max-width: 767.98px) {
	.work-gallery .gallery-hero {
		min-height: clamp(320px, 90vw, 480px);
		align-items: flex-end;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gallery-project .carousel-item {
		transition: none;
	}
}

.gallery-project .carousel-inner {
	aspect-ratio: 3 / 2;
}

@media (scripting: none) {
	.gallery-project .carousel-indicators,
	.gallery-project [data-slide] {
		display: none;
	}
}
