/* APB Images — affichage public
 * Les dimensions, couleurs et typographies reprennent le socle du site APB.
 */

.apb-realisations-page .hero-section,
.apb-realisations-page .entry-header,
.apb-realisations-page .page-title,
.apb-realisations-page .ct-breadcrumbs,
.apb-realisation-single article.apb_realisation > .entry-header {
	display: none !important;
}

.apb-realisations-page #main-container > .ct-container,
.apb-realisations-page #main-container > .ct-container-full,
.apb-realisations-page #main-container .content-area,
.apb-realisations-page #main-container .site-main,
.apb-realisations-page #main-container article.page,
.apb-realisations-page #main-container .entry-content,
.apb-realisations-page #main-container [data-content],
.apb-realisations-page #main-container [data-vertical-spacing] {
	width: 100% !important;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	margin-top: 0 !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	overflow: visible !important;
}

.apb-realisations-page #main-container > .ct-container,
.apb-realisations-page #main-container > .ct-container-full {
	display: block !important;
}

.apb-works,
.apb-single,
.apb-service-works {
	--apb-blue: var(--ap-blue, #173f8f);
	--apb-deep: var(--ap-blue-deep, #102c63);
	--apb-night: var(--ap-blue-night, #0b244f);
	--apb-copper: var(--ap-copper, #b86a3c);
	--apb-copper-light: var(--ap-copper-light, #d08a5c);
	--apb-ivory: var(--ap-warm-white, #f7f5f1);
	--apb-graphite: var(--ap-graphite, #3c434b);
	--apb-muted: var(--ap-text-muted, #65707a);
	box-sizing: border-box;
	color: var(--apb-graphite);
	font-family: var(--ap-font-ui, "Montserrat", "Segoe UI", Arial, sans-serif);
}

.apb-works *,
.apb-single *,
.apb-service-works * {
	box-sizing: border-box;
}

.apb-works img,
.apb-single img,
.apb-service-works img {
	display: block;
	max-width: 100%;
}

/* Page Réalisations : même logique pleine largeur que les pages de services. */

.apb-works {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	overflow: hidden;
	background: #fff;
}

/* La page v0.3.2 est composée de blocs Gutenberg natifs. */

.apb-works--native > .wp-block-shortcode,
.apb-works--native .apb-works-feed {
	margin: 0;
}

.editor-styles-wrapper .apb-works--native > .wp-block-shortcode {
	min-height: 92px;
	padding: 34px 24px;
	border: 1px dashed rgba(23, 63, 143, 0.35);
	color: var(--apb-deep);
	background: var(--apb-ivory);
	font-family: monospace;
	text-align: center;
}

.apb-works--native .apb-works-hero.wp-block-columns,
.apb-works--native .apb-works-hero .wp-block-column,
.apb-works--native .apb-works-hero .wp-block-image {
	margin: 0;
	gap: 0;
}

.apb-works--native .apb-works-hero__image {
	width: 100%;
	height: 100%;
}

.apb-works--native .apb-works-hero__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.apb-works--native .apb-works-cta--native {
	display: block;
}

.apb-works--native .apb-works-cta__columns {
	width: 100%;
	max-width: 1180px;
	gap: 48px;
	margin: 0 auto;
}

.apb-works--native .apb-works-cta__copy,
.apb-works--native .apb-works-cta__action,
.apb-works--native .apb-works-cta .wp-block-buttons {
	margin: 0;
}

.apb-works--native .apb-works-cta__copy > p:last-child {
	margin-bottom: 0;
	color: rgba(255, 255, 255, 0.78);
}

.apb-works--native .apb-works-cta__action .wp-block-buttons {
	justify-content: flex-end;
}

.apb-works--native .apb-works-button-block .wp-block-button__link {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 14px 23px;
	border: 1px solid var(--apb-copper);
	border-radius: 0;
	color: #fff;
	background: var(--apb-copper);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: 0.2s;
}

.apb-works--native .apb-works-button-block .wp-block-button__link:hover {
	border-color: var(--apb-copper-light);
	background: var(--apb-copper-light);
	transform: translateY(-2px);
}

.apb-works-hero {
	display: grid;
	height: clamp(500px, 48vw, 620px);
	min-height: 0;
	grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
	color: #fff;
	background: var(--apb-night);
}

.apb-works-hero__content {
	display: flex;
	height: 100%;
	min-width: 0;
	justify-content: center;
	flex-direction: column;
	padding:
		clamp(58px, 6vw, 92px)
		clamp(30px, 4.5vw, 70px)
		clamp(58px, 6vw, 92px)
		max(28px, calc((100vw - 1180px) / 2));
	background: linear-gradient(135deg, var(--apb-night), var(--apb-deep));
}

.apb-works-hero__content h1 {
	max-width: 620px;
	margin: 8px 0 22px;
	color: #fff;
	font-family: var(--ap-font-title, inherit);
	font-size: clamp(43px, 4.15vw, 62px);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.045em;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	text-wrap: balance;
}

.apb-works-hero__content > p:last-child {
	max-width: 540px;
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(16px, 1.5vw, 19px);
	line-height: 1.7;
}

.apb-works-hero__media {
	position: relative;
	height: 100%;
	min-width: 0;
	min-height: 0;
	margin: 0;
	overflow: hidden;
	background: #dfe3e6;
}

.apb-works-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
}

.apb-works-hero--empty {
	display: flex;
	height: auto;
	min-height: 430px;
}

.apb-works-hero--empty .apb-works-hero__content {
	width: 100%;
	padding-right: max(28px, calc((100vw - 1180px) / 2));
}

.apb-works-kicker {
	display: flex;
	align-items: center;
	gap: 13px;
	margin: 0 0 18px;
	color: var(--apb-copper-light);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.apb-works-kicker::before {
	content: "";
	width: 32px;
	height: 2px;
	flex: 0 0 32px;
	background: currentColor;
	box-shadow: 0 5px 0 currentColor;
}

/* Filtres */

.apb-works-filters {
	display: flex;
	position: relative;
	z-index: 2;
	width: min(1180px, calc(100% - 48px));
	max-width: 1180px;
	gap: 9px;
	margin: -25px auto 0;
	padding: 12px;
	justify-content: center;
	flex-wrap: wrap;
	background: #fff;
	border: 1px solid rgba(16, 44, 99, 0.1);
	box-shadow: 0 16px 42px rgba(16, 44, 99, 0.1);
}

.apb-works-filters a {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	padding: 10px 18px;
	border: 1px solid rgba(23, 63, 143, 0.18);
	border-radius: 0;
	color: var(--apb-deep);
	background: #fff;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: 0.2s;
}

.apb-works-filters a:hover,
.apb-works-filters a.is-active {
	border-color: var(--apb-copper);
	color: #fff;
	background: var(--apb-copper);
}

.apb-works-pagination {
	width: min(1180px, calc(100% - 48px));
	margin: 0 auto 72px;
}

.apb-works-pagination ul {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.apb-works-pagination a,
.apb-works-pagination .current {
	display: grid;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	place-items: center;
	border: 1px solid rgba(23, 63, 143, 0.22);
	color: var(--apb-deep);
	background: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.apb-works-pagination .current,
.apb-works-pagination a:hover {
	border-color: var(--apb-copper);
	color: #fff;
	background: var(--apb-copper);
}

/* Sections */

.apb-works-section,
.apb-works-empty {
	width: min(1180px, calc(100% - 48px));
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(68px, 7vw, 88px) 0;
}

.apb-works-section--gallery {
	width: 100%;
	max-width: none;
	padding-right: max(24px, calc((100vw - 1180px) / 2));
	padding-left: max(24px, calc((100vw - 1180px) / 2));
	background: var(--apb-ivory);
}

.apb-works-heading {
	max-width: 790px;
	margin-bottom: 42px;
}

.apb-works-heading h2,
.apb-single-section h2,
.apb-works-cta h2,
.apb-works-empty h2 {
	margin: 0 0 16px;
	color: var(--apb-deep);
	font-family: var(--ap-font-title, inherit);
	font-size: clamp(33px, 3.45vw, 49px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.04em;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	text-wrap: balance;
}

.apb-works-heading > p:last-child,
.apb-works-empty p {
	max-width: 760px;
	margin: 0;
	color: var(--apb-muted);
	font-size: clamp(15px, 1.4vw, 18px);
	line-height: 1.7;
}

/* Cartes de chantiers */

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

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

.apb-project-grid--count-1 {
	grid-template-columns: 1fr;
}

.apb-project-card {
	position: relative;
	min-width: 0;
	overflow: hidden;
	border: 1px solid rgba(16, 44, 99, 0.12);
	background: #fff;
	box-shadow: 0 16px 42px rgba(16, 44, 99, 0.07);
	transition:
		transform 0.22s ease,
		box-shadow 0.22s ease,
		border-color 0.22s ease;
}

.apb-project-card::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	width: 54px;
	height: 4px;
	background: var(--apb-copper);
	transition: width 0.22s ease;
}

.apb-project-card:hover {
	border-color: rgba(184, 106, 60, 0.34);
	box-shadow: 0 22px 52px rgba(16, 44, 99, 0.13);
	transform: translateY(-5px);
}

.apb-project-card:hover::before {
	width: 100%;
}

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

.apb-project-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.apb-project-card:hover .apb-project-card__media img {
	transform: scale(1.025);
}

.apb-project-card__compare {
	position: absolute;
	top: 15px;
	right: 15px;
	padding: 7px 10px;
	color: #fff;
	background: rgba(16, 44, 99, 0.9);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.apb-project-card__body {
	padding: 25px 24px 27px;
}

.apb-project-card__service {
	margin: 0 0 10px;
	color: var(--apb-copper);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.apb-project-card h3 {
	margin: 0 0 10px;
	color: var(--apb-deep);
	font-family: var(--ap-font-title, inherit);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -0.025em;
}

.apb-project-card h3 a {
	color: inherit;
	text-decoration: none;
}

.apb-project-card__city {
	margin: 0 0 16px;
	color: var(--apb-muted);
	font-size: 14px;
}

.apb-project-card__summary {
	margin: 0 0 24px;
	color: var(--apb-muted);
	font-size: 15px;
	line-height: 1.7;
}

.apb-project-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--apb-copper);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.025em;
	text-underline-offset: 5px;
}

@media (min-width: 901px) {
	.apb-works-section .apb-project-grid--count-1 .apb-project-card--featured {
		display: grid;
		height: clamp(410px, 36vw, 460px);
		grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.75fr);
		border: 0;
		background: var(--apb-deep);
		box-shadow: 0 22px 54px rgba(16, 44, 99, 0.14);
	}

	.apb-works-section .apb-project-grid--count-1 .apb-project-card--featured .apb-project-card__media {
		position: relative;
		height: 100%;
		min-height: 0;
		aspect-ratio: auto;
		background: #dfe3e6;
	}

	.apb-works-section .apb-project-grid--count-1 .apb-project-card--featured .apb-project-card__media img {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
	}

	.apb-works-section .apb-project-grid--count-1 .apb-project-card--featured .apb-project-card__body {
		display: flex;
		justify-content: center;
		flex-direction: column;
		padding: clamp(34px, 4vw, 58px);
		color: #fff;
		background:
			linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 58%),
			var(--apb-deep);
	}

	.apb-works-section .apb-project-grid--count-1 .apb-project-card--featured h3 {
		margin-bottom: 16px;
		color: #fff;
		font-size: clamp(25px, 2.4vw, 34px);
	}

	.apb-works-section .apb-project-grid--count-1 .apb-project-card--featured .apb-project-card__service,
	.apb-works-section .apb-project-grid--count-1 .apb-project-card--featured .apb-project-card__link {
		color: var(--apb-copper-light);
	}

	.apb-works-section .apb-project-grid--count-1 .apb-project-card--featured .apb-project-card__city,
	.apb-works-section .apb-project-grid--count-1 .apb-project-card--featured .apb-project-card__summary {
		color: rgba(255, 255, 255, 0.76);
	}
}

/* Galerie des anciennes photos
 * Grille volontairement régulière : la photo complète reste accessible
 * dans la visionneuse, tandis que la vignette est recadrée en 4:3.
 */

.apb-photo-wall {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.apb-photo-tile {
	display: grid;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	grid-template-rows: auto auto;
	border: 1px solid rgba(16, 44, 99, 0.1);
	background: #fff;
	box-shadow: 0 8px 24px rgba(16, 44, 99, 0.055);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}

.apb-photo-tile:hover {
	border-color: rgba(184, 106, 60, 0.28);
	box-shadow: 0 13px 30px rgba(16, 44, 99, 0.1);
	transform: translateY(-3px);
}

.apb-photo-tile > a {
	display: block;
	position: relative;
	width: 100%;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #dde1e4;
}

.apb-photo-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.apb-photo-tile:hover img {
	transform: scale(1.025);
}

.apb-photo-tile figcaption {
	position: static;
	min-height: 40px;
	padding: 11px 12px 10px;
	color: var(--apb-deep);
	background: #fff;
	font-size: 9px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.075em;
	text-transform: uppercase;
}

.apb-works [hidden] {
	display: none !important;
}

.apb-works-section.is-filter-empty {
	display: none;
}

.apb-works-empty {
	text-align: center;
}

/* CTA final */

.apb-works-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 48px;
	margin: 0;
	padding:
		clamp(42px, 4.2vw, 58px)
		max(24px, calc((100vw - 1180px) / 2));
	color: #fff;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 55%),
		var(--apb-deep);
}

.apb-works-cta > div {
	max-width: 790px;
}

.apb-works-cta h2 {
	max-width: 760px;
	margin-bottom: 12px;
	color: #fff;
}

.apb-works-cta p:last-child {
	max-width: 680px;
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 15px;
	line-height: 1.7;
}

.apb-works-button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 14px 23px;
	border: 1px solid var(--apb-copper);
	border-radius: 0;
	color: #fff !important;
	background: var(--apb-copper);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: 0.2s;
}

.apb-works-button:hover {
	border-color: var(--apb-copper-light);
	background: var(--apb-copper-light);
	transform: translateY(-2px);
}

/* Insertions automatiques dans les pages de services */

.apb-service-works {
	width: min(1180px, calc(100% - 48px));
	max-width: 1180px;
	margin: clamp(68px, 7vw, 96px) auto;
}

.apb-service-works .apb-works-heading h2 {
	font-size: clamp(30px, 3vw, 44px);
}

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

.apb-project-grid--compact .apb-photo-tile {
	min-height: 320px;
}

.apb-service-works__link {
	margin: 28px 0 0;
	text-align: right;
}

.apb-service-works__link a {
	color: var(--apb-copper);
	font-weight: 700;
	text-underline-offset: 5px;
}

/* Fiche chantier */

.apb-single {
	width: min(1180px, calc(100% - 48px));
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px 0 95px;
}

.apb-single__back {
	margin: 18px 0;
}

.apb-single__back a {
	color: var(--apb-copper);
	font-weight: 700;
	text-decoration: none;
}

.apb-single-hero {
	display: grid;
	height: clamp(500px, 48vw, 620px);
	min-height: 0;
	overflow: hidden;
	grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
	color: #fff;
	background: var(--apb-deep);
}

.apb-single-hero__content {
	display: flex;
	min-width: 0;
	padding: clamp(36px, 5vw, 60px);
	justify-content: center;
	flex-direction: column;
}

.apb-single-hero h1 {
	margin: 8px 0 18px;
	color: #fff;
	font-family: var(--ap-font-title, inherit);
	font-size: clamp(39px, 4.4vw, 62px);
	font-weight: 700;
	line-height: 1.03;
	letter-spacing: -0.04em;
	word-break: normal;
	hyphens: none;
	text-wrap: balance;
}

.apb-single-hero__city {
	margin: 0;
	color: rgba(255, 255, 255, 0.76);
	font-size: 17px;
}

.apb-single-hero figure {
	position: relative;
	height: 100%;
	min-width: 0;
	margin: 0;
	overflow: hidden;
}

.apb-single-hero figure img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.apb-single-section {
	max-width: 1040px;
	margin: 90px auto;
}

.apb-single-copy {
	max-width: 790px;
}

.apb-single-copy > p,
.apb-single-copy > div {
	font-size: 18px;
	line-height: 1.75;
}

.apb-single-gallery {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.apb-single-gallery a {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.apb-single-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.apb-single .apb-works-cta {
	margin: 90px 0 0;
	padding-right: clamp(30px, 5vw, 70px);
	padding-left: clamp(30px, 5vw, 70px);
}

.apb-single-related {
	max-width: 1180px;
}

/* Comparateur Avant / Après */

.apb-compare {
	--apb-position: 50%;
	position: relative;
	width: 100%;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border-radius: 0;
	background: #e9ecef;
	isolation: isolate;
}

.apb-compare__layer {
	position: absolute;
	inset: 0;
}

.apb-compare__after {
	clip-path: inset(0 calc(100% - var(--apb-position)) 0 0);
}

.apb-compare__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.apb-compare__label {
	position: absolute;
	top: 16px;
	padding: 7px 11px;
	color: #fff;
	background: rgba(16, 44, 99, 0.88);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.apb-compare__label--before {
	left: 16px;
}

.apb-compare__label--after {
	right: 16px;
	background: rgba(184, 106, 60, 0.92);
}

.apb-compare__line {
	position: absolute;
	z-index: 3;
	top: 0;
	bottom: 0;
	left: var(--apb-position);
	width: 3px;
	background: #fff;
	transform: translateX(-50%);
}

.apb-compare__line span {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	width: 46px;
	height: 46px;
	place-items: center;
	border: 3px solid #fff;
	border-radius: 50%;
	color: #fff;
	background: var(--apb-blue);
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
	transform: translate(-50%, -50%);
}

.apb-compare__range {
	position: absolute;
	z-index: 4;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
}

/* Visionneuse */

.apb-lightbox {
	position: fixed;
	z-index: 999999;
	inset: 0;
	padding: 34px;
	background: rgba(8, 18, 38, 0.94);
}

.apb-lightbox[hidden] {
	display: none;
}

.apb-lightbox figure {
	display: flex;
	width: 100%;
	height: 100%;
	margin: 0;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.apb-lightbox img {
	max-width: min(1400px, 95vw);
	max-height: 86vh;
	object-fit: contain;
}

.apb-lightbox figcaption {
	margin-top: 10px;
	color: #fff;
}

.apb-lightbox__close {
	position: absolute;
	z-index: 2;
	top: 18px;
	right: 20px;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	color: #fff;
	background: rgba(16, 44, 99, 0.65);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.apb-lightbox-open {
	overflow: hidden;
}

/* Tablette */

@media (max-width: 900px) {
	.apb-works-hero,
	.apb-single-hero {
		height: auto;
		min-height: auto;
		grid-template-columns: 1fr;
	}

	.apb-works-hero__content {
		width: min(100% - 48px, 760px);
		min-height: 330px;
		margin: 0 auto;
		padding: 56px 0;
	}

	.apb-works-hero__media,
	.apb-works-hero__media img {
		min-height: 360px;
		height: 360px;
	}

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

	.apb-project-grid--count-1 {
		grid-template-columns: 1fr;
	}

	.apb-photo-wall {
		gap: 13px;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.apb-works-cta {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.apb-works--native .apb-works-cta__columns {
		gap: 28px;
		flex-direction: column;
	}

	.apb-works--native .apb-works-cta__copy,
	.apb-works--native .apb-works-cta__action {
		width: 100%;
		flex-basis: 100% !important;
	}

	.apb-works--native .apb-works-cta__action .wp-block-buttons {
		justify-content: flex-start;
	}

	.apb-works-button {
		justify-self: start;
	}

	.apb-single-hero__content {
		min-height: 340px;
	}

	.apb-single-hero figure {
		height: 440px;
	}
}

/* Mobile */

@media (max-width: 680px) {
	.apb-works-hero__content {
		width: calc(100% - 32px);
		min-height: 300px;
		padding: 48px 0;
	}

	.apb-works-hero__content h1 {
		font-size: clamp(38px, 11.5vw, 50px);
	}

	.apb-works-hero__media,
	.apb-works-hero__media img {
		min-height: 280px;
		height: 280px;
	}

	.apb-works-filters {
		width: calc(100% - 32px);
		justify-content: flex-start;
		margin-top: -18px;
		padding: 9px;
		overflow-x: auto;
		flex-wrap: nowrap;
	}

	.apb-works-filters a {
		white-space: nowrap;
	}

	.apb-works-pagination {
		width: calc(100% - 32px);
	}

	.apb-works-section,
	.apb-works-empty {
		width: calc(100% - 32px);
		padding: 68px 0;
	}

	.apb-works-section--gallery {
		width: 100%;
		padding-right: 16px;
		padding-left: 16px;
	}

	.apb-project-grid,
	.apb-project-grid--compact {
		grid-template-columns: 1fr;
	}

	.apb-photo-wall {
		gap: 9px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.apb-photo-tile figcaption {
		min-height: 36px;
		padding: 9px 9px 8px;
		font-size: 8px;
	}

	.apb-works-cta {
		padding: 48px 22px;
	}

	.apb-works-button {
		width: 100%;
	}

	.apb-service-works,
	.apb-single {
		width: calc(100% - 32px);
	}

	.apb-service-works {
		margin: 55px auto;
	}

	.apb-single {
		padding-bottom: 70px;
	}

	.apb-single-hero__content {
		min-height: 300px;
		padding: 34px 25px;
	}

	.apb-single-hero figure {
		height: 330px;
	}

	.apb-single-section {
		margin: 65px auto;
	}

	.apb-single-gallery {
		grid-template-columns: 1fr 1fr;
	}

	.apb-single .apb-works-cta {
		margin-top: 65px;
		padding: 48px 24px;
	}

	.apb-compare {
		aspect-ratio: 4 / 3;
	}

	.apb-lightbox {
		padding: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.apb-project-card,
	.apb-project-card::before,
	.apb-project-card__media img,
	.apb-photo-tile img,
	.apb-works-button {
		transition: none !important;
	}
}
