/* MM Image Carousel for Elementor — v1.1.0 */

.mm-carousel {
	--mm-carousel-gap: 22px;
	position: relative;
	box-sizing: border-box;
}

.mm-carousel *,
.mm-carousel *::before,
.mm-carousel *::after {
	box-sizing: border-box;
}

.mm-carousel__viewport {
	overflow: hidden;
	width: 100%;
}

.mm-carousel__track {
	display: flex;
	align-items: center;
	gap: var(--mm-carousel-gap);
	will-change: transform;
	transform: translate3d(0, 0, 0);
	backface-visibility: hidden;
	touch-action: pan-y;
}

.mm-carousel--rtl .mm-carousel__track {
	flex-direction: row-reverse;
}

.mm-carousel__slide {
	flex: 0 0 auto;
	min-width: 0;
	user-select: none;
	-webkit-user-drag: none;
}

/* ---------------- Center Mode (peek) ---------------- */

.mm-carousel--center .mm-carousel__slide {
	transform: scale(.9);
	transform-origin: center center;
	transition: transform .4s ease, opacity .4s ease;
}

.mm-carousel--center .mm-carousel__slide.is-current {
	transform: scale(1) !important;
	opacity: 1 !important;
}

/* ---------------- Slide content ---------------- */

.mm-carousel__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.mm-carousel__figure {
	margin: 0;
	overflow: hidden;
	border-radius: 16px;
	line-height: 0;
	background: rgba(0, 0, 0, .03);
}

.mm-carousel__image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	transition: transform .45s ease;
	-webkit-user-drag: none;
}

.mm-carousel--stretch .mm-carousel__image {
	width: 100%;
}

.mm-carousel:not(.mm-carousel--stretch) .mm-carousel__image {
	width: auto;
	max-width: 100%;
	margin: 0 auto;
}

.mm-carousel__caption {
	margin-top: 12px;
	text-align: center;
	line-height: 1.5;
}

/* ---------------- Arrows ---------------- */

.mm-carousel__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #3f3a34;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
	transition: background-color .25s ease, color .25s ease, opacity .25s ease;
}

.mm-carousel__arrow--prev {
	left: -10px;
}

.mm-carousel__arrow--next {
	right: -10px;
}

.mm-carousel__arrow svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.mm-carousel__arrow.is-disabled {
	opacity: .35;
	pointer-events: none;
}

.mm-carousel__arrow[hidden] {
	display: none;
}

/* ---------------- Dots ----------------
   Жорсткий скид стилів кнопок від теми:
   деякі теми додають рамку, padding і фон усім <button>. */

.mm-carousel__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
	flex-wrap: wrap;
	line-height: 0;
}

.mm-carousel .mm-carousel__dots .mm-carousel__dot,
.mm-carousel .mm-carousel__dots .mm-carousel__dot:hover,
.mm-carousel .mm-carousel__dots .mm-carousel__dot:focus,
.mm-carousel .mm-carousel__dots .mm-carousel__dot:active {
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	display: block !important;
	width: 8px;
	height: 8px;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	outline: 0 !important;
	border-radius: 50% !important;
	background-color: #d9cfc2;
	background-image: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	font-size: 0 !important;
	line-height: 0 !important;
	letter-spacing: 0;
	cursor: pointer;
	flex: 0 0 auto;
	transition: background-color .3s ease, width .3s ease, transform .3s ease;
}

.mm-carousel .mm-carousel__dots .mm-carousel__dot.is-active {
	background-color: #f0a04b;
}

.mm-carousel .mm-carousel__dots .mm-carousel__dot:focus-visible {
	outline: 2px solid currentColor !important;
	outline-offset: 3px;
}

/* ---------------- Misc ---------------- */

.mm-carousel.is-grabbing {
	cursor: grabbing;
}

.mm-carousel.is-grabbing .mm-carousel__image {
	pointer-events: none;
}

.mm-carousel-empty {
	padding: 30px;
	text-align: center;
	border: 1px dashed #c5c5c5;
	border-radius: 8px;
	color: #7a7a7a;
	font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
	.mm-carousel__image,
	.mm-carousel--center .mm-carousel__slide {
		transition: none !important;
	}
}
