/* Advanced Lightbox Styles - Images and Videos */
.image-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.image-lightbox.active {
	display: block;
	opacity: 1;
}

.lightbox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.95);
	cursor: pointer;
}

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

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

.lightbox-image {
	max-width: 90%;
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
	animation: none;
}

.lightbox-video,
.lightbox-iframe {
	max-width: 90vw;
	max-height: 90vh;
	width: 1280px;
	height: 720px;
	box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
	animation: none;
}

.lightbox-iframe {
	aspect-ratio: 16 / 9;
	border: none;
}

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

.lightbox-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 3rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.5rem 1rem;
	z-index: 10;
	transition: transform 0.2s ease;
}

.lightbox-close:hover {
	transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.5);
	border: none;
	color: #fff;
	font-size: 3rem;
	line-height: 1;
	cursor: pointer;
	z-index: 10;
	padding: 20px 15px;
	width: 60px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	opacity: 0.7;
}

.lightbox-prev:hover,
.lightbox-next:hover {
	opacity: 1;
	background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
	left: 1rem;
	border-radius: 0 4px 4px 0;
}

.lightbox-next {
	right: 1rem;
	border-radius: 4px 0 0 4px;
}

.lightbox-counter {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	background: rgba(0, 0, 0, 0.7);
	padding: 8px 16px;
	border-radius: 4px;
	font-size: 14px;
	z-index: 10;
}

@media (max-width: 768px) {
	.lightbox-content {
		padding: 1rem;
	}
	
	.lightbox-media {
		max-width: 95vw;
		max-height: 85vh;
	}
	
	.lightbox-image {
		max-width: 95%;
		max-height: 85vh;
	}
	
	.lightbox-video,
	.lightbox-iframe {
		max-width: 95vw;
		max-height: 85vh;
		width: 100%;
		height: auto;
	}
	
	.lightbox-close {
		font-size: 2rem;
		top: 0.5rem;
		right: 0.5rem;
	}
	
	.lightbox-prev,
	.lightbox-next {
		font-size: 2rem;
		width: 50px;
		height: 70px;
		padding: 15px 10px;
	}
	
	.lightbox-prev {
		left: 0.5rem;
	}
	
	.lightbox-next {
		right: 0.5rem;
	}
	
	.lightbox-counter {
		bottom: 1rem;
		font-size: 12px;
		padding: 6px 12px;
	}
}
