.lpo-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

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

.lpo-lightbox-container {
	position: relative;
	width: 90%;
	height: 90%;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

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

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

.lpo-lightbox-image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transform-origin: center center;
	transition: transform 0.2s ease-out;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-webkit-user-drag: none;
	-khtml-user-drag: none;
	-moz-user-drag: none;
	-o-user-drag: none;
	user-drag: none;
	pointer-events: auto;
}

.lpo-lightbox-image.slide-out-left {
	animation: slideOutLeft 0.3s ease-out forwards;
}

.lpo-lightbox-image.slide-out-right {
	animation: slideOutRight 0.3s ease-out forwards;
}

.lpo-lightbox-image.slide-in-left {
	animation: slideInLeft 0.3s ease-out forwards;
}

.lpo-lightbox-image.slide-in-right {
	animation: slideInRight 0.3s ease-out forwards;
}

@keyframes slideOutLeft {
	from {
		transform: translateX(0);
		opacity: 1;
	}
	to {
		transform: translateX(-100px);
		opacity: 0;
	}
}

@keyframes slideOutRight {
	from {
		transform: translateX(0);
		opacity: 1;
	}
	to {
		transform: translateX(100px);
		opacity: 0;
	}
}

@keyframes slideInLeft {
	from {
		transform: translateX(100px);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes slideInRight {
	from {
		transform: translateX(-100px);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.lpo-lightbox-close,
.lpo-lightbox-prev,
.lpo-lightbox-next {
	position: absolute;
	background-color: rgba(0, 0, 0, 0.7);
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 2rem;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.2s ease, transform 0.2s ease;
	z-index: 10;
	line-height: 1;
	padding: 0;
}

.lpo-lightbox-close:hover {
	background-color: rgba(0, 0, 0, 0.9);
	transform: scale(1.1);
}

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

.lpo-lightbox-prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 3rem;
}

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

.lpo-lightbox-next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 3rem;
}

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

.lpo-lightbox-controls {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}

.lpo-lightbox-zoom-in,
.lpo-lightbox-zoom-out,
.lpo-lightbox-reset {
	background-color: rgba(0, 0, 0, 0.7);
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 1.5rem;
	width: 45px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.2s ease, transform 0.2s ease;
	line-height: 1;
	padding: 0;
}

.lpo-lightbox-zoom-in:hover,
.lpo-lightbox-zoom-out:hover,
.lpo-lightbox-reset:hover {
	background-color: rgba(0, 0, 0, 0.9);
	transform: scale(1.1);
}

.media-container img {
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.media-container img:hover {
	opacity: 0.9;
}

@media (max-width: 768px) {
	.lpo-lightbox-container {
		width: 100%;
		height: 100%;
	}
	
	.lpo-lightbox-close,
	.lpo-lightbox-prev,
	.lpo-lightbox-next {
		width: 40px;
		height: 40px;
		font-size: 1.5rem;
	}
	
	.lpo-lightbox-close {
		top: 10px;
		right: 10px;
		font-size: 2rem;
	}
	
	.lpo-lightbox-prev {
		left: 10px;
	}
	
	.lpo-lightbox-next {
		right: 10px;
	}
	
	.lpo-lightbox-controls {
		bottom: 10px;
	}
	
	.lpo-lightbox-zoom-in,
	.lpo-lightbox-zoom-out,
	.lpo-lightbox-reset {
		width: 40px;
		height: 40px;
		font-size: 1.2rem;
	}
}

