
.image-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.95);
	overflow: auto;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.image-modal.show {
	opacity: 1;
}

.image-modal-content {
	margin: auto;
	display: block;
	max-width: 90%;
	max-height: 90vh;
	position: relative;
	top: 50%;
	transform: translateY(-50%) scale(0.95);
	transition: transform 0.3s ease;
	background-color: rgba(0, 0, 0, 0.5);
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 0 30px rgba(0, 255, 0, 0.2);
	overflow: hidden;
}

.image-modal-content img {
	width: 100%;
	height: auto;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
	transform-origin: center center;
	cursor: grab;
	user-select: none;
	-webkit-user-drag: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.image-modal-content img:active {
	cursor: grabbing;
}

.image-modal-close {
	position: absolute;
	right: 20px;
	top: 20px;
	color: #0f0;
	font-size: 32px;
	font-weight: bold;
	cursor: pointer;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 50%;
	border: 2px solid #0f0;
	transition: all 0.3s ease;
	z-index: 1001;
}

.image-modal-close:hover {
	background-color: #0f0;
	color: #000;
	transform: rotate(90deg);
}

.image-modal-controls {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	background-color: rgba(0, 0, 0, 0.5);
	padding: 10px;
	border-radius: 20px;
	border: 1px solid #0f0;
}

.image-modal-controls button {
	background: none;
	border: none;
	color: #0f0;
	font-size: 20px;
	cursor: pointer;
	padding: 5px 10px;
	border-radius: 5px;
	transition: all 0.3s ease;
}

.image-modal-controls button:hover {
	background-color: #0f0;
	color: #000;
}

.image-modal-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #0f0;
	font-size: 24px;
	display: none;
}

.image-modal-loading.show {
	display: block;
}

.image-modal-loading::after {
	content: '';
	display: block;
	width: 40px;
	height: 40px;
	margin: 10px auto;
	border: 3px solid #0f0;
	border-radius: 50%;
	border-top-color: transparent;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.zoom-out, .zoom-reset, .zoom-in {
	background-color: #0f0;
	color: #000;
	border: none;
	padding: 5px 10px;
	font-family: 'Courier New', monospace;
	font-size: 1rem;
	border-radius: 3px;
	cursor: pointer;
	transition: all 0.3s;
}

.zoom-out:hover, .zoom-reset:hover, .zoom-in:hover {
	background-color: #00ff00;
	box-shadow: 0 0 10px #0f0;
}

.image-modal-trigger {
	cursor: zoom-in;
}
.modal-nav-button {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.7);
	color: #0f0;
	border: 2px solid #0f0;
	width: 50px;
	height: 50px;
	font-size: 24px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 1002;
}

.modal-nav-button:hover {
	background: #0f0;
	color: #000;
}

.modal-nav-prev {
	left: 20px;
}

.modal-nav-next {
	right: 20px;
}
