@media (min-width: 800px) {
	main {
		margin: 0 auto;
		width: 100%;
		max-width: 1200px;
	}
}
#content {
	margin: 1em 0;
	padding: 0 10px;
}
@media (min-width: 500px) {
	#content {
		padding: 0 40px;
	}
}
main a {
	white-space: nowrap;
}



#imageBackupContainer img {
	width: 300px;
}
#imageContainer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1em 1em;
}
#imageContainer .column {
	flex: 1;
}
#imageContainer .image {
	position: relative;
	border-radius: 0.5em;
	overflow: hidden;
	cursor: pointer;
}
#imageContainer .image::before {
	content: "";
	z-index: 2;
	display: block;
	position: absolute;
	left: 50%;
	top: 50%;
	background-image: url("/bilder/icons/zoom.svg");
	background-size: contain;
	height: 30px;
	width: 30px;
	opacity: 0;
	transition: all 0.1s ease-in-out;
	transform: translate(-50%, -50%);
	filter: drop-shadow(0 0 6px #000a);
}
#imageContainer .image:hover::before {
	opacity: 1;
	height: 40px;
	width: 40px;
}
#imageContainer .image img {
	display: block;
	transition: all 0.1s ease-in-out;
	width: 100%;
}
#imageContainer .image:hover img {
	filter: contrast(0.4) brightness(1.4);
}




#zoomModal {
	z-index: 1000;
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	align-items: center;
	justify-content: center;
	touch-action: none;
}
#zoomModal.open {
	display: flex;
}
#zoomModal .background,
#zoomModal .button-container,
#zoomModal .content {
	transition: all 0.2s ease-in-out;
}
#zoomModal .background {
	z-index: 1;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: #000c;
	backdrop-filter: blur(5px);
}
#zoomModal.fade-out .background {
	background-color: #0000;
	backdrop-filter: none;
}
#zoomModal .button-container {
	z-index: 3;
	position: absolute;
	right: 14px;
	top: 20px;
}
#zoomModal.fade-out .button-container {
	top: -50px;
}
#zoomModal .button-container .button {
	display: inline-block;
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 4px;
	margin-right: 6px;
	cursor: pointer;
	filter: drop-shadow(0 0 2px #000d);
}
#zoomModal .button-container .button:hover {
	background-color: #0005;
	backdrop-filter: blur(5px);
	filter: none;
}
#zoomModal:not(.zoomed):not(.moved) .reset-button {
	display: none;
}
#zoomModal .reset-button svg {
	width: 80%;
	margin: 10%;
	fill: white;
}
#zoomModal .close-button::before,
#zoomModal .close-button::after {
	content: "";
	display: block;
	position: absolute;
	width: 80%;
	height: 3px;
	left: 10%;
	top: calc(50% - 1.5px);
	border-radius: 1.5px;
	transform-origin: 50% 50%;
	background-color: white;
}
#zoomModal .close-button::before {
	transform: rotate(45deg);
}
#zoomModal .close-button::after {
	transform: rotate(-45deg);
}
#zoomModal .content {
	z-index: 2;
	position: relative;
}
#zoomModal.fade-out .content {
	transform: scale(0.5);
	opacity: 0;
}
#zoomModal .content.loading::before {
	content: "";
	display: block;
	width: 2em;
	height: 2em;
	box-sizing: border-box;
	border: 2px solid transparent;
	border-top-color: white;
	border-radius: 50%;
	animation: rotate 1s infinite cubic-bezier(.65,.3,.36,.76);
}
#zoomModal .content img {
	display: block;
	position: relative;
	object-fit: contain;
	max-width: 80vw;
	max-height: 90vh;
}
#zoomModal .content .error-icon {
	color: white;
	text-align: center;
}
#zoomModal .content .error-icon svg {
	display: inline-block;
	width: 4em;
	height: 4em;
	fill: white;
}
#zoomModal .content.loading img,
#zoomModal .content.error img,
#zoomModal .content:not(.error) .error-icon {
	display: none;
}


@keyframes rotate {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(359deg);
	}
}
