.ec_carousel {
	position: relative;
	overflow: hidden;
}

.ec_carousel_track {
	display: flex;
	transition: transform 0.4s ease;
}

.ec_carousel_slide {
	flex: 0 0 calc(100% / 3);
	padding: 0 8px;
	box-sizing: border-box;
	display: block;
}

.ec_carousel_image {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 4px;
}

.ec_carousel_arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.85);
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.ec_carousel_arrow--prev {
	left: 8px;
}

.ec_carousel_arrow--next {
	right: 8px;
}

.ec_carousel_dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
}

.ec_carousel_dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ccc;
	border: none;
	padding: 0;
	cursor: pointer;
}

.ec_carousel_dot.is-active {
	background: #333;
}

/* Placeholder grid shown only inside the Visual Builder canvas. */
.ec_carousel--placeholder .ec_carousel_slide {
	background: #e0e0e0;
	aspect-ratio: 1 / 1;
	border-radius: 4px;
}

.ec_carousel_placeholder_caption {
	text-align: center;
	font-size: 13px;
	color: #777;
	margin-top: 8px;
}

@media (max-width: 767px) {
	.ec_carousel_slide {
		flex: 0 0 100%;
	}
}
