.bgg-sf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 1.25em 1em;
	margin: 1.5em 0 0;
	padding: 0;
	list-style: none;
}

.bgg-sf-grid > li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bgg-sf-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	text-align: center;
	text-decoration: none;
	color: inherit;
	border-bottom: 0;
}

.bgg-sf-link:hover .bgg-sf-name,
.bgg-sf-link:focus .bgg-sf-name {
	text-decoration: underline;
}

.bgg-sf-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.bgg-sf-cover {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	margin-bottom: .5em;
	background: #f2f2f2;
	border-radius: 4px;
	overflow: hidden;
}

.bgg-sf-cover img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	display: block;
	border: 0;
	padding: 0;
}

.bgg-sf-cover-empty {
	background: repeating-linear-gradient(45deg, #f2f2f2, #f2f2f2 8px, #e8e8e8 8px, #e8e8e8 16px);
}

.bgg-sf-name {
	font-weight: 600;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.bgg-sf-meta {
	margin-top: .15em;
	font-size: .8em;
	opacity: .75;
}

.bgg-sf-names {
	columns: 15em;
	column-gap: 2em;
	margin: 1.5em 0 0;
	padding: 0;
	list-style: none;
}

.bgg-sf-names > li {
	margin: 0 0 .2em;
	padding: 0;
	break-inside: avoid;
	list-style: none;
}

.bgg-sf-footer {
	margin-top: 1.5em;
	font-size: .85em;
	opacity: .7;
}

@media (prefers-color-scheme: dark) {
	.bgg-sf-cover {
		background: #2a2a2a;
	}

	.bgg-sf-cover-empty {
		background: repeating-linear-gradient(45deg, #2a2a2a, #2a2a2a 8px, #333 8px, #333 16px);
	}
}
