/* Facebook reels in the NOW / HOT / WOW strips (2026-10-15): card badge and the reel lightbox (fbReels.js). */

.fb-reel-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(24, 119, 242, 0.92);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	letter-spacing: 0.02em;
	pointer-events: none;
}

.collection-section .card .thumbnail {
	position: relative;
}

.fb-reel-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.fb-reel-lightbox[hidden] {
	display: none;
}

.fb-reel-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
}

.fb-reel-lightbox__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 360px; /* set by fbReels.js to the player width */
	max-width: 100%;
	max-height: 100%;
}

.fb-reel-lightbox__frame {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 200px;
	max-height: calc(100vh - 130px);
	overflow: hidden;
	border-radius: 12px;
	background: #000;
}

/* Facebook's SDK sizes its own player to the video */
.fb-reel-lightbox__frame .fb-video,
.fb-reel-lightbox__frame .fb-video > span {
	display: block;
}

.fb-reel-lightbox__frame .fb-video iframe {
	display: block;
	border: 0;
}

/* fallback plain iframe (SDK unavailable): fixed portrait box */
.fb-reel-lightbox__frame.is-fixed {
	aspect-ratio: 9 / 16;
}

.fb-reel-lightbox__frame.is-fixed iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.fb-reel-lightbox__loading {
	margin: 0;
	padding: 24px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
}

.fb-reel-lightbox__close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 26px;
	line-height: 36px;
	cursor: pointer;
}

.fb-reel-lightbox__close:hover,
.fb-reel-lightbox__close:focus-visible {
	background: rgba(255, 255, 255, 0.28);
	outline: none;
}

.fb-reel-lightbox__info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 10px;
	color: #fff;
}

.fb-reel-lightbox__title {
	margin: 0;
	overflow: hidden;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fb-reel-lightbox__link {
	flex: 0 0 auto;
	padding: 6px 12px;
	border-radius: 999px;
	background: #1877f2;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

.fb-reel-lightbox__link:hover,
.fb-reel-lightbox__link:focus-visible {
	background: #0f63d1;
	color: #fff;
	text-decoration: none;
}

@media (max-width: 480px) {
	.fb-reel-lightbox__close {
		top: 8px;
		right: 8px;
		z-index: 1;
		background: rgba(0, 0, 0, 0.55);
	}
}
