/* EB Post Feed — front-end styles */

.eb-posts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	width: 100%;
}

/* ---------- Card ---------- */
.eb-posts__card {
	display: flex;
	flex-direction: column;
	background: #3a3a3a;
	border: 0 solid transparent;
	border-radius: 8px;
	padding: 12px 12px 16px;
	min-width: 0;
}

.eb-posts__card--hidden {
	display: none;
}

.eb-posts__card--revealing {
	animation: eb-posts-reveal 0.4s ease both;
}

@keyframes eb-posts-reveal {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Image ---------- */
.eb-posts__img-link {
	display: block;
	line-height: 0;
}

.eb-posts__img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.eb-posts__img-link:hover .eb-posts__img {
	opacity: 0.88;
}

/* ---------- Body ---------- */
.eb-posts__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding-top: 14px;
}

.eb-posts__date {
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.04em;
	color: #fff;
	margin-bottom: 6px;
}

.eb-posts__title {
	margin: 0 0 14px;
	font-weight: 800;
	font-size: 19px;
	line-height: 1.25;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #fff;
}

.eb-posts__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.eb-posts__source {
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #e6e6e6;
	margin-top: auto;       /* pins source + button to the card bottom */
	margin-bottom: 12px;
}

/* ---------- Card button (outlined "SEE IT HERE") ---------- */
.eb-posts__btn {
	display: block;
	text-align: center;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	background: transparent;
	border: 1px solid #c8102e;
	border-radius: 4px;
	padding: 10px 16px;
	transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

/* ---------- See More button ---------- */
.eb-posts__more {
	display: block;
	margin: 32px auto 0;
	background: none;
	border: 0;
	padding: 16px 40px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 800;
	font-size: 20px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	transition: color 0.25s ease, background 0.25s ease;
}

.eb-posts__more.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

/* ---------- Responsive safety net ---------- */
@media (max-width: 480px) {
	.eb-posts {
		grid-template-columns: 1fr !important;
	}
}
