/* Galerie-Container */
.gallery-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0 0.75rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
}

.gallery-horizontal {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: max-content;
    min-width: 100%;
    align-items: center;
    padding: 6px 2px;
    box-sizing: border-box;
}

/* Bilder in der Galerie */
.gallery-horizontal img {
    height: 150px;
    width: auto;
    max-width: none;
    flex-shrink: 0;
    display: block;
    border-radius: 4px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.gallery-horizontal a {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.gallery-horizontal a:focus-visible img {
    outline: 2px solid #ff6600;
    outline-offset: 2px;
}

@media (min-width: 601px) {
    .gallery-horizontal img:hover {
        transform: translateY(-3px) scale(1.04);
        box-shadow: 0 10px 24px rgba(0,0,0,0.22);
    }
}

.gallery-scroll::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: #FF6600;
    border-radius: 4px;
}

.zoom-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0,0,0,0.82);
}

.zoom-overlay.is-open {
    display: flex;
}

.zoom-overlay-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(94vw, 1600px);
    width: auto;
    max-height: 100%;
}

.zoom-overlay-image {
    display: block;
    max-width: 100%;
    max-height: 92vh;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 20px 48px rgba(0,0,0,0.45);
    background: #fff;
}

.zoom-overlay-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    width: 100%;
    order: -1;
}

.zoom-overlay-copyright {
    margin-left: auto;
    color: #f2ede7;
    font-size: 0.9rem;
    opacity: 0.9;
    text-align: right;
}

.zoom-overlay-close {
    border: 1px solid rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.12);
    color: #fff;
    padding: 6px 10px;
    border-radius: 0;
    cursor: pointer;
}

.zoom-overlay-close:hover {
    background: rgba(255,255,255,0.2);
}

body.zoom-overlay-open {
    overflow: hidden;
}
