/* Lightbox Modal */
.inzc-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.inzc-lightbox.active {
    display: block;
}

.inzc-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.2s ease;
}

.inzc-lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    /* Flex centering: use .inzc-flex-center utility in HTML */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--inzc-spacing-8);
    pointer-events: none;
}

.inzc-lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    pointer-events: auto;
}

/* Lightbox Controls */
.inzc-lightbox-close {
    position: absolute;
    top: var(--inzc-spacing-6);
    right: var(--inzc-spacing-6);
    width: 44px;
    height: 44px;
    border-radius: var(--inzc-radius-full);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    /* Flex centering: use .inzc-flex-center utility in HTML */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.inzc-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.inzc-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: var(--inzc-radius-full);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    /* Flex centering: use .inzc-flex-center utility in HTML */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.inzc-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.inzc-lightbox-prev {
    left: var(--inzc-spacing-6);
}

.inzc-lightbox-next {
    right: var(--inzc-spacing-6);
}

.inzc-lightbox-counter {
    position: absolute;
    bottom: var(--inzc-spacing-6);
    left: 50%;
    transform: translateX(-50%);
    padding: var(--inzc-spacing-2) var(--inzc-spacing-4);
    background: rgba(0, 0, 0, 0.6);
    border-radius: var(--inzc-radius-full);
    color: white;
    font-size: var(--inzc-font-size-sm);
}

/* Lightbox Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Lightbox Responsive */
@media (max-width: 768px) {
    .inzc-lightbox-content {
        padding: var(--inzc-spacing-4);
    }

    .inzc-lightbox-nav {
        width: 40px;
        height: 40px;
    }
}