/**
 * Lightbox Gallery Styles
 * Version: 1.0.0
 */

.lightbox-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-lg);
}

.lightbox-container {
	position: relative;
	max-width: 1200px;
	max-height: 90vh;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-image {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-2xl);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
	position: absolute;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	transition: all var(--transition-base);
	color: var(--color-text-primary);
	z-index: 10;
}

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

.lightbox-close {
	top: 0;
	right: 0;
	font-size: 2.5rem;
	font-weight: 300;
}

.lightbox-prev {
	left: var(--space-lg);
	top: 50%;
	transform: translateY(-50%);
}

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

.lightbox-next {
	right: var(--space-lg);
	top: 50%;
	transform: translateY(-50%);
}

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

.lightbox-counter {
	position: absolute;
	bottom: var(--space-lg);
	left: 50%;
	transform: translateX(-50%);
	background: rgba(255, 255, 255, 0.9);
	padding: var(--space-xs) var(--space-md);
	border-radius: var(--radius-full);
	font-size: var(--font-size-small);
	font-weight: var(--font-weight-semibold);
	color: var(--color-text-primary);
	z-index: 10;
}

/* Responsive */
@media (max-width: 768px) {
	.lightbox-overlay {
		padding: var(--space-md);
	}

	.lightbox-close,
	.lightbox-prev,
	.lightbox-next {
		width: 40px;
		height: 40px;
		font-size: 1.5rem;
	}

	.lightbox-prev {
		left: var(--space-sm);
	}

	.lightbox-next {
		right: var(--space-sm);
	}

	.lightbox-close {
		font-size: 2rem;
	}

	.lightbox-counter {
		bottom: var(--space-md);
		padding: var(--space-2xs) var(--space-sm);
		font-size: 0.75rem;
	}
}
