/**
 * Video Gallery Lightbox - Frontend Styles
 * Lightbox and overlay styling
 */

/* Lightbox overlay */
.vgl-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: vgl-fadeIn 0.3s ease-out;
}

.vgl-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
}

/* Lightbox container */
.vgl-lightbox-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    z-index: 1;
    animation: vgl-slideUp 0.3s ease-out;
}

/* Close button */
.vgl-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vgl-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    transform: scale(1.05);
}

/* Content wrapper */
.vgl-lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Video wrapper */
.vgl-lightbox-video-wrapper {
    flex: 1;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.vgl-lightbox-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Video title */
.vgl-lightbox-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: #e8e8e8;
    font-size: 16px;
    font-weight: 500;
    display: none;
}

/* Navigation buttons */
.vgl-lightbox-nav {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #d0d0d0;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.vgl-lightbox-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: scale(1.08);
}

.vgl-lightbox-nav:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: #666666;
}

.vgl-lightbox-nav svg {
    width: 24px;
    height: 24px;
}

/* Counter */
.vgl-lightbox-counter {
    text-align: center;
    margin-top: 15px;
    color: #b0b0b0;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.vgl-current {
    font-weight: 600;
    color: #ffffff;
}

/* Animations */
@keyframes vgl-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes vgl-slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .vgl-lightbox-container {
        width: 95%;
    }
    
    .vgl-lightbox-close {
        top: -45px;
        width: 35px;
        height: 35px;
        font-size: 35px;
    }
    
    .vgl-lightbox-content {
        gap: 10px;
    }
    
    .vgl-lightbox-nav {
        width: 40px;
        height: 40px;
    }
    
    .vgl-lightbox-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .vgl-lightbox-title {
        font-size: 14px;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .vgl-lightbox-container {
        width: 100%;
        padding: 0 10px;
    }
    
    .vgl-lightbox-close {
        top: -40px;
        right: 10px;
    }
    
    .vgl-lightbox-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .vgl-lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }
    
    .vgl-lightbox-prev {
        left: 10px;
    }
    
    .vgl-lightbox-next {
        right: 10px;
    }
    
    .vgl-lightbox-video-wrapper {
        width: 100%;
    }
}

/* Hidden gallery registration div */
.vgl-gallery {
    display: none !important;
}
