/**
 * ARK Contests - Lightbox Styles
 *
 * @package Jemuzu\ArkContests
 */

/* Lightbox Overlay */
.ark-lightbox-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
}

.ark-lightbox-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Lightbox Content */
.ark-lightbox-content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ark-lightbox-image {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Lightbox Caption */
.ark-lightbox-caption {
	margin-top: 15px;
	color: #fff;
	font-size: 16px;
	text-align: center;
}

/* Lightbox Close Button */
.ark-lightbox-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 30px;
	cursor: pointer;
	padding: 5px 10px;
	line-height: 1;
	opacity: 0.8;
	transition: opacity 0.2s;
}

.ark-lightbox-close:hover {
	opacity: 1;
}

/* Navigation Arrows */
.ark-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #fff;
	font-size: 40px;
	cursor: pointer;
	padding: 20px 15px;
	line-height: 1;
	opacity: 0.7;
	transition: opacity 0.2s, background 0.2s;
}

.ark-lightbox-nav:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.2);
}

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

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

/* Counter */
.ark-lightbox-counter {
	position: absolute;
	bottom: -40px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
}

/* Loading State */
.ark-lightbox-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 100px;
	min-height: 100px;
}

.ark-lightbox-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ark-lightbox-spin 0.8s linear infinite;
}

@keyframes ark-lightbox-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Responsive */
@media screen and (max-width: 768px) {
	.ark-lightbox-nav {
		font-size: 30px;
		padding: 15px 10px;
	}

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

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

	.ark-lightbox-close {
		top: -35px;
		font-size: 24px;
	}
}
