.lightbox-img {
    cursor: zoom-in;
}

.lightbox_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 40px;
    box-sizing: border-box;
}

.lightbox_overlay.lightbox_otevreno {
    display: flex;
}

.lightbox_obsah {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox_obrazek {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    cursor: default;
    user-select: none;
}

.lightbox_pocitadlo {
    margin-top: 16px;
    color: #fff;
    font-size: 14px;
    font-family: Arial, sans-serif;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 14px;
    border-radius: 20px;
}

.lightbox_close,
.lightbox_sipka {
    position: absolute;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: Arial, sans-serif;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox_close:hover,
.lightbox_sipka:hover {
    background: rgba(76, 167, 221, 0.9);
}

.lightbox_close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
}

.lightbox_sipka {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 22px;
}

.lightbox_sipka:hover {
    transform: translateY(-50%) scale(1.05);
}

.lightbox_sipka_prev {
    left: 20px;
}

.lightbox_sipka_next {
    right: 20px;
}

@media (max-width: 640px) {
    .lightbox_overlay {
        padding: 16px;
    }
    .lightbox_close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 24px;
    }
    .lightbox_sipka {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    .lightbox_sipka_prev {
        left: 8px;
    }
    .lightbox_sipka_next {
        right: 8px;
    }
    .lightbox_obrazek {
        max-height: calc(100vh - 100px);
    }
}
