/* ===========================
   Grundlayout
   =========================== */

body {
    font-family: Arial, sans-serif;
    background: #111;
    color: #fff;
    text-align: center;
}

h1 {
    margin-top: 20px;
}

/* ===========================
   Galerie-Grid
   =========================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    padding: 20px;
}

/* ===========================
   Thumbnail-Container
   =========================== */

.thumb {
    position: relative;
    width: 100%;
    height: auto;
}

.thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* ===========================
   Bildnummer im Thumbnail
   =========================== */

.thumb-number {
    position: absolute;
    bottom: 5px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 3px;
    font-weight: bold;
}

/* ===========================
   Lightbox Overlay
   =========================== */

#lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 6px;
}

/* ===========================
   Lightbox Buttons
   =========================== */

.lightbox-btn {
    position: absolute;
    color: white;
    font-size: 50px;
    cursor: pointer;
    user-select: none;
    z-index: 10000;
}

/* Links/Rechts Pfeile */
#lightbox-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

#lightbox-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

/* Fullscreen Button */
#lightbox-fullscreen {
    top: 20px;
    right: 20px;
    font-size: 30px;
}

/* Slideshow Button */
#lightbox-slideshow {
    bottom: 20px;
    right: 20px;
    font-size: 30px;
}

/* ===========================
   Bildnummer in der Lightbox
   =========================== */

#lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 20px;
    font-weight: bold;
    z-index: 10000;
}
