/* Basis-Styles */
body {
    font-family: 'Poppins', Arial, sans-serif;
    background: #000;
    color: #fff;
    margin: 0;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    text-align: center;
    color: #ffeedd;
    text-shadow: 0 2px 8px #4831d4, 0 4px 16px #fff2;
    margin-bottom: 40px;
}

/* Galerie mit Farbverlauf und Padding */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    padding: 30px 20px;
    border-radius: 20px;
}

/* Figuren */
figure {
    background: #111;
    border-radius: 14px;
    padding: 12px;
    margin: 0;
    width: 220px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    text-align: center;
    transition: box-shadow 0.3s ease;
}

figure:hover {
    box-shadow: 0 6px 24px rgba(72, 49, 212, 0.8);
}

/* Bilder */
.meinBild {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #333;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

.meinBild:hover {
    transform: scale(1.08);
    box-shadow: 0 0 12px #fff, 0 8px 32px rgba(0,0,0,0.6);
}

/* Bildbeschriftung */
figcaption {
    font-size: 1em;
    color: #ffcf7a;
    margin-top: 10px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-img {
    max-width: 80vw;
    max-height: 70vh;
    border-radius: 15px;
    box-shadow: 0 0 40px #4831d4;
    user-select: none;
    pointer-events: none;
}

#lightbox-caption {
    color: #ffeedd;
    text-align: center;
    font-size: 1.3em;
    margin-top: 15px;
}

/* Close Button */
.close {
    color: #fff;
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3em;
    cursor: pointer;
    z-index: 1100;
    font-weight: bold;
    user-select: none;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ffcf7a;
}

/* Responsives Design */
@media (max-width: 600px) {
    .gallery {
        flex-direction: column;
        align-items: center;
        padding: 20px 10px;
    }
    figure {
        width: 96vw;
    }
}
