/*
 * Carousel Styles - Slick variable width / center mode
 */

.chc-carousel-wrapper {
	position: relative;
	width: 120%;
	max-width: none;
	margin-left: -10%;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
}

.chc-carousel-variant {
	position: relative;
	width: 100%;
}

.chc-carousel-variant-mobile {
	display: none;
}

.chc-carousel-wrapper .slick-prev{
    left: 20%;
    z-index: 1;
}

.slick-prev:before,
.slick-next:before {
	content: '';
	display: block;
	width: 28px;
	height: 28px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	opacity: 1;
	color: transparent;
}

.slick-prev:before {
	background-image: url('https://coastalhavenbali.com/wp-content/uploads/2026/04/Group-20.svg');
}

.slick-next:before {
	background-image: url('https://coastalhavenbali.com/wp-content/uploads/2026/04/Group-19.svg');
}

.chc-carousel-wrapper .slick-next{
    right: 20%;
    z-index: 1;
}

.chc-carousel-wrapper .carousel-swiper {
	overflow: visible;
	padding-bottom: 50px;
	padding-left: 0;
	padding-right: 0;
	width: 110%;
	margin-left: -5%;
	margin-right: auto;
}

.chc-carousel-container {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
}
.chc-slide.slick-slide{
    padding:0;
}
.chc-slide {
	margin: 0 8px;
	display: inline-block;
	vertical-align: top;
	opacity: 0.9;
	transition: opacity 0.45s ease;
}

.chc-slide.slick-current,
.chc-slide.slick-active {
	opacity: 1;
}

.chc-group-row {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
}

.chc-group-col {
	display: flex;
	flex-direction: row;
	gap: 12px;
}

.chc-carousel-container .slick-list {
	overflow: hidden;
	cursor: grab;
}

.chc-carousel-container .slick-list:active {
	cursor: grabbing;
}

.chc-carousel-container .slick-track {
	display: flex;
	align-items: stretch;
    height: 500px;
	will-change: transform;
	backface-visibility: hidden;
	transform: translate3d(0, 0, 0);
}

.chc-slide-item {
	position: relative;
	overflow: hidden;
	background: #f0f0f0;
	border-radius: 8px;
	margin: 0;
	flex: 0 0 auto;
}

.chc-slide-item.chc-slide-size-mobile {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f0;
}

.chc-slide-item img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.chc-slide-item:hover img {
	transform: scale(1.03);
}

.chc-slide-size-small {
	width: 327px;
	height: 245px;
}

.chc-slide-size-medium {
	width: 436px;
	height: 245px;
}

.chc-slide-size-large {
	width: 667px;
	height: 500px;
}

.chc-slide-size-mobile {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
}

@media (max-width: 1199px) and (min-width: 768px) {
	.chc-slide-size-small {
		width: 280px;
		height: 210px;
	}

	.chc-slide-size-medium {
		width: 360px;
		height: 210px;
	}

	.chc-slide-size-large {
		width: 540px;
		height: 400px;
	}
}

@media (max-width: 767px) {
	.chc-carousel-wrapper {
		width: 100%;
		margin-left: 0;
	}

	.chc-carousel-wrapper .carousel-swiper {
		width: 100%;
		margin-left: 0;
	}

	.chc-carousel-variant-desktop {
		display: none;
	}

	.chc-carousel-variant-mobile {
		display: block;
	}

	.chc-slide {
		width: 100%;
		margin: 0;
	}

	.chc-slide-size-mobile {
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
	}

	.chc-carousel-variant-mobile .chc-carousel-container .slick-track {
		height: auto;
	}

	.chc-carousel-variant-mobile .chc-carousel-container .slick-list {
		overflow: hidden;
	}

	.chc-carousel-variant-mobile .chc-slide-item.chc-slide-size-mobile {
		min-height: 240px;
	}

	.chc-carousel-variant-mobile .chc-slide-item.chc-slide-size-mobile img {
		position: relative;
		inset: auto;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center center;
	}

	.chc-carousel-variant-mobile .slick-arrow {
		z-index: 20;
		pointer-events: auto;
	}

	.chc-carousel-variant-mobile .slick-next {
		right: 12px;
	}

	.chc-carousel-variant-mobile .slick-prev {
		left: 12px;
	}

    .chc-carousel-wrapper .slick-prev{
        left: 10%;
    }
    
    .chc-carousel-wrapper .slick-next{
        right: 10%;
    }
    .chc-slide-item{
        border-radius: 0px;
    }
}
