
/* Gallery Thumbnails */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem auto;
}

.gallery img {
    height: 120px;        /* feste Höhe für alle Thumbnails */
    width: auto;          /* Breite passt sich proportional an */
    object-fit: contain;  /* Bild vollständig sichtbar */
    background: #333;     /* optional */
    cursor: pointer;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}







/****************************+
 Lightbox Styling
******************************* */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox.hidden {
    display: none;
}



/* Container für Bild + Buttons + Caption */
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Bild */
.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    display: block;
}

/* Caption */
#caption {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: black;
    background-color: rgba(255, 255, 255, 0.6); /* halbtransparenter weißer Hintergrund */
    padding: 0.4em 0.8em; /* etwas Innenabstand, damit der Text nicht am Rand klebt */
    border-radius: 6px; /* leicht abgerundete Ecken für eleganteren Look */
    font-size: 1.2rem;
    text-align: center;
    z-index: 2;
}






/* Buttons Basisstil */
.lightbox button {
    position: absolute;
    background-color: rgba(0,119,182,0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color 0.2s ease-in-out;
    z-index: 2;
}

.lightbox button:hover {
    background-color: rgba(0,119,182,1);
}

/* Button Positionen */
#closeBtn {
    top: 10px;
    right: 10px;
    font-size: 2rem;
}

#prevBtn {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

#nextBtn {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Mobile Anpassung */
@media (max-width: 600px) {
    .lightbox button {
        font-size: 1.2rem;
        padding: 8px 12px;
    }
    #caption {
        font-size: 1rem;
    }
}



