/* HacerPerú Blocks - fb-feed */
.hpb-fb { display: block; }

.hpb-fb__head { margin: 0 0 12px; }
.hpb-fb__head a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--hpb-text);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}
.hpb-block .hpb-fb__avatar {
	flex: none;
	width: 40px;
	height: 40px;
	max-width: none;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
}

.hpb-fb__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
}

.hpb-fb__post {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--hpb-card-bg);
	border: 1px solid var(--hpb-card-border);
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.hpb-fb__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #e6e6e6;
}
.hpb-block .hpb-fb__media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	object-fit: cover;
}
.hpb-fb__play {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(0,0,0,.65);
}
.hpb-fb__play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 52%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 7px 0 7px 11px;
	border-color: transparent transparent transparent #fff;
}

.hpb-fb__body {
	position: relative;
	z-index: 2;
	padding: 12px 14px;
	pointer-events: none;
}
.hpb-fb__body a { pointer-events: auto; }

.hpb-fb__date {
	display: block;
	margin: 0 0 6px;
	font-size: 12px;
	line-height: 1.4;
	color: #6b6b6b;
}
.hpb-fb__text {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--hpb-text);
}
.hpb-block a.hpb-fb__more {
	font-size: 13px;
	font-weight: 700;
	color: var(--hpb-accent);
}
.hpb-block a.hpb-fb__more:hover { text-decoration: underline; }

.hpb-block a.hpb-fb__follow {
	display: inline-block;
	margin-top: 12px;
	padding: 9px 18px;
	background: var(--hpb-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}
.hpb-block a.hpb-fb__follow:hover { opacity: .9; }

.hpb-fb__notice {
	margin: 0 0 10px;
	padding: 10px 12px;
	border-left: 4px solid var(--hpb-accent);
	background: #fdeced;
	background: color-mix(in srgb, var(--hpb-accent) 8%, #fff);
	font-size: 13px;
	line-height: 1.5;
	color: #3a3a3a;
}

/* Modo iframe */
.hpb-fb--iframe iframe { display: block; border: 0; }
.hpb-fb__fallback { margin: 8px 0 0; font-size: 12px; }
.hpb-fb__fallback a { color: var(--hpb-accent); }

/* Con altura fija del bloque: la lista hace scroll y el resto no se estira */
.hpb-fb__list { align-content: start; }
.hpb-fb__head { flex: none; }
.hpb-block a.hpb-fb__follow { align-self: flex-start; flex: none; }
