/* B3 Outdoor Design - photo sliders on the Services page (see b3-slider.js).
   Plain CSS, no Elementor dependency. Swipe works natively via scroll-snap;
   the arrows and dots are added on top. */
.b3-slider { position: relative; }

.b3-slider__track {
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	border-radius: 4px;
}
.b3-slider__track::-webkit-scrollbar { display: none; }
.b3-slider__track:focus-visible { outline: 2px solid #3bb208; outline-offset: 2px; }

.b3-slider__track > img {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	object-fit: cover;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}
/* The site-wide hover zoom (b3-motion.css) would let neighbouring slides peek in. */
.elementor-widget-image .b3-slider img,
.elementor-widget-image:hover .b3-slider img { transform: none !important; }

/* Arrows - hidden until the script is running. */
.b3-slider .b3-slider__btn {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #2e6417;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
	cursor: pointer;
	transition: background-color .2s, color .2s, transform .2s;
}
.b3-slider.is-ready .b3-slider__btn { display: flex; }
.b3-slider .b3-slider__btn:hover,
.b3-slider .b3-slider__btn:focus-visible { background: #3bb208; color: #fff; }
.b3-slider .b3-slider__btn:active { transform: scale(.94); }
.b3-slider .b3-slider__btn--prev { left: 12px; }
.b3-slider .b3-slider__btn--next { right: 12px; }
.b3-slider .b3-slider__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Dots */
.b3-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 8px;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 2px;
	pointer-events: none;
}
.b3-slider .b3-slider__dot {
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	pointer-events: auto;
}
.b3-slider .b3-slider__dot::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	margin: auto;
	border-radius: 50%;
	background: rgba(255, 255, 255, .6);
	box-shadow: 0 0 3px rgba(0, 0, 0, .45);
	transition: background-color .2s, transform .2s;
}
.b3-slider .b3-slider__dot:hover,
.b3-slider .b3-slider__dot:focus { background: transparent; }
.b3-slider .b3-slider__dot.is-active::before { background: #fff; transform: scale(1.25); }

@media (max-width: 767px) {
	.b3-slider .b3-slider__btn { width: 36px; height: 36px; margin-top: -18px; }
	.b3-slider .b3-slider__btn--prev { left: 8px; }
	.b3-slider .b3-slider__btn--next { right: 8px; }
	.b3-slider .b3-slider__btn svg { width: 16px; height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.b3-slider__track { scroll-behavior: auto; }
}
