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

.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	display: flex;
	justify-content: space-between;
	padding: 0 20px;
	box-sizing: border-box;
	z-index: 10;
	pointer-events: none;
}

.lightbox-container {
	position: relative;
	background: #fff;
	padding: 10px;
	border-radius: 4px;
	max-width: 90vw;
	max-height: 90vh;
	min-width: 320px;
	min-height: 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	transition: none;
	overflow: hidden;
}

.lightbox-image {
	max-width: 100%;
	max-height: calc(90vh - 140px);
	display: block;
	object-fit: contain;
	opacity: 0;
	transition: opacity 0.3s ease;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	transform: none;
}

.lightbox-image.active {
	opacity: 1;
	position: relative;
}

.lightbox-button {
	background: rgba(255, 255, 255, 0.8);
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: auto;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	z-index: 11;
	position: relative;
}

.lightbox-button:hover {
	background: rgba(255, 255, 255, 0.95);
}

.lightbox-close {
	margin-left: auto;
	background: #f5f5f5;
	border: 1px solid #ddd;
	padding: 6px 12px;
	color: #666;
	border-radius: 3px;
	cursor: pointer;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 5px;
	transition: all 0.2s ease;
	z-index: 15;
	position: relative;
}

.lightbox-close:hover {
	background: #eee;
	color: #000;
	border-color: #ccc;
}

.lightbox-close .close-icon {
	font-size: 16px;
	line-height: 1;
}

.lightbox-footer {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
	background: #fff;
	border-top: 1px solid #ddd;
	height: 40px;
	box-sizing: border-box;
	z-index: 5;
}

.lightbox-count {
	color: #666;
	font-size: 14px;
	padding-left: 5px;
	display: block;
	flex: 1;
}

.lightbox-image-container {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	max-height: calc(90vh - 120px);
	transition: none;
	overflow: visible;
	padding: 0;
	box-sizing: border-box;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes fadeOut {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

@keyframes slideInRight {
	from {
		transform: translateX(30px);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes slideInLeft {
	from {
		transform: translateX(-30px);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

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

	to {
		transform: translateX(30px);
		opacity: 0;
	}
}

@keyframes slideOutLeft {
	from {
		transform: translateX(0);
		opacity: 1;
	}

	to {
		transform: translateX(-30px);
		opacity: 0;
	}
}


@media (prefers-reduced-motion: reduce) {
	.lightbox-image {
		transition: opacity 0.1s ease;
		animation-duration: 0.1s !important;
	}
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}


.lightbox-loader {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 5;
}

.image-absolute {
	position: absolute;
	margin: auto;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.image-relative {
	position: relative;
	margin: auto;
	top: auto;
	left: auto;
	transform: none;
}

.animate-fade-in {
	animation: fadeIn var(--transition-duration, 300ms) ease forwards;
}

.animate-fade-out {
	animation: fadeOut var(--transition-duration, 300ms) ease forwards;
}

.animate-slide-in-right {
	animation: slideInRight var(--transition-duration, 300ms) ease forwards;
}

.animate-slide-in-left {
	animation: slideInLeft var(--transition-duration, 300ms) ease forwards;
}

.animate-slide-out-right {
	animation: slideOutRight var(--transition-duration, 300ms) ease forwards;
}

.animate-slide-out-left {
	animation: slideOutLeft var(--transition-duration, 300ms) ease forwards;
}

.hidden {
	display: none;
}

.visible {
	display: block;
}

.overflow-visible {
	overflow: visible;
}

.overflow-hidden {
	overflow: hidden;
}

body.lightbox-open {
	overflow: hidden;
}


.lightbox-container {
	transition: none;
}

.lightbox-image-container {
	transition: none;
}

.lightbox-container.lightbox-resize {
	transition: width 0.3s ease, height 0.3s ease;
}

.lightbox-image-container.lightbox-resize {
	transition: width 0.3s ease, height 0.3s ease;
}

.lightbox-resize {
	transition: width 0.3s ease, height 0.3s ease;
}

.lightbox-resize {
	transition: width 0.3s ease, height 0.3s ease;
}

.lightbox-image-container {
	position: relative;
	width: 100%;
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: none;
}

.lightbox-container {
	transition: none;
}

.sized-container {
	width: auto;
	height: auto;
}

.sized-image-container {
	width: auto;
	height: auto;
}