/* ============================== Social feed ============================= */

.bb-social__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.bb-social__head .bb-sec-head {
	margin-bottom: 0;
	flex: 1 1 auto;
}

.bb-social__head .bb-sec-head__title {
	font-size: clamp(22px, 2.4vw, 27px);
}

.bb-social__head .bb-sec-head__rule {
	display: none;
}

/* ----------------------------------------------------------------- tabs */

.bb-social__tabs {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
}

.bb-social__tab {
	position: relative;
	padding: 4px 0 8px;
	color: var(--bb-body);
	font-size: 14px;
	font-weight: 500;
	transition: color .2s var(--bb-ease);
}

.bb-social__tab::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2.5px;
	border-radius: 2px;
	background: transparent;
	transition: background-color .2s var(--bb-ease);
}

.bb-social__tab:hover {
	color: var(--bb-navy);
}

.bb-social__tab.is-active {
	color: var(--bb-navy);
	font-weight: 600;
}

.bb-social__tab.is-active::after {
	background: var(--bb-navy);
}

/* ---------------------------------------------------------------- cards */

.bb-social-card {
	--bb-brand: var(--bb-navy);

	display: flex;
	background: #fff;
	border: 1px solid var(--bb-border);
	border-radius: var(--bb-radius);
	overflow: hidden;
	transition: transform .3s var(--bb-ease), box-shadow .3s var(--bb-ease);
}

.bb-social-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--bb-shadow);
}

.bb-social-card__link {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
}

.bb-social-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1.25;
	overflow: hidden;
}

.bb-social-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--bb-ease);
}

.bb-social-card:hover .bb-social-card__media img {
	transform: scale(1.06);
}

.bb-social-card__badge {
	position: absolute;
	left: 10px;
	top: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 7px;
	background: var(--bb-brand);
	color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}

.bb-social-card__badge .bb-icon {
	width: 13px;
	height: 13px;
}

.bb-social-card__badge--inline {
	position: static;
	margin: 16px 0 0 16px;
}

.bb-social-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px 16px;
	flex: 1 1 auto;
}

.bb-social-card__caption {
	color: var(--bb-heading);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bb-social-card__meta {
	margin-top: auto;
	color: var(--bb-body);
	font-size: 12px;
	opacity: .8;
}

/* text-only card (the X post in the design) */
.bb-social-card--text .bb-social-card__caption {
	-webkit-line-clamp: 5;
	font-size: 14.5px;
	line-height: 1.7;
}

.bb-social-card--text .bb-social-card__body {
	padding-top: 10px;
}

/* --------------------------------------------------------- plugin mode */

.bb-social__plugin {
	min-height: 60px;
}

.bb-social__hint {
	margin: 0;
	padding: 26px;
	border: 1px dashed var(--bb-border);
	border-radius: var(--bb-radius);
	color: var(--bb-body);
	font-size: 14px;
	text-align: center;
}

/* ------------------------------------------------------------ breakpoints */

@media (max-width: 767px) {
	.bb-social__head {
		margin-bottom: 16px;
	}

	.bb-social__tabs {
		gap: 16px;
		width: 100%;
		overflow-x: auto;
		flex-wrap: nowrap;
		scrollbar-width: none;
	}

	.bb-social__tabs::-webkit-scrollbar {
		display: none;
	}

	.bb-social__tab {
		white-space: nowrap;
	}
}

/* Widget fills its column regardless of the surrounding builder markup. */
.bb-social {
	display: block;
	width: 100%;
	max-width: 100%;
}

.bb-social__head {
	width: 100%;
}
