.amirence-scroller-wrap {
	width: 100%;
	position: relative;
}

.amirence-scroller-track {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	cursor: grab;
	user-select: none;
}

.amirence-scroller-track:active {
	cursor: grabbing;
}

.amirence-scroller-track.amirence-dragging {
	scroll-behavior: auto;
}

.amirence-slide {
	flex-shrink: 0;
	height: 100%;
	position: relative;
}

.amirence-slide-image {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
}

.amirence-slide-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
	-webkit-user-drag: none;
	border-radius: 20px;
	transition: transform 0.5s ease;
}

.amirence-slide-image:hover img {
	transform: scale(1.08);
}

.amirence-slide-text {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 14px;
	box-sizing: border-box;
	height: 100%;
}

.amirence-slide-text-inner {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 14px;
	box-sizing: border-box;
	overflow: hidden;
}

.amirence-slide-text h3 {
	margin: 0;
	font-weight: 700;
}

.amirence-slide-text p {
	margin: 0;
}

.amirence-slide-btn {
	display: block;
	width: 100%;
	text-align: center;
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.03em;
	white-space: nowrap;
	box-sizing: border-box;
	flex-shrink: 0;
	margin-top: auto;
	margin-bottom: 0;
	transition: background-color 0.25s ease, color 0.25s ease;
}

/* Scrollbar visibility toggle */
.amirence-hide-scrollbar .amirence-scroller-track {
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE/Edge */
}

.amirence-hide-scrollbar .amirence-scroller-track::-webkit-scrollbar {
	display: none;
}

.amirence-show-scrollbar .amirence-scroller-track {
	scrollbar-width: thin;
}

.amirence-show-scrollbar .amirence-scroller-track::-webkit-scrollbar {
	height: 6px;
}

.amirence-show-scrollbar .amirence-scroller-track::-webkit-scrollbar-thumb {
	background: #FFA600;
	border-radius: 10px;
}

@media (max-width: 767px) {
	.amirence-slide-text {
		align-items: flex-start;
	}
}

/* ===== Static (non-scrolling) mode ===== */
.amirence-scroll-off .amirence-scroller-track {
	overflow-x: hidden;
	overflow-y: hidden;
	cursor: default;
	scroll-snap-type: none;
}

.amirence-scroll-off.amirence-wrap-mobile .amirence-scroller-track {
	flex-wrap: nowrap;
}

@media (max-width: 767px) {
	.amirence-scroll-off.amirence-wrap-mobile .amirence-scroller-track {
		flex-wrap: wrap;
		height: auto;
	}

	.amirence-scroll-off.amirence-wrap-mobile .amirence-slide {
		flex: 1 1 100% !important;
		width: 100% !important;
		height: 260px;
	}

	.amirence-scroll-off.amirence-wrap-mobile .amirence-slide-text {
		height: auto;
	}

	/* Mobile order: all image slides first, Text-Box slide always last (below images) */
	.amirence-scroll-off.amirence-wrap-mobile .amirence-slide-image {
		order: 1;
	}

	.amirence-scroll-off.amirence-wrap-mobile .amirence-slide-text {
		order: 2;
	}
}
