/* Onyx Image Slider */

.onyx-slider-wrap {
	position: relative;
	width: 100%;
}

.onyx-slider {
	width: 100%;
	overflow: hidden;
}

.onyx-slider .swiper-wrapper {
	align-items: stretch;
	box-sizing: border-box;
}

.onyx-slider .swiper-slide {
	height: auto;
	transition: opacity 0.35s ease;
}

.onyx-slide {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.onyx-slide-link {
	display: block;
	text-decoration: none;
	line-height: 0;
}

.onyx-slide-media {
	position: relative;
	width: 100%;
	height: 420px;
	overflow: hidden;
	background-color: #f2f2f2;
}

.onyx-slide-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.onyx-zoom .onyx-slide-media:hover img {
	transform: scale(1.06);
}

/* Captions */

.onyx-slide-caption {
	display: block;
	margin-top: 12px;
	font-size: 15px;
	line-height: 1.4;
	color: inherit;
}

.onyx-caption-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 40px 20px 18px;
	color: #fff;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
	pointer-events: none;
}

/* Arrows */

.onyx-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.35);
	cursor: pointer;
	transition: background-color 0.25s ease, opacity 0.25s ease;
	-webkit-appearance: none;
	appearance: none;
}

.onyx-arrow:hover {
	background-color: rgba(0, 0, 0, 0.65);
}

.onyx-arrow:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.onyx-arrow svg {
	width: 20px;
	height: 20px;
	stroke: #fff;
	fill: none;
	pointer-events: none;
}

.onyx-arrow-prev {
	left: 16px;
}

.onyx-arrow-next {
	right: 16px;
}

.onyx-arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* Dots */

.onyx-dots {
	position: static;
	margin-top: 18px;
	text-align: center;
}

.onyx-dots .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	margin: 0 5px !important;
	opacity: 0.35;
	transition: opacity 0.25s ease, width 0.25s ease;
}

.onyx-dots .swiper-pagination-bullet-active {
	opacity: 1;
	width: 22px;
	border-radius: 4px;
}

/* Dim side slides */

.onyx-dim .swiper-slide {
	opacity: 0.45;
}

.onyx-dim .swiper-slide-visible {
	opacity: 1;
}

/* Editor placeholder safety */

.elementor-editor-active .onyx-slider-wrap {
	min-height: 40px;
}

@media (max-width: 767px) {
	.onyx-arrow {
		width: 38px;
		height: 38px;
	}

	.onyx-arrow svg {
		width: 16px;
		height: 16px;
	}
}
