/* Bored Kiwi project pages and quick-view modal */
#ProductDetailWrap {
	padding-top: 10px;
}

#ProductDetailWrap > .width-limit {
	width: calc(100% - 112px);
	max-width: 1060px;
	padding: 0;
}

.bk-project-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0 38px;
	color: #b34a2a;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
	text-decoration: none;
}

.bk-project-back span {
	font-size: 18px;
	line-height: 1;
}

.bk-project-detail {
	color: #18231b;
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-detail-hero {
	display: grid;
	grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
	gap: 58px;
	align-items: center;
	margin: 0 0 58px;
	padding: 0 0 54px;
	border-bottom: 1px solid rgba(24, 35, 27, 0.26);
	color: #18231b;
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-detail-art {
	display: grid;
	place-items: center;
	aspect-ratio: 1 / 1;
	padding: 28px;
	border: 1px solid rgba(24, 35, 27, 0.42);
	background: #e9e0cf;
	box-shadow: 9px 10px 0 rgba(179, 74, 42, 0.18);
	transform: rotate(-1.5deg);
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-detail-art .title-bi-icon {
	width: 100%;
	height: 100%;
	max-width: 250px;
	max-height: 250px;
	margin: 0;
	object-fit: contain;
	filter:
		drop-shadow(2px 0 0 #fff)
		drop-shadow(-2px 0 0 #fff)
		drop-shadow(0 2px 0 #fff)
		drop-shadow(0 -2px 0 #fff)
		drop-shadow(0 12px 14px rgba(24, 35, 27, 0.24));
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-detail-kicker {
	margin: 0 0 13px;
	color: #b34a2a;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.bk-project-detail-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.bk-project-detail-type,
.bk-project-detail-status {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 4px 9px;
	border: 1px solid rgba(24, 35, 27, 0.35);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
}

.bk-project-detail-type {
	background: #fffaf0;
	color: #18231b;
}

.bk-project-detail-status {
	border-color: #4c8f5e;
	background: #e3f0d7;
	color: #204b2e;
}

.bk-project-detail-status:not(.is-live) {
	border-color: #b34a2a;
	background: #f7dfca;
	color: #85371f;
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-detail-title {
	margin: 0 0 14px;
	color: #18231b;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 52px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 0.98;
	overflow-wrap: anywhere;
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-detail-hero .sub-title {
	max-width: 560px;
	margin: 0;
	color: #495148;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.5;
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-gallery {
	margin: 0 0 62px;
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-gallery .product-detail-slide-wrap {
	aspect-ratio: 16 / 9;
	margin: 0;
	border: 1px solid rgba(24, 35, 27, 0.32);
	background: #eee5d6;
	overflow: hidden;
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-gallery .product-img-slide-item {
	padding: 22px;
	box-sizing: border-box;
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-gallery .product-detail-slide-img {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	object-fit: contain;
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-gallery .product-detail-slider-icon {
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #18231b;
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-gallery .product-detail-slider-icon.right {
	background: #b34a2a;
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-gallery .product-detail-slider-icon:hover {
	filter: brightness(1.15);
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-gallery .product-detail-slider-icon img {
	width: 14px;
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .product-detail-content-wrap {
	max-width: 650px;
	margin: 0 0 0 auto;
	padding: 34px 0 0;
	border-top: 1px solid rgba(24, 35, 27, 0.38);
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .product-content-about-wrap {
	width: 100%;
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .product-content-about-wrap .ck-content {
	color: #313b33;
	font-size: 17px;
	letter-spacing: 0;
	line-height: 1.7;
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .product-content-about-wrap .ck-content :is(h2, h3, h4) {
	margin: 38px 0 14px;
	color: #18231b;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 26px;
	letter-spacing: 0;
	line-height: 1.1;
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .product-content-about-wrap .ck-content :is(a, a:visited) {
	color: #b34a2a;
	font-weight: 800;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .product-content-about-wrap .ck-content :is(img, video, iframe) {
	max-width: 100%;
	margin: 22px 0;
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .product-spec-sheet {
	margin: 24px 0;
	border-color: rgba(24, 35, 27, 0.36);
	border-radius: 0;
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .product-spec-sheet .spec-row {
	border-color: rgba(24, 35, 27, 0.26);
}

:is(#ProductDetailWrap, #ProductDetailModalBody) .product-spec-sheet dt {
	background: #eee5d6;
	color: #4b564d;
}

.modal-product-detail .modal-wrap {
	max-width: 920px;
	width: min(92vw, 920px);
}

.modal-product-detail .modal-content {
	display: flex;
	flex-direction: column;
	max-height: calc(100dvh - 32px);
	padding: 24px;
	border-radius: 0;
	background: #f7f0e4;
}

.modal-product-detail .modal-head {
	min-height: 26px;
	margin-bottom: 20px;
	padding-bottom: 13px;
	border-bottom-color: rgba(24, 35, 27, 0.32);
}

.modal-product-detail .modal-text {
	min-height: 0;
	max-height: none;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.modal-product-detail .modal-head { flex-shrink: 0; }
.modal-product-detail { height: 100dvh; }
.modal-product-detail .modal-wrap { top: 50%; }
:is(#ProductDetailWrap, #ProductDetailModalBody) .product-spec-sheet dd {
	min-width: 0;
	overflow-wrap: anywhere;
}
@media (max-width: 600px) {
	:is(#ProductDetailWrap, #ProductDetailModalBody) .product-spec-sheet :is(dt, dd) {
		width: 100%;
		box-sizing: border-box;
	}
}

.modal .modal-exit.modal-close-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 4px;
	border: 0;
	border-radius: 0;
	background: transparent;
	line-height: 0;
	cursor: pointer;
}

.modal .modal-exit.modal-close-button .modal-close {
	display: block;
}

.modal .modal-exit.modal-close-button:focus-visible {
	outline: 3px solid #b34a2a;
	outline-offset: 3px;
}

/* The CMS privacy modal predates the project-dialog redesign. Give it the same
   opaque, viewport-contained behaviour without changing other legacy modals. */
.modal-private {
	z-index: 10000;
}

.modal-private.block {
	display: block;
}

.modal-private .bg {
	position: fixed;
	inset: 0;
	background: rgba(10, 18, 13, .72);
}

.modal-private .modal-wrap {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	padding: 16px;
	box-sizing: border-box;
	transform: none;
}

.modal-private .modal-wrap.block {
	display: flex;
}

.modal-private .modal-content {
	position: relative;
	top: auto;
	left: auto;
	display: flex;
	flex-direction: column;
	width: min(760px, 100%);
	max-width: 760px;
	max-height: calc(100dvh - 32px);
	margin: 0;
	padding: 24px;
	box-sizing: border-box;
	overflow: hidden;
	transform: none;
	background: #f7f0e4;
	border: 1px solid rgba(22, 32, 25, .72);
	border-radius: 0;
	box-shadow: 12px 12px 0 rgba(10, 18, 13, .24);
	color: #162019;
	opacity: 1;
}

.modal-private .modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex: 0 0 auto;
	padding-bottom: 18px;
	border-bottom: 1px solid rgba(22, 32, 25, .35);
}

.modal-private .modal-title {
	margin: 0;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(24px, 4vw, 34px);
	line-height: 1.05;
	color: #162019;
}

.modal-private .modal-text {
	flex: 1 1 auto;
	min-height: 0;
	max-height: none;
	padding: 22px 4px 4px 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.modal-private .ck-content {
	max-width: 65ch;
	color: #162019;
}

.modal-private .ck-content :is(p, h3) {
	max-width: 65ch;
}

.modal-private .ck-content p {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.65;
}

.modal-private .ck-content h3 {
	margin: 26px 0 10px;
	font-size: 18px;
	line-height: 1.25;
}

.modal-private .ck-content h3:first-of-type {
	margin-top: 8px;
}

@media (max-width: 600px) {
	.modal-private .modal-wrap {
		padding: 10px;
	}
	.modal-private .modal-content {
		max-height: calc(100dvh - 20px);
		padding: 18px;
		box-shadow: 6px 6px 0 rgba(10, 18, 13, .24);
	}
	.modal-private .modal-text {
		padding-top: 18px;
	}
	.modal-private .ck-content p {
		font-size: 14px;
	}
}

#ProductDetailModalBody .bk-project-detail {
	padding: 2px 0 20px;
}

#ProductDetailModalBody .bk-project-detail-hero {
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 32px;
	margin-bottom: 36px;
	padding-bottom: 34px;
}

#ProductDetailModalBody .bk-project-detail-art {
	padding: 18px;
}

#ProductDetailModalBody .bk-project-detail-title {
	font-size: 38px;
}

#ProductDetailModalBody .bk-project-detail-hero .sub-title {
	font-size: 16px;
}

#ProductDetailModalBody .product-detail-content-wrap {
	max-width: 100%;
}

:is(#ProductDetailWrap, #ProductDetailModalBody) :is(a, button):focus-visible {
	outline: 3px solid #b34a2a;
	outline-offset: 4px;
}

@media (max-width: 768px) {
	#ProductDetailWrap {
		padding-top: 0;
	}

	#ProductDetailWrap > .width-limit {
		width: calc(100% - 32px);
	}

	.bk-project-back {
		margin: 8px 0 28px;
	}

	:is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-detail-hero {
		grid-template-columns: 1fr;
		gap: 26px;
		margin-bottom: 38px;
		padding-bottom: 36px;
	}

	:is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-detail-art {
		width: min(210px, 62vw);
		justify-self: start;
		padding: 18px;
	}

	:is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-detail-title {
		font-size: 38px;
	}

	:is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-detail-hero .sub-title {
		font-size: 16px;
	}

	:is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-gallery {
		margin-bottom: 42px;
	}

	:is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-gallery .product-detail-slide-wrap {
		aspect-ratio: 4 / 3;
	}

	:is(#ProductDetailWrap, #ProductDetailModalBody) .bk-project-gallery .product-img-slide-item {
		padding: 12px;
	}

	:is(#ProductDetailWrap, #ProductDetailModalBody) .product-detail-content-wrap {
		margin-left: 0;
		padding-top: 28px;
	}

	:is(#ProductDetailWrap, #ProductDetailModalBody) .product-content-about-wrap .ck-content {
		font-size: 16px;
	}

	.modal-product-detail .modal-content {
		padding: 18px;
	}

	.modal-product-detail .modal-head {
		margin-bottom: 14px;
	}

	#ProductDetailModalBody .bk-project-detail-hero {
		grid-template-columns: 110px minmax(0, 1fr);
		gap: 18px;
		margin-bottom: 28px;
		padding-bottom: 26px;
	}

	#ProductDetailModalBody .bk-project-detail-art {
		width: auto;
		padding: 11px;
	}

	#ProductDetailModalBody .bk-project-detail-kicker {
		margin-bottom: 8px;
		font-size: 10px;
	}

	#ProductDetailModalBody .bk-project-detail-badges {
		margin-bottom: 11px;
	}

	#ProductDetailModalBody .bk-project-detail-type,
	#ProductDetailModalBody .bk-project-detail-status {
		min-height: 22px;
		padding: 3px 6px;
		font-size: 9px;
	}

	#ProductDetailModalBody .bk-project-detail-title {
		margin-bottom: 8px;
		font-size: 27px;
	}

	#ProductDetailModalBody .bk-project-detail-hero .sub-title {
		font-size: 14px;
	}
}

@media (max-width: 360px) {
	#ProductDetailModalBody .bk-project-detail-hero {
		grid-template-columns: 1fr;
	}

	#ProductDetailModalBody .bk-project-detail-art {
		width: 96px;
	}
}
