.hamaskil-carousel {
	position: relative;
	width: 100%;
}

.hamaskil-carousel__swiper {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.hamaskil-carousel .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

/* Continuous (marquee) mode — linear motion, no easing pause. */
.hamaskil-carousel--continuous .swiper-wrapper {
	transition-timing-function: linear !important;
}

.hamaskil-carousel__slide {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	height: auto;
	box-sizing: border-box;
}

.hamaskil-carousel--auto .swiper-slide,
.hamaskil-carousel--auto .hamaskil-carousel__slide {
	width: auto;
	flex: 0 0 auto;
}

.hamaskil-carousel__image {
	display: block;
	position: relative;
	overflow: hidden;
	line-height: 0;
}

.hamaskil-carousel__image img,
.hamaskil-carousel__img {
	display: block;
	max-width: 100%;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hamaskil-carousel--auto .hamaskil-carousel__image img,
.hamaskil-carousel--auto .hamaskil-carousel__img {
	width: auto;
	height: 100%;
	max-height: 100%;
}

.hamaskil-carousel__caption {
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}

.hamaskil-carousel__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: rgba(0,0,0,0.45);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.hamaskil-carousel__btn:hover {
	background-color: rgba(0,0,0,0.7);
}

.hamaskil-carousel__btn:disabled,
.hamaskil-carousel__btn.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

.hamaskil-carousel__btn svg {
	width: 28px;
	height: 28px;
	display: block;
}

.hamaskil-carousel__btn--prev { left: 10px; }
.hamaskil-carousel__btn--next { right: 10px; }

/* RTL: swap arrow positions visually so "prev" still leads the reading direction. */
.hamaskil-carousel[dir="rtl"] .hamaskil-carousel__btn--prev,
.hamaskil-carousel__swiper[dir="rtl"] .hamaskil-carousel__btn--prev { left: auto; right: 10px; }
.hamaskil-carousel[dir="rtl"] .hamaskil-carousel__btn--next,
.hamaskil-carousel__swiper[dir="rtl"] .hamaskil-carousel__btn--next { right: auto; left: 10px; }

/* Mirror the arrow glyph for RTL so the chevron points toward the visual "next" direction. */
.hamaskil-carousel[dir="rtl"] .hamaskil-carousel__btn svg,
.hamaskil-carousel__swiper[dir="rtl"] .hamaskil-carousel__btn svg { transform: scaleX(-1); }

/* Pagination — overlay mode (default): absolutely positioned over the slider's bottom edge. */
.hamaskil-carousel--dots-overlay .hamaskil-carousel__pagination {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	text-align: center;
	z-index: 9;
}

/* Pagination — below mode: sits underneath the slider as a normal block. */
.hamaskil-carousel--dots-below .hamaskil-carousel__pagination {
	position: static;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin-top: 12px;
}

.hamaskil-carousel .swiper-pagination-bullet {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin: 0 4px;
	opacity: 1;
	background-color: #cccccc;
	transition: width 0.25s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.hamaskil-carousel .swiper-pagination-bullet-active {
	opacity: 1;
	background-color: #000000;
}

.hamaskil-carousel__empty {
	padding: 24px;
	text-align: center;
	border: 1px dashed #c2c2c2;
	color: #6d6d6d;
	font-size: 14px;
	border-radius: 4px;
}
