.ais-slider {
    margin: 12px auto 20px;
}

.ais-slider .ais-main {
	margin-left: auto;
	margin-right: auto;
}

.ais-main {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #111;
	border-radius: 0px;
	overflow: hidden;
	touch-action: pan-y;
}

/* Auto-height mode: box reshapes and resizes to hug each image exactly (width + height,
   not just height), so there's no leftover strip on the sides and the arrows sit right
   on the image edges. JS sets explicit pixel width/height on this element. */
.ais-main.ais-auto-height {
	background: transparent;
	max-width: 100%;
}

.ais-main-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
	-webkit-user-drag: none;
	user-select: none;
	cursor: zoom-in;
}

.ais-main-img.active {
	opacity: 1;
	pointer-events: auto;
}

.ais-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;  
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ais-nav:hover {
	background: rgb(168 198 79);
}

.ais-prev {
	left: 12px;
}

.ais-next {
	right: 12px;
}

/* Dots / bullet indicators */
.ais-dots {
	position: absolute;
	bottom: 12px;
	left: 0;
	right: 0;
	z-index: 5;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.ais-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.ais-dot:hover {
	background: rgba(255, 255, 255, 0.8);
}

.ais-dot.active {
	background: #fff;
	transform: scale( 1.2 );
}

/* Thumbnails */
.ais-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	overflow-x: auto;
	padding-bottom: 4px;
	scroll-behavior: smooth;
}

.ais-thumb {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 0px;
	cursor: pointer;
	opacity: 0.6;
	border: 2px solid transparent;
	transition: opacity 0.2s ease, border-color 0.2s ease;
	flex-shrink: 0;
	-webkit-user-drag: none;
	user-select: none;
}

.ais-thumb:hover {
	opacity: 0.9;
}

.ais-thumb.active {
	opacity: 1;
	border-color: #333;
}

@media ( max-width: 480px ) {
	.ais-thumb {
		width: 52px;
		height: 52px;
	}
}

/* ---------------- Lightbox ---------------- */

.ais-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba( 0, 0, 0, 0.9 );
	display: none;
	align-items: center;
	justify-content: center;
}

.ais-lightbox.active {
	display: flex;
}

.ais-lightbox-stage {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	touch-action: none;
}

.ais-lightbox-img {
	max-width: 92vw;
	max-height: 88vh;
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
	transition: transform 0.15s ease;
	transform-origin: center center;
	will-change: transform;
}

.ais-lightbox-img.zoomable {
	cursor: zoom-in;
}

.ais-lightbox-img.zoomed {
	cursor: grab;
}

.ais-lightbox-img.zoomed.dragging {
	cursor: grabbing;
	transition: none;
}

.ais-lightbox-close,
.ais-lightbox-prev,
.ais-lightbox-next {
	position: absolute;
	z-index: 5;
	background: rgba( 255, 255, 255, 0.12 );
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.ais-lightbox-close:hover,
.ais-lightbox-prev:hover,
.ais-lightbox-next:hover {
	background: rgba( 255, 255, 255, 0.25 );
}

.ais-lightbox-close {
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
    padding:0;
   
}

.ais-lightbox-prev,
.ais-lightbox-next {
	top: 50%;
	transform: translateY( -50% );
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 18px;
    padding:0;
}

.ais-lightbox-prev {
	left: 16px;
}

.ais-lightbox-next {
	right: 16px;
}

.ais-lightbox-counter {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX( -50% );
	color: #fff;
	background: rgba( 255, 255, 255, 0.12 );
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 13px;
	z-index: 5;
}

.ais-lightbox-zoom-hint {
	position: absolute;
	bottom: 16px;
	right: 16px;
	color: rgba( 255, 255, 255, 0.7 );
	font-size: 12px;
	z-index: 5;
}

@media ( max-width: 600px ) {
	.ais-lightbox-prev,
	.ais-lightbox-next {
		width: 36px;
		height: 36px;
		font-size: 16px;
	}
	.ais-lightbox-zoom-hint {
		display: none;
	}
}
