/* Bildergalerie + Lightbox – urheberrechtsfreie Bilder mit Bildnachweis */
.gallery { margin: 2.5rem 0; }
.gallery__title { font-size: 1.4rem; margin: 0 0 1rem; }
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .9rem;
}
.gallery--small .gallery__grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
.gallery__item {
    margin: 0;
    background: var(--ts-surface);
    border: 1px solid var(--ts-line);
    border-radius: var(--ts-radius);
    overflow: hidden;
    box-shadow: var(--ts-shadow);
    display: flex;
    flex-direction: column;
}
.gallery__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: zoom-in;
    display: block;
    background: var(--ts-line);
    transition: transform .25s ease;
}
.gallery__item:hover .gallery__img { transform: scale(1.03); }
.gallery__cap {
    font-size: .68rem;
    line-height: 1.3;
    color: var(--ts-muted);
    padding: .4rem .55rem;
}
.gallery__cap a { color: var(--ts-muted); text-decoration: underline; }
.gallery__lic { opacity: .8; }

/* Lightbox */
.ts-lightbox {
    position: fixed; inset: 0; z-index: 1000;
    display: none;
    align-items: center; justify-content: center;
    background: rgba(20, 17, 13, .92);
    padding: 2rem;
}
.ts-lightbox.is-open { display: flex; }
.ts-lightbox__img {
    max-width: 92vw; max-height: 82vh;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,.5);
}
.ts-lightbox__cap {
    position: absolute; left: 0; right: 0; bottom: 1.1rem;
    text-align: center; color: #f3ede1; font-size: .82rem; padding: 0 1rem;
}
.ts-lightbox__cap a { color: #f3ede1; }
.ts-lightbox__close {
    position: absolute; top: 1rem; right: 1.3rem;
    background: none; border: none; color: #fff; font-size: 2.2rem;
    line-height: 1; cursor: pointer;
}
.ts-lightbox__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.12); border: none; color: #fff;
    font-size: 2rem; width: 3rem; height: 4rem; cursor: pointer;
    border-radius: 8px;
}
.ts-lightbox__nav--prev { left: 1rem; }
.ts-lightbox__nav--next { right: 1rem; }
