/* Base, non-themeable structural styles shared by every widget instance.
   Per-widget colors/spacing/etc. are injected inline by FBFW_Render. */

.fbfw-widget {
	line-height: 1.4;
}

.fbfw-widget img {
	max-width: 100%;
	height: auto;
}

.fbfw-widget a {
	cursor: pointer;
}

.fbfw-carousel-track {
	will-change: transform;
}

.fbfw-arrow {
	z-index: 2;
}

/* Lightbox overlay (shared across all widget instances on a page) */
.fbfw-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 24px;
	animation: fbfw-fade-in 0.15s ease;
}

.fbfw-lightbox-overlay img {
	max-width: 90vw;
	max-height: 90vh;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.fbfw-lightbox-close {
	position: absolute;
	top: 20px;
	right: 28px;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	background: none;
	border: none;
	cursor: pointer;
}

@keyframes fbfw-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (max-width: 640px) {
	.fbfw-gallery-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
