.custom-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.custom-lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.custom-lightbox-wrapper {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.custom-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.custom-lightbox-overlay.active .custom-lightbox-img {
    transform: scale(1);
}

.custom-lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10000;
}

.custom-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

@media (max-width: 767.98px) {
    .custom-lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 2.5rem;
    }
}
