        /* =========================
           GALERIE
        ========================= */

        .gallery {
			margin-top: 10px;
            display: grid;
            gap: 10px;
        }


        .gallery-column {
            display: flex;
            flex-direction: column;
            gap: 10px;
            min-width: 0;
        }


        .gallery-item {
            position: relative;
            width: 100%;
            overflow: hidden;
            background: #ddd;
            cursor: pointer;
        }


        .gallery-item img {
            display: block;
            width: 100%;
            height: auto;

            opacity: 0;

            transition: opacity 0.25s ease;
        }


        .gallery-item img.loaded {
            opacity: 1;
        }


/* GRID GALERIE */

.gallery.grid{
    display:grid;
    gap:10px;
	    
}

.gallery.grid .gallery-item{
    aspect-ratio:4 / 3;
    
}

.gallery.grid .gallery-item img{
    width:100%;
    height:100%;
    object-fit:cover;
}



/* =========================
   JUSTIFIED GALERIE
========================= */

#gallery.justified {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.justified-row {
    display: flex;
    width: 100%;
    gap: 10px;
}

.justified-row .gallery-item {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.justified-row .gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}


        /* =========================
           LIGHTBOX
        ========================= */

        #lightbox {
            position: fixed;
            inset: 0;

            z-index: 9999;

            display: none;

            align-items: center;
            justify-content: center;

            padding: 40px;

            background: rgba(240, 240, 240, 0.90);
        }


        #lightbox.active {
            display: flex;
        }


#lightbox-stage {
    position: relative;

    width: 100vw;
    height: 100vh;

    overflow: hidden;
}


#lightbox-image,
#lightbox-image-next {
    position: absolute;

    top: 50%;
    left: 50%;

    max-width: 100vw;
    max-height: 100vh;

    width: auto;
    height: auto;

    object-fit: contain;

    user-select: none;
    -webkit-user-drag: none;

    transition: transform 0.5s ease;
}


/* =========================
   AKTUELLES BILD
========================= */

#lightbox-image {
    transform:
        translate(-50%, -50%)
        translateX(0);
}


/* =========================
   ZWEITES BILD
========================= */

#lightbox-image-next {
    visibility: hidden;

    transform:
        translate(-50%, -50%)
        translateX(100vw);
}

        /* =========================
           SCHLIESSEN
        ========================= */

        #lightbox-close {
			font-family:"fontello";
			
            position: absolute;

            top: 15px;
            right: 25px;

            z-index: 2;

            border: none;
            background: none;

            color: #e4e4e4;
			text-shadow:3px 3px 4px #222;

            font-size: 40px;
            line-height: 1;

            cursor: pointer;
        }


        /* =========================
           NAVIGATION
        ========================= */



        .lightbox-button {
			font-family:"fontello";
			
            position: absolute;

            top: 50%;

            transform: translateY(-50%);

            z-index: 2;

            border: none;
            background: none;

            color: #e4e4e4;
			text-shadow:3px 3px 4px #222;
			
            font-size: 50px;
            line-height: 1;

            cursor: pointer;

            padding: 20px;
			
        }


        #lightbox-prev {
            left: 10px;
        }


        #lightbox-next {
            right: 10px;
        }

	
        /* =========================
           RESPONSIVE
        ========================= */


		@media(max-width:600px){


			.gallery.grid{
				gap:10px;
					
			}

			.gallery-column{
				gap:10px;
			}

			#lightbox{
				padding:0;
			}

			.lightbox-button{
				font-size:30px;
			}
			
			#lightbox-prev { left: 0; }
			#lightbox-next { right: 0; }
			

			#gallery.justified{
				gap:10px;
			}

			.justified-row{
				gap:10px;
			}

		}