.custom-font {
	font-family: 'Dancing Script';
}
.blur-image {
	filter: blur(1px);
}

.modal {
	display: none;
	position: fixed;
	z-index: 50;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: rgba(0, 0, 0, 0.8);
	justify-content: center;
	align-items: center;
}

.modal-content {
	max-width: 90%;
	max-height: 90%;
	margin: auto;
	display: block;
	filter: blur(9px);
	/* Initial unscharf */
	transition: filter 0.7s ease-in-out;
	/* Animation für Schärfen */
	display: none;
	/* Versteckt das Bild bis es vollständig geladen ist */
}

.modal-content.loaded {
	filter: blur(0);
	/* Schärft das Bild */
	display: block;
	/* Zeigt das Bild an, wenn es geladen ist */
}

.button-container {
	position: absolute;
	top: 20px;
	right: 35px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: 60;
}

.close,
.download {
	color: #fff;
	font-size: 40px;
	font-weight: bold;
	transition: 0.3s;
}

.close:hover,
.download:hover,
.close:focus,
.download:focus {
	color: #bbb;
	text-decoration: none;
	cursor: pointer;
}

.arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 40px;
	color: #fff;
	cursor: pointer;
	user-select: none;
	transition: 0.3s;
	z-index: 60;
	/* Über dem Bild anzeigen */
}

.arrow:hover {
	color: #bbb;
}

.arrow.left {
	left: 20px;
}

.arrow.right {
	right: 20px;
}

.loader {
	width: 48px;
	height: 48px;
	border: 5px solid #FFF;
	border-bottom-color: transparent;
	border-radius: 50%;
	display: inline-block;
	box-sizing: border-box;
	animation: rotation 1s linear infinite;
}

@keyframes rotation {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.grid .thumbnail {
    flex: 1 1 auto;
    height: 300px;
    cursor: pointer;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.grid .thumbnail img {
    object-fit: cover;
    height: 300px;
    width: 100%;
}
