/* Divi Eon Carousel - Frontend Styles */

.eon-carousel {
	position: relative;
	overflow: hidden;
	width: 100%;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.eon-carousel[data-carousel-ready="true"] {
	opacity: 1;
}

/* Drag cursor styles - only when enabled */
.eon-carousel[data-drag-enabled="yes"] .eon-carousel-track {
	cursor: grab;
	user-select: none;
}

.eon-carousel[data-drag-enabled="yes"].eon-dragging .eon-carousel-track {
	cursor: grabbing;
}

.eon-carousel .eon-carousel-track img {
	pointer-events: auto;
	user-select: none;
}

.eon-carousel[data-drag-enabled="yes"] .eon-carousel-track img {
	pointer-events: none;
}

.eon-carousel .eon-carousel-track a {
	cursor: pointer;
}

/* Standard Slide Mode */
.eon-carousel[data-animation-style="slide"] .eon-carousel-track {
	display: flex;
	height: 100%;
	transition: transform 0.5s ease-in-out;
	position: relative;
}

/* Continuous Scroll Mode - Left to Right */
.eon-carousel[data-animation-style="scroll-left"] .eon-carousel-track {
	display: flex;
	height: 100%;
	position: relative;
	animation: eon-scroll-left 20s linear infinite;
	width: max-content;
	overflow: hidden;
}

.eon-carousel[data-animation-style="scroll-left"]:hover .eon-carousel-track {
	animation-play-state: paused;
}

/* Continuous Scroll Mode - Right to Left */
.eon-carousel[data-animation-style="scroll-right"] .eon-carousel-track {
	display: flex;
	height: 100%;
	position: relative;
	animation: eon-scroll-right 20s linear infinite;
	width: max-content;
	overflow: hidden;
}

.eon-carousel[data-animation-style="scroll-right"]:hover .eon-carousel-track {
	animation-play-state: paused;
}

@keyframes eon-scroll-left {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

@keyframes eon-scroll-right {
	0% {
		transform: translateX(-50%);
	}
	100% {
		transform: translateX(0);
	}
}

.eon-carousel-track {
	display: flex;
	height: 100%;
	transition: transform 0.5s ease-in-out;
	position: relative;
	overflow: hidden;
}

.eon-carousel-slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.eon-carousel-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

/* Scroll mode adjustments */
.eon-carousel[data-animation-style="scroll-left"] .eon-carousel-slide,
.eon-carousel[data-animation-style="scroll-right"] .eon-carousel-slide {
	flex: 0 0 auto;
	width: auto;
	height: 100%;
}

.eon-carousel[data-animation-style="scroll-left"] .eon-carousel-slide img,
.eon-carousel[data-animation-style="scroll-right"] .eon-carousel-slide img {
	width: auto;
	height: 100%;
	max-height: 100%;
	object-fit: contain;
	padding: 0 30px;
}

.eon-carousel[data-animation-style="scroll-left"] .eon-carousel-arrow,
.eon-carousel[data-animation-style="scroll-left"] .eon-carousel-dots,
.eon-carousel[data-animation-style="scroll-right"] .eon-carousel-arrow,
.eon-carousel[data-animation-style="scroll-right"] .eon-carousel-dots {
	display: none !important;
}

.eon-carousel-slide img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.eon-carousel-slide a {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	z-index: 1;
}

.eon-carousel-slide a img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

/* Navigation Arrows */
.eon-carousel-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease;
	padding: 0;
}

.eon-carousel-arrow:hover {
	background: rgba(0, 0, 0, 0.8);
}

.eon-carousel-prev {
	left: 15px;
}

.eon-carousel-next {
	right: 15px;
}

.eon-carousel-arrow:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Navigation Dots */
.eon-carousel-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
}

.eon-carousel-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.eon-carousel-dot:hover {
	background: rgba(255, 255, 255, 0.8);
	transform: scale(1.2);
}

.eon-carousel-dot.active {
	background: rgba(255, 255, 255, 1);
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
}

/* Notice Styles */
.eon-carousel-notice {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	background: #f5f5f5;
	color: #999;
	font-size: 16px;
	border: 2px dashed #ddd;
	border-radius: 4px;
	padding: 20px;
	text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
	.eon-carousel-arrow {
		width: 40px;
		height: 40px;
		font-size: 18px;
	}
	
	.eon-carousel-prev {
		left: 10px;
	}
	
	.eon-carousel-next {
		right: 10px;
	}
	
	.eon-carousel-dot {
		width: 10px;
		height: 10px;
	}
	
	.eon-carousel-dots {
		bottom: 15px;
		gap: 8px;
	}
}

@media (max-width: 480px) {
	.eon-carousel-arrow {
		width: 36px;
		height: 36px;
		font-size: 16px;
	}
	
	.eon-carousel-prev {
		left: 8px;
	}
	
	.eon-carousel-next {
		right: 8px;
	}
}
