/* Terrifico Pro front-end styles. Loaded after the theme's stylesheet and reads its --tf-* variables. */

/* Masonry blog layout (Blog Pro). */

.tf-posts--masonry {
	display: block;
	columns: 1;
	column-gap: clamp(24px, 3vw, 40px);
}

.tf-posts--masonry .tf-card {
	display: block;
	margin-bottom: clamp(24px, 3vw, 40px);
	break-inside: avoid;
}

.tf-posts--masonry .tf-card .entry-title {
	font-size: var(--tf-h4);
}

@media (min-width: 600px) {
	.tf-posts--masonry {
		columns: 2;
	}
}

@media (min-width: 992px) {
	.tf-posts--masonry {
		columns: var(--tf-masonry-cols, 2);
	}
}

/* Reading time meta item. */

.tf-meta__readtime {
	white-space: nowrap;
}

/* Related posts under a single post. */

.tf-related {
	margin-top: clamp(40px, 6vw, 72px);
	padding-top: clamp(32px, 4vw, 48px);
	border-top: 1px solid var(--tf-color-border);
}

.tf-related__title {
	margin: 0 0 clamp(20px, 3vw, 32px);
	font-size: var(--tf-h3);
}

.tf-related__grid .tf-card .entry-title {
	font-size: var(--tf-h5);
}

.tf-related__grid .tf-card .tf-meta {
	margin-bottom: 0;
}
