/**
 * Lightbox Styles
 *
 * @package Immobilier_Moillen
 */

.gallery-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.lightbox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.95);
	backdrop-filter: blur(10px);
}

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

.lightbox-content {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	animation: zoomIn 0.3s ease;
}

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

.lightbox-close,
.lightbox-prev,
.lightbox-next {
	position: absolute;
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--white);
	z-index: 10001;
	backdrop-filter: blur(10px);
}

.lightbox-close {
	transition: all 0.3s ease;
}

.lightbox-prev,
.lightbox-next {
	/* No transition/animation for prev and next buttons */
}

.lightbox-close:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.5);
	transform: scale(1.1);
}

.lightbox-prev:hover,
.lightbox-next:hover {
	/* Animation removed as requested */
}

.lightbox-close {
	top: 20px;
	right: 20px;
}

.lightbox-prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox-next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
	width: 24px;
	height: 24px;
}

.lightbox-counter {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.7);
	color: var(--white);
	padding: 10px 20px;
	border-radius: 20px;
	font-size: 0.95rem;
	font-weight: 600;
	backdrop-filter: blur(10px);
}

/* Responsive */
@media (max-width: 768px) {
	.lightbox-container {
		width: 95%;
		height: 95vh;
	}

	.lightbox-close,
	.lightbox-prev,
	.lightbox-next {
		width: 40px;
		height: 40px;
	}

	.lightbox-close {
		top: 10px;
		right: 10px;
	}

	.lightbox-prev {
		left: 10px;
	}

	.lightbox-next {
		right: 10px;
	}

	.lightbox-close svg,
	.lightbox-prev svg,
	.lightbox-next svg {
		width: 20px;
		height: 20px;
	}

	.lightbox-counter {
		bottom: 20px;
		font-size: 0.85rem;
		padding: 8px 16px;
	}
}

