/* SlickLightbox – Overlay für den Contao-Slickslider */

/* Bilder im Slider als klickbar kennzeichnen */
li[data-lb-src] { cursor: zoom-in; }

html.slb-noscroll,
html.slb-noscroll body { overflow: hidden; }

.slb-overlay {
    position: fixed;
    inset: 0;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 99999;
    display: none;
    background: rgba(0, 0, 0, .92);
    -webkit-tap-highlight-color: transparent;
    outline: none;
}
.slb-overlay.slb-open { display: block; }

.slb-stage {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 64px;
    box-sizing: border-box;
}

.slb-figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slb-img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 150px);
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: opacity .2s ease;
    -webkit-user-select: none;
    user-select: none;
}
.slb-loading .slb-img { opacity: 0; }

.slb-caption {
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
    padding: 12px 8px 0;
    max-width: 900px;
}

.slb-counter {
    position: absolute;
    top: 16px;
    left: 18px;
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.slb-btn {
    position: absolute;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-family: Arial, sans-serif;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.slb-btn:hover,
.slb-btn:focus-visible { background: rgba(255, 255, 255, .2); outline: none; }

.slb-close { top: 8px; right: 10px; font-size: 36px; }
.slb-prev,
.slb-next  { top: 50%; margin-top: -24px; font-size: 40px; padding-bottom: 4px; box-sizing: border-box; }
.slb-prev  { left: 10px; }
.slb-next  { right: 10px; }

.slb-spinner {
    display: none;
    position: absolute;
    top: 50%; left: 50%;
    width: 36px; height: 36px;
    margin: -18px 0 0 -18px;
    border: 3px solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: slb-spin .8s linear infinite;
}
.slb-loading .slb-spinner { display: block; }
@keyframes slb-spin { to { transform: rotate(360deg); } }

/* Handy: Bild nutzt fast die volle Breite, Pfeile unten am Rand */
@media (max-width: 767px) {
    .slb-stage { padding: 52px 0 76px; }
    .slb-img   { max-height: calc(100vh - 170px); }
    .slb-prev,
    .slb-next  { top: auto; bottom: 14px; margin-top: 0; }
    .slb-prev  { left: 20px; }
    .slb-next  { right: 20px; }
    .slb-caption { font-size: 14px; padding: 10px 14px 0; }
}

/* Lupe auch mobil zeigen – das Theme (mobfi.css) blendet a.lupe unter 768px aus.
   Höhere Spezifität als "a.lupe", damit das !important hier gewinnt. */
@media (max-width: 767px) {
    ul.slick-slider .slick-slide a.lupe {
        display: block !important;
        top: 8px;
        right: 8px;
        width: 34px;
        height: 34px;
        line-height: 34px;
        text-align: center;
        font-size: 16px;
        border-radius: 50%;
        background: rgba(0, 0, 0, .35);
        z-index: 2;
    }
}

/* Galerie: feste Theme-Höhe (.slickgal .slick-list { height: 415px/506px }) aufheben,
   damit der 4:3-Zuschnitt nicht unten abgeschnitten wird */
ul.slickgal .slick-list { height: auto; }
ul.slickgal .slick-slide img { width: 100%; height: auto; }
