/* Set a consistent landscape thumbnail size for recent-post widgets site-wide. */
.widget_recent_entries li:has(img),
.widget_recent_posts li:has(img),
.recent-posts-widget-with-thumbnails li,
.rpwe_widget li,
.wp-block-latest-posts li:has(img) {
	display: grid !important;
	grid-template-columns: minmax(0, 150px) minmax(0, 1fr) !important;
	align-items: start;
	gap: 0 10px;
}

.widget_recent_entries li:has(img) > a:first-child,
.widget_recent_posts li:has(img) > a:first-child,
.recent-posts-widget-with-thumbnails li > a:first-child,
.rpwe_widget li > a:first-child,
.wp-block-latest-posts li:has(img) .wp-block-latest-posts__featured-image {
	grid-column: 1;
	grid-row: 1 / span 2;
	display: block !important;
	width: 150px !important;
	max-width: 100% !important;
	height: 90px !important;
	margin: 0 !important;
	overflow: hidden;
}

.widget_recent_entries li:has(img) img,
.widget_recent_posts li:has(img) img,
.recent-posts-widget-with-thumbnails li img,
.rpwe_widget li img,
.wp-block-latest-posts li:has(img) img {
	display: block !important;
	width: 150px !important;
	max-width: 100% !important;
	height: 90px !important;
	object-fit: cover !important;
	aspect-ratio: auto !important;
}

.widget_recent_entries li:has(img) > a:not(:has(img)),
.widget_recent_posts li:has(img) > a:not(:has(img)),
.recent-posts-widget-with-thumbnails li > a:not(:has(img)),
.rpwe_widget li > a:not(:has(img)),
.wp-block-latest-posts li:has(img) > a:not(:has(img)) {
	grid-column: 2;
	align-self: center;
}

.widget_recent_entries li:has(img) .post-date,
.widget_recent_posts li:has(img) .post-date,
.recent-posts-widget-with-thumbnails li .post-date,
.rpwe_widget li .rpwe-time,
.wp-block-latest-posts li:has(img) time {
	grid-column: 2;
}

/* Flatsome Recent Posts renders its thumbnail as a background on the date badge. */
.flatsome_recent_posts .recent-blog-posts-li {
	height: auto !important;
	overflow: visible !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.flatsome_recent_posts .recent-blog-posts-li > .recent-blog-posts {
	display: grid !important;
	grid-template-columns: 150px minmax(0, 1fr) !important;
	align-items: start;
	gap: 0 10px;
	margin: 0 !important;
}

.flatsome_recent_posts .recent-blog-posts-li > .recent-blog-posts > .flex-col.mr-half {
	flex: 0 0 150px !important;
	width: 150px !important;
	max-width: 150px !important;
	margin: 0 !important;
	padding: 0 !important;
}

.flatsome_recent_posts .recent-blog-posts-li .badge.post-date {
	display: block !important;
	width: 150px !important;
	height: 90px !important;
	margin: 0 !important;
}

.flatsome_recent_posts .recent-blog-posts-li .badge.post-date > .badge-inner.bg-fill {
	display: flex;
	width: 100% !important;
	height: 90px !important;
	min-height: 90px !important;
	align-items: center;
	justify-content: center;
	background-position: center !important;
	background-size: cover !important;
	border-radius: 8px;
}

.flatsome_recent_posts .recent-blog-posts-li > .recent-blog-posts > .flex-col.flex-grow {
	display: flex !important;
	flex-direction: column;
	justify-content: flex-start;
	align-self: stretch;
	min-width: 0;
	width: auto !important;
	max-width: none !important;
	height: auto !important;
	min-height: 90px;
	max-height: 8.4em;
	padding: 0 !important;
	overflow: hidden !important;
}

.flatsome_recent_posts .recent-blog-posts-li > .recent-blog-posts > .flex-col.flex-grow > a {
	display: block;
	overflow: visible;
	line-height: 1.25;
	white-space: normal;
	overflow-wrap: anywhere;
}

.flatsome_recent_posts .recent-blog-posts-li .post_comments {
	order: 3;
	overflow: visible;
	text-overflow: clip;
	white-space: normal;
	overflow-wrap: anywhere;
}

.flatsome_recent_posts .wpqt-flatsome-post-excerpt {
	display: block;
	order: 2;
	overflow: visible;
	margin-top: 3px;
	color: #6b7280;
	line-height: 1.25;
	white-space: normal;
	overflow-wrap: anywhere;
}
