/* MegaMix Overijssel project archive and detail pages. */

.mm-project-page {
	--mm-orange: var(--the7-accent-color, #ff6c00);
	--mm-orange-dark: #e8412c;
	--mm-ink: #181719;
	--mm-menu: #52494b;
	--mm-text: #586070;
	--mm-soft: #f2f2f0;
	--mm-white: #fff;
	--mm-shadow: 0 20px 50px rgba(24, 23, 25, 0.12);
}

/* The site-wide body texture is designed for the regular content pages. On
 * the full-width project templates it shows through the transparent child
 * theme as large, uneven vertical panels. Keep these pages deliberately clean. */
body#the7-body.mm-project-page {
	background-color: var(--mm-white);
	background-image: none;
}

.mm-project-page #main {
	background: var(--mm-white);
	padding-top: 0;
	padding-bottom: 0;
}

.mm-project-page #main > .wf-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	padding-right: 0;
	padding-left: 0;
}

.mm-project-page #main .wf-container-main {
	display: block;
}

.mm-project-page #main .content.mm-projects-content {
	box-sizing: border-box;
	float: none;
	width: 100%;
	padding: 0;
	margin: 0;
}

.mm-project-page #main .sidebar,
.mm-project-page #main .main-gradient {
	display: none;
}

/* The7 adds its generic "Portfolio Archive" title bar before #main. */
.mm-project-page .page-title {
	display: none;
}

/* The reordered five-item desktop menu is one pixel wider than The7's
 * available slot at 1280px. A tiny project-page-only spacing correction keeps
 * Contact on the first row without changing the site's global header. */
@media (min-width: 993px) {
	.mm-project-page .main-nav > li:not(:first-child) > a {
		margin-left: 13px;
	}

	.mm-project-page .main-nav > li:not(:last-child) > a {
		margin-right: 13px;
	}
}

.mm-project-page * {
	box-sizing: border-box;
}

.mm-shell {
	width: min(1300px, calc(100% - 80px));
	margin-right: auto;
	margin-left: auto;
}

.mm-project-hero {
	position: relative;
	height: clamp(380px, 38vw, 540px);
	margin: 0 0 230px;
	isolation: isolate;
}

.mm-project-hero__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: #746f69;
}

.mm-project-hero__media .mm-hero-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.025);
	transition: opacity 900ms ease, transform 6s ease;
}

.mm-project-hero__media .mm-hero-slide.is-active {
	opacity: 1;
	transform: scale(1);
}

.mm-project-hero__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(20, 17, 15, 0.2), rgba(20, 17, 15, 0.03) 60%, rgba(20, 17, 15, 0.14));
}

.mm-project-hero__dots {
	position: absolute;
	z-index: 2;
	right: max(40px, calc((100vw - 1300px) / 2));
	top: 30px;
	display: flex;
	gap: 8px;
}

.mm-project-hero__dots span {
	display: block;
	width: 26px;
	height: 3px;
	background: rgba(255, 255, 255, 0.52);
	transition: width 250ms ease, background-color 250ms ease;
}

.mm-project-hero__dots span.is-active {
	width: 44px;
	background: var(--mm-orange);
}

.mm-project-hero__cards {
	position: absolute;
	z-index: 3;
	right: 0;
	bottom: -190px;
	left: 0;
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
	align-items: stretch;
}

.mm-project-title-card {
	display: flex;
	min-height: 205px;
	padding: 52px 58px 46px;
	background: var(--mm-white);
	box-shadow: var(--mm-shadow);
	flex-direction: column;
	justify-content: center;
}

.mm-project-title-card h1 {
	max-width: 830px;
	padding: 0;
	margin: 0;
	color: var(--mm-ink);
	font-family: gilroy-extra-bold, Inter, Helvetica, Arial, sans-serif;
	font-size: clamp(34px, 3.15vw, 54px);
	font-style: normal;
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: -0.025em;
	text-transform: uppercase;
}

.mm-project-title-card__line {
	display: block;
	width: min(100%, 660px);
	height: 4px;
	margin-top: 25px;
	background: var(--mm-orange);
}

.mm-project-hero-cta {
	position: relative;
	display: flex;
	min-height: 205px;
	overflow: hidden;
	padding: 39px 42px 34px;
	color: var(--mm-white) !important;
	background:
		linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.11) 42% 55%, transparent 55% 68%, rgba(132, 24, 7, 0.14) 68%),
		linear-gradient(135deg, var(--mm-orange-dark), var(--mm-orange));
	box-shadow: var(--mm-shadow);
	text-decoration: none;
	flex-direction: column;
	justify-content: center;
}

.mm-project-hero-cta::after {
	position: absolute;
	inset: 0;
	border: 0 solid rgba(255, 255, 255, 0.65);
	content: "";
	transition: border-width 180ms ease;
}

.mm-project-hero-cta:hover::after,
.mm-project-hero-cta:focus-visible::after {
	border-width: 6px;
}

.mm-project-hero-cta strong {
	position: relative;
	z-index: 1;
	display: block;
	padding-bottom: 22px;
	border-bottom: 3px solid var(--mm-white);
	font-family: gilroy-extra-bold, Inter, Helvetica, Arial, sans-serif;
	font-size: clamp(23px, 2vw, 31px);
	font-weight: 400;
	line-height: 1.08;
}

.mm-project-hero-cta span {
	position: relative;
	z-index: 1;
	display: flex;
	padding-top: 18px;
	font-family: Inter, Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	align-items: center;
	justify-content: space-between;
}

.mm-project-hero-cta i {
	font-size: 24px;
	font-style: normal;
	transition: transform 180ms ease;
}

.mm-project-hero-cta:hover i,
.mm-project-hero-cta:focus-visible i {
	transform: translateX(5px);
}

.mm-project-archive {
	padding: 44px 0 120px;
}

.mm-project-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 58px 34px;
}

.mm-project-card {
	position: relative;
	min-width: 0;
}

.mm-project-card::after {
	display: block;
	width: 100%;
	height: 3px;
	margin-top: 24px;
	background: var(--mm-orange);
	content: "";
	transform: scaleX(0.18);
	transform-origin: left;
	transition: transform 260ms ease;
}

.mm-project-card:hover::after,
.mm-project-card:focus-within::after {
	transform: scaleX(1);
}

.mm-project-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: linear-gradient(135deg, #e4e0dc, #c9c2bb);
}

.mm-project-card__media::after {
	position: absolute;
	inset: 0;
	border: 0 solid rgba(255, 108, 0, 0.8);
	content: "";
	transition: border-width 220ms ease;
}

.mm-project-card__media:hover::after,
.mm-project-card__media:focus-visible::after {
	border-width: 8px;
}

.mm-project-card__media img,
.mm-project-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 550ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* The7 applies height:auto!important to standard WordPress attachment images.
 * Project media intentionally uses fixed crop frames, so override it locally. */
.mm-project-page .mm-project-card__media > img {
	width: 100% !important;
	height: 100% !important;
	max-width: none;
}

.mm-project-card__placeholder {
	background:
		linear-gradient(145deg, transparent 0 42%, rgba(255, 255, 255, 0.14) 42% 54%, transparent 54% 67%, rgba(82, 73, 75, 0.16) 67%),
		linear-gradient(135deg, var(--mm-orange-dark), var(--mm-orange));
}

.mm-project-card:hover .mm-project-card__media img,
.mm-project-card:focus-within .mm-project-card__media img {
	transform: scale(1.045);
}

.mm-project-card__body {
	padding-top: 22px;
}

.mm-project-card__body h3 {
	min-height: 2.45em;
	padding: 0;
	margin: 0 0 15px;
	font-family: gilroy-extra-bold, Inter, Helvetica, Arial, sans-serif !important;
	font-size: clamp(21px, 1.75vw, 27px);
	font-style: normal;
	font-weight: 400;
	line-height: 1.2;
}

.mm-project-card__body h3 a {
	color: var(--mm-ink);
	font-family: gilroy-extra-bold, Inter, Helvetica, Arial, sans-serif !important;
	text-decoration: none;
}

.mm-project-card__body h3 a:hover,
.mm-project-card__body h3 a:focus-visible {
	color: var(--mm-orange);
}

.mm-project-card__link {
	display: inline-flex;
	gap: 13px;
	color: var(--mm-text);
	font-family: Inter, Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	align-items: center;
}

.mm-project-card__link span {
	color: var(--mm-orange);
	font-size: 20px;
	transition: transform 180ms ease;
}

.mm-project-card__link:hover,
.mm-project-card__link:focus-visible {
	color: var(--mm-orange);
}

.mm-project-card__link:hover span,
.mm-project-card__link:focus-visible span {
	transform: translateX(4px);
}

.mm-project-empty {
	max-width: 760px;
	padding: 80px 50px;
	margin: 0 auto;
	text-align: center;
	background: var(--mm-soft);
}

.mm-project-empty h2 {
	margin: 0 0 12px;
	color: var(--mm-ink);
	font-family: gilroy-extra-bold, Inter, Helvetica, Arial, sans-serif;
	font-size: clamp(28px, 3vw, 42px);
	font-weight: 400;
	line-height: 1.1;
}

.mm-project-empty p {
	margin-bottom: 25px;
}

.mm-project-single__main {
	display: grid;
	padding-top: 48px;
	padding-bottom: 120px;
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
	gap: 70px;
	align-items: start;
}

.mm-project-copy {
	min-width: 0;
	color: var(--mm-text);
	font-family: Inter, Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.85;
}

.mm-project-lead {
	margin: 0 0 24px;
	color: var(--mm-ink);
	font-family: gilroy-bold, Inter, Helvetica, Arial, sans-serif;
	font-size: 19px;
	font-weight: 400;
	line-height: 1.55;
}

.mm-project-richtext > :first-child {
	margin-top: 0;
}

.mm-project-richtext > :last-child {
	margin-bottom: 0;
}

.mm-project-richtext h2,
.mm-project-richtext h3,
.mm-project-richtext h4 {
	color: var(--mm-ink);
	font-family: gilroy-extra-bold, Inter, Helvetica, Arial, sans-serif !important;
	font-weight: 400;
}

.mm-project-richtext h2 {
	font-size: 34px;
	line-height: 1.15;
}

.mm-project-richtext h3 {
	font-size: 26px;
	line-height: 1.2;
}

.mm-project-richtext a {
	color: var(--mm-orange);
}

.mm-project-details {
	padding: 0;
	margin: 44px 0 0;
	border-top: 1px solid rgba(82, 73, 75, 0.18);
}

.mm-project-detail {
	display: grid;
	min-height: 78px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(82, 73, 75, 0.18);
	grid-template-columns: 46px 1fr;
	gap: 17px;
	align-items: center;
}

.mm-project-detail__icon {
	display: grid;
	width: 44px;
	height: 44px;
	color: var(--mm-orange);
	background: rgba(255, 108, 0, 0.1);
	place-items: center;
}

.mm-project-detail__icon svg {
	width: 24px;
	height: 24px;
}

.mm-project-detail dt,
.mm-project-detail dd {
	padding: 0;
	margin: 0;
}

.mm-project-detail dt {
	color: var(--mm-ink);
	font-family: gilroy-bold, Inter, Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3;
}

.mm-project-detail dd {
	color: var(--mm-text);
	font-size: 14px;
	line-height: 1.5;
}

.mm-project-products {
	padding: 28px 0 0;
}

.mm-project-products h2 {
	padding: 0;
	margin: 0 0 13px;
	color: var(--mm-ink);
	font-family: gilroy-extra-bold, Inter, Helvetica, Arial, sans-serif;
	font-size: 21px;
	font-weight: 400;
	line-height: 1.25;
}

.mm-project-products ul {
	display: flex;
	padding: 0 !important;
	margin: 0 !important;
	list-style: none !important;
	gap: 8px;
	flex-wrap: wrap;
}

.mm-project-products li {
	display: block;
	padding: 6px 11px;
	margin: 0;
	color: var(--mm-menu);
	background: var(--mm-soft);
	font-size: 13px;
	font-weight: 600;
	list-style: none !important;
	line-height: 1.4;
}

.mm-project-products li::marker {
	content: "";
}

.mm-project-gallery {
	position: sticky;
	top: 90px;
	min-width: 0;
}

.mm-project-gallery__viewport {
	position: relative;
	height: clamp(390px, 43vw, 590px);
	overflow: hidden;
	background: #d8d4d0;
}

.mm-project-gallery__slide {
	position: absolute;
	inset: 0;
	padding: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateX(14px);
	transition: opacity 360ms ease, transform 360ms ease, visibility 360ms;
}

.mm-project-gallery__slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

.mm-project-gallery__slide img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
}

.mm-gallery-arrow {
	position: absolute;
	z-index: 2;
	top: calc(clamp(390px, 43vw, 590px) / 2 - 25px);
	display: grid;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 0;
	border-radius: 0;
	color: var(--mm-white);
	background: var(--mm-orange);
	box-shadow: none;
	font-size: 21px;
	cursor: pointer;
	place-items: center;
	transition: background-color 180ms ease, transform 180ms ease;
}

.mm-gallery-arrow:hover,
.mm-gallery-arrow:focus-visible {
	color: var(--mm-white);
	background: var(--mm-menu);
}

.mm-gallery-arrow--prev {
	left: 0;
}

.mm-gallery-arrow--next {
	right: 0;
}

.mm-gallery-arrow--prev:hover,
.mm-gallery-arrow--prev:focus-visible {
	transform: translateX(-3px);
}

.mm-gallery-arrow--next:hover,
.mm-gallery-arrow--next:focus-visible {
	transform: translateX(3px);
}

.mm-project-gallery__counter {
	position: absolute;
	z-index: 2;
	right: 0;
	top: calc(clamp(390px, 43vw, 590px) - 39px);
	min-width: 76px;
	padding: 8px 12px;
	color: var(--mm-white);
	background: rgba(24, 23, 25, 0.78);
	font-family: Inter, Helvetica, Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 23px;
	text-align: center;
}

.mm-project-gallery__thumbs {
	display: grid;
	padding-top: 10px;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
}

.mm-project-gallery__thumb {
	position: relative;
	padding: 0;
	border: 0;
	border-radius: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #ddd;
	cursor: pointer;
	opacity: 0.62;
	transition: opacity 180ms ease, box-shadow 180ms ease;
}

.mm-project-gallery__thumb img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
}

.mm-project-gallery__thumb.is-active,
.mm-project-gallery__thumb:hover,
.mm-project-gallery__thumb:focus-visible {
	opacity: 1;
	box-shadow: inset 0 0 0 4px var(--mm-orange);
}

.mm-project-gallery__thumb.is-active::after {
	position: absolute;
	inset: 0;
	border: 4px solid var(--mm-orange);
	content: "";
}

.mm-related-projects {
	padding-top: 84px;
	padding-bottom: 110px;
	border-top: 1px solid rgba(82, 73, 75, 0.15);
}

.mm-section-heading {
	display: flex;
	margin-bottom: 40px;
	gap: 30px;
	align-items: flex-end;
	justify-content: space-between;
}

.mm-section-heading h2 {
	padding: 0;
	margin: 0;
	color: var(--mm-ink);
	font-family: gilroy-extra-bold, Inter, Helvetica, Arial, sans-serif;
	font-size: clamp(30px, 3vw, 44px);
	font-weight: 400;
	line-height: 1.1;
}

.mm-section-heading > a {
	display: inline-flex;
	gap: 12px;
	color: var(--mm-menu);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	align-items: center;
}

.mm-section-heading > a span {
	color: var(--mm-orange);
	font-size: 20px;
}

.mm-project-grid--related .mm-project-card__media {
	aspect-ratio: 16 / 10;
}

.mm-project-grid--related .mm-project-card__body h3 {
	font-size: clamp(20px, 1.65vw, 25px);
}

.mm-project-contact {
	color: var(--mm-white);
	background: var(--mm-orange);
}

.mm-project-contact__inner {
	display: flex;
	min-height: 250px;
	padding-top: 58px;
	padding-bottom: 58px;
	gap: 45px;
	align-items: center;
	justify-content: space-between;
}

.mm-project-contact h2 {
	max-width: 850px;
	padding: 0;
	margin: 0;
	color: var(--mm-white);
	font-family: gilroy-extra-bold, Inter, Helvetica, Arial, sans-serif;
	font-size: clamp(31px, 3.3vw, 50px);
	font-weight: 400;
	line-height: 1.08;
}

.mm-button {
	display: inline-flex;
	min-height: 52px;
	padding: 14px 22px;
	border: 2px solid var(--mm-orange);
	color: var(--mm-white) !important;
	background: var(--mm-orange);
	font-family: Inter, Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 20px;
	text-decoration: none;
	align-items: center;
	justify-content: center;
	transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.mm-button:hover,
.mm-button:focus-visible {
	border-color: var(--mm-menu);
	color: var(--mm-white) !important;
	background: var(--mm-menu);
}

.mm-button--light {
	min-width: 190px;
	border-color: var(--mm-white);
	color: var(--mm-orange) !important;
	background: var(--mm-white);
}

.mm-button--light span {
	margin-left: 14px;
	font-size: 20px;
	transition: transform 180ms ease;
}

.mm-button--light:hover,
.mm-button--light:focus-visible {
	border-color: var(--mm-menu);
	color: var(--mm-white) !important;
	background: var(--mm-menu);
}

.mm-button--light:hover span,
.mm-button--light:focus-visible span {
	transform: translateX(4px);
}

@media (max-width: 1100px) {
	.mm-shell {
		width: min(1300px, calc(100% - 48px));
	}

	.mm-project-hero__cards {
		grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr);
	}

	.mm-project-title-card {
		padding-right: 40px;
		padding-left: 40px;
	}

	.mm-project-hero-cta {
		padding-right: 30px;
		padding-left: 30px;
	}

	.mm-project-single__main {
		gap: 42px;
	}
}

@media (max-width: 991px) {
	.mm-project-hero {
		height: 410px;
		margin-bottom: 210px;
	}

	.mm-project-title-card,
	.mm-project-hero-cta {
		min-height: 190px;
	}

	.mm-project-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mm-project-single__main {
		grid-template-columns: 1fr;
		gap: 50px;
	}

	.mm-project-gallery {
		position: relative;
		top: auto;
	}

	.mm-project-gallery__viewport {
		height: min(72vw, 650px);
	}

	.mm-gallery-arrow {
		top: calc(min(72vw, 650px) / 2 - 25px);
	}

	.mm-project-gallery__counter {
		top: calc(min(72vw, 650px) - 39px);
	}
}

@media (max-width: 767px) {
	.mm-shell {
		width: calc(100% - 32px);
	}

	.mm-project-hero {
		height: auto;
		padding-top: 285px;
		margin-bottom: 0;
	}

	.mm-project-hero__media {
		height: 315px;
	}

	.mm-project-hero__dots {
		right: 16px;
		top: 18px;
	}

	.mm-project-hero__cards {
		position: relative;
		right: auto;
		bottom: auto;
		left: auto;
		display: block;
		width: calc(100% - 32px);
		margin-top: 0;
		transform: none;
	}

	.mm-project-title-card {
		min-height: 0;
		padding: 34px 25px 32px;
	}

	.mm-project-title-card h1 {
		font-size: clamp(30px, 10vw, 40px);
		line-height: 1.03;
	}

	.mm-project-title-card__line {
		height: 3px;
		margin-top: 20px;
	}

	.mm-project-hero-cta {
		min-height: 0;
		padding: 30px 25px 27px;
	}

	.mm-project-hero-cta strong {
		padding-bottom: 17px;
		font-size: 23px;
	}

	.mm-project-hero-cta span {
		padding-top: 14px;
		font-size: 15px;
	}

	.mm-project-archive {
		padding-top: 65px;
		padding-bottom: 80px;
	}

	.mm-project-grid {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.mm-project-card__body h3,
	.mm-project-grid--related .mm-project-card__body h3 {
		min-height: 0;
		font-size: 24px;
	}

	.mm-project-single__main {
		padding-top: 64px;
		padding-bottom: 80px;
		gap: 44px;
	}

	.mm-project-copy {
		font-size: 15px;
		line-height: 1.75;
	}

	.mm-project-lead {
		font-size: 18px;
	}

	.mm-project-gallery__viewport {
		height: 88vw;
		max-height: 520px;
	}

	.mm-gallery-arrow {
		top: calc(min(88vw, 520px) / 2 - 22px);
		width: 44px;
		height: 44px;
	}

	.mm-project-gallery__counter {
		top: calc(min(88vw, 520px) - 39px);
	}

	.mm-project-gallery__thumbs {
		display: flex;
		overflow-x: auto;
		scrollbar-width: thin;
	}

	.mm-project-gallery__thumb {
		width: 68px;
		min-width: 68px;
	}

	.mm-related-projects {
		padding-top: 65px;
		padding-bottom: 80px;
	}

	.mm-section-heading {
		margin-bottom: 30px;
		align-items: flex-start;
		flex-direction: column;
	}

	.mm-project-contact__inner {
		min-height: 0;
		padding-top: 52px;
		padding-bottom: 54px;
		align-items: flex-start;
		flex-direction: column;
	}

	.mm-project-empty {
		padding: 55px 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mm-project-page *,
	.mm-project-page *::before,
	.mm-project-page *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
	}
}
