.myprop-project-grid {
	display: grid;
	grid-template-columns: repeat(var(--myprop-columns, 3), minmax(0, 1fr));
	gap: 28px;
	margin: 36px 0;
}

.myprop-project-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(17, 40, 71, 0.10);
	box-shadow: 0 12px 34px rgba(17, 40, 71, 0.08);
	transition: transform .25s ease, box-shadow .25s ease;
}

.myprop-project-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 18px 44px rgba(17, 40, 71, 0.14);
}

.myprop-project-image {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #eef2f4;
	text-decoration: none;
}

.myprop-project-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.myprop-project-card:hover .myprop-project-image img {
	transform: scale(1.04);
}

.myprop-project-placeholder {
	padding: 20px;
	color: #707982;
	text-align: center;
}

.myprop-project-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

.myprop-project-title {
	margin: 0 0 12px;
	font-size: clamp(21px, 2vw, 28px);
	line-height: 1.25;
}

.myprop-project-title a {
	color: #142a46;
	text-decoration: none;
}

.myprop-project-excerpt {
	margin: 0 0 20px;
	color: #68717a;
	font-size: 15px;
	line-height: 1.7;
}

.myprop-project-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	min-height: 44px;
	margin-top: auto;
	padding: 11px 18px;
	background: var(--myprop-button-color, #d5873b);
	color: var(--myprop-button-text-color, #fff);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .2s ease, color .2s ease;
}

.myprop-project-button:hover,
.myprop-project-button:focus {
	background: var(--myprop-button-hover-color, #b96f2d);
	color: var(--myprop-button-text-color, #fff);
}

.myprop-projects-empty {
	padding: 22px;
	background: #f4f6f7;
	color: #5f6871;
	text-align: center;
}

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

@media (max-width: 980px) {
	.myprop-project-grid.myprop-columns-2,
	.myprop-project-grid.myprop-columns-3,
	.myprop-project-grid.myprop-columns-4,
	.myprop-project-grid.myprop-columns-5,
	.myprop-project-grid.myprop-columns-6 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

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

	.myprop-project-grid {
		gap: 22px;
	}

	.myprop-project-content {
		padding: 21px;
	}

	.myprop-project-button {
		width: 100%;
	}

	.myprop-project-grid.myprop-mobile-columns-2 {
		gap: 14px;
	}

	.myprop-project-grid.myprop-mobile-columns-2 .myprop-project-content {
		padding: 14px;
	}

	.myprop-project-grid.myprop-mobile-columns-2 .myprop-project-title {
		font-size: 17px;
	}

	.myprop-project-grid.myprop-mobile-columns-2 .myprop-project-excerpt {
		font-size: 13px;
		line-height: 1.55;
	}

	.myprop-project-grid.myprop-mobile-columns-2 .myprop-project-button {
		min-height: 40px;
		padding: 9px 10px;
		font-size: 10px;
		letter-spacing: .03em;
	}
}
