/* Facebook Fotos Plugin - Frontend */

.ffb-gallery {
	--ffb-columns: 4;
	--ffb-columns-tablet: 3;
	--ffb-columns-mobile: 2;
	--ffb-gap: 16px;
	--ffb-aspect-ratio: 1/1;
	--ffb-radius: 6px;
	--ffb-accent: #1877f2;
	--ffb-overlay-opacity: 0.35;
	--ffb-masonry-columns: 3;
	--ffb-filmstrip-height: 200px;
	--ffb-slider-slides-desktop: 3;
	--ffb-slider-slides-tablet: 2;
	--ffb-slider-slides-mobile: 1;
	--ffb-slider-speed: 500ms;
	--ffb-max-width: none;
	margin: 0 auto;
	padding: 0;
	max-width: var(--ffb-max-width);
	border: none;
	outline: none;
	background: transparent;
	box-shadow: none;
}

/* Geen omranding rond carousel/slider containers — alleen op bedoelde kaarten/afbeeldingen */
.ffb-block,
.ffb-slider,
.ffb-slider__frame,
.ffb-slider__viewport,
.ffb-slider__track,
.ffb-fb-native,
.ffb-fb-native--carousel {
	border: none;
	outline: none;
	box-shadow: none;
	background: transparent;
}

/* ── Grid ── */
.ffb-gallery__grid {
	display: grid;
	grid-template-columns: repeat(var(--ffb-columns-mobile), 1fr);
	gap: var(--ffb-gap);
}

@media (min-width: 600px) {
	.ffb-gallery__grid { grid-template-columns: repeat(var(--ffb-columns-tablet), 1fr); }
}

@media (min-width: 960px) {
	.ffb-gallery__grid { grid-template-columns: repeat(var(--ffb-columns), 1fr); }
}

/* ── Shared item ── */
.ffb-gallery__item {
	margin: 0;
	padding: 0;
	position: relative;
	overflow: hidden;
	border-radius: var(--ffb-radius);
	background: #f0f2f5;
}

.ffb-gallery--shadow .ffb-gallery__item {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.ffb-gallery__link {
	display: block;
	position: relative;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	border-radius: var(--ffb-radius);
}

.ffb-gallery__link:focus-visible {
	outline: 2px solid var(--ffb-accent);
	outline-offset: 2px;
}

.ffb-gallery__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--ffb-aspect-ratio);
	object-fit: cover;
	transition: transform 0.4s ease, filter 0.4s ease, opacity 0.3s ease;
}

.ffb-gallery--fit-contain .ffb-gallery__image { object-fit: contain; background: #111; }
.ffb-gallery[style*="--ffb-aspect-ratio:auto"] .ffb-gallery__image { aspect-ratio: auto; }

/* Video items */
.ffb-gallery__item--video .ffb-gallery__link--video {
	cursor: pointer;
}

.ffb-gallery__video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--ffb-aspect-ratio);
	object-fit: cover;
	background: #111;
	border-radius: var(--ffb-radius);
}

.ffb-gallery__video--portrait {
	width: auto;
	max-width: 100%;
	max-height: min(520px, 70vh);
	margin-inline: auto;
	object-fit: contain;
	aspect-ratio: var(--ffb-video-aspect, 9 / 16);
}

.ffb-gallery--fit-contain .ffb-gallery__video { object-fit: contain; }

.ffb-gallery__link--inline-video {
	background: #111;
}

.ffb-gallery__video-fb-link {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	color: var(--ffb-accent);
	text-decoration: none;
}

.ffb-gallery__video-fb-link:hover { text-decoration: underline; }

.ffb-gallery__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
	pointer-events: none;
	transition: transform 0.25s ease, background 0.25s ease;
}

.ffb-gallery__play::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 54%;
	width: 0;
	height: 0;
	margin: -10px 0 0 -7px;
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #fff;
}

.ffb-gallery__link--video:hover .ffb-gallery__play {
	transform: scale(1.06);
	background: rgba(24, 119, 242, 0.85);
}

.ffb-gallery__video-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: var(--ffb-aspect-ratio);
	background: linear-gradient(135deg, #1c1e21 0%, #3a3b3c 100%);
}

.ffb-gallery__embed-wrap {
	position: relative;
	width: 100%;
	max-width: 100%;
	aspect-ratio: var(--ffb-video-aspect, 16 / 9);
	background: #000;
	border-radius: var(--ffb-radius);
	overflow: hidden;
	margin-inline: auto;
}

.ffb-gallery__embed-wrap.is-portrait {
	width: auto;
	max-width: min(100%, 420px);
	max-height: min(520px, 70vh);
	aspect-ratio: var(--ffb-video-aspect, 9 / 16);
}

.ffb-gallery__embed {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ffb-gallery__item--video::after {
	content: 'Video';
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	padding: 3px 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	border-radius: 4px;
	pointer-events: none;
}

/* Hover effects */
.ffb-gallery--hover-zoom .ffb-gallery__link:hover .ffb-gallery__image { transform: scale(1.06); }
.ffb-gallery--hover-darken .ffb-gallery__link:hover .ffb-gallery__image { filter: brightness(0.75); }
.ffb-gallery--hover-grayscale .ffb-gallery__image { filter: grayscale(1); }
.ffb-gallery--hover-grayscale .ffb-gallery__link:hover .ffb-gallery__image { filter: grayscale(0); }
.ffb-gallery--hover-overlay .ffb-gallery__caption { opacity: 0; }
.ffb-gallery--hover-overlay .ffb-gallery__link:hover .ffb-gallery__caption { opacity: 1; transform: translateY(0); }

/* Captions */
.ffb-gallery__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 28px 12px 12px;
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, var(--ffb-overlay-opacity)));
	transform: translateY(4px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.ffb-gallery--hover-none .ffb-gallery__caption,
.ffb-gallery--hover-zoom .ffb-gallery__link:hover .ffb-gallery__caption,
.ffb-gallery--hover-darken .ffb-gallery__link:hover .ffb-gallery__caption,
.ffb-gallery--hover-grayscale .ffb-gallery__link:hover .ffb-gallery__caption {
	opacity: 1;
	transform: translateY(0);
}

.ffb-gallery__caption--below {
	position: static;
	background: none;
	color: #333;
	padding: 8px 0 0;
	transform: none;
}

.ffb-caption__toggle[hidden] {
	display: none !important;
}

.ffb-caption__toggle,
.ffb-lightbox__caption-toggle {
	display: inline-block;
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-align: left;
	align-self: flex-start;
	width: auto;
}

.ffb-gallery__caption--below .ffb-caption__toggle,
.ffb-list__caption .ffb-caption__toggle {
	color: var(--ffb-accent, #1877f2);
}

.ffb-gallery__caption--below .ffb-caption__toggle:hover,
.ffb-list__caption .ffb-caption__toggle:hover {
	opacity: 0.85;
}

.ffb-caption__full {
	display: block;
	margin-top: 2px;
	white-space: pre-wrap;
}

.ffb-gallery--caption-none .ffb-gallery__caption { display: none; }

.ffb-gallery__date {
	display: block;
	padding: 4px 10px 8px;
	font-size: 11px;
	color: #666;
}

.ffb-gallery__fb-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 24px;
	height: 24px;
	background: var(--ffb-accent);
	color: #fff;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
}

/* Lazy load */
.ffb-gallery__image[data-src] { opacity: 0; }
.ffb-gallery__image.is-loaded { opacity: 1; }

/* ── Slider ── */
.ffb-slider {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.ffb-slider__frame {
	position: relative;
}

.ffb-slider__viewport {
	position: relative;
	overflow: hidden;
	border-radius: var(--ffb-radius);
}

.ffb-slider__track {
	display: flex;
	transition: transform var(--ffb-slider-speed) ease;
	will-change: transform;
}

.ffb-slider__slide {
	flex: 0 0 calc(100% / var(--ffb-slider-slides-mobile));
	padding: 0 calc(var(--ffb-gap) / 2);
	box-sizing: border-box;
}

@media (min-width: 600px) {
	.ffb-slider__slide { flex: 0 0 calc(100% / var(--ffb-slider-slides-tablet)); }
}

@media (min-width: 960px) {
	.ffb-slider__slide { flex: 0 0 calc(100% / var(--ffb-slider-slides-desktop)); }
}

.ffb-gallery--slideshow .ffb-slider__slide { flex: 0 0 100%; }
.ffb-gallery--slideshow .ffb-slider__viewport { aspect-ratio: 16/9; }
.ffb-gallery--slideshow .ffb-slider__item .ffb-gallery__image { aspect-ratio: 16/9; height: 100%; }

/* Carousel: border alleen op afbeeldingen/video's, nooit op de hele sectie */
.ffb-gallery--slider-image-border,
.ffb-gallery--slider-image-border .ffb-slider,
.ffb-gallery--slider-image-border .ffb-slider__frame,
.ffb-gallery--slider-image-border .ffb-slider__viewport,
.ffb-gallery--slider-image-border .ffb-slider__track,
.ffb-gallery--slider-image-border .ffb-slider__dots,
.ffb-gallery--slider-image-border .ffb-slider__slide .ffb-gallery__item,
.ffb-gallery--slider-image-border .ffb-slider__slide .ffb-fb-post {
	border: none;
	box-shadow: none;
}

.ffb-gallery--slider-image-border .ffb-slider__slide .ffb-gallery__link:not(.ffb-gallery__link--inline-video) {
	border: var(--ffb-slider-border-width) solid var(--ffb-slider-border-color);
	border-radius: var(--ffb-radius);
	line-height: 0;
}

.ffb-gallery--slider-image-border .ffb-slider__slide .ffb-gallery__link--inline-video > .ffb-gallery__video,
.ffb-gallery--slider-image-border .ffb-slider__slide .ffb-gallery__link--inline-video > .ffb-gallery__embed-wrap,
.ffb-gallery--slider-image-border .ffb-fb-post__media-inner > .ffb-gallery__link:not(.ffb-gallery__link--inline-video),
.ffb-gallery--slider-image-border .ffb-fb-post__media-inner > .ffb-gallery__link--inline-video > .ffb-gallery__video,
.ffb-gallery--slider-image-border .ffb-fb-post__media-inner > .ffb-gallery__link--inline-video > .ffb-gallery__embed-wrap {
	border: var(--ffb-slider-border-width) solid var(--ffb-slider-border-color);
	border-radius: var(--ffb-radius);
	box-sizing: border-box;
}

.ffb-gallery--slider-image-border .ffb-slider__slide .ffb-gallery__image,
.ffb-gallery--slider-image-border .ffb-slider__slide .ffb-gallery__image--video-poster,
.ffb-gallery--slider-image-border .ffb-slider__slide .ffb-gallery__video,
.ffb-gallery--slider-image-border .ffb-slider__slide .ffb-gallery__embed-wrap,
.ffb-gallery--slider-image-border .ffb-fb-post__media-inner .ffb-gallery__image,
.ffb-gallery--slider-image-border .ffb-fb-post__media-inner .ffb-gallery__image--video-poster,
.ffb-gallery--slider-image-border .ffb-fb-post__media-inner .ffb-gallery__video,
.ffb-gallery--slider-image-border .ffb-fb-post__media-inner .ffb-gallery__embed-wrap {
	border: none;
}

/* Carousel: glass hover overlay met posttekst */
.ffb-gallery--slider-hover-caption .ffb-slider__slide .ffb-gallery__link,
.ffb-gallery--slider-hover-caption .ffb-fb-post__media-inner .ffb-gallery__link {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.ffb-gallery--slider-hover-caption .ffb-slider__slide .ffb-gallery__image,
.ffb-gallery--slider-hover-caption .ffb-slider__slide .ffb-gallery__image--video-poster,
.ffb-gallery--slider-hover-caption .ffb-fb-post__media-inner .ffb-gallery__image,
.ffb-gallery--slider-hover-caption .ffb-fb-post__media-inner .ffb-gallery__image--video-poster {
	transition: transform 0.3s ease, filter 0.3s ease;
}

.ffb-gallery--slider-hover-caption .ffb-slider-hover-caption {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: flex-end;
	justify-content: stretch;
	padding: 12px;
	opacity: 0;
	transform: translateY(6px);
	pointer-events: none;
	transition: opacity 0.28s ease, transform 0.28s ease;
}

.ffb-gallery--slider-hover-caption .ffb-slider-hover-caption::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(8, 12, 20, 0.78) 0%,
		rgba(8, 12, 20, 0.34) 42%,
		transparent 72%
	);
	pointer-events: none;
}

.ffb-gallery--slider-hover-caption .ffb-slider-hover-caption__glass {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 14px 16px;
	border-radius: 12px;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%),
		rgba(18, 24, 38, 0.58);
	border: 1px solid rgba(255, 255, 255, 0.28);
	box-shadow:
		0 8px 28px rgba(0, 0, 0, 0.22),
		inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.ffb-gallery--slider-hover-caption .ffb-slider-hover-caption__text {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.ffb-gallery--slider-hover-caption .ffb-gallery__link--inline-video .ffb-slider-hover-caption {
	display: none;
}

@media (hover: hover) and (pointer: fine) {
	.ffb-gallery--slider-hover-caption .ffb-slider__slide .ffb-gallery__link:hover .ffb-slider-hover-caption,
	.ffb-gallery--slider-hover-caption .ffb-slider__slide .ffb-gallery__link:focus-visible .ffb-slider-hover-caption,
	.ffb-gallery--slider-hover-caption .ffb-fb-post__media-inner .ffb-gallery__link:hover .ffb-slider-hover-caption,
	.ffb-gallery--slider-hover-caption .ffb-fb-post__media-inner .ffb-gallery__link:focus-visible .ffb-slider-hover-caption {
		opacity: 1;
		transform: translateY(0);
	}

	.ffb-gallery--slider-hover-caption .ffb-slider__slide .ffb-gallery__link:hover .ffb-gallery__image,
	.ffb-gallery--slider-hover-caption .ffb-slider__slide .ffb-gallery__link:hover .ffb-gallery__image--video-poster,
	.ffb-gallery--slider-hover-caption .ffb-fb-post__media-inner .ffb-gallery__link:hover .ffb-gallery__image,
	.ffb-gallery--slider-hover-caption .ffb-fb-post__media-inner .ffb-gallery__link:hover .ffb-gallery__image--video-poster {
		transform: scale(1.02);
		filter: brightness(0.88);
	}

	.ffb-gallery--slider-hover-caption.ffb-gallery--hover-zoom .ffb-slider__slide .ffb-gallery__link:hover .ffb-gallery__image,
	.ffb-gallery--slider-hover-caption.ffb-gallery--hover-zoom .ffb-slider__slide .ffb-gallery__link:hover .ffb-gallery__image--video-poster {
		transform: scale(1.02);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ffb-gallery--slider-hover-caption .ffb-slider-hover-caption,
	.ffb-gallery--slider-hover-caption .ffb-slider__slide .ffb-gallery__image,
	.ffb-gallery--slider-hover-caption .ffb-slider__slide .ffb-gallery__image--video-poster {
		transition: none;
	}
}

/* Touch: hover-caption tonen via tik */
@media (hover: none), (pointer: coarse) {
	.ffb-gallery--slider-hover-caption .ffb-slider__slide .ffb-gallery__link.is-caption-visible .ffb-slider-hover-caption,
	.ffb-gallery--slider-hover-caption .ffb-fb-post__media-inner .ffb-gallery__link.is-caption-visible .ffb-slider-hover-caption {
		opacity: 1;
		transform: translateY(0);
	}

	.ffb-gallery--slider-hover-caption .ffb-slider__slide .ffb-gallery__link.is-caption-visible .ffb-gallery__image,
	.ffb-gallery--slider-hover-caption .ffb-slider__slide .ffb-gallery__link.is-caption-visible .ffb-gallery__image--video-poster,
	.ffb-gallery--slider-hover-caption .ffb-fb-post__media-inner .ffb-gallery__link.is-caption-visible .ffb-gallery__image,
	.ffb-gallery--slider-hover-caption .ffb-fb-post__media-inner .ffb-gallery__link.is-caption-visible .ffb-gallery__image--video-poster {
		transform: scale(1.02);
		filter: brightness(0.88);
	}
}

/* ── Slider pijlen (basis) ── */
.ffb-slider__arrows {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 4;
}

.ffb-slider__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border-radius: 50%;
	cursor: pointer;
	pointer-events: auto;
	transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
	-webkit-tap-highlight-color: transparent;
}

.ffb-slider__arrow-icon {
	display: block;
}

/* Overlay positie */
.ffb-slider--arrows-overlay .ffb-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.ffb-slider--arrows-overlay .ffb-slider__arrow--prev { left: 14px; }
.ffb-slider--arrows-overlay .ffb-slider__arrow--next { right: 14px; }

.ffb-slider--arrows-overlay .ffb-slider__arrow:hover {
	transform: translateY(-50%) scale(1.06);
}

.ffb-slider--arrows-overlay .ffb-slider__arrow:active {
	transform: translateY(-50%) scale(0.96);
}

/* Outside positie */
.ffb-slider--arrows-outside .ffb-slider__frame {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ffb-slider--arrows-outside .ffb-slider__viewport {
	flex: 1;
	min-width: 0;
}

.ffb-slider--arrows-outside .ffb-slider__arrow:hover {
	transform: scale(1.06);
}

.ffb-slider--arrows-outside .ffb-slider__arrow:active {
	transform: scale(0.96);
}

/* ── Pijl stijlen ── */

/* Glass (standaard) */
.ffb-slider--arrow-style-glass .ffb-slider__arrow {
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.38);
	color: #fff;
	box-shadow:
		0 4px 20px rgba(0, 0, 0, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(14px) saturate(160%);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
}

.ffb-slider--arrow-style-glass .ffb-slider__arrow:hover {
	background: rgba(255, 255, 255, 0.26);
	border-color: rgba(255, 255, 255, 0.55);
	box-shadow:
		0 6px 28px rgba(0, 0, 0, 0.18),
		inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Solid wit */
.ffb-slider--arrow-style-solid .ffb-slider__arrow {
	background: rgba(255, 255, 255, 0.96);
	border: none;
	color: #1c1e21;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.ffb-slider--arrow-style-solid .ffb-slider__arrow:hover {
	background: #fff;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

/* Minimal outline */
.ffb-slider--arrow-style-minimal .ffb-slider__arrow {
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.75);
	color: #fff;
	box-shadow: none;
}

.ffb-slider--arrow-style-minimal .ffb-slider__arrow:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
}

.ffb-slider--arrow-style-minimal.ffb-slider--arrows-outside .ffb-slider__arrow {
	border-color: rgba(0, 0, 0, 0.2);
	color: #1c1e21;
}

.ffb-slider--arrow-style-minimal.ffb-slider--arrows-outside .ffb-slider__arrow:hover {
	background: rgba(0, 0, 0, 0.04);
	border-color: rgba(0, 0, 0, 0.35);
}

/* Dark glass */
.ffb-slider--arrow-style-dark .ffb-slider__arrow {
	background: rgba(0, 0, 0, 0.38);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #fff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.ffb-slider--arrow-style-dark .ffb-slider__arrow:hover {
	background: rgba(0, 0, 0, 0.52);
	border-color: rgba(255, 255, 255, 0.24);
}

@media (max-width: 480px) {
	.ffb-slider__arrow {
		width: 40px;
		height: 40px;
	}

	.ffb-slider--arrows-overlay .ffb-slider__arrow--prev { left: 8px; }
	.ffb-slider--arrows-overlay .ffb-slider__arrow--next { right: 8px; }

	.ffb-slider--arrows-outside .ffb-slider__frame { gap: 8px; }
}

/* Slider: outside-pijlen op mobiel als overlay (meer ruimte voor slides) */
@media (max-width: 768px) {
	.ffb-gallery--slider .ffb-slider--arrows-outside .ffb-slider__frame {
		display: block;
		position: relative;
	}

	.ffb-gallery--slider .ffb-slider--arrows-outside .ffb-slider__viewport {
		width: 100%;
	}

	.ffb-gallery--slider .ffb-slider--arrows-outside .ffb-slider__arrow {
		position: absolute;
		top: 38%;
		transform: translateY(-50%);
		z-index: 6;
		width: 40px;
		height: 40px;
	}

	.ffb-gallery--slider .ffb-slider--arrows-outside .ffb-slider__arrow--prev {
		left: 6px;
		right: auto;
	}

	.ffb-gallery--slider .ffb-slider--arrows-outside .ffb-slider__arrow--next {
		right: 6px;
		left: auto;
	}

	.ffb-gallery--slider .ffb-slider--arrows-outside .ffb-slider__arrow:hover {
		transform: translateY(-50%) scale(1.04);
	}
}

/* ── Slider dots / pagination ── */
.ffb-slider__dots {
	display: flex;
	justify-content: center;
	width: fit-content;
	max-width: 100%;
	margin: 18px auto 0;
	padding: 0;
	list-style: none;
}

/* Glass pill track (standaard) */
.ffb-slider--dots-style-glass .ffb-slider__dots {
	padding: 8px 14px;
	gap: 7px;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.72);
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.05),
		0 8px 24px rgba(15, 23, 42, 0.07),
		inset 0 1px 0 rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(16px) saturate(180%);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
}

.ffb-slider--dots-style-glass .ffb-slider__dot {
	background: rgba(148, 163, 184, 0.45);
}

.ffb-slider--dots-style-glass .ffb-slider__dot:hover:not(.is-active) {
	background: rgba(100, 116, 139, 0.65);
}

.ffb-slider--dots-style-glass .ffb-slider__dot.is-active {
	background: var(--ffb-accent);
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.14);
}

/* Dark glass */
.ffb-slider--dots-style-dark .ffb-slider__dots {
	padding: 8px 14px;
	gap: 7px;
	border-radius: 9999px;
	background: rgba(15, 23, 42, 0.42);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow:
		0 4px 20px rgba(0, 0, 0, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.ffb-slider--dots-style-dark .ffb-slider__dot {
	background: rgba(255, 255, 255, 0.28);
}

.ffb-slider--dots-style-dark .ffb-slider__dot:hover:not(.is-active) {
	background: rgba(255, 255, 255, 0.45);
}

.ffb-slider--dots-style-dark .ffb-slider__dot.is-active {
	background: #fff;
	box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
}

/* Accent minimal — geen pill container */
.ffb-slider--dots-style-accent .ffb-slider__dots {
	gap: 8px;
	padding: 4px 0;
}

.ffb-slider--dots-style-accent .ffb-slider__dot {
	background: rgba(148, 163, 184, 0.35);
}

.ffb-slider--dots-style-accent .ffb-slider__dot.is-active {
	background: var(--ffb-accent);
	box-shadow: 0 2px 14px rgba(15, 23, 42, 0.12);
}

/* Soft slate */
.ffb-slider--dots-style-soft .ffb-slider__dots {
	padding: 7px 12px;
	gap: 6px;
	border-radius: 9999px;
	background: rgba(241, 245, 249, 0.92);
	border: 1px solid rgba(226, 232, 240, 0.95);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.ffb-slider--dots-style-soft .ffb-slider__dot {
	background: rgba(203, 213, 225, 0.9);
}

.ffb-slider--dots-style-soft .ffb-slider__dot.is-active {
	background: #334155;
	box-shadow: none;
}

/* Dot basis */
.ffb-slider__dot {
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	border: none;
	padding: 0;
	border-radius: 9999px;
	cursor: pointer;
	transition:
		width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.25s ease;
	-webkit-tap-highlight-color: transparent;
}

.ffb-slider__dot:hover:not(.is-active) {
	transform: scale(1.12);
}

.ffb-slider__dot.is-active {
	width: 28px;
}

.ffb-slider__dot:focus-visible {
	outline: 2px solid var(--ffb-accent);
	outline-offset: 3px;
}

@media (max-width: 480px) {
	.ffb-slider--dots-style-glass .ffb-slider__dots,
	.ffb-slider--dots-style-dark .ffb-slider__dots,
	.ffb-slider--dots-style-soft .ffb-slider__dots {
		padding: 6px 10px;
		gap: 5px;
	}

	.ffb-slider__dot.is-active {
		width: 22px;
	}
}

.ffb-gallery--slider.ffb-slider--fade .ffb-slider__track { transition: none; }
.ffb-gallery--slider.ffb-slider--fade .ffb-slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity var(--ffb-slider-speed) ease;
	padding: 0;
}
.ffb-gallery--slider.ffb-slider--fade .ffb-slider__viewport { position: relative; }
.ffb-gallery--slider.ffb-slider--fade .ffb-slider__slide.is-active { opacity: 1; position: relative; }

/* ── Masonry ── */
.ffb-masonry {
	column-count: var(--ffb-masonry-columns);
	column-gap: var(--ffb-gap);
}

.ffb-masonry__item {
	break-inside: avoid;
	margin-bottom: var(--ffb-gap);
}

.ffb-masonry__item .ffb-gallery__image { aspect-ratio: auto; }

@media (max-width: 600px) {
	.ffb-masonry { column-count: var(--ffb-columns-mobile); }
}

@media (min-width: 601px) and (max-width: 959px) {
	.ffb-masonry { column-count: var(--ffb-columns-tablet); }
}

/* ── List ── */
.ffb-list { display: flex; flex-direction: column; gap: var(--ffb-gap); }

.ffb-list__item {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 16px;
	border-radius: var(--ffb-radius);
	background: #f7f8fa;
}

.ffb-list__media {
	flex: 0 0 200px;
	max-width: 200px;
}

.ffb-list__media .ffb-gallery__image { aspect-ratio: 4/3; border-radius: var(--ffb-radius); }
.ffb-list__media .ffb-gallery__video { aspect-ratio: 4/3; border-radius: var(--ffb-radius); }

.ffb-list__content { flex: 1; min-width: 0; }
.ffb-list__caption { margin: 0 0 8px; font-size: 15px; line-height: 1.5; color: #1c1e21; }
.ffb-list__date { display: block; font-size: 12px; color: #65676b; margin-bottom: 8px; }
.ffb-list__fb-link { font-size: 13px; color: var(--ffb-accent); text-decoration: none; font-weight: 600; }
.ffb-list__fb-link:hover { text-decoration: underline; }

@media (max-width: 600px) {
	.ffb-list__item { flex-direction: column; }
	.ffb-list__media { flex: none; max-width: 100%; width: 100%; }
}

/* ── Featured ── */
.ffb-featured__hero { margin-bottom: var(--ffb-gap); }
.ffb-featured__hero-item .ffb-gallery__image { aspect-ratio: 16/9; }
.ffb-featured__grid { --ffb-columns: 4; --ffb-columns-tablet: 3; --ffb-columns-mobile: 2; }

/* ── Filmstrip ── */
.ffb-filmstrip {
	display: flex;
	gap: var(--ffb-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 8px;
	scrollbar-width: thin;
	scrollbar-color: var(--ffb-accent) #e4e6eb;
}

.ffb-filmstrip::-webkit-scrollbar { height: 6px; }
.ffb-filmstrip::-webkit-scrollbar-thumb { background: var(--ffb-accent); border-radius: 3px; }

.ffb-filmstrip__item {
	flex: 0 0 auto;
	width: calc(var(--ffb-filmstrip-height) * 1.4);
	scroll-snap-align: start;
}

.ffb-filmstrip__item .ffb-gallery__image {
	height: var(--ffb-filmstrip-height);
	aspect-ratio: auto;
	width: 100%;
}

/* ── Lightbox ── */
.ffb-lightbox {
	--ffb-lb-accent: #1877f2;
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: stretch;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

.ffb-lightbox.is-open { opacity: 1; visibility: visible; }

.ffb-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(1200px 600px at 50% -10%, rgba(24, 119, 242, 0.18), transparent 60%),
		rgba(8, 10, 14, 0.94);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.ffb-lightbox__shell {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(1120px, 100%);
	max-height: 100vh;
	min-height: 0;
	padding: 16px 16px 20px;
	box-sizing: border-box;
	overflow: hidden;
}

.ffb-lightbox__topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.ffb-lightbox__meta-head {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.ffb-lightbox__counter {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
}

.ffb-lightbox__type {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.92);
	background: rgba(255, 255, 255, 0.08);
}

.ffb-lightbox__type--video {
	background: rgba(24, 119, 242, 0.22);
	color: #dbeafe;
}

.ffb-lightbox__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
	flex-shrink: 0;
}

.ffb-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.18);
	transform: scale(1.04);
}

.ffb-lightbox__viewport {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	min-height: 0;
	padding: 0 52px;
	overflow: hidden;
}

.ffb-lightbox__content {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	max-height: calc(100vh - 200px);
	min-height: 220px;
	transition: opacity 0.2s ease;
}

.ffb-lightbox__frame {
	position: relative;
	display: inline-block;
	max-width: 100%;
	vertical-align: top;
}

.ffb-lightbox__stage {
	position: relative;
	display: inline-block;
	vertical-align: top;
	max-width: 100%;
	border-radius: 12px;
	overflow: hidden;
	isolation: isolate;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.ffb-lightbox__stage > .ffb-lightbox__image,
.ffb-lightbox__stage > .ffb-lightbox__video,
.ffb-lightbox__stage > .ffb-lightbox__embed {
	display: block;
	max-width: 100%;
}

.ffb-lightbox__stage > .ffb-lightbox__loader {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 5;
}

.ffb-lightbox__image[hidden],
.ffb-lightbox__video[hidden],
.ffb-lightbox__embed[hidden] {
	display: none !important;
}

.ffb-lightbox__content.is-changing {
	opacity: 0.72;
}

.ffb-lightbox__content.is-loading .ffb-lightbox__loader {
	opacity: 1;
	visibility: visible;
}

.ffb-lightbox__loader {
	position: absolute;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.18);
	border-top-color: #fff;
	opacity: 0;
	visibility: hidden;
	animation: ffb-lightbox-spin 0.8s linear infinite;
}

@keyframes ffb-lightbox-spin {
	to { transform: rotate(360deg); }
}

.ffb-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 200px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 0;
	box-shadow: none;
}

.ffb-lightbox__video {
	display: block;
	max-width: min(960px, 90vw);
	max-height: calc(100vh - 200px);
	width: auto;
	height: auto;
	object-fit: contain;
	background: #000;
	border-radius: 0;
	box-shadow: none;
}

.ffb-lightbox__video.is-portrait {
	height: min(calc(100vh - 200px), 720px);
	width: auto;
	max-width: min(90vw, 480px);
	aspect-ratio: var(--ffb-video-aspect, 9 / 16);
}

.ffb-lightbox__video.is-landscape {
	width: min(960px, 90vw);
	max-height: calc(100vh - 200px);
}

.ffb-lightbox__embed {
	aspect-ratio: var(--ffb-video-aspect, 16 / 9);
	max-width: min(960px, 90vw);
	max-height: calc(100vh - 200px);
	border-radius: 0;
	overflow: hidden;
	box-shadow: none;
	background: #000;
}

.ffb-lightbox__embed.is-portrait {
	height: min(calc(100vh - 200px), 720px);
	width: auto;
	max-width: min(90vw, 480px);
}

.ffb-lightbox__embed.is-landscape {
	width: min(960px, 90vw);
	height: auto;
}

.ffb-lightbox__embed-frame {
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

.ffb-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(10px);
	transition: background 0.2s ease, transform 0.2s ease;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.ffb-lightbox__nav[hidden] {
	display: none !important;
}

.ffb-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-50%) scale(1.05);
}

.ffb-lightbox__nav--prev { left: 0; }
.ffb-lightbox__nav--next { right: 0; }

/* Lightbox: glass overlay op media (foto's + video op mobiel) */
.ffb-lightbox__content.is-photo-layout .ffb-lightbox__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	z-index: 4;
	pointer-events: none;
}

.ffb-lightbox__overlay[hidden] {
	display: none !important;
}

.ffb-lightbox__overlay-inner {
	width: 100%;
	background: linear-gradient(
		to top,
		rgba(8, 12, 20, 0.92) 0%,
		rgba(8, 12, 20, 0.58) 40%,
		rgba(8, 12, 20, 0.12) 70%,
		transparent 100%
	);
}

.ffb-lightbox__overlay-glass {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
	gap: 12px 16px;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 14px 16px;
	border-radius: 0;
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	pointer-events: auto;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%),
		rgba(18, 24, 38, 0.72);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.ffb-lightbox__overlay.is-external-only .ffb-lightbox__overlay-glass,
.ffb-lightbox__overlay-glass:has(.ffb-lightbox__overlay-main[hidden]),
.ffb-lightbox__overlay-glass:has(.ffb-lightbox__overlay-aside .ffb-lightbox__external[hidden]) {
	grid-template-columns: minmax(0, 1fr);
}

.ffb-lightbox__overlay-aside:has(.ffb-lightbox__external[hidden]) {
	display: none;
}

.ffb-lightbox__overlay-main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.ffb-lightbox__overlay-main[hidden] {
	display: none !important;
}

.ffb-lightbox__overlay-aside {
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.ffb-lightbox__overlay.is-external-only .ffb-lightbox__overlay-aside {
	width: 100%;
	justify-content: stretch;
}

.ffb-lightbox__overlay.is-external-only .ffb-lightbox__overlay-glass {
	padding: 12px 16px;
}

.ffb-lightbox__overlay.is-external-only .ffb-lightbox__external {
	width: 100%;
}

.ffb-lightbox__caption-body {
	width: 100%;
	min-width: 0;
	overflow: hidden;
}

.ffb-lightbox__caption-body[hidden] {
	display: none !important;
}

.ffb-lightbox__overlay.is-expanded .ffb-lightbox__caption-body {
	max-height: min(22vh, 160px);
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.ffb-lightbox__overlay.is-expanded .ffb-lightbox__caption-body::-webkit-scrollbar {
	width: 6px;
}

.ffb-lightbox__overlay.is-expanded .ffb-lightbox__caption-body::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.28);
	border-radius: 999px;
}

.ffb-lightbox__caption {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.94);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	word-break: break-word;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.ffb-lightbox__caption--preview {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	overflow-wrap: anywhere;
}

.ffb-lightbox__caption--full[hidden],
.ffb-lightbox__caption--preview[hidden] {
	display: none !important;
}

.ffb-lightbox__caption-toggle {
	color: rgba(255, 255, 255, 0.82);
	flex-shrink: 0;
	margin: 0;
	padding: 0;
}

.ffb-lightbox__caption-toggle[hidden] {
	display: none !important;
}

.ffb-lightbox__caption-toggle:hover {
	color: #fff;
}

.ffb-lightbox__external {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	flex-shrink: 0;
	padding: 10px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.25;
	color: #fff;
	text-decoration: none;
	text-align: center;
	background: rgba(24, 119, 242, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.18);
	transition: background 0.2s ease;
}

.ffb-lightbox__external[hidden] {
	display: none !important;
}

.ffb-lightbox__external:hover {
	background: rgba(24, 119, 242, 1);
	color: #fff;
}

/* Lightbox: video met zijpaneel (desktop, Facebook-stijl) */
.ffb-lightbox__content.is-video-layout .ffb-lightbox__frame {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	max-width: min(1040px, 100%);
	background: #1c1e21;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.ffb-lightbox__content.is-video-layout .ffb-lightbox__stage {
	flex: 0 1 auto;
	min-width: 0;
	border-radius: 0;
	box-shadow: none;
	background: #000;
}

.ffb-lightbox__content.is-video-layout .ffb-lightbox__video,
.ffb-lightbox__content.is-video-layout .ffb-lightbox__embed {
	max-width: min(640px, 58vw);
	max-height: calc(100vh - 220px);
}

.ffb-lightbox__content.is-video-layout .ffb-lightbox__video.is-portrait {
	max-width: min(420px, 42vw);
}

.ffb-lightbox__content.is-video-layout .ffb-lightbox__embed.is-portrait {
	max-width: min(420px, 42vw);
	height: min(calc(100vh - 220px), 720px);
}

.ffb-lightbox__content.is-video-layout .ffb-lightbox__overlay {
	position: static;
	flex: 0 0 min(360px, 34vw);
	width: min(360px, 34vw);
	min-width: 260px;
	display: flex;
	flex-direction: column;
	pointer-events: auto;
	border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.ffb-lightbox__content.is-video-layout .ffb-lightbox__overlay-inner {
	flex: 1;
	display: flex;
	flex-direction: column;
	background: #242526;
}

.ffb-lightbox__content.is-video-layout .ffb-lightbox__overlay-glass {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 20px 18px 18px;
	gap: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.ffb-lightbox__content.is-video-layout .ffb-lightbox__overlay-main {
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

.ffb-lightbox__content.is-video-layout .ffb-lightbox__caption {
	font-size: 15px;
	line-height: 1.55;
	color: #e4e6eb;
	text-shadow: none;
}

.ffb-lightbox__content.is-video-layout .ffb-lightbox__caption--preview {
	-webkit-line-clamp: 6;
}

.ffb-lightbox__content.is-video-layout .ffb-lightbox__overlay.is-expanded .ffb-lightbox__caption-body {
	max-height: none;
	flex: 1 1 auto;
	overflow-y: auto;
}

.ffb-lightbox__content.is-video-layout .ffb-lightbox__caption-toggle {
	margin-top: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #b0b3b8;
}

.ffb-lightbox__content.is-video-layout .ffb-lightbox__caption-toggle:hover {
	color: #e4e6eb;
}

.ffb-lightbox__content.is-video-layout .ffb-lightbox__overlay-aside {
	flex-shrink: 0;
	width: 100%;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	justify-content: stretch;
}

.ffb-lightbox__content.is-video-layout .ffb-lightbox__external {
	width: 100%;
	padding: 11px 14px;
	font-size: 13px;
	border-radius: 8px;
}

.ffb-lightbox__content.is-video-layout .ffb-lightbox__overlay.is-external-only .ffb-lightbox__overlay-glass {
	justify-content: center;
}

.ffb-lightbox__content.is-video-layout .ffb-lightbox__overlay.is-external-only .ffb-lightbox__overlay-aside {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.ffb-lightbox__thumbs-wrap {
	margin-top: 16px;
	padding: 10px 12px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(12px);
	flex-shrink: 0;
}

.ffb-lightbox__thumbs-wrap[hidden] {
	display: none !important;
}

.ffb-lightbox__pager {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 10px;
	padding: 0 4px;
	flex-shrink: 0;
}

.ffb-lightbox__pager[hidden] {
	display: none !important;
}

.ffb-lightbox__pager-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(10px);
	transition: background 0.2s ease, transform 0.2s ease;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.ffb-lightbox__pager-btn:active {
	background: rgba(255, 255, 255, 0.22);
	transform: scale(0.96);
}

.ffb-lightbox__pager-btn[hidden] {
	display: none !important;
}

.ffb-lightbox__pager-counter {
	min-width: 72px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
}

.ffb-lightbox__thumbs {
	display: flex;
	align-items: center;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 4px 2px;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.ffb-lightbox__thumbs::-webkit-scrollbar { height: 6px; }
.ffb-lightbox__thumbs::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.22);
	border-radius: 999px;
}

.ffb-lightbox__thumb {
	position: relative;
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.08);
	scroll-snap-align: center;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ffb-lightbox__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ffb-lightbox__thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #2a2d34, #444950);
}

.ffb-lightbox__thumb.is-active {
	border-color: var(--ffb-lb-accent);
	box-shadow: 0 0 0 1px rgba(24, 119, 242, 0.35), 0 8px 24px rgba(24, 119, 242, 0.25);
}

.ffb-lightbox__thumb-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.28);
	pointer-events: none;
}

.ffb-lightbox__thumb-play::after {
	content: '';
	width: 0;
	height: 0;
	margin-left: 3px;
	border-style: solid;
	border-width: 7px 0 7px 11px;
	border-color: transparent transparent transparent #fff;
}

.ffb-lightbox__thumb.is-video::after {
	content: 'Video';
	position: absolute;
	left: 4px;
	bottom: 4px;
	padding: 2px 5px;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	border-radius: 4px;
	pointer-events: none;
}

@media (max-width: 768px) {
	.ffb-lightbox {
		align-items: stretch;
	}

	.ffb-lightbox__shell {
		width: 100%;
		height: 100dvh;
		max-height: 100dvh;
		padding:
			max(8px, env(safe-area-inset-top))
			max(8px, env(safe-area-inset-right))
			max(10px, env(safe-area-inset-bottom))
			max(8px, env(safe-area-inset-left));
	}

	.ffb-lightbox__topbar {
		margin-bottom: 8px;
		flex-shrink: 0;
	}

	.ffb-lightbox__viewport {
		flex: 1 1 0;
		min-height: 0;
		padding: 0 4px;
	}

	.ffb-lightbox__nav {
		width: 44px;
		height: 44px;
		background: rgba(0, 0, 0, 0.45);
		border-color: rgba(255, 255, 255, 0.22);
	}

	.ffb-lightbox__nav--prev { left: 2px; }
	.ffb-lightbox__nav--next { right: 2px; }

	.ffb-lightbox__content {
		max-height: 100%;
		min-height: 120px;
		height: 100%;
	}

	.ffb-lightbox__image,
	.ffb-lightbox__video,
	.ffb-lightbox__embed {
		max-height: 100%;
		max-width: 100%;
	}

	.ffb-lightbox__video.is-portrait {
		height: auto;
		max-height: 100%;
		width: auto;
		max-width: min(88vw, 420px);
	}

	.ffb-lightbox__overlay-glass {
		padding: 12px 12px;
		gap: 10px 12px;
	}

	.ffb-lightbox__overlay.is-expanded .ffb-lightbox__caption-body {
		max-height: min(20dvh, 120px);
	}

	.ffb-lightbox__external {
		font-size: 10px;
		padding: 9px 8px;
	}

		.ffb-lightbox__pager {
			display: flex;
		}

		.ffb-lightbox__pager[hidden] {
			display: none !important;
		}

	.ffb-lightbox__thumbs-wrap {
		margin-top: 8px;
		padding:
			8px 10px
			max(8px, env(safe-area-inset-bottom));
	}

	.ffb-lightbox__thumbs {
		gap: 8px;
		padding: 2px 0;
		-webkit-overflow-scrolling: touch;
	}

	.ffb-lightbox__thumb {
		width: 64px;
		height: 64px;
		border-radius: 8px;
	}

	.ffb-lightbox__thumb.is-active {
		transform: none;
	}
}

.ffb-error, .ffb-empty {
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 14px;
}

.ffb-error { background: #fcf0f1; border: 1px solid #f1aeb5; color: #3c1518; }
.ffb-empty { background: #f6f7f7; border: 1px solid #dcdcde; color: #50575e; }

@media (prefers-reduced-motion: reduce) {
	.ffb-gallery__image, .ffb-gallery__caption, .ffb-lightbox, .ffb-slider__track, .ffb-slider__slide {
		transition: none;
	}
}

.ffb-gallery__link,
.ffb-slider__arrow,
.ffb-slider__dot,
.ffb-lightbox__nav,
.ffb-lightbox__close,
.ffb-lightbox__pager-btn,
.ffb-lightbox__thumb,
.ffb-follow-btn {
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}
