.cfp-fb-page {
	max-width: 500px;
}

.cfp-fb-page__scroller {
	max-height: 600px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding-right: 16px;
}

.cfp-fb-featured {
	position: relative;
	margin-bottom: 1.5rem;
}

.cfp-fb-featured .cfp-fb-post {
	border-color: #ffb900;
}

.cfp-fb-featured__badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 1;
	padding: 3px 10px;
	border-radius: 999px;
	background: #ffb900;
	color: #1d2327;
	font-size: 0.75em;
	font-weight: 600;
}

.cfp-fb-page__header {
	position: relative;
	margin-bottom: 1.5rem;
	border-radius: 8px;
	background: #f4f4f4;
}

.cfp-fb-page__cover {
	border-radius: 8px 8px 0 0;
	overflow: hidden;
}

.cfp-fb-page__cover img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.cfp-fb-page__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 12px 16px;
	border-radius: 0 0 8px 8px;
}

.cfp-fb-page__header--no-cover .cfp-fb-page__meta {
	border-radius: 8px;
}

.cfp-fb-page__identity {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.cfp-fb-page__avatar {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	background: #fff;
	border: 3px solid #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.cfp-fb-page__header:not(.cfp-fb-page__header--no-cover) .cfp-fb-page__avatar {
	margin-top: -40px;
}

.cfp-fb-page__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cfp-fb-page__name {
	margin: 0;
	font-size: 1.05em;
	line-height: 1.4;
}

.cfp-fb-page__name a {
	color: inherit;
	text-decoration: none;
}

.cfp-fb-page__name a:hover {
	text-decoration: underline;
}

.cfp-fb-posts {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.cfp-fb-post {
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.cfp-fb-post__link {
	display: block;
	color: inherit;
	text-decoration: none;
	transition: box-shadow 0.2s ease;
}

.cfp-fb-post__link:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cfp-fb-post__media {
	position: relative;
}

.cfp-fb-post__media img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	display: block;
}

.cfp-fb-post__media--grid {
	display: grid;
	gap: 2px;
	grid-template-columns: repeat(2, 1fr);
	grid-auto-rows: 130px;
}

.cfp-fb-post__media--grid-1 {
	grid-template-columns: 1fr;
	grid-auto-rows: 260px;
}

.cfp-fb-post__media--grid-3 .cfp-fb-post__media-item:first-child {
	grid-row: span 2;
}

.cfp-fb-post__media-item {
	position: relative;
	overflow: hidden;
}

.cfp-fb-post__media-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cfp-fb-post__media-more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 1.4em;
	font-weight: 600;
}

.cfp-fb-post__play-badge {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 56px;
	height: 56px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
}

.cfp-fb-post__play-badge::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 55%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #fff;
}

.cfp-fb-post__body {
	padding: 12px 14px;
}

.cfp-fb-post__time {
	display: block;
	font-size: 0.8em;
	color: #888;
	margin-bottom: 6px;
}

.cfp-fb-post__text {
	margin: 0;
	font-size: 0.85em;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cfp-fb-more {
	margin-top: 1rem;
	text-align: center;
	font-size: 1.6em;
	line-height: 1;
	letter-spacing: 2px;
	color: #999;
}

.cfp-fb-cta {
	margin-top: 1rem;
	text-align: center;
}

.cfp-fb-cta__button {
	display: inline-block;
	padding: 10px 24px;
	border-radius: 999px;
	background: #1877f2;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease;
}

.cfp-fb-cta__button:hover {
	background: #145dbf;
	color: #fff;
}

.cfp-fb-posts__empty {
	padding: 16px;
	border: 1px dashed #d63638;
	color: #d63638;
	border-radius: 6px;
}
