/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
    padding: 2rem 1rem 1rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s 0.2s;
}

.lightbox.active .lightbox-caption {
    transform: translateY(0);
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Setas de Navegação */
.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateY(0);
    /* translateY(-50%) seria o padrão, mas com o conteúdo centralizado pelo flex do pai, 
       podemos posicionar relativo ao container pai .lightbox */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(5px);
    z-index: 10002;
    opacity: 0.7;
}

.lightbox-btn:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 3rem;
    padding-right: 5px;
    /* Ajuste visual para icones centralizados */
}

.lightbox-next {
    right: 3rem;
    padding-left: 5px;
    /* Ajuste visual */
}

/* Responsividade Lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }

    .lightbox-caption {
        font-size: 1rem;
        padding: 1.5rem 0.5rem 0.5rem;
    }

    .lightbox-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        background: rgba(0, 0, 0, 0.5);
        /* Mais contraste no mobile */
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }
}