/* ========================================================================== Pand22 — values taken from the original Astra/Elementor setup of pand22.be ========================================================================== */

:root {
	--color-heading: #1a1a1a;
	--color-text: #5a5a5a;
	--color-muted: #839595;
	--color-hover: #d7d6d6;
	--color-light: #f3f3f3;
	--color-bg: #ffffff;
	--color-overlay: rgba(105, 114, 125, 0.8);

	--font-body: "Courier Prime", ui-monospace, "Courier New", monospace;
	--font-heading: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-accent: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

	--container: 1200px;
	--container-wide: 1200px;
	--gutter: 15px;
	--section-top: 100px;
}

/* Base ------------------------------------------------------------------ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 15px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--color-heading);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--color-heading);
}

p {
	margin: 0 0 1em;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.2;
	text-transform: capitalize;
}

h1 { font-size: 3.733rem; }
h2 { font-size: 2.667rem; }
h3 { font-size: 2.133rem; line-height: 1.4; }
h4 { font-size: 1.6rem; }
h5 { font-size: 1.333rem; }
h6 { font-size: 0.8rem; }

::selection {
	background: var(--color-heading);
	color: #fff;
}

button {
	font: inherit;
}

:focus-visible {
	outline: 1px dotted var(--color-heading);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 20px;
	clip: auto;
	background: #fff;
	color: var(--color-heading);
}

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.text-button {
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-heading);
	font-family: var(--font-body);
	font-weight: 400;
	cursor: pointer;
}

.text-button:hover {
	color: var(--color-muted);
}

/* Layout: sticky footer ------------------------------------------------- */

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-content {
	flex: 1 0 auto;
}

/* Header ---------------------------------------------------------------- */

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	max-width: calc(var(--container-wide) + 80px);
	min-height: 80px;
	margin-inline: auto;
	padding: 37px 40px 39px;
}

.site-branding img {
	display: block;
	width: 278px;
	max-width: 100%;
}

.primary-nav .menu,
.mobile-drawer .menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav .menu {
	display: flex;
	flex-wrap: wrap;
}

.primary-nav .menu a {
	display: block;
	padding: 25px 1em 0;
	color: var(--color-heading);
}

.primary-nav .menu a:hover,
.primary-nav .menu a:focus {
	color: var(--color-hover);
}

.menu-toggle {
	display: none;
	padding: 6px;
	border: 0;
	background: none;
	color: var(--color-heading);
	cursor: pointer;
}

.menu-toggle svg {
	display: block;
}

/* Mobile drawer */
.mobile-drawer {
	position: fixed;
	inset: 0;
	z-index: 1000;
}

.mobile-drawer[hidden] {
	display: none;
}

.mobile-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
}

.mobile-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(80vw, 320px);
	padding: 1rem 1.5rem 2rem;
	background: #fff;
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform 0.3s ease;
}

.mobile-drawer.is-open .mobile-drawer__panel {
	transform: none;
}

.mobile-drawer__close {
	display: block;
	margin: 0 0 1rem auto;
	padding: 6px;
	border: 0;
	background: none;
	color: var(--color-heading);
	cursor: pointer;
}

.mobile-drawer .menu a {
	display: block;
	padding: 0.75em 0;
	border-bottom: 1px solid var(--color-light);
	color: var(--color-heading);
}

body.menu-open {
	overflow: hidden;
}

/* Footer ---------------------------------------------------------------- */

.site-footer__inner {
	max-width: calc(var(--container-wide) + 60px);
	min-height: 80px;
	margin-inline: auto;
	padding: 30px;
}

.site-footer__copyright {
	margin: 0;
	color: var(--color-text);
}

/* Homepage -------------------------------------------------------------- */

.home-hero__inner {
	max-width: var(--container-wide);
	margin: 0 auto 25px;
	padding: 20px 0 101px;
	background-image: var(--home-illustration);
	background-repeat: no-repeat;
	background-position: 36px -31px;
	background-size: 100% auto;
}

.home-hero__logomark {
	display: block;
	width: 26%;
	height: auto;
}

.home-content {
	padding-bottom: 3rem;
}

/* Projects overview ----------------------------------------------------- */

.projects-page {
	padding-top: 1rem;
	padding-bottom: 3rem;
}

.projects-intro p:first-child {
	margin-bottom: 0.25rem;
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem 30px;
	max-width: 1140px;
	margin: var(--section-top) auto 0;
	padding: 0;
	list-style: none;
}

.project-card__link {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.project-card__media {
	display: block;
	width: 100%;
	height: 100%;
}

.project-card__media--alt {
	position: absolute;
	inset: 0;
}

.project-card__media img:not(.project-card__alt-image) {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	transition: opacity 0.5s ease;
}

.project-card__alt-image {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.project-card__link:hover .project-card__media--alt img,
.project-card__link:focus-visible .project-card__media--alt img{
	opacity: 1;
}

.project-card__link:has(.project-card__media--alt):hover > .project-card__media:not(.project-card__media--alt) img,
.project-card__link:has(.project-card__media--alt):focus-visible > .project-card__media:not(.project-card__media--alt) img {
	opacity: 0;
}

.project-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 15px;
	/* background: var(--color-overlay); */
	opacity: 0;
	/* transition: opacity 0.5s ease; */
}

.project-card__link:hover .project-card__overlay,
.project-card__link:focus-visible .project-card__overlay {
	opacity: 0.8;
}

.project-card__title {
	color: #fff;
	font-family: var(--font-heading);
	font-size: 20px;
	font-weight: 400;
}

/* Single project -------------------------------------------------------- */

.project-single {
	display: grid;
	grid-template-columns: 5fr 7fr;
	grid-template-areas:
		"details media"
		". gallery";
	gap: 0 30px;
	margin-top: var(--section-top);
	padding-bottom: 3rem;
}

.project-single__details {
	grid-area: details;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.project-single__description {
	margin-bottom: 2rem;
}

.project-details {
	margin-top: auto;
}

.project-details__item {
	margin-bottom: 0.5rem;
	line-height: 1.2rem;
}

.project-details__item strong {
	font-size: 0.9rem;
	font-weight: 500;
}

.project-details .text-small {
	font-size: 90%;
}

.project-details__heading {
	margin: 25px 0 0;
	color: var(--color-text);
	font-family: var(--font-accent);
	font-size: 1.1rem;
	font-weight: 400;
	line-height: 1.2;
	text-transform: none;
}

.project-single__media {
	grid-area: media;
	align-self: end;
}

.project-slider__track {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.project-slider__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s;
}

.project-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.project-slider__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.project-slider__nav {
	display: flex;
	justify-content: space-between;
	margin: 25px 0 1em;
}

.project-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: rgba( 0, 0, 0, 0.35 );
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	transition: background 0.2s ease;
}

.project-slider__arrow:hover {
	background: rgba( 0, 0, 0, 0.6 );
}

.project-slider__arrow--prev {
	left: 12px;
	cursor: w-resize;
}

.project-slider__arrow--next {
	right: 12px;
	cursor: e-resize;
}

.project-slider__footer--gallery {
	display: flex;
	justify-content: flex-end;
	margin-top: 16px;
}

.project-gallery__icon {
	margin: 0;
	cursor: pointer;
}

/* Lightbox ---------------------------------------------------------------- */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba( 0, 0, 0, 0.85 );
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s;
}

.lightbox:not( [ hidden ] ) {
	opacity: 1;
	visibility: visible;
}

.lightbox__backdrop {
	position: absolute;
	inset: 0;
	cursor: pointer;
}

.lightbox__content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox__close {
	position: fixed;
	top: 1rem;
	right: 1rem;
	z-index: 1;
	background: none;
	border: none;
	color: #fff;
	font-size: 2rem;
	cursor: pointer;
	line-height: 1;
	padding: 0.5rem;
}

.lightbox__track {
	max-width: 90vw;
	max-height: 85vh;
}

.lightbox__slide {
	display: none;
}

.lightbox__slide.is-active {
	display: block;
}

.lightbox__slide img {
	display: block;
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
}

.lightbox__nav {
	position: fixed;
	top: 50%;
	transform: translateY( -50% );
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	background: rgba( 255, 255, 255, 0.15 );
	border: none;
	border-radius: 50%;
	color: #fff;
	font-size: 2rem;
	cursor: pointer;
	line-height: 1;
	transition: background 0.2s ease;
}

.lightbox__nav:hover {
	background: rgba( 255, 255, 255, 0.3 );
}

.lightbox__nav--prev {
	left: 1rem;
}

.lightbox__nav--next {
	right: 1rem;
}

/* Image gallery ----------------------------------------------------------- */

.project-gallery {
	grid-area: gallery;
	margin: 0;
	padding-top: 1rem;
}

.project-gallery[hidden] {
	display: none;
}

.project-gallery__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	max-height: min(60vh, 480px);
	margin: 0;
	padding-right: 4px;
	overflow-y: auto;
	list-style: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.project-gallery.is-open .project-gallery__grid {
	opacity: 1;
}

.project-gallery__item {
	margin: 0;
	aspect-ratio: 1;
	overflow: auto;
	/* background: var(--color-light); */
	border: 2px solid transparent;
	cursor: pointer;
}

.project-gallery__item.is-active {
	border-color: var(--color-heading);
}

.project-gallery__item img {
	display: block;
    margin: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* About ----------------------------------------------------------------- */

.about-page {
	padding-top: var(--section-top);
	padding-bottom: 3rem;
}

.about-page .entry-content > p,
.about-page .about-intro {
	max-width: 1200px;
	margin-right: 48px;
	color: var(--color-text);
	font-size: 16px;
	text-align: justify;
}

.about-page .team-member {
	display: flex;
	gap: 20px;
	align-items: center;
	max-width: 700px;
	margin: 50px 0 0;
}

.about-page .team-member + .team-member {
	margin-top: 28px;
}

.team-member__photo figure {
	margin: 0;
}

.team-member__photo img {
	display: block;
	width: 100%;
}

.team-member__info h5 {
	margin: 0 0 0.25em;
	color: #000;
	font-size: 16px;
}

.team-member__bio {
	margin-top: 58px;
}

.team-member__role {
	margin: 0;
	color: #000;
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 600;
}

.team-member__bio p {
	margin: 0 0 0.9em;
	color: var(--color-heading);
	line-height: 15px;
}

.about-page__cta {
	display: none;
	margin-top: 120px;
	text-align: center;
}

.about-page__cta a {
	font-family: var(--font-heading);
	font-size: 2rem;
	font-weight: 600;
}

/* Contact --------------------------------------------------------------- */

.contact-page {
	display: grid;
	grid-template-columns: 37% 1fr;
	gap: 0 25px;
	margin-top: calc(var(--section-top) + 50px);
	padding-bottom: 3rem;
}

.contact-page__map iframe {
	display: block;
	width: 100%;
	height: 486px;
	border: 0;
	filter: brightness(99%) contrast(127%) saturate(0%);
}

.contact-page__info .entry-content h5,
.contact-page__info .entry-content h2,
.contact-page__info .entry-content h3 {
	margin: 0 0 1em;
	font-size: 1.333rem;
	font-weight: 400;
}

.contact-page__info .entry-content p {
	margin-bottom: 1.2em;
}

.contact-page__info .entry-content a {
	color: inherit;
}

.contact-page__info .entry-content * + h5,
.contact-page__info .entry-content * + h2,
.contact-page__info .entry-content * + h3 {
	margin-top: 1.5em;
}

.contact-page__follow {
	margin: 2.5em 0 1em;
	font-family: var(--font-accent);
	font-size: 1.333rem;
	font-weight: 400;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: calc(18px * 2);
	height: calc(18px * 2);
	border-radius: 50%;
	background: #fff;
	color: var(--color-heading);
}

.social-links a:hover {
	color: var(--color-muted);
}

.social-links svg {
	fill: currentColor;
}

/* Default pages & posts ------------------------------------------------- */

.default-page {
	padding-top: 3rem;
	padding-bottom: 3rem;
}

.page-title {
	font-size: 2.667rem;
}

.post-entry + .post-entry {
	margin-top: 2.5rem;
}

.post-entry__title {
	font-size: 1.6rem;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content .alignwide {
	margin-inline: calc(-1 * var(--gutter));
}

.entry-content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 1200px) {
	.site-branding img {
		width: 180px;
	}

	.home-hero__logomark {
		width: 180px;
	}
}

@media (max-width: 1024px) {
	h1 { font-size: 40px; }

	.home-hero__inner {
		padding: 80px 0 290px 40px;
		background-image: none;
	}

	.home-hero__logomark {
		width: 91%;
		max-width: 89%;
		height: 500px;
		margin: 200px auto 0;
	}

	.about-page .team-member {
		max-width: none;
	}

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

@media (max-width: 768px) {
	html {
		font-size: 12px;
	}

	.site-header__inner {
		min-height: 64px;
		padding: 1em 20px;
	}

	.site-branding img {
		width: 140px;
	}

	.primary-nav {
		display: none;
	}

	.menu-toggle {
		display: block;
	}

	.site-footer__copyright {
		text-align: center;
	}
}

@media (max-width: 767px) {
	h1 { font-size: 32px; }

	:root {
		--section-top: 64px;
	}

	.home-hero__inner {
		padding: 64px 24px 191px;
	}

	.home-hero__logomark {
		width: 54%;
		max-width: 100%;
		height: 410px;
		margin-top: 0;
	}

	.project-grid {
		grid-template-columns: 1fr;
		margin-top: 48px;
	}

	.project-single {
		grid-template-columns: 1fr;
		grid-template-areas:
			"details"
			"media"
			"gallery";
		gap: 2rem;
	}

	.project-slider__arrow {
		width: 40px;
		height: 40px;
		font-size: 1.5rem;
	}

	.project-slider__arrow--prev {
		left: 8px;
	}

	.project-slider__arrow--next {
		right: 8px;
	}

	.lightbox__nav {
		width: 40px;
		height: 40px;
		font-size: 1.5rem;
	}

	.about-page .entry-content > p {
		margin-right: 0;
		text-align: left;
	}

	.about-page .team-member {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		margin-top: 48px;
	}

	.about-page .team-member + .team-member {
		margin-top: 48px;
	}

	.about-page .team-member > .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
	}

	.team-member__photo img {
		max-width: 320px;
	}

	.about-page__cta {
		display: block;
	}

	.contact-page {
		grid-template-columns: 1fr;
		margin-top: 103px;
		padding: 0 var(--gutter) 3rem calc(var(--gutter) + 12px);
	}

	.contact-page__map {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}
}
