.wp-lightbox-overlay2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    opacity: 0;
}

.wp-lightbox-overlay2.active {
    opacity: 1;
}

.wp-lightbox-container2 {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wp-lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    color: white;
}

.wp-lightbox-counter {
    font-size: 14px;
    opacity: 0.8;
}

.wp-lightbox-controls {
    display: flex;
    gap: 10px;
}

.wp-lightbox-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.wp-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.wp-lightbox-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.wp-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

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

.wp-nav-prev {
    left: 20px;
}

.wp-nav-next {
    right: 20px;
}

.wp-lightbox-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: grab;
}

.wp-lightbox-image-container.dragging {
    cursor: grabbing;
}

.wp-lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}

.wp-lightbox-image.zoomed {
    cursor: zoom-out;
}

.wp-lightbox-image.draggable {
    cursor: grab;
}

.wp-lightbox-image.dragging {
    cursor: grabbing;
}

.wp-lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: white;
    z-index: 5;
}

.wp-lightbox-loading.active {
    display: flex;
}

.wp-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: wp-spin 1s linear infinite;
}

.wp-loading-text {
    font-size: 14px;
    opacity: 0.8;
}

@keyframes wp-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hide navigation when only one image */
.wp-lightbox-overlay2[data-single="true"] .wp-lightbox-nav {
    display: none;
}

/* Mobile styles */
@media (max-width: 768px) {
    .wp-lightbox-header {
        padding: 15px;
    }

    .wp-lightbox-btn {
        width: 35px;
        height: 35px;
    }

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

    .wp-nav-prev {
        left: 10px;
    }

    .wp-nav-next {
        right: 10px;
    }

    .wp-lightbox-image {
        max-width: 95%;
        max-height: 95%;
    }
}