/* Vlastní lightbox (viz js/lightbox.js) – tmavý fullscreen overlay, fotka
   uprostřed, minimalistické ikonové tlačítko stáhnout a šipky mezi fotkami
   stejné galerie. z-index musí být nad hlavičkou webu (custom-menu.css,
   dnes 500), jinak menu "prosvítá" přes otevřený lightbox. */
.sw-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 18, 23, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease;
    padding: 32px;
}

.sw-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

body.sw-lightbox-open {
    overflow: hidden;
}

.sw-lightbox__figure {
    margin: 0;
    max-width: min(92vw, 1200px);
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.sw-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    border-radius: var(--r-s);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(.96);
    transition: opacity .25s ease, transform .25s ease;
}

.sw-lightbox__img.is-visible {
    opacity: 1;
    transform: scale(1);
}

.sw-lightbox__caption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    text-align: center;
}

.sw-lightbox__caption[hidden] {
    display: none;
}

/* Minimalistické ikonové nástroje v pravém horním rohu – stáhnout + zavřít. */
.sw-lightbox__toolbar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.sw-lightbox__icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color .15s ease;
}

.sw-lightbox__icon-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.sw-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease;
}

.sw-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.sw-lightbox__nav--prev { left: 24px; }
.sw-lightbox__nav--next { right: 24px; }

@media (max-width: 700px) {
    .sw-lightbox {
        padding: 16px;
    }
    .sw-lightbox__nav {
        width: 40px;
        height: 40px;
    }
    .sw-lightbox__nav--prev { left: 10px; }
    .sw-lightbox__nav--next { right: 10px; }
}
