/* Gallery Lightbox */
.sunway-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.sunway-lightbox.is-open {
	display: flex;
	opacity: 1;
}

.sunway-lightbox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.92);
	cursor: pointer;
}

.sunway-lightbox-content {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 20px 80px;
}

.sunway-lightbox-image-wrap {
	position: relative;
	max-width: 90vw;
	max-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sunway-lightbox-image {
	max-width: 100%;
	max-height: 80vh;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	animation: lightboxZoomIn 0.3s ease;
}

@keyframes lightboxZoomIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* Navigation buttons */
.sunway-lightbox-close,
.sunway-lightbox-prev,
.sunway-lightbox-next {
	position: absolute;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	cursor: pointer;
	font-size: 32px;
	line-height: 1;
	padding: 0;
	color: #333;
	transition: all 0.2s ease;
	z-index: 10;
	border-radius: 4px;
}

.sunway-lightbox-close:hover,
.sunway-lightbox-prev:hover,
.sunway-lightbox-next:hover {
	background: #fff;
	transform: scale(1.1);
}

.sunway-lightbox-close:active,
.sunway-lightbox-prev:active,
.sunway-lightbox-next:active {
	transform: scale(0.95);
}

.sunway-lightbox-close {
	top: 20px;
	right: 20px;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
}

.sunway-lightbox-prev,
.sunway-lightbox-next {
	top: 50%;
	transform: translateY(-50%);
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	font-weight: 300;
}

.sunway-lightbox-prev {
	left: 20px;
}

.sunway-lightbox-next {
	right: 20px;
}

.sunway-lightbox-prev:hover,
.sunway-lightbox-next:hover {
	transform: translateY(-50%) scale(1.1);
}

/* Counter */
.sunway-lightbox-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(255, 255, 255, 0.9);
	color: #333;
	padding: 8px 20px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
	z-index: 10;
}

/* Mobile responsive */
@media (max-width: 768px) {
	.sunway-lightbox-content {
		padding: 50px 10px 60px;
	}

	.sunway-lightbox-image-wrap {
		max-width: 95vw;
		max-height: 70vh;
	}

	.sunway-lightbox-image {
		max-height: 70vh;
	}

	.sunway-lightbox-close {
		width: 40px;
		height: 40px;
		font-size: 28px;
		top: 10px;
		right: 10px;
	}

	.sunway-lightbox-prev,
	.sunway-lightbox-next {
		width: 44px;
		height: 44px;
		font-size: 36px;
	}

	.sunway-lightbox-prev {
		left: 10px;
	}

	.sunway-lightbox-next {
		right: 10px;
	}

	.sunway-lightbox-counter {
		bottom: 10px;
		font-size: 13px;
		padding: 6px 16px;
	}
}

/* Loading state */
.sunway-lightbox-image {
	background: #f0f0f0;
	min-width: 100px;
	min-height: 100px;
}

/* Accessibility */
.sunway-lightbox[aria-hidden="true"] {
	pointer-events: none;
}

.sunway-lightbox[aria-hidden="false"] {
	pointer-events: auto;
}
