.wolff-reference,
.wolff-reference * {
	box-sizing: border-box;
}

body.single-wolff_reference {
	background-color: #232323;
}

.wolff-reference {
	--bb-accent: #232323;
	--bb-on-accent: #fff;
	--bb-case-inline: clamp(24px, 5.5vw, 80px);
	--bb-case-block: clamp(48px, 8vw, 120px);
	--bb-case-gap: clamp(24px, 3vw, 40px);
	--bb-case-media-gap: clamp(32px, 6vw, 80px);
	--bb-case-media-gutter: clamp(12px, 2vw, 25px);
	--bb-case-content: 1500px;
	background-color: #232323;
	color: #fff;
	margin: 0;
	max-width: none;
	overflow: clip;
	padding: 0;
	width: 100%;
}

.wolff-reference:has(.bb-case-closing) {
	background-color: #232323;
}

body:not(.elementor-template-full-width) .wolff-reference {
	margin: 0 0 0 calc(50% - 50vw);
	width: 100vw;
}

.wolff-reference__article {
	margin: 0;
	max-width: none;
	padding: 0;
	width: 100%;
}

.bb-case-hero {
	align-items: center;
	background-color: #232323;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100svh;
	padding: clamp(120px, 16vh, 180px) var(--bb-case-inline);
	position: relative;
	text-align: center;
}

.bb-case-hero__media {
	inset: 0;
	overflow: hidden;
	position: absolute;
}

.bb-case-hero__media .bb-case-media__asset {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.bb-case-hero--has-media::after {
	background: rgb(0 0 0 / 28%);
	content: "";
	inset: 0;
	position: absolute;
}

.bb-case-hero__heading {
	color: inherit;
	font-weight: 700;
	letter-spacing: -0.03em;
	margin: 0 auto;
	max-width: 18ch;
	position: relative;
	text-align: center;
	white-space: pre-line;
	z-index: 1;
}

.bb-case-hero--has-media .bb-case-hero__heading {
	color: #fff;
}

.bb-case-intro {
	background-color: #232323;
	color: #fff;
	padding: var(--bb-case-block) var(--bb-case-inline);
	text-align: center;
}

.bb-case-closing {
	background-color: #232323;
	color: #fff;
}

.bb-case-quote {
	background-color: #fff;
	color: #232323;
	padding: var(--bb-case-block) var(--bb-case-inline);
	text-align: center;
}

.bb-case-more {
	background-color: #232323;
	color: #fff;
	padding: var(--bb-case-block) var(--bb-case-inline);
	text-align: left;
}

.bb-case-quote__label,
.bb-case-more__title {
	font-weight: 700;
	letter-spacing: -0.03em;
	margin: 0;
	white-space: pre-line;
}

.bb-case-intro__text,
.bb-case-quote__text,
.bb-case-quote__author {
	margin: var(--bb-case-gap) auto 0;
	max-width: 50rem;
	text-align: center;
}

.bb-case-quote__mark {
	font-size: clamp(5.5rem, 3rem + 3vw, 7rem);
	line-height: 0.65;
	margin-bottom: var(--bb-case-gap);
}

.bb-case-quote__mark + .bb-case-quote__text {
	margin-top: 0.2em;
}

.bb-case-intro__text {
	max-width: 60rem;
}

.bb-case-quote__author {
	white-space: pre-line;
}

.bb-case-intro__text > :first-child,
.bb-case-quote__text > :first-child {
	margin-top: 0;
}

.bb-case-intro__text > :last-child,
.bb-case-quote__text > :last-child {
	margin-bottom: 0;
}

.bb-case-media {
	background-color: #232323;
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: var(--bb-case-media-gap);
	padding: 0 var(--bb-case-inline) var(--bb-case-media-gap);
	width: 100%;
}

.bb-case-media__item {
	margin-left: max(0px, calc((100% - var(--bb-case-content)) / 2));
	margin-right: auto;
	max-width: min(100%, var(--bb-case-content));
	padding: 0;
	width: 100%;
}

.bb-case-media__frame {
	--bb-media-scale: 100;
	align-items: center;
	display: flex;
	justify-content: center;
	margin-inline: auto;
	max-width: 100%;
	overflow: hidden;
	width: 100%;
}

.bb-case-media__item--slider {
	margin-left: max(0px, calc((100% - var(--bb-case-content)) / 2));
	margin-right: auto;
	max-width: min(calc(var(--bb-case-content) + 400px), 100%);
	width: calc(100% - max(0px, calc((100% - var(--bb-case-content)) / 2)));
}

.bb-case-slider__nav {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-bottom: var(--bb-case-gap);
	max-width: var(--bb-case-content);
	width: 100%;
}

.bb-case-slider .bb-case-more__arrow {
	color: #fff !important;
	flex: 0 0 56px;
	height: 56px !important;
	width: 56px !important;
}

.bb-case-slider__track {
	cursor: grab;
	display: flex;
	gap: 24px;
	overflow-x: auto;
	padding-right: 80px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	touch-action: pan-y;
	user-select: none;
}

.bb-case-slider__track.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
}

.bb-case-slider__track img {
	-webkit-user-drag: none;
	pointer-events: none;
}

.bb-case-slider__track::-webkit-scrollbar {
	display: none;
}

.bb-case-slider__slide {
	flex: 0 0 calc((100% - 24px) / 2.25);
	min-width: 0;
	scroll-snap-align: start;
}

.bb-case-slider--feed .bb-case-slider__slide {
	flex: 0 0 calc((min(var(--bb-case-content), 100%) - 48px) / 3.2);
}

.bb-case-slider__frame {
	overflow: hidden;
	position: relative;
	width: 100%;
}

.bb-case-slider--wide .bb-case-slider__frame {
	aspect-ratio: 4 / 3;
}

.bb-case-slider--feed .bb-case-slider__frame {
	aspect-ratio: 4 / 5;
}

.bb-case-slider--feed .bb-case-slider__frame .bb-case-media__asset {
	object-fit: contain;
}

.bb-case-slider__frame .bb-case-media__asset {
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
}

@media (max-width: 767px) {
	.bb-case-slider__slide,
	.bb-case-slider--feed .bb-case-slider__slide {
		flex-basis: 78%;
	}
}

.bb-case-media__item--single:not(.bb-case-media__item--text) .bb-case-media__frame {
	aspect-ratio: 16 / 9;
}

.bb-case-media__item--pair,
.bb-case-media__item--grid {
	display: grid;
	gap: var(--bb-case-media-gutter);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bb-case-media__item--pair .bb-case-media__frame {
	aspect-ratio: 3 / 4;
	margin-inline: 0;
}

.bb-case-media__item--grid {
	grid-template-rows: repeat(2, minmax(0, 1fr));
	height: calc(100svh - (2 * var(--bb-case-media-gap)));
	max-height: calc(100svh - (2 * var(--bb-case-media-gap)));
}

.bb-case-media__item--grid .bb-case-media__frame {
	aspect-ratio: auto;
	height: 100%;
	margin-inline: 0;
	min-height: 0;
}

.bb-case-media__item--grid-poster {
	display: grid;
	gap: var(--bb-case-media-gutter);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bb-case-media__item--grid-poster .bb-case-media__frame {
	height: auto;
	margin-inline: 0;
}

.bb-case-media__item--grid-poster .bb-case-media__frame:nth-child(-n + 2) {
	aspect-ratio: 3 / 4;
}

.bb-case-media__item--grid-poster .bb-case-media__frame:nth-child(n + 3) {
	aspect-ratio: 1 / 1;
}

.bb-case-media__item--text .bb-case-media__frame {
	align-items: center;
	display: flex;
	justify-content: center;
	text-align: center;
}

.bb-case-media__text {
	margin: 0 auto;
	text-align: center;
}

.bb-case-media__text > :first-child {
	margin-top: 0;
}

.bb-case-media__text > :last-child {
	margin-bottom: 0;
}

.bb-case-media__text a {
	color: inherit;
	text-decoration: underline;
}

.bb-case-media__text ul,
.bb-case-media__text ol {
	display: inline-block;
	margin-inline: auto;
	padding-inline-start: 1.2em;
	text-align: left;
}

.bb-case-media__asset {
	display: block;
	height: 100%;
	object-fit: cover;
	object-position: center;
	width: 100%;
}

.bb-case-media__item--single:not(.bb-case-media__item--text) .bb-case-media__asset,
.bb-case-media__item--pair .bb-case-media__asset,
.bb-case-media__item--grid .bb-case-media__asset,
.bb-case-media__item--grid-poster .bb-case-media__asset {
	flex: 0 0 auto;
	height: calc(var(--bb-media-scale) * 1%);
	width: calc(var(--bb-media-scale) * 1%);
}

.bb-case-media__asset--contain {
	object-fit: contain;
}

.bb-case-media__asset--fill {
	object-fit: fill;
}

.bb-case-media__asset--top {
	object-position: center top;
}

.bb-case-media__asset--bottom {
	object-position: center bottom;
}

.bb-case-media__asset--left {
	object-position: left center;
}

.bb-case-media__asset--right {
	object-position: right center;
}

.bb-case-media__asset--top-left {
	object-position: left top;
}

.bb-case-media__asset--top-right {
	object-position: right top;
}

.bb-case-media__asset--bottom-left {
	object-position: left bottom;
}

.bb-case-media__asset--bottom-right {
	object-position: right bottom;
}

.bb-case-more__head {
	align-items: center;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	margin-bottom: var(--bb-case-gap);
	margin-left: max(0px, calc((100% - var(--bb-case-content)) / 2));
	margin-right: auto;
	max-width: var(--bb-case-content);
	width: 100%;
}

.wolff-reference .bb-case-more__title {
	color: #fff;
}

.bb-case-more__nav {
	display: flex;
	flex-shrink: 0;
	gap: 16px;
}

.wolff-reference .bb-case-more button.bb-case-more__arrow {
	color: #fff !important;
}

button.bb-case-more__arrow {
	align-items: center;
	appearance: none;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #333 !important;
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 clamp(40px, 10vw, 120px);
	height: clamp(40px, 10vw, 120px) !important;
	justify-content: center;
	line-height: 0;
	min-height: 0 !important;
	min-width: 0 !important;
	padding: 0 !important;
	width: clamp(40px, 10vw, 120px) !important;
}

.bb-case-more__arrow svg {
	display: block;
	height: 100%;
	width: 100%;
}

.bb-case-more__arrow:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.bb-case-more__track {
	display: flex;
	gap: 24px;
	margin-left: max(0px, calc((100% - var(--bb-case-content)) / 2));
	overflow-x: auto;
	padding-bottom: 8px;
	padding-right: 80px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	width: calc(100% - max(0px, calc((100% - var(--bb-case-content)) / 2)));
}

.bb-case-more__track::-webkit-scrollbar {
	display: none;
}

.bb-case-more__card {
	color: inherit;
	display: flex;
	flex: 0 0 calc((min(var(--bb-case-content), 100%) - 24px) / 2.25);
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	scroll-snap-align: start;
	text-decoration: none;
}

.bb-case-more__media {
	aspect-ratio: 16 / 10;
	display: block;
	flex-shrink: 0;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.bb-case-more__image {
	display: block;
	height: 100% !important;
	inset: 0;
	max-height: none;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	position: absolute;
	width: 100% !important;
}

.bb-case-more__caption {
	display: flex;
	flex-direction: column;
	text-align: left;
}

.bb-case-more__client {
	color: #121212;
	font-size: 32px;
	font-weight: 900;
	line-height: 1.2;
}

.bb-case-more__project {
	color: #232323;
	font-size: 32px;
	font-weight: 400;
	line-height: 1.2;
}

.wolff-reference .bb-case-more__client,
.wolff-reference .bb-case-more__project {
	color: #fff;
}

@supports not (overflow: clip) {
	.wolff-reference {
		overflow-x: hidden;
	}
}

@media (max-width: 767px) {
	.bb-case-more__card {
		flex-basis: 86%;
	}

	.bb-case-more__nav {
		gap: 8px;
	}

	button.bb-case-more__arrow {
		flex-basis: clamp(40px, 12vw, 56px);
		height: clamp(40px, 12vw, 56px) !important;
		width: clamp(40px, 12vw, 56px) !important;
	}
}

.bb-projects__fallback-nav {
	display: flex;
	gap: 16px;
	justify-content: flex-end;
	margin-bottom: var(--bb-case-gap, 24px);
	margin-right: 32px;
}

.bb-projects__fallback-nav[hidden] {
	display: none !important;
}

.bb-projects {
	color: #232323;
	margin-right: -100px;
	width: 100%;
}

.bb-projects__track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	padding-right: 280px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.bb-projects__track::-webkit-scrollbar {
	display: none;
}

.bb-projects__card {
	color: inherit;
	display: flex;
	flex: 0 0 calc((100% - 24px) / 2);
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	scroll-snap-align: start;
	text-decoration: none;
}

.bb-projects__media {
	aspect-ratio: 598 / 443;
	display: block;
	flex-shrink: 0;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.bb-projects__image {
	display: block;
	height: 100% !important;
	inset: 0;
	max-height: none;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	position: absolute;
	width: 100% !important;
}

@media (max-width: 767px) {
	.bb-carousel-nav {
		display: none !important;
	}

	.bb-projects {
		margin-right: 0;
	}

	.bb-projects__fallback-nav {
		gap: 8px;
	}

	.bb-projects__track {
		padding-bottom: 8px;
		padding-right: 80px;
	}

	.bb-projects__card {
		flex-basis: 86%;
	}

	.bb-projects__media {
		aspect-ratio: 16 / 10;
	}
}

@media (max-height: 640px) {
	.bb-case-media__item--grid {
		height: auto;
		max-height: none;
	}

	.bb-case-media__item--grid .bb-case-media__frame {
		aspect-ratio: 16 / 10;
		height: auto;
	}
}
