/* ==========================================================================
   Simply News — Post Feed
   Structural styles only. Brand colors/fonts set by client config plugin.
   ========================================================================== */

:root {
	--sn-radius: 0;
}

/* ---- Optional heading block --------------------------------------------- */

.sn-feed-block__heading {
	font-family: var( --client-font-display, sans-serif );
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 24px;
}

/* ---- Grid --------------------------------------------------------------- */

.sn-feed {
	display: grid;
	grid-template-columns: repeat( var( --sn-columns, 3 ), 1fr );
	gap: 32px;
}

/* ---- Card --------------------------------------------------------------- */

.sn-card {
	position: relative;
	display: flex;
	flex-direction: column;
}

/* Stretched link covers the entire card */
.sn-card__link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* ---- Photo -------------------------------------------------------------- */

.sn-card__photo {
	border-radius: var( --sn-radius, 0 );
	overflow: hidden;
	aspect-ratio: 16 / 9;
	margin-bottom: 20px;
	outline: 2px solid rgba( 255, 255, 255, 0.3 );
	outline-offset: -2px;
}

.sn-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	transition: transform 0.4s ease;
}

.sn-card:hover .sn-card__photo img {
	transform: scale( 1.03 );
}

/* ---- Body --------------------------------------------------------------- */

.sn-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* ---- Category ----------------------------------------------------------- */

.sn-card .sn-card__category {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 8px 0 0;
	opacity: 0.7;
}

/* ---- Title -------------------------------------------------------------- */

.sn-card__title {
	font-family: var( --client-font-primary, sans-serif );
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 5px;
}

/* ---- Date --------------------------------------------------------------- */

.sn-card .sn-card__date {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: capitalize;
	opacity: 0.6;
	margin: 0 0 16px;
}

/* ---- Read More ---------------------------------------------------------- */

.sn-card__read-more {
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	margin-top: auto;
	display: inline-block;
}

.sn-card:hover .sn-card__read-more {
	text-decoration-thickness: 2px;
}

/* ---- Responsive --------------------------------------------------------- */

@media ( max-width: 900px ) {
	.sn-feed {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 560px ) {
	.sn-feed {
		grid-template-columns: 1fr;
	}
}
