.ffs-slider-wrapper {
	position: relative;
	width: 100%;
	max-width: 100%;
}

.ffs-slider {
	position: relative;
	width: 100%;
	height: auto;
	min-height: 100px;
	overflow: hidden;
	touch-action: pan-y;
}

.ffs-track {
	display: flex;
	height: 100%;
	width: 100%;
	will-change: transform;
}

.ffs-slide {
	position: relative;
	flex: 0 0 100%;
	max-width: 100%;
	height: 100%;
	background-color: #000; /* letterbox color, overridden by Elementor color control */
	display: flex;
	align-items: center;
	justify-content: center;
}

.ffs-slide a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

/* The key fix: object-fit: contain shows the FULL image without cropping
   on any screen size, including mobile and tablet. */
.ffs-image {
	width: 100%;
	height: 100%;
	display: block;
}

.ffs-image.ffs-fit-contain {
	object-fit: contain;
	object-position: center;
}

.ffs-image.ffs-fit-cover {
	object-fit: cover;
	object-position: center;
}

.ffs-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 10px 16px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
	color: #fff;
	font-size: 14px;
	text-align: center;
}

/* Arrows */
.ffs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
}

.ffs-arrow:hover {
	background-color: rgba(0, 0, 0, 0.6);
}

.ffs-arrow-prev {
	left: 12px;
}

.ffs-arrow-next {
	right: 12px;
}

/* Dots */
.ffs-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

.ffs-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background-color: #ccc;
	border: none;
	padding: 0;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.ffs-dot-active {
	opacity: 1;
	transform: scale(1.2);
}

/* Tablet */
@media (max-width: 1024px) {
	.ffs-arrow {
		width: 34px;
		height: 34px;
		font-size: 14px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.ffs-arrow {
		width: 30px;
		height: 30px;
		font-size: 12px;
	}
	.ffs-caption {
		font-size: 12px;
		padding: 6px 10px;
	}
}
