.elgamal-project-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: min(100% - (var(--elgamal-gutter-inline) * 2), var(--elgamal-max-width));
	margin: 0 auto 36px;
}

.elgamal-project-filters__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 16px;
	border: 1px solid #e2dbcf;
	background: #fff;
	color: #1d1d1b;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.elgamal-project-filters__chip .ph {
	font-size: 16px;
	line-height: 1;
}

.elgamal-project-filters__chip:hover,
.elgamal-project-filters__chip:focus-visible {
	border-color: #c8913c;
	color: #8a6424;
	outline: none;
}

.elgamal-project-filters__chip.is-active {
	background: #1d1d1b;
	border-color: #1d1d1b;
	color: #fff;
}

.elgamal-projects-archive__wrap {
	background: #fff;
	padding: clamp(40px, 6vw, 80px) 0 var(--elgamal-section-y, clamp(48px, 6vw, 96px));
}

.elgamal-projects-archive__grid {
	width: min(100% - (var(--elgamal-gutter-inline) * 2), var(--elgamal-max-width));
	margin-inline: auto;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.elgamal-project-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: #f6f4f0;
	overflow: hidden;
	min-height: 100%;
	transition: transform 0.35s ease;
}

.elgamal-project-card:hover,
.elgamal-project-card:focus-visible {
	transform: translateY(-4px);
	outline: none;
}

.elgamal-project-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #1a1a18;
}

.elgamal-project-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.elgamal-project-card__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 45%, rgba(26, 26, 24, 0.55));
	pointer-events: none;
}

.elgamal-project-card__type {
	position: absolute;
	left: 16px;
	bottom: 16px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #e3b66c;
}

.elgamal-project-card__type .ph {
	font-size: 15px;
}

.elgamal-project-card__body {
	padding: 18px 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.elgamal-project-card__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #1d1d1b;
}

.elgamal-project-card__meta {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	font-size: 14px;
	line-height: 1.55;
	color: #5e584f;
}

.elgamal-project-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.elgamal-project-card__meta-item .ph {
	color: #8a6424;
	font-size: 15px;
	flex: none;
}

.elgamal-projects-archive__empty {
	width: min(100% - (var(--elgamal-gutter-inline) * 2), var(--elgamal-max-width));
	margin-inline: auto;
	color: #5e584f;
}

.elgamal-projects-archive__pager {
	width: min(100% - (var(--elgamal-gutter-inline) * 2), var(--elgamal-max-width));
	margin: 40px auto 0;
}

.elgamal-projects-archive__pager .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.elgamal-projects-archive__pager a,
.elgamal-projects-archive__pager span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #e2dbcf;
	text-decoration: none;
	color: #1d1d1b;
	font-weight: 600;
}

.elgamal-projects-archive__pager .current {
	background: #1d1d1b;
	border-color: #1d1d1b;
	color: #fff;
}

/* Single project */
.elgamal-project-single__hero {
	position: relative;
	min-height: 68svh;
	background: #1a1a18;
	color: #fff;
	overflow: hidden;
}

.elgamal-project-single__media {
	position: absolute;
	inset: 0;
}

.elgamal-project-single__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.elgamal-project-single__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(26, 26, 24, 0.35), rgba(26, 26, 24, 0.88));
}

.elgamal-project-single__hero-shell {
	position: relative;
	z-index: 2;
	width: min(100% - (var(--elgamal-gutter-inline) * 2), var(--elgamal-max-width));
	margin-inline: auto;
	min-height: 68svh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 0 0 clamp(48px, 8vh, 80px);
}

.elgamal-project-single__crumb {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 18px;
}

.elgamal-project-single__crumb a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	text-decoration: none;
}

.elgamal-project-single__crumb a:hover,
.elgamal-project-single__crumb a:focus-visible {
	color: #e3b66c;
}

.elgamal-project-single__crumb-sep {
	color: #e3b66c;
}

.elgamal-project-single__title {
	margin: 0;
	max-width: 18ch;
	font-size: clamp(36px, 5.5vw, 72px);
	line-height: 1.05;
	font-weight: 900;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.elgamal-project-single__scope {
	margin: 16px 0 0;
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
	max-width: 640px;
}

.elgamal-project-single__body {
	background: #fff;
	padding: var(--elgamal-section-y-tight, clamp(36px, 4.5vw, 72px)) 0;
}

.elgamal-project-single__shell {
	width: min(100% - (var(--elgamal-gutter-inline) * 2), var(--elgamal-max-width));
	margin-inline: auto;
}

.elgamal-project-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}

.elgamal-project-single__main {
	min-width: 0;
}

.elgamal-project-single__excerpt {
	margin: 0 0 28px;
	font-size: 18px;
	line-height: 1.8;
	color: #4f4a42;
	text-wrap: pretty;
}

.elgamal-project-single__content {
	margin: 0 0 40px;
	font-size: 16px;
	line-height: 1.85;
	color: #3a3631;
}

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

.elgamal-project-single__content h3 {
	margin: 1.5em 0 0.55em;
	font-size: 20px;
	font-weight: 700;
	color: #1d1d1b;
}

.elgamal-project-single__content ul {
	margin: 0 0 1em;
	padding-inline-start: 1.2em;
}

.elgamal-project-single__content li {
	margin: 0 0 0.4em;
}

.elgamal-project-single__content figure {
	margin: 1.4em 0;
}

.elgamal-project-single__content img {
	display: block;
	width: 100%;
	height: auto;
}

.elgamal-project-single__gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.elgamal-project-single__shot {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #efeae2;
}

.elgamal-project-single__shot:first-child {
	grid-column: 1 / -1;
}

.elgamal-project-single__shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.elgamal-project-single__aside {
	min-width: 0;
}

.elgamal-project-single__aside-sticky {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.elgamal-project-single__panel {
	background: #f6f4f0;
	border: 1px solid #e7e1d7;
	padding: 22px 20px;
}

.elgamal-project-single__panel-title {
	margin: 0 0 16px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #8a6424;
}

.elgamal-project-single__facts {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.elgamal-project-single__fact {
	display: grid;
	gap: 4px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e2dbcf;
}

.elgamal-project-single__fact:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.elgamal-project-single__fact dt {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #8a8378;
}

.elgamal-project-single__fact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: #1d1d1b;
	color: #e3b66c;
	font-size: 15px;
	flex: none;
}

.elgamal-project-single__fact dd {
	margin: 0;
	padding-inline-start: 36px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: #1d1d1b;
}

.elgamal-project-single__cta-card {
	background: #1a1a18;
	color: #fff;
	padding: 24px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.elgamal-project-single__cta-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #e3b66c;
}

.elgamal-project-single__cta-body {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: #cfc8bc;
}

.elgamal-project-single__cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 18px;
	background: var(--elgamal-btn-bg, #7a5520);
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
}

.elgamal-project-single__cta-btn:visited {
	background: var(--elgamal-btn-bg, #7a5520);
	color: #fff;
}

.elgamal-project-single__cta-btn:hover,
.elgamal-project-single__cta-btn:focus-visible {
	background: var(--elgamal-btn-bg-hover, #5f4118);
	color: #fff;
}

.elgamal-project-single__cta-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	color: #e3b66c;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.elgamal-project-single__cta-link:hover,
.elgamal-project-single__cta-link:focus-visible {
	color: #fff;
}

.elgamal-project-single__nav {
	margin-top: 48px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	align-items: stretch;
	border-top: 1px solid #e2dbcf;
	padding-top: 28px;
}

.elgamal-project-single__nav a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #8a6424;
	font-weight: 700;
	text-decoration: none;
	max-width: min(100%, 420px);
}

.elgamal-project-single__nav a:hover,
.elgamal-project-single__nav a:focus-visible {
	color: #1d1d1b;
}

.elgamal-project-single__nav-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #8a8378;
}

.elgamal-project-single__nav-title {
	display: block;
	font-size: 15px;
	line-height: 1.35;
	color: inherit;
}

@media (min-width: 981px) {
	.elgamal-project-single__aside-sticky {
		position: sticky;
		top: calc(var(--elgamal-header-height, 72px) + var(--elgamal-admin-bar, 0px) + 20px);
	}
}

@media (max-width: 980px) {
	.elgamal-project-single__layout {
		grid-template-columns: 1fr;
	}

	.elgamal-project-single__aside {
		order: -1;
	}

	.elgamal-project-single__aside-sticky {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
}

@media (max-width: 640px) {
	.elgamal-project-single__aside-sticky {
		grid-template-columns: 1fr;
	}

	.elgamal-project-single__gallery {
		grid-template-columns: 1fr;
	}

	.elgamal-project-single__shot:first-child {
		grid-column: auto;
	}
}

@media (max-width: 980px) {
	.elgamal-projects-archive__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.elgamal-projects-archive__grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.elgamal-project-card {
		transition: none;
	}
}
