/**
 * SBH Image Slider
 */

.sbh-image-slider {
	position: relative;
	width: 100%;
	height: var( --sbh-slider-height, 500px );
	overflow: hidden;
	border-radius: 0;
}

.sbh-image-slider__track {
	position: relative;
	width: 100%;
	height: 100%;
}

.sbh-image-slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX( 100% );
	transition: transform .5s ease, opacity .5s ease;
}

.sbh-image-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX( 0 );
	z-index: 1;
}

.sbh-image-slider__slide.is-prev {
	transform: translateX( -100% );
}

.sbh-image-slider--fade .sbh-image-slider__slide {
	transform: none;
}

.sbh-image-slider--fade .sbh-image-slider__slide.is-prev {
	transform: none;
}

.sbh-image-slider__link {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
}

.sbh-image-slider__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sbh-image-slider__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba( 0, 0, 0, .25 );
	pointer-events: none;
}

.sbh-image-slider__content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 12px;
	padding: 40px;
	z-index: 2;
}

.sbh-image-slider__heading {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	color: #fff;
}

.sbh-image-slider__description {
	margin: 0;
	font-size: 16px;
	color: #f2f2f2;
	max-width: 560px;
}

.sbh-image-slider .sbh-image-slider__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	background-color: #fff;
	color: #111;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid transparent;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
	cursor: pointer;
}

.sbh-image-slider .sbh-image-slider__btn:hover {
	background-color: #111;
	color: #fff;
}

.sbh-image-slider .sbh-image-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba( 255, 255, 255, .85 );
	color: #111;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
	z-index: 3;
	transition: background-color .2s ease, color .2s ease;
	padding: 0;
}

.sbh-image-slider__arrow--prev {
	left: 16px;
}

.sbh-image-slider__arrow--next {
	right: 16px;
}

.sbh-image-slider__dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX( -50% );
	display: flex;
	align-items: center;
	gap: 8px;
	z-index: 3;
}

.sbh-image-slider .sbh-image-slider__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: rgba( 255, 255, 255, .5 );
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}

.sbh-image-slider .sbh-image-slider__dot.is-active {
	background-color: #fff;
	transform: scale( 1.2 );
}

@media ( max-width: 767px ) {
	.sbh-image-slider__heading {
		font-size: 22px;
	}

	.sbh-image-slider__description {
		font-size: 14px;
	}

	.sbh-image-slider__content {
		padding: 24px;
	}

	.sbh-image-slider__arrow {
		width: 32px;
		height: 32px;
	}
}
