/*
	Page Builder - frontend styles for builder-authored blocks.

	Loaded on every frontend page (system/module/header.php -> STYLES) and into
	the editor canvas (cms/system/module/pagebuilder.php -> PB_CFG.assets.css),
	so a block looks the same in the builder and on the live site.

	Only the SOCIAL FEED block lives here. The markup is generated server-side by
	SocialFeed::section()/listMarkup() - see cms/system/class/socialfeed.class.php.

	NOTE: the "hide an H1" utility (.pb-sr-only) is deliberately NOT here - that
	requirement was dropped from scope.
*/

.pb-social {
	margin: 32px 0;
}

.pb-social-title {
	margin: 0 0 16px;
	font-size: 1.4rem;
	line-height: 1.3;
}

.pb-social-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Layout comes from the block's data-pb-layout attribute, so one cached feed can
   be rendered in either layout without being re-fetched. */
.pb-social[data-pb-layout="list"] .pb-social-list {
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
}

.pb-social[data-pb-layout="list"] .pb-social-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	text-align: left;
}

.pb-social[data-pb-layout="list"] .pb-social-image {
	width: 132px;
	min-width: 132px;
	height: 132px;
	margin-bottom: 0;
}

.pb-social-item {
	border: 1px solid #e3e8ee;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	text-align: center;
}

.pb-social-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.pb-social-image {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
	background: #eef2f6;
}

.pb-social-text {
	display: block;
	padding: 12px;
	font-size: 0.92rem;
	line-height: 1.45;
}

.pb-social-time {
	display: block;
	padding: 0 12px 12px;
	font-size: 0.78rem;
	opacity: 0.65;
}

.pb-social-fallback {
	margin: 0;
	font-size: 0.95rem;
}

@media (max-width: 991px) {
	.pb-social-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.pb-social-list,
	.pb-social[data-pb-layout="list"] .pb-social-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.pb-social[data-pb-layout="list"] .pb-social-item {
		display: block;
	}

	.pb-social[data-pb-layout="list"] .pb-social-image {
		width: 100%;
		height: 200px;
	}
}
