/* Related Posts And Products */
.wpsddc-related {
	clear: both;
	margin: 2.5em 0 1.5em;
}

.wpsddc-related__title {
	margin: 0 0 0.75em;
	font-size: 1.35em;
}

/* Always A Single Row: grid-auto-flow:column Lays Items Out Horizontally
   Instead Of Wrapping To New Rows As The Count Grows (8 By Default On Large
   Screens -- see wpsddc_related_posts_count). The Scroll Wrapper Below Lets
   Narrower Screens Shrink Each Card Down To Its 120px Floor And Then Scroll
   Horizontally For The Rest, Rather Than Wrapping Or Squashing Everything. */
.wpsddc-related__scroll {
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scroll-snap-type: x proximity;
}

.wpsddc-related__grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(120px, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0 0 10px;
	list-style: none;
}

.wpsddc-related__item {
	margin: 0;
	padding: 0;
	scroll-snap-align: start;
}

.wpsddc-related__link {
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: inherit;
	text-decoration: none;
}

.wpsddc-related__media {
	display: block;
	overflow: hidden;
	border-radius: 6px;
	aspect-ratio: 4 / 3;
	background: #f0f0f1;
}

.wpsddc-related__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 240ms ease;
}

.wpsddc-related__name {
	display: block;
	padding: 6px 10px;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: break-word;
	word-break: break-word;
	box-sizing: border-box;
}

.wpsddc-related__link:hover .wpsddc-related__name,
.wpsddc-related__link:focus-visible .wpsddc-related__name {
	text-decoration: underline;
}

.wpsddc-related__link:hover .wpsddc-related__image {
	transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
	.wpsddc-related__image {
		transition: none;
	}
}
