/* Frontend Lightbox Styles */
.gdmi-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gdmi-lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.gdmi-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.gdmi-lightbox-overlay.active .gdmi-lightbox-content {
    transform: scale(1);
}

.gdmi-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 4px;
}

.gdmi-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 30px;
    height: 30px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    line-height: 30px;
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.gdmi-lightbox-close:hover {
    opacity: 1;
}

/* Loading spinner */
.gdmi-lightbox-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #fff;
    width: 40px;
    height: 40px;
    animation: gdmi-spin 1s linear infinite;
    position: absolute;
}

@keyframes gdmi-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}