.cs-project-gallery {
	--cs-gallery-blue: #0b4b84;
	--cs-gallery-orange: #cf5d2e;
	--cs-gallery-text: #10233d;
	--cs-gallery-border: rgba(16, 35, 61, 0.12);
	--cs-gallery-shadow: 0 14px 30px rgba(12, 33, 58, 0.12);
	--cs-gallery-radius: 0;
	--cs-gallery-gap: 0;
}

.cs-project-gallery__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	margin: 0 0 1.75rem;
}

.cs-project-gallery__filter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.8rem 1.1rem;
	border: 1px solid transparent;
	background: #ffffff;
	color: var(--cs-gallery-text);
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.26em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.cs-project-gallery__filter:hover,
.cs-project-gallery__filter:focus-visible,
.cs-project-gallery__filter.is-active {
	background: var(--cs-gallery-orange);
	border-color: var(--cs-gallery-orange);
	color: #ffffff;
	outline: none;
}

.cs-project-gallery__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--cs-gallery-gap);
}

.cs-project-gallery__card {
	position: relative;
	min-width: 0;
}

.cs-project-gallery__card[hidden] {
	display: none !important;
}

.cs-project-gallery__card-link {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: #edf2f7;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
}

.cs-project-gallery__card-link:focus-visible {
	outline: 3px solid var(--cs-gallery-orange);
	outline-offset: 0;
}

.cs-project-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1);
	transition: transform 240ms ease;
}

.cs-project-gallery__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 34%, rgba(0, 0, 0, 0.24) 68%, rgba(0, 0, 0, 0.76) 100%);
	opacity: 0;
	transition: opacity 220ms ease;
}

.cs-project-gallery__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1rem 1rem 0.95rem;
	color: #ffffff;
	font-size: 0.95rem;
	line-height: 1.45;
	transform: translateY(10px);
	opacity: 0;
	transition: transform 220ms ease, opacity 220ms ease;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	pointer-events: none;
}

.cs-project-gallery__card-link:hover .cs-project-gallery__image,
.cs-project-gallery__card-link:focus .cs-project-gallery__image,
.cs-project-gallery__card-link:focus-visible .cs-project-gallery__image {
	transform: scale(1.035);
}

.cs-project-gallery__card-link:hover .cs-project-gallery__overlay,
.cs-project-gallery__card-link:hover .cs-project-gallery__caption,
.cs-project-gallery__card-link:focus .cs-project-gallery__overlay,
.cs-project-gallery__card-link:focus .cs-project-gallery__caption,
.cs-project-gallery__card-link:focus-visible .cs-project-gallery__overlay,
.cs-project-gallery__card-link:focus-visible .cs-project-gallery__caption {
	opacity: 1;
}

.cs-project-gallery__card-link:hover .cs-project-gallery__caption,
.cs-project-gallery__card-link:focus .cs-project-gallery__caption,
.cs-project-gallery__card-link:focus-visible .cs-project-gallery__caption {
	transform: translateY(0);
}

.cs-project-gallery__pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	margin-top: 1.25rem;
}

.cs-project-gallery__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.65rem;
	border: 1px solid var(--cs-gallery-border);
	background: #ffffff;
	color: var(--cs-gallery-text);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.cs-project-gallery__pagination .page-numbers.current,
.cs-project-gallery__pagination .page-numbers:hover,
.cs-project-gallery__pagination .page-numbers:focus-visible {
	background: var(--cs-gallery-orange);
	border-color: var(--cs-gallery-orange);
	color: #ffffff;
	outline: none;
}

.cs-project-gallery__empty {
	padding: 1rem 0;
	text-align: center;
	color: var(--cs-gallery-text);
}

@media (max-width: 991px) {
	.cs-project-gallery__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.cs-project-gallery__caption {
		font-size: 0.9rem;
		padding: 0.85rem 0.85rem 0.8rem;
	}
}

@media (max-width: 767px) {
	.cs-project-gallery__filters {
		gap: 0.5rem;
		margin-bottom: 1.25rem;
	}

	.cs-project-gallery__filter {
		padding: 0.78rem 0.9rem;
		font-size: 0.58rem;
		letter-spacing: 0.22em;
	}

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

	.cs-project-gallery__caption {
		font-size: 0.85rem;
		line-height: 1.35;
	}
}

@media (max-width: 479px) {
	.cs-project-gallery__filter {
		width: 100%;
	}

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