/* Category archives only: release CRP's fixed 230px card size. */
body.category .main .crp_related.crp-rounded-thumbs > ul {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: clamp(8px, 1.2vw, 16px) !important;
	width: 100% !important;
	max-width: none !important;
	margin: 1em 0 !important;
	padding: 0 !important;
}

body.category .main .crp_related.crp-rounded-thumbs > ul > li {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	min-width: 0;
	aspect-ratio: 1 / 1;
	box-sizing: border-box;
}

body.category .main .crp_related.crp-rounded-thumbs > ul > li > a,
body.category .main .crp_related.crp-rounded-thumbs > ul > li > a > figure {
	display: block;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
}

body.category .main .crp_related.crp-rounded-thumbs img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: #f3f3f3;
}

body.category .main .crp_related.crp-rounded-thumbs .crp_title {
	box-sizing: border-box;
	max-height: none;
	padding: .35rem .45rem;
	font-size: clamp(.76rem, 1.25vw, .9rem);
	line-height: 1.35;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

@media (max-width: 1023px) {
	body.category .content-in.wrap {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100% !important;
		margin-right: auto;
		margin-left: auto;
	}

	body.category main.main {
		box-sizing: border-box;
		width: calc(100% - 20px) !important;
		max-width: none !important;
		margin-right: 10px !important;
		margin-left: 10px !important;
	}

	body.category .main .crp_related.crp-rounded-thumbs > ul {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 640px) {
	body.category main.main {
		width: 100% !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	body.category .main .crp_related.crp-rounded-thumbs > ul {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 260px) {
	body.category .main .crp_related.crp-rounded-thumbs > ul {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}
