/* ── Galerie Shortcode Styles ─────────────────────────────────────────────── */

.gallerie-wrap {
    font-family: Georgia, "Times New Roman", serif;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    color: #1a1a1a;
}

/* Übersicht */
.gallerie-titel {
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    color: #111;
}
.gallerie-untertitel {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 40px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.gallerie-liste {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.gallerie-liste li {
    border-top: 1px solid #e0e0e0;
}
.gallerie-liste li:last-child {
    border-bottom: 1px solid #e0e0e0;
}
.gallerie-liste a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 4px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    cursor: pointer;
}
.gallerie-liste a:hover {
    color: #8b6914;
    padding-left: 10px;
}
.gallerie-liste a .pfeil {
    font-size: 1.2rem;
    opacity: 0.3;
    transition: opacity 0.2s;
}
.gallerie-liste a:hover .pfeil {
    opacity: 1;
}
.gallerie-datum {
    font-size: 0.78rem;
    color: #aaa;
    font-family: monospace;
    margin-left: 12px;
}
.gallerie-ordner-name {
    flex: 1;
}

/* Bilder-Ansicht */
.gallerie-bilder-titel {
    font-size: 1.6rem;
    font-weight: normal;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}
.gallerie-bilder-info {
    font-size: 0.8rem;
    color: #aaa;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 36px;
}

/* Masonry */
.masonryholder {
    column-gap: 16px;
    max-width: 1600px;
    margin: 0 auto;
}
.masonryblocks {
    display: inline-block;
    margin: 0 0 16px;
    width: 100%;
    box-sizing: border-box;
    break-inside: avoid;
}
.masonryblocks img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    cursor: zoom-in;
    transition: opacity 0.2s;
}
.masonryblocks img:hover {
    opacity: 0.85;
}
@media screen and (max-width: 768px)  { .masonryholder { column-count: 1; } }
@media screen and (min-width: 769px)  { .masonryholder { column-count: 2; } }
@media screen and (min-width: 1080px) { .masonryholder { column-count: 3; } }
@media screen and (min-width: 1200px) { .masonryholder { column-count: 4; } }

/* Zurück-Button */
.gallerie-zurueck {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding: 12px 24px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #444;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.2s;
}
.gallerie-zurueck:hover {
    border-color: #8b6914;
    color: #8b6914;
    background: #faf8f3;
}

/* Zustände */
.gallerie-laden {
    padding: 40px 0;
    color: #aaa;
    font-style: italic;
}
.gallerie-leer {
    color: #aaa;
    font-style: italic;
    padding: 40px 0;
}

/* Animationen */
@keyframes gallFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.gallerie-fade {
    animation: gallFadeIn 0.3s ease;
}

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
#gal-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#gal-lightbox.aktiv {
    display: flex;
}
#gal-lightbox img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.6);
    animation: gallFadeIn 0.25s ease;
    border-radius: 2px;
}
#gal-lb-schliessen {
    position: fixed;
    top: 18px;
    right: 24px;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
    background: none;
    border: none;
    padding: 0;
    z-index: 100000;
}
#gal-lb-schliessen:hover {
    opacity: 1;
}
#gal-lb-prev,
#gal-lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    background: none;
    border: none;
    padding: 10px 18px;
    z-index: 100000;
    user-select: none;
}
#gal-lb-prev { left: 10px; }
#gal-lb-next { right: 10px; }
#gal-lb-prev:hover,
#gal-lb-next:hover {
    opacity: 1;
}
#gal-lb-zaehler {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-family: monospace;
    letter-spacing: 0.1em;
}
