/* Flo Slider - front-end styles */

.flo-slider-wrap {
	box-sizing: border-box;
}

/* Clear floated sliders so following content doesn't collapse around them */
.flo-slider-wrap::after {
	content: "";
	display: table;
	clear: both;
}

.flo-slider-wrap--align-center {
	display: block;
}

/* On small screens, drop floats to full width for readability */
@media ( max-width: 600px ) {
	.flo-slider-wrap--align-left,
	.flo-slider-wrap--align-right {
		float: none !important;
		width: 100% !important;
		margin: 0 0 1rem !important;
	}
}

.flo-slider {
	position: relative;
	width: 100%;
	height: var( --flo-slider-height, 480px );
	overflow: hidden;
	border-radius: 8px;
	background: #0d0d0d;
}

.flo-slider__track {
	display: flex;
	height: 100%;
	transition: transform var( --flo-slider-transition, 600ms ) cubic-bezier( 0.4, 0, 0.2, 1 );
	will-change: transform;
}

.flo-slider__slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.flo-slider__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Fade effect: stack slides */
.flo-slider--fade .flo-slider__track {
	display: block;
	transform: none !important;
}

.flo-slider--fade .flo-slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity var( --flo-slider-transition, 600ms ) ease;
	pointer-events: none;
}

.flo-slider--fade .flo-slider__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

/* Caption */
.flo-slider__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 2.5rem 2rem 2rem;
	color: #fff;
	background: linear-gradient( to top, rgba( 0, 0, 0, 0.72 ) 0%, rgba( 0, 0, 0, 0.25 ) 60%, transparent 100% );
}

.flo-slider__heading {
	margin: 0 0 0.4rem;
	font-size: clamp( 1.4rem, 3vw, 2.4rem );
	line-height: 1.15;
	color: #fff;
}

.flo-slider__text {
	margin: 0 0 1rem;
	font-size: clamp( 0.95rem, 1.6vw, 1.1rem );
	max-width: 60ch;
	color: rgba( 255, 255, 255, 0.92 );
}

.flo-slider__btn {
	display: inline-block;
	padding: 0.65rem 1.4rem;
	background: #fff;
	color: #111;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	transition: transform 0.15s ease, background 0.15s ease;
}

.flo-slider__btn:hover {
	transform: translateY( -2px );
	background: #f0f0f0;
}

/* Arrows */
.flo-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.85 );
	color: #111;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.flo-slider__arrow:hover {
	background: #fff;
}

.flo-slider__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.flo-slider__arrow--prev {
	left: 16px;
}

.flo-slider__arrow--next {
	right: 16px;
}

/* Dots */
.flo-slider__dots {
	position: absolute;
	bottom: 14px;
	left: 0;
	right: 0;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.flo-slider__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.5 );
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.flo-slider__dot:hover {
	background: rgba( 255, 255, 255, 0.8 );
}

.flo-slider__dot.is-active {
	background: #fff;
	transform: scale( 1.25 );
}

@media ( max-width: 600px ) {
	.flo-slider__caption {
		padding: 1.6rem 1.2rem 1.2rem;
	}

	.flo-slider__arrow {
		width: 36px;
		height: 36px;
	}
}
