.fab-imc,
.fab-imc * {
	box-sizing: border-box;
}

.fab-imc {
	--fab-imc-gap: 24px;
	--fab-imc-item-width: 320px;
	--fab-imc-slides: 4;
	--fab-imc-marquee-duration: 30s;
	--fab-imc-carousel-transition: 500ms;
	position: relative;
	width: 100%;
	overflow: hidden;
}

.fab-imc__inner {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin-inline: auto;
}

.fab-imc__item {
	min-width: 0;
	overflow: hidden;
	background: #fff;
}

.fab-imc__image-button {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

.fab-imc__image {
	display: block;
	width: 100%;
	height: 260px;
	object-fit: cover;
}

.fab-imc__copy {
	margin-top: 18px;
}

.fab-imc__heading {
	margin: 0;
	color: inherit;
	font: inherit;
}

.fab-imc__content {
	margin-top: 8px;
	color: inherit;
}

.fab-imc__content p {
	margin: 0;
}

/* =========================================================
   MARQUEE
   ========================================================= */
.fab-imc__marquee-viewport {
	width: 100%;
	overflow: hidden;
}

.fab-imc__marquee-track {
	display: flex;
	width: max-content;
	will-change: transform;
}

.fab-imc__marquee-group {
	display: flex;
	flex: none;
	gap: var(--fab-imc-gap);
	padding-right: var(--fab-imc-gap);
}

.fab-imc--marquee .fab-imc__item {
	flex: 0 0 var(--fab-imc-item-width);
	width: var(--fab-imc-item-width);
}

.fab-imc--marquee.fab-imc--direction-left .fab-imc__marquee-track {
	animation: fab-imc-marquee-left var(--fab-imc-marquee-duration) linear infinite;
}

.fab-imc--marquee.fab-imc--direction-right .fab-imc__marquee-track {
	animation: fab-imc-marquee-right var(--fab-imc-marquee-duration) linear infinite;
}

.fab-imc.is-paused .fab-imc__marquee-track,
.fab-imc.is-offscreen .fab-imc__marquee-track {
	animation-play-state: paused;
}

@keyframes fab-imc-marquee-left {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-50%, 0, 0); }
}

@keyframes fab-imc-marquee-right {
	from { transform: translate3d(-50%, 0, 0); }
	to { transform: translate3d(0, 0, 0); }
}

/* =========================================================
   CAROUSEL
   ========================================================= */
.fab-imc__carousel-shell {
	position: relative;
}

.fab-imc__carousel-viewport {
	overflow: hidden;
}

.fab-imc__carousel-track {
	display: flex;
	gap: var(--fab-imc-gap);
	transform: translate3d(0,0,0);
	transition: transform var(--fab-imc-carousel-transition) cubic-bezier(.22,.61,.36,1);
	will-change: transform;
}

.fab-imc--carousel .fab-imc__item {
	flex: 0 0 calc((100% - (var(--fab-imc-gap) * (var(--fab-imc-slides) - 1))) / var(--fab-imc-slides));
}

.fab-imc__arrow {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #171c31;
	box-shadow: 0 8px 24px rgba(8,12,28,.12);
	cursor: pointer;
}

.fab-imc__arrow--prev {
	left: 12px;
}

.fab-imc__arrow--next {
	right: 12px;
}

.fab-imc__dots {
	display: flex;
	justify-content: center;
	gap: 7px;
	margin-top: 20px;
}

.fab-imc__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #b7b7c2;
	cursor: pointer;
	transition: width 180ms ease, opacity 180ms ease;
	opacity: .65;
}

.fab-imc__dot.is-active {
	width: 24px;
	background: #5b3675;
	opacity: 1;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.fab-imc__lightbox[hidden] {
	display: none !important;
}

.fab-imc__lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(5,8,16,.88);
}

.fab-imc__lightbox-backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-out;
}

.fab-imc__lightbox-dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 96vw;
	max-height: 94vh;
}

.fab-imc__lightbox-image {
	display: block;
	max-width: 86vw;
	max-height: 82vh;
	width: auto;
	height: auto;
	object-fit: contain;
}

.fab-imc__lightbox-caption {
	max-width: 900px;
	margin-top: 14px;
	color: #fff;
	text-align: center;
}

.fab-imc__lightbox-close {
	position: absolute;
	top: -18px;
	right: -18px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #171c31;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 28px rgba(0,0,0,.22);
}

body.fab-imc-lightbox-open {
	overflow: hidden !important;
}

/* Elementor editor must remain stable. */
.elementor-editor-active .fab-imc__marquee-track,
body.elementor-editor-active .fab-imc__marquee-track {
	animation-play-state: paused !important;
}

/* Accessibility / performance */
@media (prefers-reduced-motion: reduce) {
	.fab-imc__marquee-track {
		animation: none !important;
		transform: none !important;
	}

	.fab-imc__carousel-track,
	.fab-imc__dot {
		transition: none !important;
	}
}

@media (max-width: 767px) {
	.fab-imc__arrow {
		width: 40px;
		height: 40px;
		margin-top: -20px;
	}

	.fab-imc__arrow--prev {
		left: 8px;
	}

	.fab-imc__arrow--next {
		right: 8px;
	}

	.fab-imc__lightbox {
		padding: 14px;
	}

	.fab-imc__lightbox-close {
		top: -12px;
		right: -8px;
	}
}
