.enairio-vesta-gallery {
	--evg-primary: #0c9aa0;
	--evg-primary-dark: #007ca5;
	--evg-ink: #152534;
	--evg-muted: #747c86;
	--evg-soft: #e5f5f5;
	--evg-line: #dce6f1;
	--evg-sun: #fbbf24;
	color: var(--evg-ink);
	font-family: inherit;
	letter-spacing: 0;
	width: 100%;
}

.enairio-vesta-gallery * {
	box-sizing: border-box;
}

.evg-filterbar {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin: 0 0 28px;
}

.evg-filter {
	appearance: none;
	background: #ffffff;
	border: 1px solid var(--evg-line);
	border-radius: 8px;
	color: var(--evg-ink);
	cursor: pointer;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	min-height: 42px;
	padding: 10px 16px;
	text-decoration: none;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.evg-filter:hover,
.evg-filter:focus-visible {
	border-color: var(--evg-primary);
	box-shadow: 0 10px 24px rgba(12, 154, 160, 0.16);
	color: var(--evg-primary-dark);
	outline: none;
	transform: translateY(-1px);
	background: #ffffff;
}

.evg-filter.is-active {
	background: var(--evg-primary);
	border-color: var(--evg-primary);
	box-shadow: 0 14px 28px rgba(12, 154, 160, 0.22);
	color: #ffffff;
}

.evg-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.evg-card {
	aspect-ratio: 4 / 3;
	background: var(--evg-ink);
	border-radius: 8px;
	box-shadow: 0 16px 32px rgba(21, 37, 52, 0.12);
	color: #ffffff;
	display: block;
	isolation: isolate;
	overflow: hidden;
	position: relative;
	text-decoration: none !important;
	transform: translateZ(0);
	transition: box-shadow 220ms ease, transform 220ms ease;
}

.evg-card[hidden] {
	display: none !important;
}

.evg-card:hover,
.evg-card:focus-visible {
	box-shadow: 0 22px 42px rgba(21, 37, 52, 0.18);
	outline: none;
	transform: translateY(-3px);
}

.evg-card:focus-visible {
	box-shadow: 0 0 0 3px rgba(12, 154, 160, 0.35), 0 22px 42px rgba(21, 37, 52, 0.18);
}

.evg-media,
.evg-media img {
	display: block;
	height: 100%;
	inset: 0;
	position: absolute;
	width: 100%;
}

.evg-media {
	background: linear-gradient(135deg, var(--evg-soft), #ffffff);
}

.evg-media img {
	object-fit: cover;
	transition: transform 300ms ease, filter 300ms ease;
}

.evg-media::after {
	background: linear-gradient(180deg, rgba(21, 37, 52, 0) 28%, rgba(21, 37, 52, 0.82) 100%);
	content: "";
	inset: 0;
	position: absolute;
	z-index: 1;
}

.evg-card:hover .evg-media img,
.evg-card:focus-visible .evg-media img {
	filter: saturate(1.06);
	transform: scale(1.04);
}

.evg-content {
	bottom: 0;
	display: grid;
	gap: 7px;
	left: 0;
	padding: 20px;
	position: absolute;
	right: 0;
	z-index: 2;
}

.evg-kicker {
	align-items: center;
	color: #ffffff;
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
}

.evg-kicker::before {
	background: var(--evg-sun);
	border-radius: 999px;
	content: "";
	display: inline-block;
	height: 8px;
	margin-right: 8px;
	width: 8px;
}

.evg-title {
	color: #ffffff;
	display: block;
	font-size: clamp(16px, 1.55vw, 21px);
	font-weight: 800;
	line-height: 1.18;
	max-width: 28rem;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
}

.evg-card.has-image-error .evg-media::before {
	align-items: center;
	color: var(--evg-muted);
	content: "Image indisponible";
	display: flex;
	font-size: 14px;
	font-weight: 700;
	height: 100%;
	justify-content: center;
	position: absolute;
	width: 100%;
}

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

@media (max-width: 640px) {
	.evg-filterbar {
		justify-content: flex-start;
	}

	.evg-filter {
		flex: 1 1 calc(50% - 10px);
		font-size: 14px;
		padding-inline: 12px;
	}

	.evg-grid {
		gap: 16px;
		grid-template-columns: 1fr;
	}

	.evg-content {
		padding: 17px;
	}
}
