/* -------------------------------------------------------
   Related Posts Plugin — Responsive Styles
   Desktop: 3 horizontal cards | Mobile: 1 per row stacked
------------------------------------------------------- */

.related-posts-wrapper {
	margin: 48px 0 24px;
	padding-top: 32px;
	border-top: 1px solid #e5e5e5;
	clear: both;
}

.related-posts-title {
	margin: 0 0 20px;
	font-size: 1.1em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #333;
}

/* Grid: 3 equal columns on desktop */
.related-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Card link — reset anchor styling */
.related-post-card {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s ease;
}

.related-post-card:hover {
	opacity: 0.8;
	text-decoration: none;
	color: inherit;
}

/* Image container */
.related-post-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 6px;
	background-color: #e8e8e8;
}

.related-post-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 6px;
}

/* Placeholder when no featured image */
.related-post-placeholder {
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: #e0e0e0;
	border-radius: 6px;
}

/* Post title below the image */
.related-post-title {
	margin-top: 10px;
	font-size: 0.95em;
	font-weight: 600;
	line-height: 1.45;
	color: #222;
}

/* -------------------------------------------------------
   Tablet: 2 columns
------------------------------------------------------- */
@media (max-width: 780px) {
	.related-posts-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px;
	}
}

/* -------------------------------------------------------
   Mobile: single column stack
------------------------------------------------------- */
@media (max-width: 480px) {
	.related-posts-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.related-posts-wrapper {
		margin-top: 32px;
		padding-top: 24px;
	}
}
