/* Gallery Viewer Overlay */
#gv-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: block; /* <-- Flex entfernt, Block gesetzt */
    z-index: 99999;
    overflow: hidden;
}

/* Bild im Overlay (zentriert) */
#gv-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    cursor: pointer;
    transition: transform 0.25s ease;
}

/* Steuerungsbuttons */
.gv-controls {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 100000;
}

.gv-controls button {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    padding: 12px 16px;
    font-size: 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gv-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Schließen Button */
#gv-close {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    padding: 8px 12px;
    font-size: 18px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 100000;
    transition: background 0.2s ease;
}

#gv-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Meta-Anzeige */
#gv-meta {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    opacity: 0.85;
    color: #fff;
    z-index: 100000;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .gv-controls button {
        padding: 10px 12px;
        font-size: 18px;
    }
    #gv-close {
        padding: 6px 10px;
        font-size: 16px;
    }
}
