.ecs-widget {
	position: relative;
}

/* ---------- Header ---------- */
.ecs-header {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	justify-content: space-between;
	margin-bottom: 36px;
}

.ecs-header-left {
	flex: 1 1 380px;
}

.ecs-header-right {
	flex: 1 1 380px;
	max-width: 580px;
}

/* ---------- Carousel ---------- */
.ecs-carousel {
	position: relative;
	display: flex;
	align-items: center;
}


.ecs-track-wrap {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

.ecs-track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.ecs-track::-webkit-scrollbar {
	display: none;
}

.ecs-card {
	position: relative;
	flex: 0 0 calc((100% - (var(--ecs-visible, 4) - 1) * 24px) / var(--ecs-visible, 4));
	scroll-snap-align: start;
	display: block;
	overflow: hidden;
	border-radius: 6px;
	aspect-ratio: 1 / var(--ecs-ratio, 0.85);
	text-decoration: none;
	background: #111;
}



.ecs-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.ecs-widget[data-zoom="yes"] .ecs-card:hover .ecs-card-img {
	transform: scale(1.06);
}

.ecs-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, #000000 10%, transparent 65%);
	pointer-events: none;
}

.ecs-card-text {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ecs-card-title {
	color: #ffffff;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.ecs-card-subtitle {
	color: #e6e1d8;
	font-size: 13px;
	line-height: 1.4;
	max-width:222px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ecs-card {
		flex-basis: calc((100% - (var(--ecs-visible-tablet, 2) - 1) * 24px) / var(--ecs-visible-tablet, 2));
	}
	.ecs-header {
		gap: 24px;
	}
}

@media (max-width: 640px) {
	.ecs-card {
		flex-basis: calc((100% - (var(--ecs-visible-mobile, 1) - 1) * 16px) / var(--ecs-visible-mobile, 1));
	}
	.ecs-track {
		gap: 16px;
	}
	
}
