/* CNSCB carousel: add the CSS class "cnscb-carusel" to an Elementor Posts widget (Cards skin). */
.cnscb-carusel .elementor-pagination,
.cnscb-carusel .e-load-more-anchor { display: none !important; }

.cnscb-carusel__frame { position: relative; padding: 0 56px; }
.cnscb-carusel__viewport { overflow: hidden; padding: 6px 4px 10px; margin: -6px -4px -10px; }

.cnscb-carusel.cnscb-carusel--on .elementor-posts-container {
	display: flex !important;
	flex-wrap: nowrap;
	gap: var(--grid-column-gap, 30px);
	will-change: transform;
	touch-action: pan-y;
}
.cnscb-carusel.cnscb-carusel--on .elementor-posts-container > .elementor-post {
	flex: 0 0 calc((100% - (var(--cnscb-n, 3) - 1) * var(--grid-column-gap, 30px)) / var(--cnscb-n, 3));
	min-width: 0;
}

.cnscb-carusel__btn {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 40px; height: 40px; padding: 0; border-radius: 50%;
	border: 1px solid currentColor; background: #fff; color: #1f2a5a;
	display: flex; align-items: center; justify-content: center; cursor: pointer;
	transition: background-color .2s, color .2s;
}
.cnscb-carusel__btn:hover, .cnscb-carusel__btn:focus-visible { background: #1f2a5a; color: #fff; }
.cnscb-carusel__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cnscb-carusel__btn--prev { left: 0; }
.cnscb-carusel__btn--next { right: 0; }
.cnscb-carusel__btn[hidden] { display: none; }

@media (max-width: 767px) {
	.cnscb-carusel__frame { padding: 0 44px; }
	.cnscb-carusel__btn { width: 34px; height: 34px; }
}

/* Evenimente cards: add the CSS class "cnscb-carduri-evenimente" to the widget. */
.cnscb-carduri-evenimente .elementor-post__thumbnail__link { display: none !important; }
.cnscb-carduri-evenimente .elementor-post__excerpt::after { content: ""; display: block; clear: both; }
.cnscb-carduri-evenimente .cnscb-card-thumb {
	float: left; width: 75px; height: 75px; margin: 4px 5px 0 0;
	object-fit: cover; object-position: center; display: block;
}
