/* LiteBox Frontend Styles */

.litebox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.litebox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.litebox-container {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.litebox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.litebox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    transition: opacity 0.3s ease;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.litebox-caption {
    color: #fff;
    text-align: center;
    padding: 15px 20px;
    font-size: 16px;
    max-width: 80vw;
    background: rgba(0, 0, 0, 0.5);
    margin-top: 10px;
    border-radius: 5px;
}

/* Close button - top right corner */
.litebox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
}

.litebox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Navigation buttons */
.litebox-prev,
.litebox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    opacity: 0.7;
}

.litebox-prev {
    left: 25px;
}

.litebox-next {
    right: 25px;
}

.litebox-prev:hover,
.litebox-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.litebox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: litebox-spin 1s linear infinite;
    display: none;
}

@keyframes litebox-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .litebox-prev,
    .litebox-next {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .litebox-prev {
        left: 15px;
    }
    
    .litebox-next {
        right: 15px;
    }
    
    .litebox-close {
        width: 45px;
        height: 45px;
        font-size: 24px;
        top: 15px;
        right: 15px;
    }
    
    .litebox-image {
        max-width: 95vw;
        max-height: 75vh;
    }
}

/* Image hover effect */
.litebox-enabled img {
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.litebox-enabled img:hover {
    opacity: 0.9;
}
