.project-single {
	--project-slide-width: min(39vw, 46rem);
	--project-single-rhythm: 1.25rem;
	background: var(--sz-chalk);
	color: var(--sz-graphite);
	overflow: hidden;
	position: relative;
}

.project-single::before,
.project-single::after {
	background: var(--sz-stone);
	bottom: 0;
	content: "";
	height: var(--chamfer-full-desktop);
	pointer-events: none;
	position: absolute;
	width: var(--chamfer-full-desktop);
	z-index: 5;
}

.project-single::before {
	clip-path: polygon(0 0, 0 100%, 100% 100%);
	left: 0;
}

.project-single::after {
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
	right: 0;
}

.project-single__layout {
	display: grid;
	gap: clamp(3rem, 6vw, 7rem);
	grid-template-columns: minmax(22rem, 38%) minmax(0, 62%);
	padding: clamp(3rem, 6vw, 6rem) 0 calc(3rem + var(--chamfer-full-desktop)) var(--layout-margin-desktop);
}

.project-single__content {
	max-width: 34rem;
	min-width: 0;
}

.project-single__back {
	margin-bottom: 3.5rem;
}

.project-single__back::after {
	order: -1;
	transform: rotate(225deg);
}

.project-single__title {
	font-family: var(--font-heading);
	font-size: var(--type-heading-m-size);
	font-weight: 500;
	letter-spacing: .02em;
	line-height: var(--type-heading-m-line);
	margin: 0 0 3rem;
	text-transform: uppercase;
}

.project-single__categories {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 1.25rem;
}

.project-single__category {
	background: #f0eee7;
	font-family: var(--font-body);
	font-size: var(--type-tag-size);
	font-weight: var(--type-tag-weight);
	line-height: var(--type-tag-line);
	padding: var(--tag-padding-block) var(--tag-padding-inline);
	text-transform: uppercase;
}

.project-single__brief {
	border-bottom: var(--stroke-width) solid var(--sz-grid-line);
}

.project-single__brief summary,
.project-single__solution summary,
.project-single__brief h2,
.project-single__solution h2 {
	font-family: var(--font-heading);
	font-size: var(--type-heading-s-size);
	font-weight: 500;
	letter-spacing: .02em;
	line-height: var(--type-heading-s-line);
	text-transform: uppercase;
}


.project-single__brief summary,
.project-single__solution summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding: var(--project-single-rhythm) 2rem var(--project-single-rhythm) 0;
}

.project-single__brief summary::-webkit-details-marker,
.project-single__solution summary::-webkit-details-marker {
	display: none;
}

.project-single__brief summary::before,
.project-single__solution summary::before,
.project-single__brief summary::after,
.project-single__solution summary::after {
	background: currentColor;
	border: 0;
	content: "";
	height: var(--stroke-width);
	position: absolute;
	right: .25rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1rem;
}

.project-single__brief:not([open]) summary::before,
.project-single__solution:not([open]) summary::before {
	transform: translateY(-50%) rotate(90deg);
}

.project-single__brief summary:hover::before,
.project-single__solution summary:hover::before,
.project-single__brief summary:focus-visible::before,
.project-single__solution summary:focus-visible::before,
.project-single__brief[open] summary::before,
.project-single__solution[open] summary::before {
	color: var(--sz-timber);
}

.project-single__brief[open] summary::after,
.project-single__solution[open] summary::after {
	top: 50%;
	transform: translateY(-50%);
}

.project-single__brief summary:hover::after,
.project-single__solution summary:hover::after,
.project-single__brief summary:focus-visible::after,
.project-single__solution summary:focus-visible::after,
.project-single__brief[open] summary::after,
.project-single__solution[open] summary::after {
	color: var(--sz-timber);
}

.project-single__brief h2,
.project-single__solution h2 {
	margin: 0;
}

.project-single__brief summary:hover h2,
.project-single__solution summary:hover h2,
.project-single__brief summary:focus-visible h2,
.project-single__solution summary:focus-visible h2,
.project-single__brief[open] summary h2,
.project-single__solution[open] summary h2 {
	color: var(--sz-timber);
}

.project-single__brief .project-single__richtext {
	padding-bottom: var(--project-single-rhythm);
}

.project-single__solution .project-single__richtext {
	padding-bottom: var(--project-single-rhythm);
}

.project-single__richtext {
	font-family: var(--font-body);
	font-size: var(--type-body-r-size);
	font-weight: var(--type-body-r-weight);
	line-height: var(--type-body-r-line);
}

.project-single__richtext > :first-child { margin-top: 0; }
.project-single__richtext > :last-child { margin-bottom: 0; }
.project-single__cta-wrap { margin-top: 2rem; }

.project-single__gallery {
	min-width: 0;
	overflow: visible;
	padding-top: clamp(4rem, 10vh, 9rem);
}

.project-single__swiper {
	overflow: visible;
	width: 100%;
}

.project-single__slide {
	height: clamp(31rem, 64vh, 48rem);
	width: var(--project-slide-width);
}

.project-single__image {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

/* Controls span exactly the first slide width, putting the arrows on its right edge. */
.project-single__gallery-controls {
	align-items: center;
	display: flex;
	justify-content: space-between;
	padding-top: 1.5rem;
	width: var(--project-slide-width);
}

/* Match testimonial-carousel dots exactly. */
.project-single__pagination {
	display: flex;
	flex-wrap: wrap;
	gap: var(--carousel-dot-gap, .75rem);
	/* Leave room for the active marker's rotated corners at every viewport. */
	padding-left: .5rem;
	width: auto !important;
}

.project-single__pagination .swiper-pagination-bullet {
	background: var(--sz-graphite);
	border: 0;
	border-radius: 0;
	box-sizing: border-box;
	height: .7rem;
	margin: 0 !important;
	opacity: 1;
	width: .7rem;
}

.project-single__pagination .swiper-pagination-bullet-active {
	transform: rotate(45deg);
}

.project-single__pagination .swiper-pagination-bullet:focus-visible {
	outline: var(--focus-ring);
	outline-offset: .3rem;
}

.project-single__arrows {
	display: flex;
}

/* Arrow geometry/interaction mirrors testimonial-carousel. */
.project-single__prev,
.project-single__next {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--sz-graphite);
	display: flex;
	height: 2.5rem;
	justify-content: center;
	padding: 0;
	width: 2.5rem;
}

.project-single__arrow-icon {
	border-right: var(--stroke-width) solid currentColor;
	border-top: var(--stroke-width) solid currentColor;
	display: block;
	height: .9rem;
	width: .9rem;
}

.project-single__prev .project-single__arrow-icon { transform: rotate(-135deg); }
.project-single__next .project-single__arrow-icon { transform: rotate(45deg); }

.project-single__prev:hover,
.project-single__prev:focus-visible,
.project-single__next:hover,
.project-single__next:focus-visible {
	background: transparent;
	color: var(--sz-timber);
}

.project-single__prev:focus-visible,
.project-single__next:focus-visible {
	outline: var(--focus-ring);
	outline-offset: .3rem;
}

.project-single__prev.swiper-button-disabled,
.project-single__next.swiper-button-disabled {
	opacity: .35;
}

@media (min-width: 48.0625rem) {
	.project-single__title {
		font-size: var(--type-heading-l-size);
		line-height: var(--type-heading-l-line);
	}
}


@media (max-width: 64rem) {
	.project-single {
		--project-slide-width: min(48vw, 40rem);
	}

	.project-single::before,
	.project-single::after {
		height: var(--chamfer-full-tablet);
		width: var(--chamfer-full-tablet);
	}

	.project-single__layout {
		display: flex;
		flex-direction: column;
		gap: 3rem;
		padding: 3.75rem var(--layout-margin-tablet) calc(3rem + var(--chamfer-full-tablet));
	}

	.project-single__content {
		max-width: none;
	}

	.project-single__gallery {
		margin-inline: 0;
		overflow: hidden;
		padding-top: 0;
		width: 100%;
	}

	.project-single__swiper {
		overflow: hidden;
	}

	.project-single__slide {
		height: auto;
		width: 100%;
	}

	.project-single__image {
		aspect-ratio: 4 / 3;
		height: auto;
		object-fit: cover;
	}

	.project-single__gallery-controls {
		padding: 1.25rem 0 0;
		width: 100%;
	}

	.project-single__title {
		margin-bottom: 1rem;
	}

	.project-single__cta-wrap {
		display: flex;
		justify-content: flex-start;
	}
}

@media (max-width: 48rem) {
	.project-single {
		--project-slide-width: 100%;
	}

	.project-single::before,
	.project-single::after {
		height: var(--chamfer-full-mobile);
		width: var(--chamfer-full-mobile);
	}

	.project-single__layout {
		display: flex;
		flex-direction: column;
		gap: 2.5rem;
		padding: 2.5rem var(--layout-margin-mobile) calc(3rem + var(--chamfer-full-mobile));
	}

}

/* Clip anything travelling to the left of the gallery while preserving the
   intentional next-slide reveal all the way to the viewport's right edge. */
@media (min-width: 48rem) {
	.project-single__gallery {
		clip-path: inset(-100vw -100vw -100vw 0);
	}
}
