/* Expo WA — Projects */

.rsgdxewa-projects {
	color: var(--rsgdxewa-color-bg-text, #fff);
}

.rsgdxewa-projects__inner,
.rsgdxewa-project-single__inner {
	max-width: var(--rsgdxewa-content-max-width);
	margin: 0 auto;
	padding: 64px 24px;
}

.rsgdxewa-projects__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-bottom: 40px;
}

.rsgdxewa-projects__filter {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
	font-size: 0.9rem;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

a.rsgdxewa-projects__filter:hover {
	border-color: var(--rsgdxewa-color-highlight, #c8a24a);
	color: inherit;
}

.rsgdxewa-projects__filter--active {
	background: var(--rsgdxewa-color-highlight, #c8a24a);
	border-color: var(--rsgdxewa-color-highlight, #c8a24a);
	color: #111;
}

.rsgdxewa-projects__grid,
.rsgdxewa-whatwedo--projects .rsgdxewa-projects__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.rsgdxewa-project-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	overflow: hidden;
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.rsgdxewa-project-card:hover {
	transform: translateY(-4px);
	border-color: var(--rsgdxewa-color-highlight, #c8a24a);
	color: inherit;
}

.rsgdxewa-project-card__media {
	aspect-ratio: 4 / 3;
	background-color: rgba(255, 255, 255, 0.08);
	background-size: cover;
	background-position: center;
}

.rsgdxewa-project-card__body {
	padding: 20px;
}

.rsgdxewa-project-card__title {
	margin: 0 0 8px;
	font-size: 1.1rem;
	line-height: 1.3;
}

.rsgdxewa-project-card__metaline {
	margin: 0 0 10px;
	font-size: 0.78rem;
	opacity: 0.72;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rsgdxewa-project-card__outcome {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.55;
	opacity: 0.9;
}

/* Single */
.rsgdxewa-project-single {
	color: var(--rsgdxewa-color-bg-text, #fff);
}

.rsgdxewa-project-single__header {
	max-width: 760px;
	margin-bottom: 32px;
}

.rsgdxewa-project-single__metaline {
	margin: 0 0 12px;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.72;
}

.rsgdxewa-project-single__title {
	margin: 0 0 16px;
	font-size: clamp(1.75rem, 3.5vw, 2.75rem);
	line-height: 1.2;
}

.rsgdxewa-project-single__outcome {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.6;
	opacity: 0.92;
}

.rsgdxewa-project-single__hero {
	margin-bottom: 40px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

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

.rsgdxewa-project-single__block {
	margin-bottom: 36px;
	max-width: 760px;
}

.rsgdxewa-project-single__block h2 {
	margin: 0 0 12px;
	font-size: 1.35rem;
}

.rsgdxewa-project-single__text p {
	margin: 0 0 1em;
	line-height: 1.7;
}

.rsgdxewa-project-single__text p:last-child {
	margin-bottom: 0;
}

.rsgdxewa-project-single__gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 16px;
}

.rsgdxewa-project-single__gallery-item {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.rsgdxewa-project-single__gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (max-width: 900px) {
	.rsgdxewa-projects__grid,
	.rsgdxewa-whatwedo--projects .rsgdxewa-projects__grid,
	.rsgdxewa-project-single__gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.rsgdxewa-projects__inner,
	.rsgdxewa-project-single__inner {
		padding: 48px 16px;
	}

	.rsgdxewa-projects__grid,
	.rsgdxewa-whatwedo--projects .rsgdxewa-projects__grid,
	.rsgdxewa-project-single__gallery {
		grid-template-columns: 1fr;
	}
}

.rsgdxewa-projects__empty {
	text-align: center;
	opacity: 0.85;
	margin: 24px 0 0;
}

.rsgdxewa-projects__pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}

.rsgdxewa-projects__page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 4px;
	color: inherit;
	text-decoration: none;
	font-size: 0.9rem;
}

a.rsgdxewa-projects__page-link:hover {
	border-color: var(--rsgdxewa-color-highlight, #c8a24a);
	color: inherit;
}

.rsgdxewa-projects__page-link--current {
	background: var(--rsgdxewa-color-highlight, #c8a24a);
	border-color: var(--rsgdxewa-color-highlight, #c8a24a);
	color: #111;
}
