/* =============================================================
   Serayu Gallery — Frontend Slider CSS
   ============================================================= */

/* ---- Wrapper ---- */
.sg-slider-wrapper {
	position: relative;
	width: 100%;
	padding: 0 0 20px;
	box-sizing: border-box;
}

/* ---- Swiper container ---- */
.sg-swiper {
	overflow: hidden;
	border-radius: 4px;
}

/* ---- Slide ---- */
.sg-slide {
	height: auto;
}

.sg-slide a {
	text-decoration: none;
	display: block;
}

/* ---- Image Container ---- */
.sg-image-container {
	position: relative;
	width: 100%;
	overflow: hidden;
	display: block;
}

.sg-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sg-slide a:hover .sg-image {
	transform: scale(1.05);
}

/* ---- Overlay on hover ---- */
.sg-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 52, 96, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	border-radius: inherit;
}

.sg-slide a:hover .sg-overlay {
	opacity: 1;
}

.sg-zoom-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	background: rgba(255, 255, 255, 0.15);
	border: 2px solid rgba(255, 255, 255, 0.8);
	border-radius: 50%;
	color: #fff;
	transform: scale(0.8);
	transition: transform 0.3s ease;
	backdrop-filter: blur(4px);
}

.sg-slide a:hover .sg-zoom-icon {
	transform: scale(1);
}

.sg-zoom-icon svg {
	width: 22px;
	height: 22px;
}

/* ---- Caption ---- */
.sg-caption {
	padding: 10px 4px 4px;
	font-size: 13px;
	color: #555;
	line-height: 1.5;
	text-align: center;
}

/* ---- Navigation arrows ---- */
.sg-nav-button {
	position: absolute;
	top: 50%;
	transform: translateY(calc(-50% - 12px));
	z-index: 10;
	width: 44px;
	height: 44px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 50%;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #374151;
	transition: all 0.2s ease;
	padding: 0;
	outline: none;
}

.sg-nav-button:hover {
	background: #0f3460;
	border-color: #0f3460;
	color: #fff;
	box-shadow: 0 4px 16px rgba(15, 52, 96, 0.25);
}

.sg-button-prev {
	left: -22px;
}

.sg-button-next {
	right: -22px;
}

@media (max-width: 768px) {
	.sg-button-prev {
		left: 4px;
	}

	.sg-button-next {
		right: 4px;
	}

	.sg-nav-button {
		width: 36px;
		height: 36px;
		background: rgba(255, 255, 255, 0.9);
	}
}

/* Hide buttons when Swiper locks them */
.sg-nav-button.swiper-button-disabled {
	opacity: 0.35;
	pointer-events: none;
}

/* ---- Pagination ---- */
.sg-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 18px;
	position: static !important;
}

.sg-pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: #d1d5db;
	opacity: 1;
	border-radius: 50%;
	transition: all 0.25s ease;
}

.sg-pagination .swiper-pagination-bullet-active {
	background: #0f3460;
	width: 24px;
	border-radius: 4px;
}

/* ---- No items message ---- */
.sg-no-items {
	text-align: center;
	color: #9ca3af;
	padding: 40px;
	font-size: 14px;
	background: #f9fafb;
	border: 2px dashed #e5e7eb;
	border-radius: 8px;
}

/* ---- Coverflow effect adjustment ---- */
.sg-swiper.swiper-3d .sg-image-container {
	backface-visibility: hidden;
}

/* ---- GLightbox custom theme override ---- */
.glightbox-clean .gslide-description {
	background: rgba(15, 52, 96, 0.95);
}

.glightbox-clean .gdesc-inner .gslide-title {
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 0px;
}

.glightbox-clean .gdesc-inner .gslide-desc {
	color: rgba(255, 255, 255, 0.75);
	font-size: 13px;
}

.glightbox-clean .gnext,
.glightbox-clean .gprev {
	background-color: rgba(15, 52, 96, 0.75);
}

.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
	background-color: #0f3460;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
	.sg-caption {
		font-size: 12px;
	}
}