/* =========================================================================
   Wpea Press Mentions — Front-end styles
   Used by the [wpeapm_press_mentions] and [wpeapm_press_mention] shortcodes.
   Edit this file directly to change how the cards look on your site.
   ========================================================================= */

/* Outer wrapper for the grid shortcode. Column counts come from
   --wpeapm-cols / --wpeapm-mobile-cols, set inline per-shortcode (from
   Display Settings or the columns/mobile_columns attributes) — change
   gap/margin here, not columns. */
.wpeapm-wrap-front--grid {
	display: grid;
	gap: 24px;
	margin: 24px 0;
	grid-template-columns: repeat(var(--wpeapm-cols, 3), 1fr);
}

/* Mobile breakpoint (screens under 783px wide). */
@media (max-width: 782px) {
	.wpeapm-wrap-front--grid {
		grid-template-columns: repeat(var(--wpeapm-mobile-cols, 1), 1fr);
		gap: 16px;
	}
}

/* Wrapper used by the single-card shortcode [wpeapm_press_mention id="X"].
   Caps the card's width so a lone card doesn't stretch full-width. */
.wpeapm-wrap-front--single .wpeapm-card {
	max-width: 480px;
}

/* The card itself — border, corners, shadow, hover effect. */
.wpeapm-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
	transition: box-shadow .2s ease;
}
.wpeapm-card:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

/* Image area — fixed 16:9 crop so mismatched source images line up. */
.wpeapm-card__image {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f2f2f2; /* shows while the image loads, or if there's no image */
}
.wpeapm-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Padded content area below the image. */
.wpeapm-card__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Small uppercase source label, e.g. "BUILDINGOUROWNNASHVILLE.COM". */
.wpeapm-card__source {
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: .05em;
	color: #777;
	font-weight: 600;
	margin-bottom: 6px;
}

/* Headline. */
.wpeapm-card__title {
	font-size: 22px;
	line-height: 1;
	margin: 0 0 8px;
}
.wpeapm-card__title a {
	color: #1E2853 !important;
	text-decoration: none;
}
.wpeapm-card__title a:hover {
	text-decoration: underline;
}

/* The ~30-word snippet pulled from the article. */
.wpeapm-card__excerpt {
	font-size: 14px;
	line-height: 1.5;
	color: #444;
	flex: 1; /* pushes "Read more" to the bottom even on short excerpts */
	margin: 0 0 12px;
}

/* "Read more →" link. */
.wpeapm-card__readmore {
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	color: #1E2853 !important;
}
.wpeapm-card__readmore:hover {
	text-decoration: underline;
}

/* Shown instead of the grid when no press mentions have been added yet. */
.wpeapm-empty {
	font-style: italic;
	color: #777;
}
