/* Facebook news cards on the home page. The HTML is generated on the server by
   jss-news (see README) and inserted by Caddy in place of the <!--jss: ... --> tags. */
.jss-news {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
	margin: 10px 0 24px;
	text-align: left;
}
.jss-post {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
	transition: box-shadow .2s, transform .2s;
}
.jss-post:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
	transform: translateY(-2px);
}
.jss-post.is-text {
	border-top: 4px solid #b50000;
}
.jss-post-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #eee;
}
/* blurred copy of the photo behind it, so posters and portrait photos are never cropped */
.jss-post-media::before {
	content: "";
	position: absolute;
	inset: -24px;
	background: var(--jss-bg) center / cover;
	filter: blur(20px) brightness(.95);
	opacity: .55;
}
.jss-post-media img {
	position: relative;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
}
.jss-post.is-video .jss-post-media::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% 50% / 28px no-repeat;
}
.jss-post-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 14px 16px 16px;
}
.jss-post-meta {
	margin: 0 0 6px;
	font-size: 12px;
	color: #777;
}
.jss-post-title {
	margin: 0 0 6px;
	font-weight: 600;
}
.jss-post-text {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}
.jss-post-more {
	margin-top: auto;
	font-size: 13px;
	font-weight: 600;
}
.jss-post-more::after {
	content: " \2192";
}
.jss-news-follow {
	margin: 6px 0 0;
	text-align: center;
}
.jss-news-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 6px;
	background: #1877f2;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
}
.jss-news-btn:hover,
.jss-news-btn:focus {
	background: #0f63d6;
}
@media (prefers-reduced-motion: reduce) {
	.jss-post { transition: none; }
	.jss-post:hover { transform: none; }
}
