/* ── EIC Image Carousel Widget ── */

.eic-carousel-wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
	user-select: none;
}

/* ── Main stage ── */
.eic-main-stage {
	position: relative;
	width: 100%;
//	height: 480px;
	overflow: hidden;
	background: #fff;
}

.eic-main-stage .eic-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

.eic-main-stage .eic-slide.eic-active {
	opacity: 1;
	pointer-events: auto;
}

.eic-main-stage img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: #fff;

}

/* ── Caption ── */
.eic-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 10px 16px;
	color: #fff;
	background: rgba(0, 0, 0, 0.5);
	font-size: 14px;
	line-height: 1.4;
}

/* ── Navigation arrows ── */
.eic-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	border: none;
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease;
	padding: 0;
}

.eic-arrow:hover {
	background: rgba(0, 0, 0, 0.75);
}

.eic-arrow svg {
	width: 20px;
	height: 20px;
	fill: #fff;
	display: block;
}

.eic-prev {
	left: 12px;
}

.eic-next {
	right: 12px;
}

/* ── Dots ── */
.eic-dots {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	z-index: 10;
}

.eic-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease, transform 0.2s ease;
}

.eic-dot.eic-active {
	background: #fff;
	transform: scale(1.3);
}

/* ── Thumbnails area ── */
.eic-thumbs-area {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	width: 100%;
}

.eic-thumb-viewport {
	flex: 1;
	overflow: hidden;
	position: relative;
}

.eic-thumb-track {
	display: flex;
	gap: 8px;
	transition: transform 0.35s ease;
	will-change: transform;
}

.eic-thumb-item {
	flex: 0 0 auto;
	height: 80px;
	cursor: pointer;
	border: 3px solid transparent;
	box-sizing: border-box;
	overflow: hidden;
	transition: opacity 0.2s ease, border-color 0.2s ease;
	opacity: 0.55;
	border-radius: 4px;
}

.eic-thumb-item.eic-active {
	border-color: #0073aa;
	opacity: 1;
}

.eic-thumb-item:hover {
	opacity: 0.85;
}

.eic-thumb-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

/* ── Thumbnail nav arrows ── */
.eic-thumb-nav {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.15);
	border: none;
	cursor: pointer;
	transition: background 0.2s ease;
	padding: 0;
}

.eic-thumb-nav:hover {
	background: rgba(0, 0, 0, 0.3);
}

.eic-thumb-nav svg {
	width: 16px;
	height: 16px;
	fill: #333;
	display: block;
}

.eic-thumb-nav:disabled {
	opacity: 0.3;
	cursor: default;
}

/* ── Fade animation for slide transitions ── */
@keyframes eic-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* ── Mobile responsive (≤ 768px) ── */
@media (max-width: 768px) {

	/* Main stage: altura menor + fundo branco */
	.elementor-widget-container .eic-main-stage {
		height: auto !important;
		background: #fff;
		aspect-ratio: 89 / 56 !important; 
	}

	/* Imagem inteira sobre o fundo branco (sem corte) */
	.elementor-widget-container .eic-main-stage img {
		object-fit: cover;
		background: #fff;

	}

	/* Sem setas na imagem principal — usa swipe */
	.elementor-widget-container .eic-arrow {
		display: none;
	}

	/* Dots mais acima já que não há setas */
	.elementor-widget-container .eic-dots {
		bottom: 8px;
	}

	/* Legenda menor */
	.elementor-widget-container .eic-caption {
		font-size: 12px;
		padding: 8px 12px;
	}

	/* Thumbnails: proporção horizontal + largura fixa (exibe menos fotos) */
	/* width fixo em vez de aspect-ratio, que falha no iOS/WebKit */
	.elementor-widget-container .eic-thumb-item {
		height: 56px;
		width: 100px;
		aspect-ratio: auto;
	}

	.elementor-widget-container .eic-thumb-item img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	/* Setas de navegação dos thumbs menores */
	.elementor-widget-container .eic-thumb-nav {
		width: 26px;
		height: 26px;
	}

	.elementor-widget-container .eic-thumb-nav svg {
		width: 13px;
		height: 13px;
	}

	/* Espaçamentos mais justos */
	.elementor-widget-container .eic-thumb-track {
		gap: 5px;
	}

	.elementor-widget-container .eic-thumbs-area {
		gap: 4px;
		margin-top: 8px;
	}
}
