/* Phase 6 — Filial-Galerie Render + Lightbox. Bewusst minimalistisch:
   keine Animations, kein Hover-Zoom, nur ein klares Grid + ein
   <dialog>-basierter Lightbox-Layer. */

.np-store-gallery {
    margin: 0 0 48px;
}

.np-store-gallery > h3 {
    font-family: var(--font-display, serif);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 380;
    margin: 0 0 16px;
}

.np-gallery-grid {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.np-gallery-grid li {
    margin: 0;
}

.np-gallery-grid figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.np-gallery-grid img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    border: 1.5px solid var(--np-line, #ddd);
    background: var(--np-paper, #f5f5f5);
    cursor: zoom-in;
}

.np-gallery-grid figcaption {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    color: var(--np-graphite, #666);
    line-height: 1.3;
    /* Truncate caption to keep tile heights uniform. */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.np-gallery-empty {
    padding: 24px;
    border: 1.5px dashed var(--np-line-soft, #ddd);
    text-align: center;
    font-family: var(--font-mono, monospace);
    font-size: 12px;
    color: var(--np-graphite, #666);
}

dialog.np-gallery-lightbox {
    border: 1.5px solid var(--np-line, #222);
    background: var(--np-paper, #fff);
    padding: 16px;
    max-width: 96vw;
    max-height: 96vh;
}

dialog.np-gallery-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.65);
}

.np-gallery-lightbox__img {
    display: block;
    max-width: 88vw;
    max-height: 80vh;
    margin: 0 auto;
}

.np-gallery-lightbox__caption {
    margin-top: 10px;
    font-family: var(--font-body, sans-serif);
    font-size: 13px;
    color: var(--np-graphite, #333);
    text-align: center;
}

.np-gallery-lightbox__close {
    float: right;
    background: transparent;
    border: 1px solid var(--np-line, #222);
    padding: 4px 10px;
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 4px;
}
