.ec-container-d690a752 {
	--ec-columns-d690a752: 3;
	--ec-gap-d690a752: 20px;
	width: 100%;
}
.ec-header-d690a752 {
	margin-bottom: 30px;
}
.ec-title-d690a752 {
	margin: 0 0 10px;
}
.ec-subtitle-d690a752 {
	margin: 0;
}
.ec-scroll-wrapper-d690a752 {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 20px;
	scrollbar-width: thin;
}
.ec-events-row-d690a752 {
	display: flex;
	gap: var(--ec-gap-d690a752);
	width: max-content;
}

/* This is the key fix for the column width! It uses CSS variables from Elementor controls directly */
.elementor-widget-events_carousel_d690a752 .ec-event-box-d690a752 {
	width: calc((100vw - (var(--ec-gap-d690a752) * (var(--ec-columns-d690a752) + 1))) / var(--ec-columns-d690a752));
	flex: 0 0 calc((100vw - (var(--ec-gap-d690a752) * (var(--ec-columns-d690a752) + 1))) / var(--ec-columns-d690a752));
	max-width: 400px; /* Safety fallback */
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: all 0.3s ease;
	scroll-snap-align: start;
}

/* Container width fallback if it breaks inside boxed layouts */
@media (min-width: 1140px) {
    .elementor-widget-events_carousel_d690a752 .ec-event-box-d690a752 {
        width: calc((1140px - (var(--ec-gap-d690a752) * (var(--ec-columns-d690a752) - 1))) / var(--ec-columns-d690a752));
        flex: 0 0 calc((1140px - (var(--ec-gap-d690a752) * (var(--ec-columns-d690a752) - 1))) / var(--ec-columns-d690a752));
    }
}

.ec-event-img-d690a752 {
	height: 180px;
	background-size: cover;
	background-position: center;
	background-color: #222;
}
.ec-event-content-d690a752 {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.ec-event-title-d690a752 {
	margin: 0 0 10px;
	font-size: 1.2rem;
	color: #FFC367 !important;
}
.ec-event-meta-d690a752 {
	margin: 0 0 20px;
	font-size: 0.9rem;
	opacity: 0.8;
}
.ec-event-btn-d690a752 {
	display: inline-block;
	margin-top: auto;
	padding: 10px 20px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: bold;
	text-align: center;
	transition: opacity 0.3s ease;
}
.ec-event-btn-d690a752:hover {
	opacity: 0.8;
}
.ec-scroll-hint-d690a752 {
	text-align: right;
	font-size: 0.8rem;
	opacity: 0.6;
	margin-top: 10px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 5px;
}