.mcs-wrap {
	position: relative;
	margin: 0 0 2em;
}

.mcs-viewport {
	overflow: hidden;
	width: 100%;
}

.mcs-track {
	display: flex;
	will-change: transform;
	transition: transform 0.45s ease;
}

.mcs-slide {
	flex-shrink: 0;
	padding: 0 10px;
	box-sizing: border-box;
}

/* CSS-only widths so the right number of slides shows even before JS runs
   (page-builder editors, AJAX-loaded content). JS keeps them in sync on resize. */
.mcs-wrap:not(.mcs-type-grid) .mcs-slide {
	width: calc(100% / var(--mcs-cols-desktop, 4));
}

@media (max-width: 1024px) {
	.mcs-wrap:not(.mcs-type-grid) .mcs-slide {
		width: calc(100% / var(--mcs-cols-tablet, 2));
	}
}

@media (max-width: 600px) {
	.mcs-wrap:not(.mcs-type-grid) .mcs-slide {
		width: calc(100% / var(--mcs-cols-mobile, 1));
	}
}

/* Card */
.mcs-slide-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.mcs-slide-img {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
	background-color: #e9e9e9;
}

/* Equal image heights (opt-in via the Image height setting) */
.mcs-img-4-3 .mcs-slide-img { aspect-ratio: 4 / 3; object-fit: cover; }
.mcs-img-3-2 .mcs-slide-img { aspect-ratio: 3 / 2; object-fit: cover; }
.mcs-img-16-9 .mcs-slide-img { aspect-ratio: 16 / 9; object-fit: cover; }
.mcs-img-1-1 .mcs-slide-img { aspect-ratio: 1 / 1; object-fit: cover; }
.mcs-img-natural .mcs-slide-img { aspect-ratio: auto; object-fit: initial; }

.mcs-slide-img-placeholder {
	width: 100%;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #ececec, #dcdcdc);
}

.mcs-slide-card.mcs-no-image .mcs-slide-body {
	min-height: 160px;
}

.mcs-slide-body {
	padding: 16px 18px 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.mcs-slide-title {
	font-size: 1.05rem;
	margin: 0 0 8px;
	line-height: 1.3;
}

.mcs-slide-duration {
	font-size: 0.82rem;
	color: #666;
	margin: 0 0 6px;
}

.mcs-slide-price {
	font-size: 1.15rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 10px;
}

.mcs-slide-meta {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: 0.82rem;
	color: #666;
}

.mcs-meta-label {
	color: #1a1a1a;
	font-weight: 600;
}

.mcs-slide-desc {
	font-size: 0.9rem;
	color: #555;
	margin: 0 0 14px;
	flex: 1;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mcs-slide-btn {
	display: inline-block;
	align-self: flex-start;
	padding: 8px 18px;
	border-radius: 4px;
	background: #1a1a1a;
	color: #fff;
	text-decoration: none;
	font-size: 0.85rem;
	margin-top: 4px;
}

.mcs-slide-btn:hover {
	background: #444;
	color: #fff;
}

/* Grid layout: static rows/columns, no sliding track */
.mcs-type-grid .mcs-viewport {
	overflow: visible;
}

.mcs-type-grid .mcs-track {
	display: grid;
	grid-template-columns: repeat(var(--mcs-cols-desktop, 4), 1fr);
	align-items: start;
	gap: 20px;
	transform: none !important;
	transition: none !important;
}

.mcs-type-grid .mcs-slide {
	padding: 0;
	width: auto !important;
}

@media (max-width: 1024px) {
	.mcs-type-grid .mcs-track {
		grid-template-columns: repeat(var(--mcs-cols-tablet, 2), 1fr);
	}
}

@media (max-width: 600px) {
	.mcs-type-grid .mcs-track {
		grid-template-columns: repeat(var(--mcs-cols-mobile, 1), 1fr);
	}
}

/* One Image Slider — overlay title/description/price/button on top of the image,
   positioned anywhere in the image via the "Overlay text position" setting. */
.mcs-type-single .mcs-slide-card {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
}

.mcs-type-single .mcs-slide-img {
	display: block;
}

.mcs-type-single .mcs-slide-body {
	position: absolute;
	max-width: 78%;
	display: flex;
	flex-direction: column;
	background: rgba(10, 10, 10, 0.6);
	border-radius: 8px;
	padding: 22px 26px;
	flex: none;
}

.mcs-type-single .mcs-slide-title {
	color: #fff;
	font-size: 1.4rem;
	margin: 0 0 10px;
}

.mcs-type-single .mcs-slide-duration,
.mcs-type-single .mcs-meta-label {
	color: rgba(255, 255, 255, 0.85);
}

.mcs-type-single .mcs-slide-desc {
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.95rem;
	margin: 0 0 8px;
}

.mcs-type-single .mcs-slide-price {
	color: #fff;
}

.mcs-type-single .mcs-slide-btn {
	background: #fff;
	color: #1a1a1a;
	margin-top: 10px;
}

.mcs-type-single .mcs-slide-btn:hover {
	background: #f0f0f0;
	color: #1a1a1a;
}

/* 9-position placement for the overlay box */
.mcs-pos-top-left .mcs-slide-body,
.mcs-pos-top-center .mcs-slide-body,
.mcs-pos-top-right .mcs-slide-body { top: 24px; }

.mcs-pos-bottom-left .mcs-slide-body,
.mcs-pos-bottom-center .mcs-slide-body,
.mcs-pos-bottom-right .mcs-slide-body { bottom: 24px; }

.mcs-pos-middle-left .mcs-slide-body,
.mcs-pos-middle-center .mcs-slide-body,
.mcs-pos-middle-right .mcs-slide-body { top: 50%; transform: translateY(-50%); }

.mcs-pos-top-left .mcs-slide-body,
.mcs-pos-middle-left .mcs-slide-body,
.mcs-pos-bottom-left .mcs-slide-body {
	left: 24px;
	align-items: flex-start;
	text-align: left;
}

.mcs-pos-top-right .mcs-slide-body,
.mcs-pos-middle-right .mcs-slide-body,
.mcs-pos-bottom-right .mcs-slide-body {
	right: 24px;
	align-items: flex-end;
	text-align: right;
}

.mcs-pos-top-center .mcs-slide-body,
.mcs-pos-middle-center .mcs-slide-body,
.mcs-pos-bottom-center .mcs-slide-body {
	left: 50%;
	align-items: center;
	text-align: center;
}

.mcs-pos-top-center .mcs-slide-body,
.mcs-pos-bottom-center .mcs-slide-body {
	transform: translateX(-50%);
}

.mcs-pos-middle-center .mcs-slide-body {
	transform: translate(-50%, -50%);
}

@media (max-width: 600px) {
	.mcs-type-single .mcs-slide-body {
		max-width: 88%;
		padding: 16px 18px;
	}
	.mcs-type-single .mcs-slide-title {
		font-size: 1.15rem;
	}
	.mcs-type-single .mcs-slide-desc {
		max-height: 70px !important;
		overflow-x: hidden;
		overflow-y: scroll;
		-webkit-line-clamp: unset;
		display: block;
	}
}

/* Arrows — reset hard so theme button styles can't stretch them into ovals */
.mcs-wrap .mcs-arrow {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	top: var(--mcs-arrow-top, 50%);
	transform: translateY(-50%);
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	max-width: 44px;
	max-height: 44px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	background-image: none;
	color: #1a1a1a;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	font-size: 0;
	line-height: 0;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.mcs-wrap .mcs-arrow svg {
	width: 20px;
	height: 20px;
	display: block;
	pointer-events: none;
}

.mcs-wrap .mcs-arrow:hover,
.mcs-wrap .mcs-arrow:focus,
.mcs-wrap .mcs-arrow:active {
	background: #1a1a1a;
	background-image: none;
	color: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	outline: none;
}

.mcs-wrap .mcs-arrow:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 2px;
}

.mcs-wrap .mcs-arrow:disabled {
	cursor: default;
}

.mcs-wrap .mcs-prev { left: 14px; }
.mcs-wrap .mcs-next { right: 14px; }

@media (max-width: 480px) {
	.mcs-wrap .mcs-arrow { width: 36px; height: 36px; min-width: 36px; min-height: 36px; max-width: 36px; max-height: 36px; }
	.mcs-wrap .mcs-arrow svg { width: 16px; height: 16px; }
	.mcs-wrap .mcs-prev { left: 8px; }
	.mcs-wrap .mcs-next { right: 8px; }
}

/* Dots */
.mcs-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.mcs-dots button {
	-webkit-appearance: none;
	appearance: none;
	min-width: 0;
	min-height: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 0;
	background: #cfcfcf;
	background-image: none;
	box-shadow: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
}

.mcs-dots button.is-active {
	background: #1a1a1a;
}
