/* Related posts — same category, max 6, random */

.gpchild-related {
	padding: 1.5rem;
	border-top: 2px solid #e3ebe6;
}

.gpchild-related__title {
	font-size: 1.5rem;
	margin: 0 0 1.5rem;
	line-height: 1.3;
}

.gpchild-related__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem 1.25rem;
}

.gpchild-related__item {
	margin: 0;
}

.gpchild-related__link {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	height: 100%;
	text-decoration: none;
	color: inherit;
	border-radius: 8px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.02);
	border: 1px solid rgba(0, 0, 0, 0.06);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gpchild-related__link:hover,
.gpchild-related__link:focus-visible {
	border-color: rgba(1, 126, 183, 0.35);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
	outline: none;
}

.gpchild-related__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.05);
}

.gpchild-related__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gpchild-related__text {
	display: block;
	padding: 0.65rem 0.75rem 0.85rem;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.35;
	color: #000;
}
.gpchild-related__text a{
	text-decoration: none !important;
}

.gpchild-related__text:hover {
	color: #237a50 !important;
}

@media (max-width: 500px) {
	.gpchild-related__list {
		grid-template-columns: 1fr;
	}
}
