/* =============================================================
   LUMZENA – Vollbild-Lightbox und Diashow (Classic-Template)
   Alle Regeln sind auf #galleryLightbox begrenzt.
   ============================================================= */

#galleryLightbox.gallery-fullscreen-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    align-items: stretch;
    justify-items: stretch;
    gap: 0;
    padding: 0;
    background: rgba(4, 11, 17, 0.98);
    color: #f2f6f8;
    overflow: hidden;
}

#galleryLightbox.gallery-fullscreen-lightbox[hidden] {
    display: none;
}

#galleryLightbox .gallery-lightbox-topbar {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 62px;
    padding: 10px 18px;
    background: rgba(17, 28, 37, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

#galleryLightbox .gallery-lightbox-brand {
    color: #93b7c7;
    font-size: 12px;
    letter-spacing: 0.16em;
    font-weight: 800;
}

#galleryLightbox .gallery-lightbox-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

#galleryLightbox .gallery-lightbox-stage {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(48px, 7vw) minmax(0, 1fr) minmax(48px, 7vw);
    align-items: center;
}

#galleryLightbox .gallery-lightbox-image-wrap {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    touch-action: pan-y;
}

#galleryLightbox .gallery-lightbox-image-wrap.is-zoomed {
    cursor: grab;
    touch-action: none;
}

#galleryLightbox .gallery-lightbox-image-wrap.is-zoomed:active {
    cursor: grabbing;
}

#galleryLightbox .gallery-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    transition: transform 0.16s ease;
}

#galleryLightbox .gallery-lightbox-arrow {
    justify-self: center;
    width: 43px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(98, 132, 148, 0.22);
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
}

#galleryLightbox .gallery-lightbox-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    min-height: 60px;
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(17, 28, 37, 0.86);
}

#galleryLightbox .gallery-lightbox-control,
#galleryLightbox .gallery-lightbox-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: auto;
    min-width: 44px;
    min-height: 40px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9px;
    color: #f7fbff;
    background: rgba(98, 132, 148, 0.23);
    font-size: 15px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

#galleryLightbox .lightbox-close {
    position: static;
    right: auto;
    top: auto;
    font-size: 29px;
    line-height: 1;
}

#galleryLightbox .gallery-lightbox-control:hover,
#galleryLightbox .gallery-lightbox-icon:hover,
#galleryLightbox .gallery-lightbox-arrow:hover {
    background: #628494;
}

#galleryLightbox button:focus-visible,
#galleryLightbox a:focus-visible {
    outline: 3px solid #b8dfef;
    outline-offset: 3px;
}

#galleryLightbox button:disabled {
    cursor: default;
    opacity: 0.45;
}

#galleryLightbox .gallery-lightbox-help,
#galleryLightbox .gallery-lightbox-status {
    margin: 0;
    padding: 3px 10px 6px;
    text-align: center;
    font-size: 11px;
    color: #b5c6d0;
    background: rgba(17, 28, 37, 0.86);
}

#galleryLightbox .gallery-lightbox-status:empty {
    display: none;
}

@media (max-width: 600px) {
    #galleryLightbox .gallery-lightbox-topbar {
        gap: 8px;
        min-height: 52px;
        padding: 8px 10px;
    }

    #galleryLightbox .gallery-lightbox-brand {
        display: none;
    }

    #galleryLightbox .gallery-lightbox-stage {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
    }

    #galleryLightbox .gallery-lightbox-arrow {
        width: 36px;
        height: 49px;
        font-size: 21px;
    }

    #galleryLightbox .gallery-lightbox-toolbar {
        gap: 5px;
        padding: 8px;
    }

    #galleryLightbox .gallery-lightbox-control {
        padding: 8px;
    }

    #galleryLightbox .gallery-lightbox-control span,
    #galleryLightbox .gallery-lightbox-help {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #galleryLightbox .gallery-lightbox-image {
        transition: none;
    }
}
