.npa-gallery{--npa-watermark-inset:14px;--npa-gap:18px;--npa-thumb-width:260px;--npa-thumb-height:190px;--npa-fit:cover;--npa-cols-desktop:4;--npa-cols-tablet:3;--npa-cols-mobile:1;--npa-slider-width:520px;--npa-lightbox-width:94vw;--npa-lightbox-height:84vh;--npa-lightbox-fit:contain;margin:24px 0;position:relative}.npa-items{display:grid;gap:var(--npa-gap);align-items:start}.npa-layout-grid .npa-items{grid-template-columns:repeat(var(--npa-cols-desktop),minmax(0,1fr))}.npa-layout-masonry .npa-items{display:block;column-count:var(--npa-cols-desktop);column-gap:var(--npa-gap)}.npa-layout-masonry .npa-item{break-inside:avoid;margin:0 0 var(--npa-gap)}.npa-layout-slider{overflow:hidden}.npa-layout-slider .npa-items{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:12px}.npa-layout-slider .npa-item{min-width:min(82vw,var(--npa-slider-width));scroll-snap-align:start}.npa-layout-timeline .npa-items{display:block;border-left:3px solid #ddd;padding-left:22px}.npa-layout-timeline .npa-item{margin:0 0 28px;position:relative}.npa-layout-timeline .npa-item:before{content:"";position:absolute;left:-31px;top:18px;width:14px;height:14px;border-radius:50%;background:#777}.npa-item{background:#fff;border:1px solid rgba(0,0,0,.08);box-shadow:0 2px 12px rgba(0,0,0,.06);overflow:hidden;height:auto;align-self:start}.npa-media-wrap{--npa-image-left:0px;--npa-image-right:0px;--npa-image-top:0px;--npa-image-bottom:0px;position:relative;display:block;background-color:#f3f3f3;background-size:var(--npa-fit);background-position:center;background-repeat:no-repeat;cursor:zoom-in;height:var(--npa-thumb-height);overflow:hidden}.npa-size-auto .npa-media-wrap{height:auto}.npa-img{position:relative;z-index:1;width:100%;height:100%!important;object-fit:var(--npa-fit)!important;display:block!important;visibility:visible!important;opacity:1!important;user-select:none;-webkit-user-drag:none;background:transparent}.npa-size-auto .npa-img{height:auto;object-fit:initial}.npa-dummy-overlay{position:absolute!important;inset:0!important;z-index:3!important;width:100%!important;height:100%!important;display:block!important;object-fit:fill!important;background:transparent!important;background-color:transparent!important;opacity:1!important;filter:none!important;user-select:none;-webkit-user-drag:none}.npa-watermark{position:absolute;right:10px;bottom:10px;z-index:4;color:#fff;background:rgba(0,0,0,.42);padding:4px 8px;border-radius:4px;font-size:12px;pointer-events:none}.npa-video-badge{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:5;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:rgba(0,0,0,.55);color:#fff;font-size:26px;pointer-events:none}.npa-missing-image{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#777;background:#f3f3f3;font-size:13px}.npa-caption{padding:12px 14px}.npa-caption h3{margin:0 0 6px;font-size:18px}.npa-caption p{margin:0 0 8px}.npa-link{display:inline-block}.npa-load-more{display:block;margin:22px auto;padding:10px 18px;border:0;border-radius:4px;background:#222;color:#fff;cursor:pointer}.npa-load-more:disabled{opacity:.55;cursor:wait}.npa-lightbox{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.88);display:none;align-items:center;justify-content:center;padding:36px}.npa-lightbox.is-open{display:flex}.npa-lightbox-content{max-width:var(--npa-lightbox-width);max-height:var(--npa-lightbox-height);position:relative}.npa-lightbox-content img,.npa-lightbox-content video,.npa-lightbox-content iframe{width:auto;height:auto;max-width:var(--npa-lightbox-width);max-height:var(--npa-lightbox-height);object-fit:var(--npa-lightbox-fit);display:block}.npa-lightbox-content img.npa-lightbox-cover{width:var(--npa-lightbox-width);height:var(--npa-lightbox-height)}.npa-lightbox-close{position:fixed;right:20px;top:14px;background:transparent;border:0;color:#fff;font-size:42px;line-height:1;cursor:pointer}.npa-lightbox-prev,.npa-lightbox-next{position:fixed;top:50%;transform:translateY(-50%);z-index:100000;background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.35);color:#fff;width:54px;height:72px;font-size:46px;line-height:1;cursor:pointer;border-radius:6px}.npa-lightbox-prev{left:22px}.npa-lightbox-next{right:22px}.npa-lightbox-prev:hover,.npa-lightbox-next:hover{background:rgba(0,0,0,.65)}.npa-lightbox-title{position:fixed;left:0;right:0;bottom:18px;color:#fff;text-align:center}.npa-password-form{border:1px solid #ddd;padding:18px;max-width:420px}.npa-password-form input{padding:9px;width:100%;box-sizing:border-box;margin:8px 0}.npa-password-form button{padding:9px 14px}@media(max-width:900px){.npa-layout-grid .npa-items{grid-template-columns:repeat(var(--npa-cols-tablet),minmax(0,1fr))}.npa-layout-masonry .npa-items{column-count:var(--npa-cols-tablet)}}@media(max-width:560px){.npa-layout-grid .npa-items{grid-template-columns:repeat(var(--npa-cols-mobile),minmax(0,1fr))}.npa-layout-masonry .npa-items{column-count:var(--npa-cols-mobile)}.npa-lightbox{padding:18px}}
.npa-filters{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.npa-filters button{border:1px solid #ddd;background:#fff;padding:8px 12px;border-radius:3px;cursor:pointer}.npa-filters button.is-active{background:#222;color:#fff;border-color:#222}.npa-watermark-img{position:absolute;right:10px;bottom:10px;z-index:4;max-width:28%;max-height:22%;pointer-events:none;opacity:.78}.npa-lightbox-content .npa-watermark-img{position:absolute;right:18px;bottom:18px;max-width:24%;max-height:18%}

@media(max-width:560px){.npa-lightbox-prev,.npa-lightbox-next{width:42px;height:58px;font-size:34px}.npa-lightbox-prev{left:8px}.npa-lightbox-next{right:8px}}

/* v3.5: Wasserzeichenpositionen und Grid-Stretch-Fix */
.npa-wm-bottom-right .npa-watermark,.npa-wm-bottom-right .npa-watermark-img{right:calc(var(--npa-image-right,0px) + var(--npa-watermark-inset,14px));bottom:calc(var(--npa-image-bottom,0px) + var(--npa-watermark-inset,14px));left:auto;top:auto;transform:none}
.npa-wm-bottom-left .npa-watermark,.npa-wm-bottom-left .npa-watermark-img{left:calc(var(--npa-image-left,0px) + var(--npa-watermark-inset,14px));bottom:calc(var(--npa-image-bottom,0px) + var(--npa-watermark-inset,14px));right:auto;top:auto;transform:none}
.npa-wm-top-right .npa-watermark,.npa-wm-top-right .npa-watermark-img{right:calc(var(--npa-image-right,0px) + var(--npa-watermark-inset,14px));top:calc(var(--npa-image-top,0px) + var(--npa-watermark-inset,14px));left:auto;bottom:auto;transform:none}
.npa-wm-top-left .npa-watermark,.npa-wm-top-left .npa-watermark-img{left:calc(var(--npa-image-left,0px) + var(--npa-watermark-inset,14px));top:calc(var(--npa-image-top,0px) + var(--npa-watermark-inset,14px));right:auto;bottom:auto;transform:none}
.npa-wm-center .npa-watermark,.npa-wm-center .npa-watermark-img{left:50%;top:50%;right:auto;bottom:auto;transform:translate(-50%,-50%)}
.npa-lightbox.npa-wm-bottom-right .npa-watermark,.npa-lightbox.npa-wm-bottom-right .npa-watermark-img{right:18px;bottom:18px;left:auto;top:auto;transform:none}
.npa-lightbox.npa-wm-bottom-left .npa-watermark,.npa-lightbox.npa-wm-bottom-left .npa-watermark-img{left:18px;bottom:18px;right:auto;top:auto;transform:none}
.npa-lightbox.npa-wm-top-right .npa-watermark,.npa-lightbox.npa-wm-top-right .npa-watermark-img{right:18px;top:18px;left:auto;bottom:auto;transform:none}
.npa-lightbox.npa-wm-top-left .npa-watermark,.npa-lightbox.npa-wm-top-left .npa-watermark-img{left:18px;top:18px;right:auto;bottom:auto;transform:none}
.npa-lightbox.npa-wm-center .npa-watermark,.npa-lightbox.npa-wm-center .npa-watermark-img{left:50%;top:50%;right:auto;bottom:auto;transform:translate(-50%,-50%)}


/* v3.6: transparent overlay hotfix - real thumbnails remain visible under the dummy GIF */
.npa-media-wrap > .npa-img{position:absolute!important;inset:0!important;z-index:1!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:var(--npa-fit)!important;display:block!important;opacity:1!important;visibility:visible!important}
.npa-size-auto .npa-media-wrap > .npa-img{position:relative!important;height:auto!important;max-width:100%!important;object-fit:initial!important}
.npa-media-wrap > .npa-dummy-overlay{mix-blend-mode:normal!important}


/* v3.7: stabiles Grid/Cover-Thumbnail-Layout
   Ziel: keine weißen Restflächen, gleiche Kachelhöhen, Overlay bleibt über dem echten Bild. */
.npa-gallery.npa-layout-grid.npa-size-fixed .npa-items{
    align-items:start!important;
    grid-auto-rows:auto!important;
}
.npa-gallery.npa-size-fixed .npa-item{
    height:auto!important;
    min-height:0!important;
    background:transparent!important;
    overflow:hidden!important;
}
.npa-gallery.npa-size-fixed .npa-media-wrap{
    width:100%!important;
    height:var(--npa-thumb-height)!important;
    min-height:var(--npa-thumb-height)!important;
    max-height:var(--npa-thumb-height)!important;
    display:block!important;
    position:relative!important;
    overflow:hidden!important;
    background-color:transparent!important;
    background-size:var(--npa-fit)!important;
    background-position:center center!important;
    background-repeat:no-repeat!important;
}
.npa-gallery.npa-size-fixed .npa-media-wrap > img.npa-img{
    position:absolute!important;
    left:0!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    width:100%!important;
    height:100%!important;
    min-width:100%!important;
    min-height:100%!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:var(--npa-fit)!important;
    object-position:center center!important;
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
}
.npa-gallery.npa-size-fixed .npa-media-wrap > img.npa-dummy-overlay{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-width:100%!important;
    min-height:100%!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:fill!important;
    opacity:1!important;
    z-index:3!important;
    background:transparent!important;
}
.npa-gallery.npa-size-fixed .npa-caption{
    display:none!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    padding:0!important;
    margin:0!important;
    overflow:hidden!important;
}
.npa-gallery.npa-fit-cover,
.npa-gallery[style*="--npa-fit:cover"]{
    --npa-fit:cover;
}
.npa-gallery.npa-fit-cover .npa-media-wrap > img.npa-img,
.npa-gallery[style*="--npa-fit:cover"] .npa-media-wrap > img.npa-img{
    object-fit:cover!important;
}
.npa-gallery.npa-size-auto .npa-item{
    background:transparent!important;
}
.npa-gallery.npa-size-auto .npa-media-wrap{
    height:auto!important;
    min-height:0!important;
    background:transparent!important;
}
.npa-gallery.npa-size-auto .npa-media-wrap > img.npa-img{
    position:relative!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    object-fit:contain!important;
}

/* v5 Struktur-Edition: Themen-/Albumübersichten */
.npa-structure-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px;margin:24px 0;}
.npa-structure-card{display:block;position:relative;overflow:hidden;background:#111;color:#fff;text-decoration:none;min-height:180px;border:1px solid rgba(255,255,255,.16);box-shadow:0 4px 18px rgba(0,0,0,.25);}
.npa-structure-card:hover{transform:translateY(-1px);}
.npa-structure-image{display:block;height:190px;background:#222 center/cover no-repeat;filter:saturate(.95);}
.npa-structure-card:not(:has(.npa-structure-image[style])) .npa-structure-image{background:linear-gradient(135deg,#333,#111);}
.npa-structure-title{position:absolute;left:0;right:0;bottom:28px;padding:14px 16px;font-size:20px;font-weight:700;letter-spacing:.02em;background:linear-gradient(transparent,rgba(0,0,0,.82));}
.npa-structure-count{position:absolute;left:16px;bottom:10px;font-size:12px;opacity:.85;}
@media(max-width:680px){.npa-structure-grid{grid-template-columns:1fr 1fr;gap:12px}.npa-structure-image{height:150px}.npa-structure-title{font-size:16px}}
@media(max-width:430px){.npa-structure-grid{grid-template-columns:1fr}}

/* v7.0: Original-Seitenverhältnis sauber als reine Bildgalerie ausgeben.
   Keine Beitrags-/Theme-Inhalte unter den Bildern, Overlay bleibt aktiv. */
.npa-gallery.npa-size-auto .npa-items{
    align-items:start!important;
}
.npa-gallery.npa-size-auto .npa-item{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
    break-inside:avoid!important;
}
.npa-gallery.npa-size-auto .npa-media-wrap{
    display:block!important;
    position:relative!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    background:none!important;
    overflow:hidden!important;
}
.npa-gallery.npa-size-auto .npa-media-wrap > img.npa-img{
    display:block!important;
    position:relative!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    object-fit:contain!important;
    object-position:center center!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
}
.npa-gallery.npa-size-auto .npa-media-wrap > img.npa-dummy-overlay{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    z-index:3!important;
    object-fit:fill!important;
    background:transparent!important;
}
.npa-gallery.npa-size-auto .npa-caption{
    display:none!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    padding:0!important;
    margin:0!important;
    overflow:hidden!important;
}
.npa-gallery.npa-layout-masonry.npa-size-auto .npa-items{
    display:block!important;
    column-count:var(--npa-cols-desktop)!important;
    column-gap:var(--npa-gap)!important;
}
.npa-gallery.npa-layout-masonry.npa-size-auto .npa-item{
    margin:0 0 var(--npa-gap)!important;
}
@media(max-width:900px){.npa-gallery.npa-layout-masonry.npa-size-auto .npa-items{column-count:var(--npa-cols-tablet)!important}}
@media(max-width:560px){.npa-gallery.npa-layout-masonry.npa-size-auto .npa-items{column-count:var(--npa-cols-mobile)!important}}


/* v7.1 Layout Engine: moderne Darstellungsformen pro Album */
.npa-layout-creative .npa-items{display:grid;grid-template-columns:repeat(var(--npa-cols-desktop),minmax(0,1fr));grid-auto-flow:dense;gap:var(--npa-gap)}
.npa-layout-creative .npa-item:nth-child(6n+1){grid-column:span 2;grid-row:span 2}.npa-layout-creative .npa-item:nth-child(6n+1) .npa-media-wrap{height:calc(var(--npa-thumb-height)*2 + var(--npa-gap))!important}
.npa-layout-justified .npa-items{display:flex;flex-wrap:wrap;gap:var(--npa-gap)}.npa-layout-justified .npa-item{flex:1 1 260px}.npa-layout-justified .npa-media-wrap{height:220px!important}.npa-layout-justified .npa-img{object-fit:cover!important}
.npa-layout-carousel,.npa-layout-filmstrip{overflow:hidden}.npa-layout-carousel .npa-items,.npa-layout-filmstrip .npa-items{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:var(--npa-gap);padding-bottom:12px}.npa-layout-carousel .npa-item{min-width:min(72vw,360px);scroll-snap-align:start}.npa-layout-filmstrip .npa-item{min-width:min(88vw,680px);scroll-snap-align:start}.npa-layout-filmstrip .npa-media-wrap{height:360px!important}
.npa-layout-polaroid .npa-items{display:grid;grid-template-columns:repeat(var(--npa-cols-desktop),minmax(0,1fr));gap:calc(var(--npa-gap)*1.4)}.npa-layout-polaroid .npa-item{background:#fff;padding:10px 10px 34px;box-shadow:0 8px 24px rgba(0,0,0,.16);transform:rotate(-1deg)}.npa-layout-polaroid .npa-item:nth-child(even){transform:rotate(1.5deg)}.npa-layout-polaroid .npa-media-wrap{height:var(--npa-thumb-height)!important}
.npa-layout-metro .npa-items{display:grid;grid-template-columns:repeat(var(--npa-cols-desktop),minmax(0,1fr));grid-auto-flow:dense;gap:var(--npa-gap)}.npa-layout-metro .npa-item:nth-child(5n+1){grid-column:span 2}.npa-layout-metro .npa-item:nth-child(7n+3){grid-row:span 2}.npa-layout-metro .npa-item:nth-child(7n+3) .npa-media-wrap{height:calc(var(--npa-thumb-height)*2 + var(--npa-gap))!important}
.npa-layout-magazine .npa-items{display:grid;grid-template-columns:repeat(var(--npa-cols-desktop),minmax(0,1fr));gap:var(--npa-gap)}.npa-layout-magazine .npa-item:first-child{grid-column:span 2;grid-row:span 2}.npa-layout-magazine .npa-item:first-child .npa-media-wrap{height:calc(var(--npa-thumb-height)*2 + var(--npa-gap))!important}.npa-layout-magazine .npa-item:first-child .npa-caption{display:block!important;height:auto!important;padding:12px 14px!important;background:#fff}
.npa-layout-pinterest .npa-items{display:block;column-count:var(--npa-cols-desktop);column-gap:var(--npa-gap)}.npa-layout-pinterest .npa-item{break-inside:avoid;margin:0 0 var(--npa-gap)}.npa-layout-pinterest .npa-media-wrap{height:auto!important}.npa-layout-pinterest .npa-img{position:relative!important;height:auto!important;object-fit:contain!important}
.npa-layout-fullscreen .npa-items{display:grid;grid-template-columns:1fr;gap:var(--npa-gap)}.npa-layout-fullscreen .npa-media-wrap{height:min(76vh,760px)!important}.npa-layout-fullscreen .npa-img{object-fit:contain!important;background:#111}
@media(max-width:900px){.npa-layout-creative .npa-items,.npa-layout-polaroid .npa-items,.npa-layout-metro .npa-items,.npa-layout-magazine .npa-items{grid-template-columns:repeat(var(--npa-cols-tablet),minmax(0,1fr))}.npa-layout-pinterest .npa-items{column-count:var(--npa-cols-tablet)}}
@media(max-width:560px){.npa-layout-creative .npa-items,.npa-layout-polaroid .npa-items,.npa-layout-metro .npa-items,.npa-layout-magazine .npa-items{grid-template-columns:repeat(var(--npa-cols-mobile),minmax(0,1fr))}.npa-layout-creative .npa-item,.npa-layout-metro .npa-item,.npa-layout-magazine .npa-item:first-child{grid-column:auto!important;grid-row:auto!important}.npa-layout-pinterest .npa-items{column-count:var(--npa-cols-mobile)}}


/* v7.6: Layout-Engine-Hardfix Frontend
   Album-Layout hat Vorrang vor globalen Grid-/Thumbnail-Regeln. */
.npa-gallery.npa-layout-masonry .npa-items,
.npa-gallery.npa-layout-pinterest .npa-items{
    display:block!important;
    column-count:var(--npa-cols-desktop)!important;
    column-gap:var(--npa-gap)!important;
    grid-template-columns:none!important;
}
.npa-gallery.npa-layout-masonry .npa-item,
.npa-gallery.npa-layout-pinterest .npa-item{
    display:inline-block!important;
    width:100%!important;
    margin:0 0 var(--npa-gap)!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
    background:transparent!important;
    box-sizing:border-box!important;
}
.npa-gallery.npa-layout-masonry .npa-media-wrap,
.npa-gallery.npa-layout-pinterest .npa-media-wrap,
.npa-gallery.npa-layout-masonry.npa-size-fixed .npa-media-wrap,
.npa-gallery.npa-layout-pinterest.npa-size-fixed .npa-media-wrap{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    background:transparent!important;
    overflow:hidden!important;
}
.npa-gallery.npa-layout-masonry .npa-media-wrap > img.npa-img,
.npa-gallery.npa-layout-pinterest .npa-media-wrap > img.npa-img,
.npa-gallery.npa-layout-masonry.npa-size-fixed .npa-media-wrap > img.npa-img,
.npa-gallery.npa-layout-pinterest.npa-size-fixed .npa-media-wrap > img.npa-img{
    position:relative!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    object-fit:contain!important;
    display:block!important;
}
.npa-gallery.npa-layout-masonry .npa-caption,
.npa-gallery.npa-layout-pinterest .npa-caption{
    display:none!important;
}
@media(max-width:900px){.npa-gallery.npa-layout-masonry .npa-items,.npa-gallery.npa-layout-pinterest .npa-items{column-count:var(--npa-cols-tablet)!important}}
@media(max-width:560px){.npa-gallery.npa-layout-masonry .npa-items,.npa-gallery.npa-layout-pinterest .npa-items{column-count:var(--npa-cols-mobile)!important}}

.npa-gallery.npa-layout-slider .npa-items,.npa-gallery.npa-layout-carousel .npa-items,.npa-gallery.npa-layout-filmstrip .npa-items{display:flex!important;overflow-x:auto!important;gap:var(--npa-gap)!important;scroll-snap-type:x mandatory!important;grid-template-columns:none!important}.npa-gallery.npa-layout-slider .npa-item{flex:0 0 min(82vw,var(--npa-slider-width))!important;scroll-snap-align:start!important}.npa-gallery.npa-layout-carousel .npa-item{flex:0 0 260px!important;scroll-snap-align:start!important}.npa-gallery.npa-layout-filmstrip .npa-item{flex:0 0 180px!important;scroll-snap-align:start!important}.npa-gallery.npa-layout-creative .npa-items{display:grid!important;grid-template-columns:repeat(6,1fr)!important;gap:var(--npa-gap)!important}.npa-gallery.npa-layout-creative .npa-item{grid-column:span 2!important}.npa-gallery.npa-layout-creative .npa-item:nth-child(7n+1){grid-column:span 4!important;grid-row:span 2!important}.npa-gallery.npa-layout-justified .npa-items{display:flex!important;flex-wrap:wrap!important;gap:var(--npa-gap)!important}.npa-gallery.npa-layout-justified .npa-item{flex:1 1 260px!important}.npa-gallery.npa-layout-justified .npa-media-wrap{height:190px!important}.npa-gallery.npa-layout-metro .npa-items{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:var(--npa-gap)!important}.npa-gallery.npa-layout-metro .npa-item:nth-child(6n+1){grid-column:span 2!important;grid-row:span 2!important}.npa-gallery.npa-layout-magazine .npa-items{display:grid!important;grid-template-columns:2fr 1fr 1fr!important;gap:var(--npa-gap)!important}.npa-gallery.npa-layout-magazine .npa-item:first-child{grid-row:span 2!important}.npa-gallery.npa-layout-polaroid .npa-items{display:flex!important;flex-wrap:wrap!important;gap:calc(var(--npa-gap) + 6px)!important}.npa-gallery.npa-layout-polaroid .npa-item{width:210px!important;transform:rotate(-1.5deg)!important;background:#fff!important;padding:10px 10px 26px!important;box-shadow:0 6px 18px rgba(0,0,0,.25)!important}.npa-gallery.npa-layout-polaroid .npa-item:nth-child(even){transform:rotate(1.5deg)!important}.npa-gallery.npa-layout-fullscreen .npa-items{display:block!important}.npa-gallery.npa-layout-fullscreen .npa-item{display:none!important}.npa-gallery.npa-layout-fullscreen .npa-item:first-child{display:block!important;max-width:1100px!important}.npa-gallery.npa-layout-fullscreen .npa-media-wrap{height:auto!important}.npa-gallery.npa-layout-fullscreen .npa-img{position:relative!important;height:auto!important;object-fit:contain!important}


/* v7.8 Layout-Differenzierung: deutlich unterschiedliche Looks für Admin-Vorschau und Frontend */
.npa-gallery.npa-layout-masonry .npa-items{
  display:block!important;
  column-count:var(--npa-cols-desktop)!important;
  column-gap:var(--npa-gap)!important;
}
.npa-gallery.npa-layout-masonry .npa-item{
  break-inside:avoid!important;
  margin:0 0 var(--npa-gap)!important;
  display:inline-block!important;
  width:100%!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.npa-gallery.npa-layout-masonry .npa-media-wrap,
.npa-gallery.npa-layout-masonry .npa-img{height:auto!important;object-fit:contain!important;}
.npa-gallery.npa-layout-masonry .npa-caption{display:none!important;}

.npa-gallery.npa-layout-pinterest .npa-items{
  display:block!important;
  column-count:calc(var(--npa-cols-desktop) + 1)!important;
  column-gap:14px!important;
}
.npa-gallery.npa-layout-pinterest .npa-item{
  break-inside:avoid!important;
  display:inline-block!important;
  width:100%!important;
  margin:0 0 14px!important;
  background:#fff!important;
  border:1px solid rgba(0,0,0,.12)!important;
  border-radius:12px!important;
  box-shadow:0 3px 12px rgba(0,0,0,.10)!important;
  overflow:hidden!important;
}
.npa-gallery.npa-layout-pinterest .npa-media-wrap,
.npa-gallery.npa-layout-pinterest .npa-img{height:auto!important;object-fit:contain!important;}
.npa-gallery.npa-layout-pinterest .npa-caption{display:block!important;padding:8px 10px!important;font-size:12px!important;background:#fff!important;}
.npa-gallery.npa-layout-pinterest .npa-caption h3{font-size:13px!important;margin:0!important;}

.npa-gallery.npa-layout-creative .npa-items{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:calc(var(--npa-gap) * .85)!important;
  align-items:stretch!important;
}
.npa-gallery.npa-layout-creative .npa-item{grid-column:span 2!important;border:0!important;box-shadow:0 8px 24px rgba(0,0,0,.16)!important;}
.npa-gallery.npa-layout-creative .npa-item:nth-child(7n+1){grid-column:span 4!important;grid-row:span 2!important;}
.npa-gallery.npa-layout-creative .npa-item:nth-child(7n+4){grid-column:span 3!important;}
.npa-gallery.npa-layout-creative .npa-media-wrap{height:var(--npa-thumb-height)!important;}
.npa-gallery.npa-layout-creative .npa-item:nth-child(7n+1) .npa-media-wrap{height:calc(var(--npa-thumb-height) * 2 + var(--npa-gap))!important;}
.npa-gallery.npa-layout-creative .npa-caption{display:none!important;}

.npa-gallery.npa-layout-justified .npa-items{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:stretch!important;}
.npa-gallery.npa-layout-justified .npa-item{flex:1 1 260px!important;min-width:180px!important;border:0!important;box-shadow:none!important;background:transparent!important;}
.npa-gallery.npa-layout-justified .npa-media-wrap{height:210px!important;}
.npa-gallery.npa-layout-justified .npa-img{height:100%!important;object-fit:cover!important;}
.npa-gallery.npa-layout-justified .npa-caption{display:none!important;}

.npa-gallery.npa-layout-metro .npa-items{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-flow:dense!important;gap:10px!important;}
.npa-gallery.npa-layout-metro .npa-item{border:0!important;box-shadow:none!important;background:transparent!important;}
.npa-gallery.npa-layout-metro .npa-item:nth-child(6n+1){grid-column:span 2!important;grid-row:span 2!important;}
.npa-gallery.npa-layout-metro .npa-item:nth-child(8n+4){grid-column:span 2!important;}
.npa-gallery.npa-layout-metro .npa-media-wrap{height:180px!important;}
.npa-gallery.npa-layout-metro .npa-item:nth-child(6n+1) .npa-media-wrap{height:370px!important;}
.npa-gallery.npa-layout-metro .npa-img{object-fit:cover!important;}
.npa-gallery.npa-layout-metro .npa-caption{display:none!important;}

.npa-gallery.npa-layout-magazine .npa-items{display:grid!important;grid-template-columns:2fr 1fr 1fr!important;grid-auto-rows:auto!important;gap:16px!important;}
.npa-gallery.npa-layout-magazine .npa-item{border:0!important;background:rgba(255,255,255,.92)!important;box-shadow:0 4px 18px rgba(0,0,0,.12)!important;}
.npa-gallery.npa-layout-magazine .npa-item:first-child{grid-column:span 1!important;grid-row:span 2!important;}
.npa-gallery.npa-layout-magazine .npa-item:first-child .npa-media-wrap{height:430px!important;}
.npa-gallery.npa-layout-magazine .npa-media-wrap{height:200px!important;}
.npa-gallery.npa-layout-magazine .npa-caption{display:block!important;padding:10px 12px!important;}
.npa-gallery.npa-layout-magazine .npa-caption h3{font-size:17px!important;margin:0!important;}

.npa-gallery.npa-layout-slider .npa-items{display:flex!important;overflow-x:auto!important;scroll-snap-type:x mandatory!important;gap:18px!important;padding-bottom:16px!important;}
.npa-gallery.npa-layout-slider .npa-item{flex:0 0 min(88vw,720px)!important;scroll-snap-align:start!important;border:0!important;box-shadow:0 8px 28px rgba(0,0,0,.18)!important;}
.npa-gallery.npa-layout-slider .npa-media-wrap{height:420px!important;}
.npa-gallery.npa-layout-slider .npa-img{object-fit:contain!important;background:#111!important;}

.npa-gallery.npa-layout-carousel .npa-items{display:flex!important;overflow-x:auto!important;gap:14px!important;scroll-snap-type:x mandatory!important;padding-bottom:14px!important;}
.npa-gallery.npa-layout-carousel .npa-item{flex:0 0 280px!important;scroll-snap-align:start!important;border-radius:12px!important;box-shadow:0 5px 16px rgba(0,0,0,.14)!important;}
.npa-gallery.npa-layout-carousel .npa-media-wrap{height:210px!important;}
.npa-gallery.npa-layout-carousel .npa-caption{display:block!important;}

.npa-gallery.npa-layout-filmstrip .npa-items{display:flex!important;overflow-x:auto!important;gap:8px!important;background:#111!important;padding:14px!important;}
.npa-gallery.npa-layout-filmstrip .npa-item{flex:0 0 180px!important;background:#000!important;border:4px solid #222!important;box-shadow:none!important;}
.npa-gallery.npa-layout-filmstrip .npa-media-wrap{height:125px!important;background:#000!important;}
.npa-gallery.npa-layout-filmstrip .npa-img{object-fit:cover!important;}
.npa-gallery.npa-layout-filmstrip .npa-caption{display:none!important;}

.npa-gallery.npa-layout-polaroid .npa-items{display:flex!important;flex-wrap:wrap!important;gap:26px!important;align-items:flex-start!important;}
.npa-gallery.npa-layout-polaroid .npa-item{width:220px!important;background:#fff!important;padding:12px 12px 34px!important;box-shadow:0 10px 26px rgba(0,0,0,.22)!important;border:0!important;transform:rotate(-2deg)!important;}
.npa-gallery.npa-layout-polaroid .npa-item:nth-child(even){transform:rotate(2deg)!important;}
.npa-gallery.npa-layout-polaroid .npa-media-wrap{height:170px!important;}
.npa-gallery.npa-layout-polaroid .npa-caption{display:block!important;text-align:center!important;padding:8px 0 0!important;}

.npa-gallery.npa-layout-timeline .npa-items{display:block!important;border-left:3px solid #bbb!important;padding-left:28px!important;}
.npa-gallery.npa-layout-timeline .npa-item{position:relative!important;margin:0 0 28px!important;max-width:720px!important;box-shadow:0 5px 18px rgba(0,0,0,.14)!important;}
.npa-gallery.npa-layout-timeline .npa-item:before{content:""!important;position:absolute!important;left:-38px!important;top:28px!important;width:16px!important;height:16px!important;border-radius:50%!important;background:#777!important;}
.npa-gallery.npa-layout-timeline .npa-media-wrap{height:260px!important;}

.npa-gallery.npa-layout-fullscreen .npa-items{display:block!important;}
.npa-gallery.npa-layout-fullscreen .npa-item{display:none!important;border:0!important;background:transparent!important;box-shadow:none!important;}
.npa-gallery.npa-layout-fullscreen .npa-item:first-child{display:block!important;max-width:1180px!important;margin:auto!important;}
.npa-gallery.npa-layout-fullscreen .npa-media-wrap{height:min(78vh,780px)!important;background:#050505!important;}
.npa-gallery.npa-layout-fullscreen .npa-img{object-fit:contain!important;}
.npa-gallery.npa-layout-fullscreen .npa-caption{display:block!important;text-align:center!important;background:rgba(0,0,0,.6)!important;color:#fff!important;}

/* Admin-Vorschau etwas größer, damit die Unterschiede sichtbar werden */
#npa-admin-preview.npa-gallery{max-width:1000px!important;--npa-gap:14px!important;--npa-thumb-height:170px!important;--npa-cols-desktop:4!important;}
#npa-admin-preview.npa-layout-masonry .npa-items{column-count:4!important;}
#npa-admin-preview.npa-layout-pinterest .npa-items{column-count:5!important;}
#npa-admin-preview .npa-caption h3{font-size:12px!important;}

@media(max-width:900px){
 .npa-gallery.npa-layout-masonry .npa-items{column-count:var(--npa-cols-tablet)!important;}
 .npa-gallery.npa-layout-pinterest .npa-items{column-count:var(--npa-cols-tablet)!important;}
 .npa-gallery.npa-layout-creative .npa-items,.npa-gallery.npa-layout-metro .npa-items,.npa-gallery.npa-layout-magazine .npa-items{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 .npa-gallery.npa-layout-magazine .npa-item:first-child,.npa-gallery.npa-layout-creative .npa-item,.npa-gallery.npa-layout-metro .npa-item{grid-column:auto!important;grid-row:auto!important;}
}
@media(max-width:560px){
 .npa-gallery.npa-layout-masonry .npa-items,.npa-gallery.npa-layout-pinterest .npa-items{column-count:1!important;}
 .npa-gallery.npa-layout-creative .npa-items,.npa-gallery.npa-layout-metro .npa-items,.npa-gallery.npa-layout-magazine .npa-items{grid-template-columns:1fr!important;}
 .npa-gallery.npa-layout-slider .npa-media-wrap{height:320px!important;}
}


/* v8.1: Magazine + Original-Seitenverhältnis Auto-Flex-Fallback
   Wenn Magazine mit Originalformaten genutzt wird, dürfen keine festen Kachel-Höhen
   oder weißen Caption-Balken erzwungen werden. Die Galerie bleibt editorial, aber
   die Bildcontainer wachsen natürlich mit dem Bild. */
.npa-gallery.npa-layout-magazine.npa-size-auto .npa-items{
  display:grid!important;
  grid-template-columns:2fr 1fr 1fr!important;
  grid-auto-rows:auto!important;
  align-items:start!important;
  gap:16px!important;
}
.npa-gallery.npa-layout-magazine.npa-size-auto .npa-item{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
  align-self:start!important;
}
.npa-gallery.npa-layout-magazine.npa-size-auto .npa-item:first-child{
  grid-column:span 1!important;
  grid-row:auto!important;
}
.npa-gallery.npa-layout-magazine.npa-size-auto .npa-media-wrap,
.npa-gallery.npa-layout-magazine.npa-size-auto .npa-item:first-child .npa-media-wrap{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  background-color:transparent!important;
  overflow:hidden!important;
}
.npa-gallery.npa-layout-magazine.npa-size-auto .npa-img,
.npa-gallery.npa-layout-magazine.npa-size-auto .npa-media-wrap > img.npa-img{
  position:relative!important;
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  display:block!important;
}
.npa-gallery.npa-layout-magazine.npa-size-auto .npa-caption{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  display:block!important;
  padding:7px 10px!important;
  background:linear-gradient(to top,rgba(0,0,0,.58),rgba(0,0,0,.12),rgba(0,0,0,0))!important;
  color:#fff!important;
  min-height:0!important;
  pointer-events:none!important;
}
.npa-gallery.npa-layout-magazine.npa-size-auto .npa-caption h3,
.npa-gallery.npa-layout-magazine.npa-size-auto .npa-caption p{
  color:#fff!important;
  margin:0!important;
  text-shadow:0 1px 2px rgba(0,0,0,.65)!important;
}
@media(max-width:900px){
  .npa-gallery.npa-layout-magazine.npa-size-auto .npa-items{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:560px){
  .npa-gallery.npa-layout-magazine.npa-size-auto .npa-items{grid-template-columns:1fr!important;}
}

/* v8.1: gleicher Fallback für die Admin-/Medienmanager-Vorschau */
#npa-admin-preview.npa-layout-magazine.npa-size-auto .npa-items{
  display:grid!important;
  grid-template-columns:2fr 1fr 1fr!important;
  gap:14px!important;
  align-items:start!important;
}
#npa-admin-preview.npa-layout-magazine.npa-size-auto .npa-item,
#npa-admin-preview.npa-layout-magazine.npa-size-auto .npa-item:first-child{
  grid-row:auto!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
#npa-admin-preview.npa-layout-magazine.npa-size-auto .npa-media-wrap,
#npa-admin-preview.npa-layout-magazine.npa-size-auto .npa-item:first-child .npa-media-wrap{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
}
#npa-admin-preview.npa-layout-magazine.npa-size-auto .npa-img{height:auto!important;object-fit:contain!important;}

/* v8.4: Wasserzeichen-Padding wird per JS auf die sichtbare Bildflaeche berechnet, damit Querformat und Hochformat denselben Innenabstand haben. */
