/**
 * AELAB Customer Image carousel.
 */

.aelab-ci {
	--aelab-ci-gap: 20px;
	--aelab-ci-underline: #e36a4a;
	--aelab-ci-slides: 5;
	width: 100%;
	box-sizing: border-box;
}

.aelab-ci *,
.aelab-ci *::before,
.aelab-ci *::after {
	box-sizing: border-box;
}

.aelab-ci--empty {
	padding: 24px;
	text-align: center;
	color: #888;
	border: 1px dashed #ddd;
	border-radius: 8px;
}

.aelab-ci__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.aelab-ci__title {
	margin: 0;
	padding: 0 0 8px;
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.3;
	color: #3a3a3a;
	display: inline-block;
	border-bottom: 2px solid var(--aelab-ci-underline, #e36a4a);
}

.aelab-ci__show-all {
	flex-shrink: 0;
	font-size: 0.95rem;
	font-weight: 500;
	color: #e36a4a;
	text-decoration: none;
	line-height: 1.3;
	white-space: nowrap;
}

.aelab-ci__show-all:hover,
.aelab-ci__show-all:focus {
	color: #c95538;
	text-decoration: underline;
}

.aelab-ci__body {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
}

.aelab-ci__viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
	cursor: grab;
}

.aelab-ci__viewport:active {
	cursor: grabbing;
}

.aelab-ci__track {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--aelab-ci-gap, 20px);
	will-change: transform;
	transition: transform 0.35s ease;
}

.aelab-ci__slide {
	margin: 0;
	padding: 0;
	flex: 0 0 calc((100% - (var(--aelab-ci-gap, 20px) * (var(--aelab-ci-slides, 5) - 1))) / var(--aelab-ci-slides, 5));
	width: calc((100% - (var(--aelab-ci-gap, 20px) * (var(--aelab-ci-slides, 5) - 1))) / var(--aelab-ci-slides, 5));
	max-width: calc((100% - (var(--aelab-ci-gap, 20px) * (var(--aelab-ci-slides, 5) - 1))) / var(--aelab-ci-slides, 5));
	min-width: 0;
}

.aelab-ci__media {
	display: block;
	width: 100%;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	text-decoration: none;
	line-height: 0;
	background: #f0f0f0;
	border-radius: inherit;
}

.aelab-ci__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 18px;
	vertical-align: top;
}

.aelab-ci__caption {
	margin: 10px 0 0;
	padding: 0 4px;
	text-align: center;
	font-style: italic;
	font-size: 0.95rem;
	line-height: 1.35;
	color: #4a4a4a;
}

.aelab-ci__arrow {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #c8c8c8 !important;
	fill: none !important;
	cursor: pointer;
	border-radius: 50%;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.aelab-ci__arrow svg,
.aelab-ci__arrow svg path {
	color: inherit !important;
	stroke: currentColor !important;
	fill: none !important;
}

.aelab-ci__arrow:hover,
.aelab-ci__arrow:focus,
.aelab-ci__arrow:focus-visible,
.aelab-ci__arrow:active,
.aelab-ci__arrow:hover:not(:disabled),
.aelab-ci__arrow:focus:not(:disabled) {
	color: #b0b0b0 !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: none;
}

.aelab-ci__arrow:hover svg,
.aelab-ci__arrow:focus svg,
.aelab-ci__arrow:hover svg path,
.aelab-ci__arrow:focus svg path {
	color: #b0b0b0 !important;
	stroke: #b0b0b0 !important;
}

.aelab-ci__arrow:disabled {
	opacity: 0.35;
	cursor: default;
	color: #c8c8c8 !important;
}

.aelab-ci__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
	min-height: 10px;
}

.aelab-ci__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: #d0d0d0;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.aelab-ci__dot.is-active {
	background-color: #555;
	transform: scale(1.15);
}

@media (max-width: 1024px) {
	.aelab-ci {
		--aelab-ci-slides: 3;
	}
}

@media (max-width: 767px) {
	.aelab-ci {
		--aelab-ci-slides: 1.5;
		--aelab-ci-gap: 12px;
	}

	.aelab-ci__header {
		margin-bottom: 14px;
	}

	.aelab-ci__title {
		font-size: 1.15rem;
	}

	.aelab-ci__arrow {
		width: 28px;
		height: 28px;
	}
}
