/* 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.is-loading [data-rsgdxewa-projects-dynamic] {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.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;
}

/* Use cases */
.rsgdxewa-usecases {
	color: var(--rsgdxewa-color-bg-text, #fff);
}

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

.rsgdxewa-usecases__header {
	margin-bottom: 36px;
}

.rsgdxewa-usecases__eyebrow {
	margin: 0 0 10px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: var(--rsgdxewa-title-eyebrow);
	opacity: 0.7;
}

.rsgdxewa-usecases__title {
	margin: 0 0 12px;
	font-size: clamp(1.5rem, 3vw, var(--rsgdxewa-title-h2, 2rem));
}

.rsgdxewa-usecases__desc {
	margin: 0;
	opacity: 0.9;
}

.rsgdxewa-usecases__desc p {
	margin: 0 0 1em;
	padding: 0;
	text-indent: 0;
}

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

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

.rsgdxewa-usecase-card {
	appearance: none;
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
	color: inherit;
	text-align: left;
	cursor: pointer;
	overflow: hidden;
	transition: transform 0.25s ease, border-color 0.25s ease;
}

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

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

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

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

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

body.rsgdxewa-usecase-modal-open {
	overflow: hidden;
}

.rsgdxewa-usecase-modal {
	position: fixed;
	inset: 0;
	z-index: 100040;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.rsgdxewa-usecase-modal[hidden] {
	display: none !important;
}

.rsgdxewa-usecase-modal:not([hidden]) {
	display: flex;
}

.rsgdxewa-usecase-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	opacity: 0;
	transition: opacity 0.28s ease;
}

.rsgdxewa-usecase-modal.rsgdxewa-usecase-modal--open .rsgdxewa-usecase-modal__backdrop {
	opacity: 1;
}

.rsgdxewa-usecase-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(920px, 100%);
	max-height: min(85vh, 900px);
	background: var(--rsgdxewa-color-primary, #23232f);
	color: var(--rsgdxewa-color-primary-text, #c9c9d2);
	border: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	flex-direction: column;
	opacity: 0;
	transform: translateY(20px) scale(0.97);
	transition: opacity 0.28s ease, transform 0.28s ease;
}

.rsgdxewa-usecase-modal.rsgdxewa-usecase-modal--open .rsgdxewa-usecase-modal__dialog {
	opacity: 1;
	transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
	.rsgdxewa-usecase-modal__backdrop,
	.rsgdxewa-usecase-modal__dialog {
		transition: none;
	}
}

.rsgdxewa-usecase-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 1.25rem;
	cursor: pointer;
}

.rsgdxewa-usecase-modal__scroll {
	overflow: auto;
	max-height: min(85vh, 900px);
	padding: 28px 28px 32px;
}

.rsgdxewa-usecase-modal__header {
	padding-right: 48px;
	margin-bottom: 20px;
}

.rsgdxewa-usecase-modal__title {
	margin: 0 0 6px;
	font-size: 1.5rem;
	line-height: 1.25;
	color: inherit;
}

.rsgdxewa-usecase-modal__date {
	margin: 0;
	font-size: 0.85rem;
	opacity: 0.72;
}

.rsgdxewa-usecase-modal__thumb {
	margin-bottom: 20px;
}

.rsgdxewa-usecase-modal__thumb img {
	display: block;
	width: 100%;
	max-height: 320px;
	object-fit: cover;
}

.rsgdxewa-usecase-modal__desc {
	margin-bottom: 24px;
	line-height: 1.7;
}

.rsgdxewa-usecase-modal__desc p {
	margin: 0 0 1em;
	padding: 0;
	text-indent: 0;
}

.rsgdxewa-usecase-modal__desc p:last-child {
	margin-bottom: 0;
}

.rsgdxewa-usecase-modal__gallery .rsgdxewa-logo-slider__item {
	flex: 0 0 calc(100cqw / 3);
	width: calc(100cqw / 3);
	max-width: calc(100cqw / 3);
	min-height: 0;
	padding: 0 8px;
}

.rsgdxewa-usecase-modal__gallery .rsgdxewa-logo-slider__item img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

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

@media (max-width: 600px) {
	.rsgdxewa-usecases__inner {
		padding: 48px 16px;
	}

	.rsgdxewa-usecases__grid {
		grid-template-columns: 1fr;
	}

	.rsgdxewa-usecase-modal {
		padding: 12px;
	}

	.rsgdxewa-usecase-modal__gallery .rsgdxewa-logo-slider__item {
		flex: 0 0 calc(100cqw / 1.2);
		width: calc(100cqw / 1.2);
		max-width: calc(100cqw / 1.2);
	}
}
