/* Global Good feed row.
   Sizes in px on purpose: the barrel theme sets html{font-size:62.5%},
   so rem here would render at 62.5% of the intended size. */

.ev-gg {
	--ev-gg-cols: 4;
	--ev-gg-gap: 24px;
	--ev-gg-card-bg: #fff;
	--ev-gg-border: #e6e8eb;
	--ev-gg-accent: #1a1a1a;
	--ev-gg-accent-fg: #fff;
	--ev-gg-muted: #6b7280;
	--ev-gg-highlight: #fad715;
	--ev-gg-radius: 12px;

	margin: 0 0 40px;
}

.ev-gg__heading {
	margin: 0 0 24px;
	font-size: 28px;
	line-height: 1.2;
	text-align: center;
}

.ev-gg__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--ev-gg-gap);
	grid-template-columns: repeat(var(--ev-gg-cols), minmax(0, 1fr));
}

.ev-gg__item {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
}

.ev-gg__card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: var(--ev-gg-card-bg);
	border: 1px solid var(--ev-gg-border);
	border-radius: var(--ev-gg-radius);
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ev-gg__card:hover {
	transform: translateY(-3px);
	border-color: #d4d8de;
	box-shadow: 0 10px 26px rgba(16, 24, 40, 0.1);
}

.ev-gg__media {
	display: block;
	aspect-ratio: 16 / 9;
	background: #f3f4f6;
	overflow: hidden;
}

.ev-gg__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.ev-gg__card:hover .ev-gg__img {
	transform: scale(1.04);
}

.ev-gg__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 8px;
	padding: 18px 20px 22px;
}

.ev-gg__date {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #111;
}

.ev-gg__date::after {
	content: "";
	display: block;
	width: 32px;
	height: 3px;
	margin-top: 8px;
	background: var(--ev-gg-highlight);
	border-radius: 2px;
}

/* Three classes deliberately. The theme ships two rules that would otherwise
   win on specificity:
     barrel/style.css  h1..h6                        { font-weight: normal }
     barrel/style.css  .blog-post .entry-content h3   { margin-top: 30px }
   The second is (0,2,1), so a single .ev-gg__title (0,1,0) loses and the card
   title ends up light and pushed 30px off the divider. */
.ev-gg .ev-gg__card .ev-gg__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.ev-gg__title a {
	color: inherit;
	text-decoration: none;
}

.ev-gg__title a:hover {
	text-decoration: underline;
}

.ev-gg__title a:focus-visible,
.ev-gg__morebtn:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.ev-gg__excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #4b5563;
}

.ev-gg__more {
	margin: 32px 0 0;
	text-align: center;
}

.ev-gg__morebtn {
	display: inline-block;
	padding: 0.8em 2em;
	background: var(--ev-gg-accent);
	color: var(--ev-gg-accent-fg);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	border-radius: 999px;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.ev-gg__morebtn:hover {
	opacity: 0.88;
	transform: translateY(-2px);
	color: var(--ev-gg-accent-fg);
}

@media (max-width: 1024px) {
	.ev-gg__grid {
		grid-template-columns: repeat(min(var(--ev-gg-cols), 2), minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.ev-gg {
		--ev-gg-gap: 16px;
	}
	.ev-gg__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ev-gg__card,
	.ev-gg__img,
	.ev-gg__morebtn {
		transition: none;
	}
	.ev-gg__card:hover,
	.ev-gg__morebtn:hover {
		transform: none;
	}
	.ev-gg__card:hover .ev-gg__img {
		transform: none;
	}
}
