.aef-collection {
	--aef-columns: 3;
	--aef-gap: 24px;
	position: relative;
	width: 100%;
}

.aef-collection--grid {
	display: grid;
	grid-template-columns: repeat(var(--aef-columns), minmax(0, 1fr));
	gap: var(--aef-gap);
	align-items: stretch;
}

.aef-collection--list {
	display: flex;
	flex-direction: column;
	gap: var(--aef-gap);
}

.aef-collection__item {
	min-width: 0;
}

.aef-collection--equal-height > .aef-collection__item,
.aef-collection--equal-height .aef-carousel__track > .aef-collection__item {
	display: flex;
}

.aef-collection--equal-height .aef-collection__item > .elementor,
.aef-collection--equal-height .aef-collection__item > .elementor > .elementor-element,
.aef-collection--equal-height .aef-collection__item > .e-con {
	width: 100%;
	height: 100%;
}

.aef-carousel__viewport {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.aef-carousel__viewport::-webkit-scrollbar {
	display: none;
}

.aef-carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--aef-columns) - 1) * var(--aef-gap)) / var(--aef-columns));
	gap: var(--aef-gap);
}

.aef-carousel__track > .aef-collection__item {
	scroll-snap-align: start;
}

.aef-carousel__button {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .14);
	color: #111;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	transform: translateY(-50%);
}

.aef-carousel__button--prev {
	left: 12px;
}

.aef-carousel__button--next {
	right: 12px;
}

.aef-carousel__button:disabled {
	cursor: default;
	opacity: .35;
}

.aef-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
}

.aef-carousel__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #b9b9b9;
	cursor: pointer;
}

.aef-carousel__dot[aria-current="true"] {
	background: #222;
	transform: scale(1.25);
}

.aef-collection__notice {
	padding: 14px 16px;
	border: 1px dashed #c8c8c8;
	border-radius: 4px;
	color: #555;
	font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
	.aef-carousel__viewport {
		scroll-behavior: auto;
	}
}
