.has-project-gallery {
	display: flex;
	flex-direction: column;
}

.has-project-detail {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.project-detail-link {
	align-self: flex-start;
	margin-top: auto;
	padding-top: 1rem;
	color: #1d4ed8;
	font-size: .875rem;
	font-weight: 600;
	text-decoration: underline;
}

.project-gallery-stage {
	position: relative;
	order: -2;
	width: min(350px, 100%);
	margin: 1.5rem auto 0;
	touch-action: pan-y;
}

.project-gallery-stage.is-open {
	background: #111827;
	border-radius: .5rem;
}

.project-gallery-stage.is-open img {
	object-fit: contain;
	object-position: center;
}

.project-gallery-trigger {
	display: block;
	order: -1;
	margin: .5rem auto 0;
	color: #1d4ed8;
	font-size: .875rem;
	font-weight: 600;
	cursor: pointer;
}

.project-gallery-trigger:focus-visible,
.project-gallery-arrow:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 3px;
}

.project-gallery-arrow {
	position: absolute;
	top: 50%;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	transform: translateY(-50%);
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #111827;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.project-gallery-previous { left: .5rem; }
.project-gallery-next { right: .5rem; }

.project-gallery-counter {
	position: absolute;
	bottom: .5rem;
	left: 50%;
	transform: translateX(-50%);
	padding: .25rem .6rem;
	border-radius: 999px;
	background: rgba(15, 23, 42, .8);
	color: white;
	font-size: .75rem;
	white-space: nowrap;
}

.project-gallery-arrow[hidden],
.project-gallery-counter[hidden] {
	display: none;
}
