/**
 * Simple Slider Frontend Styles
 */

/* Slider Container */
.simple-slider {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	overflow: hidden;
	background-color: #000;
}

.simple-slider__track {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: stretch;
}

/* Slides */
.simple-slider__slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	z-index: 1;
	transition: opacity 0.5s ease-in-out;
}

.simple-slider__slide.active {
	opacity: 1;
	z-index: 10;
}

.simple-slider__slide.next-slide {
	animation: slideInRight 0.5s ease-in-out forwards;
	z-index: 9;
	transition: none;
}

.simple-slider__slide.prev-slide {
	animation: slideInLeft 0.5s ease-in-out forwards;
	z-index: 9;
	transition: none;
}

/* Slide animations */
@keyframes slideInRight {
	from {
		opacity: 1;
		transform: translateX(100%);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideInLeft {
	from {
		opacity: 1;
		transform: translateX(-100%);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Image */
.simple-slider__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Caption */
.simple-slider__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
	color: #fff;
	padding: 30px 20px 20px;
	font-size: 16px;
	line-height: 1.5;
	text-align: center;
	word-wrap: break-word;
}

/* Navigation Arrows */
.simple-slider__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(255, 255, 255, 0.7);
	color: #000;
	border: none;
	width: 45px;
	height: 45px;
	border-radius: 4px;
	font-size: 24px;
	cursor: pointer;
	z-index: 20;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.simple-slider__nav:hover {
	background-color: rgba(255, 255, 255, 0.95);
	transform: translateY(-50%) scale(1.1);
}

.simple-slider__nav:active {
	transform: translateY(-50%) scale(0.95);
}

.simple-slider__nav--prev {
	left: 15px;
}

.simple-slider__nav--next {
	right: 15px;
}

/* Pagination Dots */
.simple-slider__pagination {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 12px;
	z-index: 20;
	align-items: center;
	justify-content: center;
}

.simple-slider__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	border: 2px solid rgba(255, 255, 255, 0.7);
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.simple-slider__dot:hover {
	background-color: rgba(255, 255, 255, 0.75);
}

.simple-slider__dot--active {
	background-color: #fff;
	transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
	.simple-slider__nav {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}

	.simple-slider__nav--prev {
		left: 10px;
	}

	.simple-slider__nav--next {
		right: 10px;
	}

	.simple-slider__pagination {
		bottom: 15px;
		gap: 8px;
	}

	.simple-slider__dot {
		width: 10px;
		height: 10px;
	}

	.simple-slider__caption {
		padding: 20px 15px 15px;
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.simple-slider__nav {
		width: 35px;
		height: 35px;
		font-size: 18px;
		background-color: rgba(0, 0, 0, 0.6);
	}

	.simple-slider__nav:hover {
		background-color: rgba(0, 0, 0, 0.8);
	}

	.simple-slider__nav--prev {
		left: 8px;
	}

	.simple-slider__nav--next {
		right: 8px;
	}

	.simple-slider__pagination {
		bottom: 10px;
		gap: 6px;
	}

	.simple-slider__dot {
		width: 8px;
		height: 8px;
	}

	.simple-slider__caption {
		padding: 15px 10px 10px;
		font-size: 12px;
	}
}

/* Lightbox styles */
.simple-slider-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.85);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 20px;
	box-sizing: border-box;
}
.simple-slider-lightbox--open {
	display: flex;
}
.simple-slider-lightbox__inner {
	position: relative;
	max-width: 1200px;
	max-height: 100%;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.simple-slider-lightbox__content {
	flex: 1 1 auto;
	text-align: center;
	max-height: 100%;
	overflow: hidden;
	user-select: none;
}
.simple-slider-lightbox__image {
	max-width: 100%;
	max-height: calc(100vh - 160px);
	display: inline-block;
	object-fit: contain;
	transition: transform 0.1s ease-out;
}
.simple-slider-lightbox__caption {
	color: #fff;
	opacity: 0.95;
	margin-top: 0;
	padding: 0;
	box-sizing: border-box;
}
.simple-slider-lightbox__close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: transparent;
	color: #fff;
	border: none;
	font-size: 36px;
	cursor: pointer;
}
.simple-slider-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,0.08);
	color: #fff;
	border: none;
	width: 60px;
	height: 60px;
	border-radius: 6px;
	font-size: 28px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.simple-slider-lightbox__nav--prev { left: 12px; }
.simple-slider-lightbox__nav--next { right: 12px; }
.simple-slider-lightbox__toolbar {
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	align-items: center;
	background: rgba(0, 0, 0, 0.4);
	padding: 8px 12px;
	border-radius: 6px;
	z-index: 100;
}
.simple-slider-lightbox__zoom-btn {
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	padding: 6px 10px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.2s ease;
}
.simple-slider-lightbox__zoom-btn:hover {
	background: rgba(255, 255, 255, 0.3);
}
.simple-slider-lightbox__zoom-level {
	color: #fff;
	font-size: 13px;
	padding: 0 4px;
	min-width: 40px;
	text-align: center;
}
.simple-slider-lightbox__counter {
	position: absolute;
	bottom: 68px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	opacity: 0.9;
	font-size: 14px;
}

@media (max-width: 768px) {
	.simple-slider-lightbox__nav { width: 48px; height: 48px; font-size: 22px; }
	.simple-slider-lightbox__image { max-height: calc(100vh - 120px); }
	.simple-slider-lightbox__caption { font-size: 14px; }
	.simple-slider-lightbox__close { font-size: 28px; }
}
