/**
 * MC Projects — grid, filters and single project layout.
 * Most values are CSS custom properties so the Elementor style controls can
 * override them per-widget.
 */

/* -------------------------------------------------------------------------
 * Tokens
 * ---------------------------------------------------------------------- */

.mc-projects,
.mc-single {
	--mc-accent: #0f5c2e;
	--mc-accent-soft: #8fc79f;
	--mc-accent-strong: #1a7a3c;
	--mc-ink: #1a1a18;
	--mc-muted: #8a8a85;
	--mc-rule: #dededa;
	--mc-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;

	box-sizing: border-box;
}

/* Not all parent themes ship this, and the chips depend on it. */
.mc-projects .screen-reader-text,
.mc-single .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.mc-projects *,
.mc-projects *::before,
.mc-projects *::after,
.mc-single *,
.mc-single *::before,
.mc-single *::after {
	box-sizing: inherit;
}

/* -------------------------------------------------------------------------
 * Archive shell
 * ---------------------------------------------------------------------- */

.mc-projects {
	/* No --mc-cols default on purpose: leaving it unset is what lets the grid
	   fall back to the intrinsic, container-measured count. The widget only
	   defines it when someone explicitly overrides Auto. */
	--mc-card-min: 300px;
	--mc-gap: 24px;
	--mc-ratio: 4 / 3;
	--mc-sidebar-w: 300px;
	--mc-sidebar-gap: 64px;
	--mc-card-radius: 0px;
	--mc-scrim: rgba(12, 14, 11, 0.88);

	display: grid;
	grid-template-columns: minmax(0, var(--mc-sidebar-w)) minmax(0, 1fr);
	gap: var(--mc-sidebar-gap);
	align-items: start;
}

/**
 * The configured sidebar width and gutter are maximums. Below roughly 1400px
 * the filters used to keep their full 300px + 64px while the cards shrank to
 * the point of being unreadable, so cap them proportionally and hand the space
 * back to the grid. Set on the layout properties, not the custom properties,
 * because Elementor's own selector for those wins on specificity.
 */
.mc-projects--filters-left {
	grid-template-columns: minmax(0, min(var(--mc-sidebar-w), 26%)) minmax(0, 1fr);
	gap: min(var(--mc-sidebar-gap), 4vw);
}

.mc-projects--filters-top,
.mc-projects--filters-none {
	grid-template-columns: minmax(0, 1fr);
	gap: 40px;
}

.mc-projects__results {
	min-width: 0;
}

/* -------------------------------------------------------------------------
 * Filters
 * ---------------------------------------------------------------------- */

.mc-projects__filters {
	min-width: 0;
}

.mc-projects--filters-left .mc-projects__filters {
	position: sticky;
	top: 24px;
}

.mc-projects__heading {
	margin: 0 0 32px;
	font-size: clamp(2.25rem, 3.4vw, 3.125rem);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--mc-ink);
}

.mc-filter {
	--mc-filter-item: #2a2a28;
	--mc-filter-active: var(--mc-accent-strong);

	margin-bottom: 40px;
}

.mc-filter:last-child {
	margin-bottom: 0;
}

.mc-filter__label {
	margin: 0 0 6px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--mc-rule);
	font-family: var(--mc-mono);
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--mc-muted);
}

.mc-filter__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mc-filter__list > li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mc-filter__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 11px 0;
	border: 0;
	border-radius: 0;
	background: none;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.25;
	text-align: left;
	color: var(--mc-filter-item);
	cursor: pointer;
	transition: color 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.mc-filter__item:hover,
.mc-filter__item:focus-visible {
	color: var(--mc-filter-active);
}

.mc-filter__item.is-active {
	font-weight: 700;
	color: var(--mc-filter-active);
}

.mc-filter__count {
	flex: 0 0 auto;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	color: #9a9a95;
}

/* Checkbox rows */

.mc-check {
	justify-content: flex-start;
	gap: 14px;
}

.mc-check__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.mc-check__box {
	position: relative;
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	border: 1.5px solid #c9c9c4;
	border-radius: 3px;
	background: #fff;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mc-check__box::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 6px;
	width: 4px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transition: transform 0.15s ease;
}

.mc-check__input:checked + .mc-check__box {
	border-color: var(--mc-accent);
	background: var(--mc-accent);
}

.mc-check__input:checked + .mc-check__box::after {
	transform: rotate(45deg) scale(1);
}

.mc-check__input:focus-visible + .mc-check__box {
	outline: 2px solid var(--mc-accent-strong);
	outline-offset: 2px;
}

/* Horizontal filter bar variant */

.mc-projects--filters-top:not(.mc-projects--drawer-on) .mc-projects__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 20px 48px;
}

.mc-projects--filters-top:not(.mc-projects--drawer-on) .mc-projects__heading {
	flex: 1 0 100%;
	margin-bottom: 8px;
}

.mc-projects--filters-top:not(.mc-projects--drawer-on) .mc-filter {
	flex: 1 1 260px;
	margin-bottom: 0;
}

.mc-projects--filters-top:not(.mc-projects--drawer-on) .mc-filter__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
}

.mc-projects--filters-top:not(.mc-projects--drawer-on) .mc-filter__item {
	width: auto;
}

/* -------------------------------------------------------------------------
 * Active filter chips
 * ---------------------------------------------------------------------- */

.mc-active {
	--mc-chip-fg: #1f2a20;
	--mc-chip-bg: #edefec;
	--mc-chip-border: transparent;
	--mc-chip-radius: 999px;

	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	margin-bottom: 24px;
}

.mc-active[hidden] {
	display: none;
}

.mc-active__label {
	font-family: var(--mc-mono);
	font-size: 11px;
	line-height: 1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mc-muted);
}

.mc-active__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mc-active__list > li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mc-active__chip {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	padding: 8px 13px;
	border: 1px solid var(--mc-chip-border);
	border-radius: var(--mc-chip-radius);
	background: var(--mc-chip-bg);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--mc-chip-fg);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.mc-active__chip:hover,
.mc-active__chip:focus-visible {
	background: var(--mc-accent);
	color: #fff;
}

.mc-active__chip-x {
	font-size: 1.05rem;
	line-height: 1;
	opacity: 0.6;
}

.mc-active__chip:hover .mc-active__chip-x,
.mc-active__chip:focus-visible .mc-active__chip-x {
	opacity: 1;
}

.mc-active__clear {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 0.875rem;
	line-height: 1.2;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: var(--mc-muted);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.mc-active__clear:hover,
.mc-active__clear:focus-visible {
	color: var(--mc-accent);
}

/* -------------------------------------------------------------------------
 * Mobile filter drawer
 * ---------------------------------------------------------------------- */

.mc-projects {
	--mc-drawer-fg: #ffffff;
	--mc-drawer-bg: #1f2a20;
	--mc-drawer-panel-bg: #ffffff;
}

/* Drawer chrome is hidden by default; each breakpoint mode switches it on. */
.mc-drawer__toggle,
.mc-drawer__close,
.mc-drawer__foot,
.mc-drawer__backdrop {
	display: none;
}

.mc-drawer__toggle {
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0 0 28px;
	padding: 15px 20px;
	border: 0;
	background: var(--mc-drawer-bg);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mc-drawer-fg);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.mc-drawer__toggle-icon {
	display: inline-flex;
	line-height: 0;
}

.mc-drawer__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 21px;
	height: 21px;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.22);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
}

.mc-drawer__badge[hidden] {
	display: none;
}

.mc-drawer__close {
	position: absolute;
	top: 16px;
	right: 16px;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 30px;
	line-height: 1;
	color: var(--mc-ink);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.mc-drawer__backdrop {
	position: fixed;
	inset: 0;
	z-index: 9998;
	background: rgba(16, 18, 15, 0.5);
	opacity: 0;
	transition: opacity 0.28s ease;
}

.mc-drawer__backdrop[hidden] {
	display: none;
}

.mc-drawer__foot {
	position: sticky;
	bottom: 0;
	margin: 32px -24px -24px;
	padding: 16px 24px;
	border-top: 1px solid var(--mc-rule);
	background: var(--mc-drawer-panel-bg);
}

.mc-drawer__apply {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 16px 20px;
	border: 0;
	background: var(--mc-accent);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.mc-drawer__apply-count:empty {
	display: none;
}

/**
 * Shared drawer presentation. Applied by each breakpoint mode below rather
 * than duplicated, so behaviour stays identical across the four settings.
 */
.mc-projects--drawer-on .mc-drawer__toggle,
.mc-projects--drawer-on .mc-drawer__close,
.mc-projects--drawer-on .mc-drawer__foot {
	display: flex;
}

.mc-projects--drawer-on {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

.mc-projects--drawer-on .mc-projects__filters {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 9999;
	width: min(86vw, 370px);
	padding: 24px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--mc-drawer-panel-bg);
	transform: translateX(-100%);
	visibility: hidden;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
	/* Reset the desktop/tablet horizontal-row treatment. */
	display: block;
}

.mc-projects--drawer-on.is-filters-open .mc-projects__filters {
	transform: translateX(0);
	visibility: visible;
}

.mc-projects--drawer-on.is-filters-open .mc-drawer__backdrop {
	display: block;
	opacity: 1;
}

.mc-projects--drawer-on .mc-projects__heading {
	margin: 8px 0 28px;
	font-size: 1.75rem;
}

.mc-projects--drawer-on .mc-filter {
	margin-bottom: 32px;
}

/* Body scroll lock while the drawer is open. */
html.mc-scroll-locked,
body.mc-scroll-locked {
	overflow: hidden;
}

/* -------------------------------------------------------------------------
 * Cards
 * ---------------------------------------------------------------------- */

/**
 * Column count.
 *
 * --mc-auto-cols is set by the breakpoints below, so the grid is right on
 * every screen with no configuration. --mc-card-min still applies underneath:
 * if the grid is ever placed somewhere narrower than the viewport implies (a
 * boxed container, a narrow column), auto-fill drops a column rather than
 * squeezing cards below a readable width.
 *
 * --mc-cols is the optional override from the widget. When the Columns
 * control is left on Auto it writes nothing and these defaults are used.
 */
.mc-projects__grid {
	--mc-auto-cols: 1;
	--mc-cols-effective: var(--mc-cols, var(--mc-auto-cols));

	display: grid;
	/**
	 * Tracks are the effective count's share of the row, floored at
	 * --mc-card-min and capped at the container width. auto-fill then drops a
	 * column rather than squeezing cards below the floor, which is what keeps
	 * awkward in-between widths (a narrow laptop, a tablet in landscape) from
	 * producing unreadable cards.
	 */
	grid-template-columns: repeat(
		auto-fill,
		minmax(
			min(
				100%,
				max(
					var(--mc-card-min, 300px),
					calc((100% - (var(--mc-cols-effective) - 1) * var(--mc-gap)) / var(--mc-cols-effective))
				)
			),
			1fr
		)
	);
	gap: var(--mc-gap);
}

/*
 * Breakpoints:
 *   up to 1367px  — 1 column
 *   1368–1920px   — 2 columns
 *   1921px and up — 3 columns
 */
@media (min-width: 1368px) {
	.mc-projects__grid {
		--mc-auto-cols: 2;
	}
}

@media (min-width: 1921px) {
	.mc-projects__grid {
		--mc-auto-cols: 3;
	}
}

.mc-pcard {
	min-width: 0;
	margin: 0;
}

.mc-pcard__link {
	position: relative;
	display: block;
	/* Every card is the same box no matter the source image proportions. */
	aspect-ratio: var(--mc-ratio);
	/* Type and padding below size against the card itself, so a card in a
	   3-up grid reads as well as one in a 2-up grid. */
	container-type: inline-size;
	overflow: hidden;
	border-radius: var(--mc-card-radius);
	background: #e4e4e0;
	text-decoration: none;
	isolation: isolate;
}

.mc-pcard__link:focus-visible {
	outline: 3px solid var(--mc-accent-strong);
	outline-offset: 3px;
}

.mc-pcard__media {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
}

/**
 * Scoped to .mc-projects on purpose: Elementor ships `.elementor img { height:
 * auto }` at specificity (0,1,1), which outranks a bare `.mc-pcard__img` and
 * makes images size to their own aspect instead of filling the card.
 */
.mc-projects .mc-pcard__img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mc-pcard__link:hover .mc-pcard__img {
	transform: scale(1.045);
}

.mc-pcard__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-image: repeating-linear-gradient(
		135deg,
		#e6e6e2 0 14px,
		#dededa 14px 28px
	);
	font-family: var(--mc-mono);
	font-size: 13px;
	letter-spacing: 0.08em;
	color: #a5a5a0;
}

.mc-pcard__scrim {
	position: absolute;
	inset: 0;
	display: block;
	background: linear-gradient(
		to bottom,
		transparent 12%,
		color-mix(in srgb, var(--mc-scrim) 45%, transparent) 45%,
		color-mix(in srgb, var(--mc-scrim) 80%, transparent) 70%,
		var(--mc-scrim) 100%
	);
	pointer-events: none;
}

/* Fallback for browsers without color-mix(). */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.mc-pcard__scrim {
		background: linear-gradient(to bottom, transparent 12%, rgba(12, 14, 11, 0.4) 45%, rgba(12, 14, 11, 0.72) 70%, rgba(12, 14, 11, 0.92) 100%);
	}
}

.mc-pcard__body {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: block;
	padding: 28px 26px 24px;
	/* The body is bottom-anchored, so unbounded text grows UPWARD off the
	   scrim and onto the bright part of the photo. Cap it instead. */
	max-height: 100%;
	overflow: hidden;
}

.mc-pcard__eyebrow {
	display: block;
	margin-bottom: 8px;
	font-family: var(--mc-mono);
	font-size: 11px;
	line-height: 1.2;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mc-accent-soft);
	/* A wrapped category + year used to collide with the title. */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mc-pcard__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	font-size: clamp(1.05rem, 1.6vw, 1.625rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.005em;
	color: #fff;
	overflow-wrap: break-word;
}

.mc-pcard__sub {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	margin-top: 7px;
	font-size: 0.9375rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.78);
	overflow-wrap: break-word;
}

/**
 * Card-relative sizing. The grid can put a card at anything from ~300px to
 * ~640px wide, and viewport-based type cannot know which — so scale off the
 * card. Narrow cards also drop the address, which is on the project page.
 */
@container (max-width: 420px) {
	.mc-pcard__body {
		padding: 20px 18px 17px;
	}

	.mc-pcard__eyebrow {
		font-size: 10px;
		margin-bottom: 6px;
		letter-spacing: 0.12em;
	}

	.mc-pcard__title {
		font-size: 1.0625rem;
	}

	.mc-pcard__sub {
		font-size: 0.8125rem;
		-webkit-line-clamp: 1;
		line-clamp: 1;
	}
}

@container (max-width: 330px) {
	.mc-pcard__sub {
		display: none;
	}
}

/* -------------------------------------------------------------------------
 * Load more
 * ---------------------------------------------------------------------- */

.mc-projects__empty {
	margin: 40px 0 0;
	font-family: var(--mc-mono);
	font-size: 13px;
	letter-spacing: 0.08em;
	color: var(--mc-muted);
}

.mc-projects__empty[hidden],
.mc-loadmore__btn[hidden],
.mc-loadmore__message[hidden] {
	display: none;
}

.mc-loadmore {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

.mc-loadmore:empty {
	display: none;
}

.mc-loadmore__btn {
	display: inline-block;
	padding: 18px 44px;
	border: 0;
	background: var(--mc-accent);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	transition: opacity 0.2s ease, background-color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.mc-loadmore__btn:hover {
	opacity: 0.85;
}

.mc-loadmore__btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.mc-loadmore__btn:focus-visible {
	outline: 3px solid var(--mc-accent-strong);
	outline-offset: 3px;
}

.mc-loadmore__message {
	margin: 0;
	font-family: var(--mc-mono);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-align: center;
	color: var(--mc-muted);
}

.mc-projects.is-loading .mc-projects__grid {
	opacity: 0.45;
	transition: opacity 0.2s ease;
}

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

.mc-single {
	--mc-panel-w: 33%;
	--mc-panel-bg: #242b23;
	--mc-panel-top: 0px;
	--mc-main-bg: #f7f7f5;
	--mc-gallery-cols: 2;
	--mc-gallery-gap: 20px;
	--mc-gallery-ratio: 4 / 3;
	--mc-gallery-radius: 0px;

	display: grid;
	grid-template-columns: minmax(0, var(--mc-panel-w)) minmax(0, 1fr);
	align-items: stretch;
}

.mc-single__panel {
	min-width: 0;
	background: var(--mc-panel-bg);
}

.mc-single--sticky .mc-single__panel-inner {
	position: sticky;
	top: var(--mc-panel-top);
}

.mc-single__panel-inner {
	padding: 60px 56px;
}

.mc-single__back {
	display: inline-block;
	margin-bottom: 40px;
	font-family: var(--mc-mono);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-decoration: none;
	color: var(--mc-accent-soft);
	transition: opacity 0.15s ease;
}

.mc-single__back:hover {
	opacity: 0.75;
}

.mc-single__title {
	margin: 0 0 40px;
	font-size: clamp(2.25rem, 3.6vw, 3.375rem);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.015em;
	text-transform: uppercase;
	color: #fff;
}

.mc-meta {
	margin: 0;
	display: grid;
	gap: 15px;
}

.mc-meta__row {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	align-items: baseline;
	gap: 16px;
}

.mc-meta__label {
	margin: 0;
	font-family: var(--mc-mono);
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
}

.mc-meta__value {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.35;
	color: #fff;
}

.mc-meta__value a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.mc-meta__value a:hover {
	border-bottom-color: currentColor;
}

.mc-single__desc {
	margin-top: 36px;
	max-width: none;
	font-size: 1rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.72);
}

.mc-single__desc > *:first-child {
	margin-top: 0;
}

.mc-single__desc > *:last-child {
	margin-bottom: 0;
}

.mc-single__main {
	min-width: 0;
	padding: 60px;
	background: var(--mc-main-bg);
}

.mc-single__notice {
	padding: 24px;
	border: 1px dashed var(--mc-rule);
	font-family: var(--mc-mono);
	font-size: 13px;
	color: var(--mc-muted);
}

.mc-gsection + .mc-gsection {
	margin-top: 64px;
}

.mc-gsection__head {
	display: flex;
	align-items: baseline;
	gap: 18px;
	margin: 0 0 26px;
}

.mc-gsection__num {
	font-family: var(--mc-mono);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.06em;
	color: var(--mc-accent-strong);
}

.mc-gsection__title {
	font-size: clamp(1.75rem, 2.6vw, 2.125rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--mc-ink);
}

/* ---- project video ----
   The embed keeps a 16:9 box whatever the provider returns: oEmbed hands back
   an iframe with hard width/height attributes, which would otherwise letterbox
   or overflow at other column widths. */
.mc-video {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	overflow: hidden;
	background: #000;
}

.mc-video iframe,
.mc-video embed,
.mc-video object,
.mc-video video,
.mc-video .mc-video__player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Older engines without aspect-ratio still get a 16:9 box. */
@supports not (aspect-ratio: 16 / 9) {
	.mc-video {
		height: 0;
		padding-bottom: 56.25%;
	}
}

.mc-gallery {
	display: grid;
	grid-template-columns: repeat(var(--mc-gallery-cols), minmax(0, 1fr));
	gap: var(--mc-gallery-gap);
}

.mc-gallery__item {
	display: block;
	margin: 0;
	overflow: hidden;
	border-radius: var(--mc-gallery-radius);
	background: #e4e4e0;
	line-height: 0;
}

/* Same specificity bump as the cards — see .mc-pcard__img above. */
.mc-single .mc-gallery__img {
	width: 100%;
	height: 100%;
	max-width: none;
	aspect-ratio: var(--mc-gallery-ratio);
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

a.mc-gallery__item:hover .mc-gallery__img {
	transform: scale(1.03);
}

a.mc-gallery__item:focus-visible {
	outline: 3px solid var(--mc-accent-strong);
	outline-offset: 3px;
}

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

@media (max-width: 1024px) {
	.mc-projects,
	.mc-projects--filters-left {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	/**
	 * The :not() guards matter: these rules come after the drawer block, so
	 * without them they would win on equal specificity and flatten the drawer
	 * back into an inline row at exactly the default breakpoint.
	 */
	.mc-projects--filters-left:not(.mc-projects--drawer-on) .mc-projects__filters {
		position: static;
		display: flex;
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 20px 48px;
	}

	.mc-projects--filters-left:not(.mc-projects--drawer-on) .mc-projects__heading {
		flex: 1 0 100%;
		margin-bottom: 4px;
	}

	.mc-projects--filters-left:not(.mc-projects--drawer-on) .mc-filter {
		flex: 1 1 240px;
		margin-bottom: 0;
	}

	.mc-single {
		grid-template-columns: minmax(0, 1fr);
	}

	.mc-single--sticky .mc-single__panel-inner {
		position: static;
	}

	.mc-single__panel-inner {
		padding: 48px 32px;
	}

	.mc-single__main {
		padding: 48px 32px;
	}
}

@media (max-width: 767px) {
	.mc-pcard__body {
		padding: 22px 20px 18px;
	}

	.mc-meta__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
	}

	.mc-loadmore__btn {
		width: 100%;
		padding: 18px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mc-pcard__img,
	.mc-gallery__img,
	.mc-check__box::after {
		transition: none;
	}

	.mc-pcard__link:hover .mc-pcard__img,
	a.mc-gallery__item:hover .mc-gallery__img {
		transform: none;
	}
}
