.smdpf-projects {
	--smdpf-gap: 24px;
	width: 100%;
	box-sizing: border-box;
}

.smdpf-projects *,
.smdpf-projects *::before,
.smdpf-projects *::after {
	box-sizing: border-box;
}

.smdpf-projects__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 0 0 28px;
}

.smdpf-filter-button {
	padding: 9px 16px;
	border: 1px solid currentColor;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 14px;
	line-height: 1.35;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.smdpf-filter-button:hover,
.smdpf-filter-button:focus-visible,
.smdpf-filter-button.is-active {
	border-color: var(--smdpf-accent);
	background: var(--smdpf-accent);
	color: #fff;
}

.smdpf-filter-button:focus-visible,
.smdpf-card__link:focus-visible {
	outline: 2px solid var(--smdpf-accent);
	outline-offset: 3px;
}

.smdpf-grid {
	display: grid;
	grid-template-columns: repeat(var(--smdpf-columns), minmax(0, 1fr));
	gap: var(--smdpf-gap);
}

.smdpf-card {
	min-width: 0;
}

.smdpf-card__link {
	display: block;
	position: relative;
	color: inherit;
	text-decoration: none;
}

.smdpf-card__media {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #e8e5e1;
}

.smdpf-projects--ratio-square .smdpf-card__media {
	aspect-ratio: 1 / 1;
}

.smdpf-projects--ratio-portrait .smdpf-card__media {
	aspect-ratio: 3 / 4;
}

.smdpf-card__image,
.smdpf-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s ease;
}

.smdpf-card__placeholder {
	background: linear-gradient(135deg, #d9d2ca, #8f8177);
}

.smdpf-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .72) 100%);
	pointer-events: none;
}

.smdpf-card__overlay {
	position: absolute;
	z-index: 1;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 24px 20px 18px;
	color: #fff;
}

.smdpf-card__title {
	margin: 0;
	color: inherit;
	font-size: clamp(16px, 1.8vw, 24px);
	font-weight: 500;
	line-height: 1.25;
	text-wrap: balance;
}

.smdpf-card__link:hover .smdpf-card__image,
.smdpf-card__link:hover .smdpf-card__placeholder {
	transform: scale(1.04);
}

.smdpf-card[hidden] {
	display: none;
}

.smdpf-empty {
	margin: 24px 0 0;
	color: inherit;
	font-size: 15px;
}

.smdpf-empty--standalone,
.smdpf-notice {
	padding: 16px;
	border: 1px solid #dcdcde;
	background: #f6f7f7;
}

.smdpf-notice--warning {
	border-left: 4px solid #dba617;
}

@media (max-width: 1024px) {
	.smdpf-grid {
		grid-template-columns: repeat(var(--smdpf-columns-tablet), minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.smdpf-projects {
		--smdpf-gap: 16px;
	}

	.smdpf-grid {
		grid-template-columns: repeat(var(--smdpf-columns-mobile), minmax(0, 1fr));
	}

	.smdpf-projects__filters {
		gap: 8px;
		margin-bottom: 20px;
	}

	.smdpf-filter-button {
		padding: 8px 12px;
		font-size: 13px;
	}

	.smdpf-card__overlay {
		padding: 20px 14px 14px;
	}

	.smdpf-card__title {
		font-size: 17px;
	}
}
