.epoxy-projects {
	font-family: Poppins, Helvetica, Arial, sans-serif;
}

.epoxy-projects__empty {
	max-width: 56ch;
	margin: 0 auto;
	text-align: center;
}

.epoxy-projects__empty a {
	color: #8d7344;
	text-decoration: underline;
}

.epoxy-projects__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 32px;
}

.epoxy-projects__filters button {
	min-height: 44px;
	padding: 8px 22px;
	border: 1px solid #c1b48a;
	border-radius: 999px;
	background: transparent;
	color: #1c1917;
	font: 500 14px/1.4 Poppins, Helvetica, Arial, sans-serif;
	cursor: pointer;
}

.epoxy-projects__filters button[aria-pressed="true"] {
	background: #c1b48a;
	color: #1c1917;
}

.epoxy-projects ul.epoxy-projects__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 32px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.epoxy-projects__grid > li[hidden] {
	display: none;
}

.epoxy-projects__card {
	display: block;
	color: #1c1917;
}

.epoxy-projects__card img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: #e6e0d4;
	transition: opacity 0.2s ease;
}

.epoxy-projects__card:hover img {
	opacity: 0.88;
}

.epoxy-projects__card:focus-visible,
.epoxy-projects button:focus-visible {
	outline: 2px solid #8d7344;
	outline-offset: 3px;
}

.epoxy-projects__title,
.epoxy-projects__meta {
	display: block;
}

.epoxy-projects__title {
	color: #1c1917;
	margin-top: 12px;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.35;
}

.epoxy-projects__meta {
	color: #8d7344;
	font-size: 13px;
}

.epoxy-projects__viewer {
	width: min(1100px, calc(100vw - 24px));
	max-width: none;
	max-height: calc(100vh - 24px);
	padding: 0;
	border: 0;
	background: #1c1917;
	color: #f6f3ec;
}

.epoxy-projects__viewer::backdrop {
	background: rgba(20, 16, 12, 0.86);
}

.epoxy-projects__viewer img {
	display: block;
	width: 100%;
	height: min(70vh, 720px);
	object-fit: contain;
}

.epoxy-projects__viewer button {
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: #f6f3ec;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.epoxy-projects__viewer .epoxy-projects__close {
	display: block;
	margin-left: auto;
}

.epoxy-projects__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px 14px;
}

.epoxy-projects__bar p {
	flex: 1;
	margin: 0;
	padding: 0;
	text-align: center;
}

.epoxy-projects__bar p > * {
	display: block;
}

@media (prefers-reduced-motion: reduce) {
	.epoxy-projects__card img {
		transition: none;
	}
}
