/* News */
/* The responsive image reserves the card's size and stays beneath the video. */
.news-item-image {
	position: relative;
}

/* Video posters paint immediately; only the moving layer fades in. */
.news-item-image:has(.news-item-video) .image-fade {
	opacity: 1;
}

.news-item-video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	pointer-events: none;
	transition: opacity .7s var(--easing, ease);
}

.news-item-image.is-video-ready .news-item-video {
	opacity: 1;
}

.news-video-sound {
	position: absolute;
	right: .75rem;
	bottom: .75rem;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .35rem;
	min-height: 44px;
	padding: .45rem .7rem;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 2rem;
	color: #fff;
	background: rgba(0, 0, 0, .55);
	font: inherit;
	font-size: .6rem;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
}

.news-video-sound[hidden] {
	display: none !important;
}

.news-video-sound svg {
	width: 1rem;
	height: 1rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
}

.news-video-sound[aria-pressed="true"] .news-video-sound__muted {
	display: none;
}

.news-video-sound:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.news-item-video {
		transition: none;
	}
}


.news-item-content {
	padding: 1rem;
	font-size: .8rem;
}
.header.news-item-title {
	font-size: .8rem;
	margin-bottom: .5em;
}
.row.news-list {
	row-gap: 4rem;
}


/**********/
/* Information dialog */
/**********/

.information-dialog,
#mobile-menu {
	--information-width-duration: .45s;
	--information-height-duration: .55s;
	--information-fade-duration: .35s;
	--information-backdrop-duration: .7s;
	--information-easing: var(--easing);
}

.information-dialog {
	position: fixed;
	top: 50%;
	right: auto;
	bottom: auto;
	left: 50%;
	transform: translate(-50%, -50%);

	width: clamp(34rem, 42vw, 48rem);
	height: min(70dvh, 48rem);
	max-width: calc(100vw - 4rem);
	max-height: calc(100dvh - 4rem);

	padding: 0;
	margin: 0;

	overflow: hidden;

	border: 0;
	border-radius: 0;

	background: var(--red, #7F1A15);
	color: var(--white, #FDFCF7);

	box-shadow: none;
}


/**********/
/* Backdrop */
/**********/

.information-dialog::backdrop,
#mobile-menu::backdrop {
	background: rgba(28, 34, 39, .08);

	opacity: 0;

	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);

	transition:
		opacity
		var(--information-backdrop-duration)
		var(--information-easing);
}

.information-dialog.is-backdrop-visible::backdrop,
#mobile-menu.is-backdrop-visible::backdrop {
	opacity: 1;
}


/**********/
/* Inner */
/**********/

.information-dialog__inner {
	--information-inner-top: clamp(6rem, 8vw, 8rem);
	--information-inner-bottom: clamp(2.5rem, 4vw, 4rem);
	--information-inner-side: clamp(3.5rem, 6vw, 6rem);
	position: absolute;
	inset: var(--information-inner-top) 0 var(--information-inner-bottom);

	display: flex;
	flex-direction: column;

	width: 100%;
	height: auto;

	padding: 0 var(--information-inner-side);

	overflow-x: hidden;
	overflow-y: auto;

	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.information-dialog__inner::-webkit-scrollbar {
	display: none;
}


.information-dialog__body {
	display: flex;
	flex: 1;
	flex-direction: column;

	width: 100%;
	min-height: 100%;
}


/**********/
/* Rendered page content */
/**********/

.information-dialog__content {
	max-width: none;
}


/*
 * Page 6 is rendered through its normal content element
 * template, therefore it brings its regular Bootstrap
 * page wrappers with it.
 *
 * Inside the dialog these wrappers must not create another
 * page layout.
 */

.information-dialog__content .text-content {
	width: 100% !important;

	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.information-dialog__content .text-content > .container {
	width: 100%;
	max-width: none;

	padding-right: 0;
	padding-left: 0;
	margin-right: 0;
	margin-left: 0;
}

.information-dialog__content .text-content > .container > .row {
	display: block;

	margin-right: 0;
	margin-left: 0;
}

.information-dialog__content
.text-content
> .container
> .row
> [class*="col-"] {
	width: 100%;
	max-width: none;

	padding-right: 0;
	padding-left: 0;
}


/**********/
/* Content typography */
/**********/

.information-dialog__content .header {
	color: inherit;
}

.information-dialog__content .text {
	color: inherit;
}

.information-dialog__content a {
	color: inherit;
}


/**********/
/* Footer */
/**********/

.information-dialog__footer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 2rem;
	align-items: end;

	width: 100%;

	margin-top: auto;
	padding-top: clamp(3rem, 8vh, 6rem);

	font-size: .8rem;
	font-weight: 400;
}
.information-dialog__footer .information-dialog__language {
	text-transform: uppercase;
}

/**********/
/* Meta menu */
/**********/

.information-dialog__meta ul {
	display: flex;
	align-items: center;
	gap: clamp(1.25rem, 2.5vw, 2.5rem);

	padding: 0;
	margin: 0;

	list-style: none;
}

.information-dialog__meta a {
	color: inherit;
	text-decoration: none;

	opacity: .72;

	transition:
		opacity .35s var(--information-easing);
}


/**********/
/* Language menu */
/**********/

.information-dialog__language ul {
	display: flex;
	align-items: center;

	padding: 0;
	margin: 0;

	list-style: none;
}

.information-dialog__language li {
	display: flex;
	align-items: center;
}

.information-dialog__language li:not(:last-child)::after {
	margin-inline: .55rem;

	color: inherit;

	content: "|";
	opacity: .55;
}

.information-dialog__language a {
	color: inherit;
	text-decoration: none;

	opacity: .65;

	transition:
		opacity .35s var(--information-easing);
}

.information-dialog__language .current a {
	opacity: 1;
}


/**********/
/* Close button */
/**********/

.information-dialog__close {
	position: absolute;
	top: 2rem;
	right: 2rem;
	z-index: 2;
	width: auto;
	height: 2rem;
	color: var(--white);
	background: var(--red);
}


/**********/
/* Motion states */
/**********/

.information-dialog.is-opening,
.information-dialog.is-closing {
	overflow: hidden;
}



/******************************************************/
/* BEGIN REWORKED: Objects gallery                     */
/******************************************************/

.objects-gallery {
	/* Match the Projects desktop grid gutters. */
	--objects-gutter-x: clamp(3rem, 5.5vw, 7rem);
	--objects-gutter-y: clamp(4rem, 7vw, 9rem);
	position: relative;
}

.objects-gallery__items {
	--bs-gutter-x: var(--objects-gutter-x);
	--bs-gutter-y: var(--objects-gutter-y);
}

.objects-gallery__col {
	display: flex;
	justify-content: center;
	align-items: flex-start;
}

.objects-gallery__item {
	display: block;
	box-sizing: border-box;
	width: 100%;
	aspect-ratio: 3 / 4;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 0;
	appearance: none;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
	touch-action: manipulation;
}

.objects-gallery__item:disabled {
	opacity: 1;
	cursor: default;
}

.objects-gallery__picture,
.objects-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
}

.objects-gallery__image {
	object-fit: cover;
}

/* One shared bar; JavaScript sets its viewport width and vertical position. */

.objects-gallery__info {
	position: absolute;
	z-index: 20;
	top: 0;
	left: var(--objects-info-x, 0px);
	box-sizing: border-box;
	width: var(--objects-info-width, 100%);
	padding-block: .4rem;
	background: var(--black);
	color: var(--white);
	font-size: 1rem;
	line-height: 1.3;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translate3d(0, var(--objects-info-y, 0px), 0);
	transition:
		opacity 300ms var(--easing),
		visibility 0s linear 300ms;
}

.objects-gallery__info.is-visible {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
	will-change: transform;
}

.objects-gallery__info-inner {
	display: flex;
	align-items: baseline;
	gap: clamp(.75rem, 2vw, 2rem);
}

/* Title, subtitle and description share one line at every viewport width. */

.objects-gallery__info-main {
	display: contents;
}

.objects-gallery__info-title,
.objects-gallery__info-subtitle,
.objects-gallery__info-description {
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.objects-gallery__info-title {
	font-weight: 700;
	text-transform: uppercase;
}

.objects-gallery__info-subtitle,
.objects-gallery__info-description {
	color: rgba(255, 255, 255, .65);
}

.objects-gallery__info-description {
	flex-grow: 2;
	margin: 0;
}

.objects-gallery__info [hidden],
.objects-gallery__info-description:empty {
	display: none !important;
}

/* Gallery-specific responsive rules are kept here with the component. */

@media (max-width: 1439.98px) {
	.objects-gallery {
		--objects-gutter-x: clamp(2.75rem, 5vw, 5rem);
		--objects-gutter-y: clamp(3.75rem, 6.5vw, 7rem);
	}
}

@media (max-width: 1199.98px) {
	.objects-gallery__items {
		--bs-gutter-x: 1.5rem;
		--bs-gutter-y: 3rem;
	}

	.objects-gallery__item {
		width: 80%;
	}
}

@media (max-width: 767.98px) {
	.objects-gallery__items {
		/* Match the visible column gap in the Team grid. */
		--bs-gutter-x: calc(var(--fs) * 1.5);
	}

	.objects-gallery__item {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.objects-gallery__info,
	.js .objects-gallery__image.pixel {
		transition: none;
		will-change: auto;
	}
}

/* END REWORKED: Objects gallery */


/************************/
/* Project slider popup */
/************************/

.project-slider-popup {
	--popup-trigger-width: 12rem;
	--popup-trigger-height: 2rem;
	--popup-close-size: max(2.75rem, 44px);
	--popup-padding: clamp(1rem, 3vw, 2.25rem);
	--popup-easing: var(--easing, ease);
	--popup-width-duration: 650ms;
	--popup-height-duration: 850ms;
	--popup-scroll-duration: 750ms;
	--popup-fade-duration: 400ms;
	--popup-backdrop-duration: 1200ms;

	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}


/* Trigger */

.project-slider-popup__trigger,
.project-slider-popup__origin {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: var(--popup-trigger-width);
	height: var(--popup-trigger-height);
	padding: 0 .75rem;
	border: 0;
	border-radius: 0;
	background: var(--black);
	color: var(--white);
	font: inherit;
}

.project-slider-popup__trigger {
	cursor: pointer;
}

.project-slider-popup.is-open:has(.project-slider-popup__dialog[open]) .project-slider-popup__trigger {
	visibility: hidden;
}

.project-slider-popup__label {
	flex: 0 0 auto;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.project-slider-popup__line {
	flex: 1 1 auto;
	height: 1px;
	margin-left: 1.5rem;
	background: currentColor;
	opacity: .75;
}


/* Dialog */

.project-slider-popup__dialog {
	position: fixed;
	inset: auto;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--black);
	color: var(--white);
	outline: none;
	overflow: clip;
}

.project-slider-popup__dialog::backdrop {
	background: rgba(255, 255, 255, .08);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	opacity: 0;
	transition: opacity var(--popup-backdrop-duration, 1200ms) var(--easing, ease);
}

.project-slider-popup__dialog.is-backdrop-visible::backdrop {
	opacity: 1;
}

.project-slider-popup__dialog.is-closing::backdrop {
	transition-duration: var(--popup-backdrop-close-duration, 1500ms);
}

.project-slider-popup__dialog.is-measuring {
	display: block;
	visibility: hidden;
	pointer-events: none;
}


/* Panel */

.project-slider-popup__panel {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	padding: var(--popup-padding);
	/* Reserve a separate row for Close above the slider. */
	padding-top: calc(var(--popup-close-size) + 1rem);
	padding-bottom: var(--popup-origin-height, var(--popup-trigger-height));
	background: var(--black);
}

.project-slider-popup__dialog[open] .project-slider-popup__panel {
	position: absolute;
	bottom: 0;
	left: 0;
	width: var(--popup-open-width);
	max-height: var(--popup-open-height);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.project-slider-popup__dialog.is-measuring .project-slider-popup__panel {
	position: relative;
	width: 100%;
	max-height: none;
	overflow: visible;
}

.project-slider-popup__dialog.is-expanding .project-slider-popup__panel,
.project-slider-popup__dialog.is-closing .project-slider-popup__panel {
	pointer-events: none;
}

.project-slider-popup__origin {
	position: absolute;
	z-index: 6;
	bottom: 0;
	left: 0;
	width: 100%;
	height: var(--popup-origin-height, var(--popup-trigger-height));
	pointer-events: none;
}


/* Close */

.project-slider-popup__close {
	position: absolute;
	top: .5rem;
	/* Follow the image edge when viewport fitting narrows the slider. */
	right: max(var(--popup-padding), calc((100% - var(--popup-media-width, 100%)) / 2));
	justify-content: flex-end;
	padding-inline: 0;
	z-index: 5;
	width: auto;
	min-width: var(--popup-close-size, 2.75rem);
	height: var(--popup-close-size, 2.75rem);
	background: transparent;
	color: var(--white);
}


/* Swiper */

.project-slider-popup__swiper {
	width: 100%;
	overflow: hidden;
}

.project-slider-popup__swiper .swiper-wrapper {
	height: auto;
}

.project-slider-popup__slide {
	width: 100%;
	height: auto;
}

.project-slider-popup__figure {
	margin: 0;
}

.project-slider-popup__figure picture {
	display: block;
	width: min(100%, var(--popup-media-width, 100%));
	margin-inline: auto;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.project-slider-popup__image {
	display: block;
	width: min(100%, var(--popup-media-width, 100%));
	margin-inline: auto;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.project-slider-popup__figure picture .project-slider-popup__image {
	height: 100%;
}


/* Scrollbar */

.project-slider-popup__scrollbar.swiper-scrollbar {
	position: relative;
	inset: auto;
	width: min(100%, var(--popup-media-width, 100%));
	height: 1.5rem;
	margin: .5rem auto 0;
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: var(--white);
	touch-action: none;
	cursor: grab;
}

.project-slider-popup__scrollbar::before {
	position: absolute;
	top: calc(50% - .5px);
	left: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	opacity: .2;
	content: "";
}

.project-slider-popup__scrollbar .swiper-scrollbar-drag {
	position: relative;
	top: 0;
	left: 0;
	height: 100%;
	border-radius: 0;
	background: transparent;
}

.project-slider-popup__scrollbar .swiper-scrollbar-drag::before {
	position: absolute;
	top: calc(50% - 1px);
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	opacity: .75;
	content: "";
}

.project-slider-popup__scrollbar:active {
	cursor: grabbing;
}

.project-slider-popup__scrollbar.swiper-scrollbar-lock {
	display: none;
}


/* Caption */

.project-slider-popup__caption {
	margin-top: 1rem;
}

.project-slider-popup__title {
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.3;
}

.project-slider-popup__description {
	margin-top: .35rem;
	font-size: .7rem;
	line-height: 1.4;
}


/* Footer */

.project-slider-popup__footer {
	display: none;
}




/**********/
/* People */
/**********/
.people__grid {
	--bs-gutter-x: calc(var(--fs) * 1.5);
	--bs-gutter-y: calc(var(--fs) * 3);
}

.person {
	width: 100%;
}

.person__media {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background-color: var(--light-grey);
}

.person__picture {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.person__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: center center;
	backface-visibility: hidden;
}

.person__image--primary {
	z-index: 1;
	opacity: 1;
	transform: scale(1);
	filter: blur(0);
	transition:
		opacity 1800ms var(--easing),
		transform 1800ms var(--easing),
		filter 1800ms var(--easing);
}

.person__image--secondary {
	z-index: 2;
	opacity: 0;
	transform: scale(1.025);
	filter: blur(5px);
	transition:
		opacity 1800ms var(--easing),
		transform 1800ms var(--easing),
		filter 1800ms var(--easing);
}

.person__caption {
	margin-top: calc(var(--fs) * .6);
	font-size: calc(var(--fs) * .8);
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: .01em;
}

.person__name {
	font-weight: 700;
}

.person__profession {
	font-weight: 400;
}


/***************/
/* Portrait interaction */
/***************/

.person.is-tapped .person__image--primary {
	opacity: 0;
	transform: scale(.985);
	filter: blur(3px);
}

.person.is-tapped .person__image--secondary {
	opacity: 1;
	transform: scale(1);
	filter: blur(0);
}

.person__media[role="button"] {
	cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
	.person:not(.is-touch-input):hover .person__image--primary {
		opacity: 0;
		transform: scale(.985);
		filter: blur(3px);
	}

	.person:not(.is-touch-input):hover .person__image--secondary {
		opacity: 1;
		transform: scale(1);
		filter: blur(0);
	}
}

/****************/
/* Text content */
/****************/

.text-content {
	/* Match Projects; responsive values are in mq.css. */
	--text-gutter-x: clamp(3rem, 5.5vw, 7rem);
}

.text-content > .container > .row {
	--bs-gutter-x: var(--text-gutter-x);
}

.text-content.top- { padding-top: var(--ceP); }
.text-content.top-sm { padding-top: var(--ceP-sm); }
.text-content.top-md { padding-top: var(--ceP-md); }
.text-content.top-lg { padding-top: var(--ceP-lg); }
.text-content.top-xl { padding-top: var(--ceP-xl); }
.text-content.top-zero { padding-top: 0; }

.text-content.bottom- { padding-bottom: var(--ceP); }
.text-content.bottom-sm { padding-bottom: var(--ceP-sm); }
.text-content.bottom-md { padding-bottom: var(--ceP-md); }
.text-content.bottom-lg { padding-bottom: var(--ceP-lg); }
.text-content.bottom-xl { padding-bottom: var(--ceP-xl); }
.text-content.bottom-zero { padding-bottom: 0; }


.text-content figure.table {
	width: 80%;
}
.text-content figure.table table {
	width: 100%;
}
