/**
 * Estilos del visor Lightbox en pantalla completa para g2galeria
 */

.g2-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    user-select: none;
}

.g2-lightbox-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Barra superior */
.g2-lb-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    z-index: 10;
}

.g2-lb-counter {
    color: #a1a1aa;
    font-size: 13px;
    font-family: monospace;
    letter-spacing: 0.05em;
}

.g2-lb-close-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.g2-lb-close-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* Área central de imagen */
.g2-lb-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 70px;
    overflow: hidden;
}

@media (max-width: 640px) {
    .g2-lb-stage {
        padding: 0 16px;
    }
}

.g2-lb-img-wrap {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.g2-lb-image {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 1;
    transform: scale(1);
}

.g2-lb-image.is-animating {
    opacity: 0.3;
    transform: scale(0.97);
}

/* Botones de navegación */
.g2-lb-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.g2-lb-nav-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.g2-lb-prev {
    left: 18px;
}

.g2-lb-next {
    right: 18px;
}

@media (max-width: 640px) {
    .g2-lb-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
        background: rgba(0, 0, 0, 0.6);
    }
    .g2-lb-prev { left: 8px; }
    .g2-lb-next { right: 8px; }
}

/* Pie de información del lightbox */
.g2-lb-caption-wrap {
    padding: 16px 24px 20px;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 10;
}

.g2-lb-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.03em;
}

.g2-lb-caption {
    margin: 0;
    font-size: 13px;
    color: #d4d4d8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
