
/* Galerie PRO – Albumansicht / Lightbox */
.gallery-pro-overlay{position:fixed;inset:0;z-index:120000;display:none;background:rgba(0,0,0,.96);color:#fff;overflow:auto;overscroll-behavior:contain}
.gallery-pro-overlay.show{display:block}
body.gallery-pro-open{overflow:hidden}
.gallery-pro-shell{min-height:100dvh;padding:18px 18px 30px}
.gallery-pro-top{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 4px 14px;background:linear-gradient(#050505 72%,transparent)}
.gallery-pro-meta{min-width:0}.gallery-pro-kicker{color:#d91515;font-size:9px;font-weight:900;letter-spacing:.9px;text-transform:uppercase}.gallery-pro-title{margin:3px 0 0;font-size:clamp(20px,3vw,30px);line-height:1.08}.gallery-pro-sub{margin-top:5px;color:#999;font-size:11px}
.gallery-pro-close{flex:0 0 auto;width:43px;height:43px;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:#161616;color:#fff;font-size:27px;cursor:pointer}
.gallery-pro-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;max-width:1200px;margin:4px auto 0}
.gallery-pro-thumb{position:relative;height:180px;padding:0;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:#0b0b0b;overflow:hidden;cursor:zoom-in}
.gallery-pro-thumb img{width:100%!important;height:100%!important;object-fit:contain!important;display:block!important;transition:.2s}
.gallery-pro-thumb:hover img{transform:scale(1.02)}
.gallery-pro-thumb span{position:absolute;right:7px;bottom:7px;padding:4px 7px;border-radius:999px;background:rgba(0,0,0,.72);font-size:9px;font-weight:900}
.gallery-pro-viewer{position:fixed;inset:0;z-index:120010;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.98)}
.gallery-pro-viewer.show{display:flex}.gallery-pro-viewer-img{display:block;max-width:94vw!important;max-height:88dvh!important;width:auto!important;height:auto!important;object-fit:contain!important}
.gallery-pro-prev,.gallery-pro-next{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:56px;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:rgba(15,15,15,.75);color:#fff;font-size:29px;cursor:pointer}.gallery-pro-prev{left:14px}.gallery-pro-next{right:14px}
.gallery-pro-viewer-close{position:absolute;top:14px;right:14px;width:44px;height:44px;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(15,15,15,.8);color:#fff;font-size:28px;cursor:pointer}
.gallery-pro-counter{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);padding:6px 10px;border-radius:999px;background:rgba(15,15,15,.78);font-size:10px;font-weight:900}
.gallery-pro-caption{position:absolute;bottom:52px;left:50%;transform:translateX(-50%);max-width:70vw;text-align:center;color:#ccc;font-size:11px}
@media(max-width:700px){.gallery-pro-shell{padding:10px 9px 22px}.gallery-pro-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.gallery-pro-thumb{height:145px;border-radius:9px}.gallery-pro-prev,.gallery-pro-next{width:38px;height:48px;background:rgba(15,15,15,.5)}.gallery-pro-prev{left:5px}.gallery-pro-next{right:5px}.gallery-pro-viewer-img{max-width:100vw!important;max-height:84dvh!important}.gallery-pro-caption{max-width:86vw}}

.gallery-pro-thumb-caption{
 position:absolute;left:0;right:0;bottom:0;padding:24px 9px 8px;
 background:linear-gradient(transparent,rgba(0,0,0,.88));
 color:#fff;font-size:10px;font-weight:700;line-height:1.25;
 text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.gallery-pro-thumb .gallery-pro-thumb-caption + span{bottom:auto}
.gallery-pro-caption:not(:empty){
 padding:8px 12px;border-radius:10px;background:rgba(10,10,10,.78);
 color:#fff;font-size:12px;line-height:1.35;
}

/* Bildtext nicht mehr über dem Foto */
.gallery-pro-thumb{
    height:auto!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
    background:#0b0b0b!important;
}
.gallery-pro-thumb img{
    width:100%!important;
    height:180px!important;
    object-fit:contain!important;
    flex:0 0 auto!important;
}
.gallery-pro-thumb-caption{
    position:static!important;
    left:auto!important;right:auto!important;bottom:auto!important;
    width:100%!important;
    box-sizing:border-box!important;
    padding:8px 10px 9px!important;
    background:#151515!important;
    color:#fff!important;
    font-size:10px!important;
    line-height:1.3!important;
    text-align:center!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
}
.gallery-pro-thumb > span{
    position:absolute!important;
    right:7px!important;
    bottom:auto!important;
    top:7px!important;
}
.gallery-pro-caption{
    bottom:48px!important;
}
@media(max-width:700px){
    .gallery-pro-thumb img{height:145px!important}
    .gallery-pro-thumb-caption{font-size:9px!important;padding:7px 7px 8px!important}
}

/* FINAL: Vollbild-Bildtext bekommt einen eigenen Bereich UNTER dem Bild */
.gallery-pro-viewer{
    flex-direction:column!important;
    padding:56px 60px 18px!important;
    box-sizing:border-box!important;
}
.gallery-pro-viewer-img{
    flex:1 1 auto!important;
    min-height:0!important;
    max-width:94vw!important;
    max-height:calc(100dvh - 145px)!important;
    width:auto!important;
    height:auto!important;
    object-fit:contain!important;
}
.gallery-pro-caption{
    position:static!important;
    left:auto!important;
    bottom:auto!important;
    transform:none!important;
    flex:0 0 auto!important;
    max-width:min(900px,90vw)!important;
    margin:10px auto 0!important;
    padding:8px 14px!important;
    box-sizing:border-box!important;
    text-align:center!important;
    background:#151515!important;
    border-radius:9px!important;
    color:#fff!important;
    font-size:12px!important;
    line-height:1.35!important;
}
.gallery-pro-caption:empty{display:none!important}
.gallery-pro-counter{
    position:static!important;
    left:auto!important;
    bottom:auto!important;
    transform:none!important;
    flex:0 0 auto!important;
    margin:7px auto 0!important;
}
@media(max-width:700px){
    .gallery-pro-viewer{padding:52px 42px 12px!important}
    .gallery-pro-viewer-img{
        max-width:100%!important;
        max-height:calc(100dvh - 135px)!important;
    }
    .gallery-pro-caption{
        max-width:94vw!important;
        margin-top:8px!important;
        font-size:11px!important;
        padding:7px 10px!important;
    }
}
