.fbvg {
	--fbvg-cols: 4;
	--fbvg-cols-t: 2;
	--fbvg-cols-m: 1;
	--fbvg-gap: 16px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.fbvg *,
.fbvg *::before,
.fbvg *::after {
	box-sizing: border-box;
}

.fbvg .fbvg-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--fbvg-cols), minmax(0, 1fr));
	gap: var(--fbvg-gap);
}

.fbvg .fbvg-item {
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 0;
}

.fbvg .fbvg-item[hidden] {
	display: none !important;
}

.fbvg .fbvg-frame {
	position: relative;
	width: 100%;
	background: #111;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.fbvg .fbvg-ratio-9-16 .fbvg-frame { aspect-ratio: 9 / 16; }
.fbvg .fbvg-ratio-1-1 .fbvg-frame  { aspect-ratio: 1 / 1; }
.fbvg .fbvg-ratio-4-5 .fbvg-frame  { aspect-ratio: 4 / 5; }

.fbvg .fbvg-frame iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.fbvg .fbvg-link {
	display: inline-block;
	margin-top: 6px;
	font-size: 0.85em;
}

.fbvg .fbvg-more-wrap {
	text-align: center;
	margin-top: 28px;
}

.fbvg .fbvg-more {
	cursor: pointer;
	padding: 0.75em 1.8em;
	border: 0;
	border-radius: 999px;
	background: #1877f2;
	color: #fff;
	font-size: 1em;
	font-weight: 600;
	line-height: 1.2;
	transition: background 0.15s ease;
}

.fbvg .fbvg-more:hover,
.fbvg .fbvg-more:focus-visible {
	background: #145dbf;
	color: #fff;
}

.fbvg .fbvg-more:focus-visible {
	outline: 2px solid #145dbf;
	outline-offset: 2px;
}

.fbvg .fbvg-more[hidden] {
	display: none !important;
}

.fbvg-notice {
	padding: 12px 16px;
	border: 1px dashed #c3c4c7;
	background: #f6f7f7;
	color: #50575e;
}

@media (max-width: 1024px) {
	.fbvg .fbvg-grid {
		grid-template-columns: repeat(var(--fbvg-cols-t), minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.fbvg .fbvg-grid {
		grid-template-columns: repeat(var(--fbvg-cols-m), minmax(0, 1fr));
	}
}
