/* ========================================
   Aparostudio Gallery Manager - Lightbox
   Version: 1.0.0
   ======================================== */

.ag-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ag-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    animation: agFadeIn 0.3s ease;
}

.ag-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    z-index: 1;
    animation: agZoomIn 0.3s ease;
}

.ag-lightbox-image-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ag-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.ag-lightbox-caption {
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.ag-lightbox-close,
.ag-lightbox-prev,
.ag-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.ag-lightbox-close:hover,
.ag-lightbox-prev:hover,
.ag-lightbox-next:hover {
    background: #fff;
    transform: scale(1.1);
}

.ag-lightbox-close {
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    font-weight: 300;
}

.ag-lightbox-prev,
.ag-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
    font-weight: 300;
}

.ag-lightbox-prev {
    left: 20px;
}

.ag-lightbox-next {
    right: 20px;
}

/* Animações */
@keyframes agFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes agZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .ag-lightbox-content {
        width: 95%;
    }
    
    .ag-lightbox-image {
        max-height: 70vh;
    }
    
    .ag-lightbox-close,
    .ag-lightbox-prev,
    .ag-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .ag-lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .ag-lightbox-prev {
        left: 10px;
    }
    
    .ag-lightbox-next {
        right: 10px;
    }
    
    .ag-lightbox-caption {
        font-size: 12px;
        padding: 8px 15px;
    }
}
