/* --- Galerie-Grid --- */
.galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
}

.galerie img,
.galerie video,
.galerie svg {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.galerie img:hover,
.galerie video:hover,
.galerie svg:hover {
    transform: scale(1.03);
}

/* --- Audio-Thumbnail Styling --- */
.audio-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
}

.audio-thumb svg {
    width: 100%;
    height: auto;
    fill: #4a4a4a;
}

/* --- Lightbox Grundstruktur --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 40px;
    z-index: 9999;
    text-align: center;
    color: #f4f4f4;
}

.lightbox:target {
    display: flex;
}

.lightbox img:hover,
.lightbox video:hover,
.lightbox svg:hover {
    transform: none;
}

/* --- Lightbox Inhalte --- */
.lightbox img,
.lightbox video,
.lightbox audio {
    max-height: 80vh;
    border-radius: 10px;
}

/* --- Close Button --- */
.lightbox .close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s ease;
}

.lightbox .close:hover {
    opacity: 0.6;
}

.lightbox .next,
.lightbox .prev  {
    font-size: 40px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s ease;
    margin-left: 1.2rem;
}

.lightbox .prev {
    margin-right: 1.2rem;
}

.lightbox .next:hover,
.lightbox .prev:hover {
    color: #edddd1;
}
