#cil-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    cursor: zoom-out;
}

#cil-lightbox-overlay.is-visible {
    display: flex;
}

#cil-lightbox-overlay img {
    max-width: 96vw;
    max-height: 96vh;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.9);
}

#cil-lightbox-overlay,
#cil-lightbox-overlay img {
    transition: opacity 0.2s ease;
}

#cil-lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#cil-lightbox-overlay.is-visible + #cil-lightbox-close {
    display: flex;
}

#cil-lightbox-close:hover {
    background: var(--cil-icon-hover-color, #f9b81e);
}

a.cil-lightbox-link {
    position: relative;
    display: inline-block;
}

a.cil-lightbox-link::after {
    content: "\2922";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    font-size: 18px;
    line-height: 32px;
    text-align: center;
    pointer-events: none;
    opacity: 0.9;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

a.cil-lightbox-link:hover::after {
    background: var(--cil-icon-hover-color, #f9b81e);
    transform: scale(1.05);
    opacity: 1;
}

a.cil-lightbox-link img {
    cursor: zoom-in;
}