.loading {
}

.loading::before{
	content: "";
	pointer-events: none;
	background: rgba(21, 170, 1, 0.253) !important;
	position: fixed;
	height: calc(100% - 4px);
	width: calc(100% - 2px);
	transform: scale(0, 1);
	animation: spin_fill 0.5s linear forwards;
	border-radius: 4px;
	
}

@keyframes spin_fill {
	to {
		transform: scale(1, 1);
	}
}

#image_preview {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease, visibility 0.15s ease;
}

#image_preview.visible {
	opacity: 1;
	visibility: visible;
}

#image_preview img,
#image_preview embed {
	
	pointer-events: none;
	display: none;
	max-width: 95vw;
	max-height: 95vh;
	width: 95vw;
	height: 95vh;
	object-fit: contain;
	border: none;
	border-radius: 8px;
	background: rgba(207, 207, 207, 0.25);
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

#image_preview img.active {
	display: block;
	width: auto;
	height: auto;
}

#image_preview embed.active {
	display: block;
}