.mds-project-grid-wrap {
	width: 100%;
}

.mds-project-grid-wrap__title {
	margin: 0 0 28px;
	font-size: 42px;
	line-height: 1.1;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

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

.mds-project-grid__item {
	min-width: 0;
}

.mds-project-grid__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.mds-project-grid__media {
	position: relative;
	overflow: hidden;
	height: 300px;
	background: #d7d7d7;
}

.mds-project-grid__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	transition: transform 0.35s ease;
}

.mds-project-grid__bg--placeholder {
	background: linear-gradient(180deg, #d9d9d9 0%, #bfbfbf 100%);
}

.mds-project-grid__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.38);
	transition: background 0.35s ease;
}

.mds-project-grid__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 26px 24px;
}

.mds-project-grid__item-title {
	margin: 0;
	color: #ffffff;
	font-size: 22px;
	line-height: 1.18;
	font-weight: 700;
}

.mds-project-grid__link:hover .mds-project-grid__bg,
.mds-project-grid__link:focus .mds-project-grid__bg,
.mds-project-grid__link:focus-visible .mds-project-grid__bg {
	transform: scale(1.04);
}

.mds-project-grid__link:hover .mds-project-grid__overlay,
.mds-project-grid__link:focus .mds-project-grid__overlay,
.mds-project-grid__link:focus-visible .mds-project-grid__overlay {
	background: rgba(0, 0, 0, 0.48);
}

.mds-project-grid-wrap__actions {
	margin-top: 28px;
	text-align: center;
}

.mds-project-grid-wrap__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border: 0;
	background: #111111;
	color: #ffffff;
	font-size: 16px;
	line-height: 1;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.mds-project-grid-wrap__button:hover,
.mds-project-grid-wrap__button:focus,
.mds-project-grid-wrap__button:focus-visible {
	opacity: 0.9;
	transform: translateY(-1px);
}

.mds-project-grid-wrap__button.is-loading {
	cursor: wait;
	opacity: 0.7;
}

.mds-project-grid__empty {
	grid-column: 1 / -1;
	padding: 30px 20px;
	background: #f5f5f5;
	text-align: center;
	font-size: 16px;
}

@media (max-width: 1200px) {
	.mds-project-grid {
		grid-template-columns: repeat(min(var(--mds-project-grid-columns, 4), 3), minmax(0, 1fr));
	}

	.mds-project-grid__media {
		height: 420px;
	}
}

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

	.mds-project-grid-wrap__title {
		font-size: 34px;
	}

	.mds-project-grid__media {
		height: 340px;
	}
}

@media (max-width: 640px) {
	.mds-project-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}

	.mds-project-grid-wrap__title {
		font-size: 28px;
		margin-bottom: 22px;
	}

	.mds-project-grid__content {
		padding: 20px 18px;
	}

	.mds-project-grid__item-title {
		font-size: 20px;
	}

	.mds-project-grid__media {
		height: 300px;
	}
}