/* Full Banner Slider – frontend */
.fbs-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
	line-height: 0;
	box-sizing: border-box;
	--fbs-accent: #fff;
	--fbs-speed: 600ms;
}
.fbs-slider *,
.fbs-slider *::before,
.fbs-slider *::after { box-sizing: border-box; }

/* Edge-to-edge, even inside a theme container */
.fbs-slider.fbs-full {
	width: 100vw;
	max-width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}
body:has(.fbs-full) { overflow-x: clip; }

.fbs-viewport {
	position: relative;
	overflow: hidden;
	width: 100%;
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
}

/* ---------- Slide effect ---------- */
.fbs-track { display: flex; width: 100%; will-change: transform; }
.fbs-slide { flex: 0 0 100%; min-width: 0; position: relative; }

.fbs-slide picture { display: block; }
.fbs-slide .fbs-link,
.fbs-slide .fbs-nolink { display: block; width: 100%; }
.fbs-slide img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	-webkit-user-drag: none;
}
.fbs-fixed .fbs-slide img { object-fit: cover; object-position: center; }

/* ---------- Fade effect ---------- */
.fbs-effect-fade .fbs-track { display: grid; }
.fbs-effect-fade .fbs-slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--fbs-speed) ease, visibility 0s linear var(--fbs-speed);
}
.fbs-effect-fade .fbs-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	transition: opacity var(--fbs-speed) ease, visibility 0s;
}
/* before JS runs / single slide: show first slide */
.fbs-effect-fade:not(.fbs-ready) .fbs-slide:first-child,
.fbs-effect-fade.fbs-single .fbs-slide { opacity: 1; visibility: visible; }

/* ---------- Arrows ---------- */
.fbs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 46px;
	height: 46px;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .4);
	color: var(--fbs-accent);
	cursor: pointer;
	line-height: 1;
	transition: background .2s, opacity .2s;
}
.fbs-arrow:hover,
.fbs-arrow:focus-visible { background: rgba(0, 0, 0, .65); }
.fbs-arrow:focus-visible { outline: 2px solid var(--fbs-accent); outline-offset: 2px; }
.fbs-arrow[disabled] { opacity: .3; cursor: default; }
.fbs-prev { left: 16px; }
.fbs-next { right: 16px; }

/* ---------- Dots ---------- */
.fbs-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	z-index: 5;
	display: flex;
	justify-content: center;
	gap: 10px;
	line-height: 1;
	pointer-events: none;
}
.fbs-dot {
	pointer-events: auto;
	width: 11px;
	height: 11px;
	padding: 0;
	margin: 0;
	border: 2px solid var(--fbs-accent);
	border-radius: 50%;
	background: transparent;
	opacity: .75;
	cursor: pointer;
	transition: background .2s, opacity .2s, transform .2s;
}
.fbs-dot:hover { opacity: 1; }
.fbs-dot.is-active { background: var(--fbs-accent); opacity: 1; transform: scale(1.15); }
.fbs-dot:focus-visible { outline: 2px solid var(--fbs-accent); outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	.fbs-arrow { width: 36px; height: 36px; }
	.fbs-arrow svg { width: 18px; height: 18px; }
	.fbs-prev { left: 8px; }
	.fbs-next { right: 8px; }
	.fbs-dots { bottom: 8px; gap: 8px; }
	.fbs-dot { width: 9px; height: 9px; }
	.fbs-hide-arrows-mobile .fbs-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.fbs-track, .fbs-effect-fade .fbs-slide { transition-duration: 0.01ms !important; }
}
