/* Lightbox para imagens alignnone */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.image-lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.image-lightbox__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 2rem;
}

.image-lightbox__image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-lightbox__close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2;
    font-family: Arial, sans-serif;
}

.image-lightbox__close:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.image-lightbox__close:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Responsivo */
@media (max-width: 768px) {
    .image-lightbox__content {
        max-width: 95%;
        padding: 1rem;
    }

    .image-lightbox__image {
        max-height: 85vh;
    }

    .image-lightbox__close {
        top: -2rem;
        right: -0.5rem;
        font-size: 2.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Adiciona cursor pointer nas imagens alignnone */
img.alignnone {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

img.alignnone:hover {
    opacity: 0.9;
}

