/* Grid für Galerie */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.gallery img {
    width: 100%;
    height: 200px;              /* feste Höhe für alle Bilder */
    object-fit: cover;          /* schneidet das Bild zu, statt es zu verzerren */
    border-radius: 8px;         /* optional: abgerundete Ecken */
    box-shadow: 0 2px 8px rgba(0,0,0,0.2); /* optional: kleine Schatten */
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);     /* leichtes Zoom bei Hover */
}

/* Lightbox Overlay */
.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.lightbox span {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
}