/* Galileo blog cards: fixed media frame regardless of source image ratio */
.woodmart-archive-blog .wd-post-img,
.blog .wd-post-img,
.wd-blog-holder .wd-post-img,
.related-posts .wd-post-img {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	height: auto !important;
	overflow: hidden;
	background: #f1f5f9;
}

.woodmart-archive-blog .wd-post-img img,
.blog .wd-post-img img,
.wd-blog-holder .wd-post-img img,
.related-posts .wd-post-img img,
.woodmart-archive-blog .wd-post-thumb img,
.blog .wd-post-thumb img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Keep cards even in the grid */
.woodmart-archive-blog .wd-blog-holder > .wd-post,
.wd-blog-holder > .blog-post-loop {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.woodmart-archive-blog .wd-post-inner,
.wd-blog-holder .wd-post-inner {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	height: 100%;
}

.woodmart-archive-blog .wd-entities-title,
.wd-blog-holder .wd-entities-title {
	min-height: 3.2em;
}

/* Single post author label already filtered; hide broken gravatar email cue */
.single-post .wd-post-author .avatar,
.woodmart-archive-blog .wd-post-author .avatar,
.blog .wd-post-author .avatar {
	border-radius: 50%;
}

/* Related products on single posts */
.gq-related-products {
	margin: 48px 0 24px;
	padding-top: 32px;
	border-top: 1px solid #e2e8f0;
}

.gq-related-heading {
	margin: 0 0 20px;
	font-size: 1.5rem;
	font-weight: 700;
}

.gq-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

.gq-related-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
}

.gq-related-media {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	background: #f1f5f9;
}

.gq-related-media img,
.gq-related-img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}

.gq-related-body {
	padding: 14px 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.gq-related-title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.35;
	min-height: 2.7em;
}

.gq-related-title a {
	color: inherit;
	text-decoration: none;
}

.gq-related-title a:hover {
	text-decoration: underline;
}

.gq-related-cta {
	display: inline-block;
	align-self: flex-start;
	margin-top: auto;
	padding: 8px 14px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #fff;
	background: #1e3a5f;
	border-radius: 6px;
	text-decoration: none;
}

.gq-related-cta:hover {
	background: #152a45;
	color: #fff;
}
