/* ========================================
 * Single Images Lightbox Styles
 * ======================================== */

.gnp-image-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: gnp-lightbox-fade-in 0.2s ease;
}

@keyframes gnp-lightbox-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.gnp-image-lightbox__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.95);
	cursor: pointer;
}

.gnp-image-lightbox__content {
	position: relative;
	z-index: 10;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	gap: 16px;
	pointer-events: auto;
}

.gnp-image-lightbox__image-container {
	position: relative;
	max-width: 80vw;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
}

.gnp-image-lightbox__image {
	max-width: 100%;
	max-height: 70vh;
	object-fit: contain;
	display: block;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	animation: gnp-lightbox-zoom-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes gnp-lightbox-zoom-in {
	from {
		transform: scale(0.95);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.gnp-image-lightbox__caption {
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	padding: 12px 16px;
	font-size: 0.95rem;
	line-height: 1.4;
	border-radius: 8px;
	text-align: center;
	max-width: 100%;
	word-wrap: break-word;
	animation: gnp-lightbox-slide-up 0.3s ease;
}

@keyframes gnp-lightbox-slide-up {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.gnp-image-lightbox__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	animation: gnp-lightbox-slide-up 0.3s ease 0.1s backwards;
}

.gnp-image-lightbox__counter {
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	min-width: 60px;
	text-align: center;
}

.gnp-image-lightbox__btn {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gnp-image-lightbox__btn:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.4);
	transform: scale(1.1);
}

.gnp-image-lightbox__btn:active {
	transform: scale(0.95);
}

.gnp-image-lightbox__close {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 11;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: gnp-lightbox-fade-in 0.2s ease;
}

.gnp-image-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.4);
	transform: scale(1.1);
}

.gnp-image-lightbox__close:active {
	transform: scale(0.95);
}

/* Mobile responsive */
@media (max-width: 768px) {
	.gnp-image-lightbox__content {
		max-width: 95vw;
		max-height: 95vh;
	}

	.gnp-image-lightbox__image-container {
		max-width: 90vw;
		max-height: 70vh;
	}

	.gnp-image-lightbox__controls {
		gap: 16px;
	}

	.gnp-image-lightbox__btn {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}

	.gnp-image-lightbox__close {
		top: 12px;
		right: 12px;
		width: 40px;
		height: 40px;
		font-size: 20px;
	}

	.gnp-image-lightbox__counter {
		font-size: 0.85rem;
	}
}
