﻿/**
 * WordPress-specific style overrides.
 * Kept separate from the compiled styles.css so the original stylesheet stays untouched.
 */

/**
 * The original site always rendered .scroller-status (it always had pagination),
 * and that block's 4em margin created the gap below the project grid.
 * We only render it when a next page exists, so restore the spacing when it's absent.
 */
body.gpm-no-pagination .projects-grid {
	margin-bottom: 4em;
}

@media screen and (max-width: 600px) {
	body.gpm-no-pagination .projects-grid {
		margin-bottom: 2em;
	}
}

/**
 * The original ProcessWire markup for this block was:
 *   <p class="fs-m"><span class="tt-u"><strong>...</strong>...</span></p>
 * Rather than requiring editors to type raw HTML classes, apply both the original
 * .fs-m (font-size/line-height) and .tt-u (uppercase) rules here by default.
 * Values copied exactly from site/templates/assets/css/styles.css.
 */
.home-section__text p {
	font-size: clamp(22px, 1.8vw, 26px);
	line-height: 1.1em;
	text-transform: uppercase;
}
.home-section__text p:not(:last-child) {
	margin-bottom: 1.1em;
}

/**
 * Google Maps embed iframes come with fixed width/height attributes (from Google's
 * copy-paste embed code), which override the .map__wrapper CSS. Force them to fill
 * their container instead.
 */
.map__wrapper iframe {
	width: 100%;
	height: 100%;
	display: block;
}




/**
 * Brand color change: #f33 (red) -> #000 (black), site-wide.
 * These selectors override the compiled styles.css (loaded after it).
 */
.transition__background,
.button--default,
.button--lang,
.button--animation:after,
.slider__project-link,
.flickity-button,
.flickity-prev-next-button .flickity-button-icon,
.home-title,
.home-section__title,
.home-section__header,
.mosaic__text--gray,
.projects-grid__overlay,
.projects-filters__back-button,
.partners-grid__text p a,
.btn-menu,
.btn-menu__container span,
.overlay__item,
.overlay__animation:after,
.before-after-page__prev span,
.before-after-page__next span,
.fc-red {
	color: #313135;
}

.transition__background,
.hover-underline-animation:after,
.button--is-active,
.button--animation:after,
.home-section__text--red-bg,
.mosaic__text--red,
.projects-grid__overlay,
.btn-menu__container span,
.overlay__animation:after,
.footer {
	background-color: #313135;
}

.button--default,
.button--lang,
.flickity-button,
.projects-filters__back-button,
.btn-menu,
.mosaic__text--gray {
	border-color: #313135;
}






/* Reusable global container for single project page sections */
.gpm-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}


/* Fallback for project grid cards with a missing/broken thumbnail */
.projects-grid__image-wrapper {
	background-color: #f0f0f0;
	aspect-ratio: 4 / 3;
}

/* ==========================================================================
   Loading / intro animation — removed per client request
   ========================================================================== */
#animation-intro-overlay {
	display: none !important;
}

/* ==========================================================================
   Brand color override: red (#f33) -> black (#000)
   ========================================================================== */
/* NOTE: original color-override selectors were lost — see note below this file */


/* ==========================================================================
   Reusable global container (single project page sections)
   ========================================================================== */
.gpm-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

/* ==========================================================================
   Project grid card (archive + related projects)
   ========================================================================== */
.projects-grid__item .projects-grid__overlay {
	display: none !important;
}

.projects-grid__info {
	padding: 12px 0;
}

.projects-grid__info h3 {
	margin: 0 0 8px;
}

.projects-grid__taxonomy {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	flex-wrap: wrap;
	font-size: 13px;
	margin-bottom: 4px;
}

.projects-grid__taxonomy a {
	display: inline;
	color: inherit;
	text-decoration: none;
}

.projects-grid__taxonomy a:hover {
	text-decoration: none;
}

.projects-grid__taxonomy-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	color: currentColor;
}

/* Fallback background for missing/broken project thumbnails */
.projects-grid__image-wrapper {
	background-color: #f0f0f0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.projects-grid__image-wrapper img {
	transition: opacity 0.3s ease;
}

.projects-grid__item:hover .projects-grid__image-wrapper img {
	opacity: 0.75;
}



.projects-grid__taxonomies-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 6px 16px;
}


.projects-grid__item,
.projects-grid__image-wrapper,
.projects-grid__link {
	box-sizing: border-box;
	max-width: 100%;
}

.projects-grid__image-wrapper img {
	max-width: 100%;
}


.project-breadcrumb {
	font-size: 13px;
	margin: 24px auto 12px;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.project-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.project-breadcrumb a:hover {
	text-decoration: underline;
}

.project-breadcrumb__sep {
	opacity: 0.5;
}

.project-breadcrumb__current {
	opacity: 0.7;
}

.project-title {
	margin: 0 auto 12px;
}

.project-taxonomies-row {
	margin: 0 auto 24px;
}


.project-gallery__link {
	display: block;
	cursor: pointer;
}







/* ===== New AJAX project filters ===== */
.projects-filters__buttons-container {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.pf-dropdown {
	position: relative;
}

.pf-dropdown__toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border: 1px solid #ccc;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	border-radius: 4px;
}

.pf-dropdown__count {
	background: #000;
	color: #fff;
	font-size: 11px;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.pf-dropdown__chevron {
	transition: transform 0.2s ease;
}

.pf-dropdown.is-open .pf-dropdown__chevron {
	transform: rotate(180deg);
}

.pf-dropdown__panel {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	width: 260px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	z-index: 50;
	padding: 12px;
}

.pf-dropdown.is-open .pf-dropdown__panel {
	display: block;
}

.pf-dropdown__list {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	max-height: 260px;
	overflow-y: auto;
}

.pf-dropdown__option {
	padding: 6px 0;
}

.pf-dropdown__option label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 14px;
}

.pf-dropdown__actions {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	border-top: 1px solid #eee;
	padding-top: 12px;
}

.pf-dropdown__clear,
.pf-dropdown__save {
	padding: 8px 16px;
	border-radius: 4px;
	font-size: 13px;
	cursor: pointer;
	border: 1px solid #ccc;
}

.pf-dropdown__clear {
	background: #fff;
}

.pf-dropdown__save {
	background: #1a1a1a;
	color: #fff;
	border-color: #1a1a1a;
}

.pf-reset {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	color: #666;
}

.pf-reset.is-active {
	color: #000;
	border-color: #000;
}






#projects-grid.is-loading {
	opacity: 0.5;
	pointer-events: none;
}



/* Override lazysizes default opacity:0 — our AJAX-injected images never get the .loaded class */
.projects-grid__image-wrapper img.lazy {
	opacity: 1 !important;
}





/* Masonry gallery layout (JS-driven, true packed, no gaps) */
.project-gallery__images {
	position: relative;
}

.project-gallery__sizer,
.project-gallery__link {
	width: 33.3333%;
}

.project-gallery__link {
	padding: 0 8px;
	margin-bottom: 16px;
	box-sizing: border-box;
}

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

@media (max-width: 1024px) {
	.project-gallery__sizer,
	.project-gallery__link {
		width: 50%;
	}
}

@media (max-width: 600px) {
	.project-gallery__sizer,
	.project-gallery__link {
		width: 50%;
	}
	.project-gallery__link {
		padding: 0 4px;
		margin-bottom: 8px;
	}
}

.project-gallery__sizer {
	height: 0;
	margin: 0;
	padding: 0;
}




/* Project video (ACF oEmbed) — responsive 16:9 */
.project-video {
	margin: 24px 0;
}

.project-video__embed iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}



/* ===== News (posts) listing: 2-column grid + "A la Une" sidebar ===== */
.news-page {
	margin-top: 40px;
	margin-bottom: 60px;
}

.news-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 60px;
	align-items: start;
}

.news-page__title {
	font-size: 36px;
	margin: 0 0 24px;
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 30px;
}

.news-card__image {
	display: block;
	aspect-ratio: 3 / 2;
	background-color: #f0f0f0;
	overflow: hidden;
}

.news-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.3s ease;
}

.news-card:hover .news-card__image img {
	opacity: 0.85;
}

.news-card__title {
	font-size: 20px;
	margin: 14px 0 0;
}

.news-card__title a {
	color: inherit;
	text-decoration: none;
}

.news-sidebar__title {
	font-size: 24px;
	margin: 0 0 20px;
}

.news-sidebar__item {
	display: flex;
	gap: 16px;
	margin-bottom: 24px;
	color: inherit;
	text-decoration: none;
}

.news-sidebar__thumb {
	flex: 0 0 100px;
	width: 100px;
	height: 100px;
	background-color: #f0f0f0;
	overflow: hidden;
}

.news-sidebar__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-sidebar__text {
	font-size: 17px;
	line-height: 1.2;
}

.news-pagination {
	margin-top: 40px;
}

.news-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.news-pagination .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid #ccc;
	color: inherit;
	text-decoration: none;
}

.news-pagination .page-numbers.current {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
}

@media (max-width: 1024px) {
	.news-layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

@media (max-width: 600px) {
	.news-grid {
		grid-template-columns: 1fr;
	}
}



/* ===== Single post ===== */
.news-single__title {
	font-size: 34px;
	line-height: 1.2;
	margin: 0 0 12px;
}

.news-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 0;
	font-size: 14px;
	margin-bottom: 20px;
}

.news-single__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.news-single__meta-item + .news-single__meta-item {
	margin-left: 16px;
	padding-left: 16px;
	border-left: 1px solid currentColor;
}

.news-single__meta-item a {
	color: inherit;
	text-decoration: none;
}

.news-single__meta-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.news-single__image img {
	display: block;
	width: 100%;
	height: auto;
}

.news-single__content {
	margin-top: 32px;
}

.news-single__content h2,
.news-single__content h3 {
	margin: 1.2em 0 0.5em;
}

.news-single__content p {
	margin: 0 0 1em;
	line-height: 1.5;
}

.news-single__content img {
	max-width: 100%;
	height: auto;
}

.news-single__content iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

.news-single__share {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid #313135;
}

.news-single__share-label {
	margin: 0 0 14px;
}

.news-single__share-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.news-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

.news-share-btn svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.news-share-btn--facebook {
	background: #3b5998;
}

.news-share-btn--twitter {
	background: #1da1f2;
}

.news-share-btn--linkedin {
	background: #0077b5;
}

/* Sidebar on the single post has a top rule, like the reference design */
.news-single .news-sidebar {
	border-top: 1px solid #313135;
	padding-top: 32px;
}


/* ==========================================================================
   Single post — default editor content styles (scoped to .news-single__content)
   ========================================================================== */
.news-single__content {
	margin-top: 32px;
	font-size: 17px;
	line-height: 1.65;
	overflow-wrap: break-word;
}

.news-single__content > *:first-child {
	margin-top: 0;
}

.news-single__content > *:last-child {
	margin-bottom: 0;
}

/* Headings */
.news-single__content h1,
.news-single__content h2,
.news-single__content h3,
.news-single__content h4,
.news-single__content h5,
.news-single__content h6 {
	margin: 1.6em 0 0.6em;
	line-height: 1.2;
	font-weight: 600;
}

.news-single__content h1 { font-size: 36px; }
.news-single__content h2 { font-size: 30px; }
.news-single__content h3 { font-size: 26px; }
.news-single__content h4 { font-size: 22px; }
.news-single__content h5 { font-size: 19px; }
.news-single__content h6 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Text */
.news-single__content p {
	margin: 0 0 1.2em;
}

.news-single__content a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.news-single__content a:hover {
	text-decoration: none;
}

.news-single__content strong,
.news-single__content b {
	font-weight: 700;
}

.news-single__content em,
.news-single__content i {
	font-style: italic;
}

/* Lists */
.news-single__content ul,
.news-single__content ol {
	margin: 0 0 1.2em;
	padding-left: 1.5em;
}

.news-single__content ul { list-style: disc; }
.news-single__content ol { list-style: decimal; }

.news-single__content li {
	margin-bottom: 0.4em;
}

.news-single__content li > ul,
.news-single__content li > ol {
	margin: 0.4em 0 0;
}

/* Quote + divider */
.news-single__content blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid #313135;
	font-style: italic;
}

.news-single__content blockquote p:last-child {
	margin-bottom: 0;
}

.news-single__content hr {
	margin: 2em 0;
	border: 0;
	border-top: 1px solid #313135;
}

/* Media */
.news-single__content img {
	display: block;
	max-width: 100%;
	height: auto;
}

.news-single__content figure,
.news-single__content .wp-caption {
	max-width: 100%;
	margin: 1.6em 0;
}

.news-single__content figcaption,
.news-single__content .wp-caption-text {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.4;
	opacity: 0.7;
}

.news-single__content iframe,
.news-single__content video {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	margin: 1.6em 0;
}

/* Alignment classes from the editor */
.news-single__content .alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.news-single__content .alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.news-single__content .aligncenter {
	margin-left: auto;
	margin-right: auto;
}

/* Tables */
.news-single__content table {
	width: 100%;
	margin: 1.6em 0;
	border-collapse: collapse;
	font-size: 15px;
}

.news-single__content th,
.news-single__content td {
	padding: 10px 12px;
	border: 1px solid #ddd;
	text-align: left;
}

.news-single__content th {
	font-weight: 600;
	background: #f4f4f4;
}

/* Code */
.news-single__content code {
	padding: 2px 6px;
	font-size: 0.9em;
	background: #f4f4f4;
}

.news-single__content pre {
	margin: 1.6em 0;
	padding: 16px;
	overflow-x: auto;
	font-size: 14px;
	line-height: 1.5;
	background: #f4f4f4;
}

.news-single__content pre code {
	padding: 0;
	background: none;
}

/* ---------- Tablet / mobile ---------- */
@media (max-width: 768px) {
	.news-single__title {
		font-size: 26px;
	}

	.news-single__content {
		margin-top: 24px;
		font-size: 16px;
		line-height: 1.6;
	}

	.news-single__content h1 { font-size: 28px; }
	.news-single__content h2 { font-size: 24px; }
	.news-single__content h3 { font-size: 21px; }
	.news-single__content h4 { font-size: 19px; }
	.news-single__content h5 { font-size: 17px; }
	.news-single__content h6 { font-size: 15px; }

	.news-single__content .alignleft,
	.news-single__content .alignright {
		float: none;
		display: block;
		margin: 1.2em auto;
	}

	/* wide tables scroll sideways instead of breaking the layout */
	.news-single__content table {
		display: block;
		overflow-x: auto;
	}

	.news-single__content blockquote {
		padding-left: 14px;
	}
}




/* ===== Page Template 1 ===== */
.page-t1 {
	margin-top: 40px;
	margin-bottom: 60px;
}

.page-t1__title {
	font-size: 34px;
	text-transform: uppercase;
	margin: 0 0 32px;
	padding-bottom: 12px;
	border-bottom: 1px solid #313135;
}

.page-t1__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 32px;
	align-items: start;
}

/* Left: text blocks */
.page-t1__block {
	margin-bottom: 28px;
}

.page-t1__block-title {
	margin: 0 0 16px;
	padding: 10px 12px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.15;
	text-transform: uppercase;
	border: 2px solid #313135;
}

.page-t1__block-content {
	font-size: 15px;
	line-height: 1.45;
}

.page-t1__block-content p {
	margin: 0 0 1em;
}

.page-t1__block-content ul {
	margin: 0 0 1em;
	padding-left: 1.4em;
	list-style: disc;
}

.page-t1__block-content li {
	margin-bottom: 0.3em;
}

.page-t1__block-content a {
	color: inherit;
	text-decoration: underline;
}

/* Right: images */
.page-t1__image {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 24px;
}

.page-t1__image:last-child {
	margin-bottom: 0;
}

/* Mobile / tablet: stack the columns */
@media (max-width: 768px) {
	.page-t1__title {
		font-size: 26px;
	}

	.page-t1__layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.page-t1__block-title {
		font-size: 18px;
	}
}




/* Page Template 1 — main container (same values as .home-section) */
.page-t1.gpm-container {
	max-width: 1600px;
	padding: 0 2em 0 2em;
	margin: 40px auto 4em auto;
}

@media screen and (max-width: 600px) {
	.page-t1.gpm-container {
		padding: 0 1em 0 1em;
		margin: 40px auto 2em auto;
	}
}


/* ===== Header button (next to the menu toggle) ===== */
.header__right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.header-btn {
	display: inline-flex;
	align-items: center;
	padding: 12px 24px;
	background: #313135;
	border: 1px solid #313135;
	border-radius: 3px;
	color: #fff;
	font-size: 14px;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.header-btn:hover {
	background: #fff;
	color: #313135;
}

@media screen and (max-width: 600px) {
	.header__right {
		gap: 10px;
	}

	.header-btn {
		padding: 10px 14px;
		font-size: 12px;
	}
}



/* ===== Overlay menu: sub-menu (click to open, styled like main items) ===== */
.overlay__arrow {
	display: inline-block;
	width: 0.55em;
	height: 0.55em;
	margin-left: 0.3em;
	vertical-align: middle;
	transition: transform 0.25s ease;
}

a.overlay__parent.is-open .overlay__arrow {
	transform: rotate(180deg);
}

.overlay__submenu {
	display: none;
	flex-direction: column;
	align-items: center;
	margin: 0 0 12px;
	text-align: center;
}

.overlay__submenu.is-open {
	display: flex;
	animation: gpmSubmenuIn 0.25s ease;
}

@keyframes gpmSubmenuIn {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Sub-items: same look as main items, just a little smaller.
   Delete this rule if you want them exactly the same size. */
.overlay__item--sub.fs-xl {
	font-size: clamp(20px, 2.2vw, 34px);
}






