/* Wymuś modal na najwyższym poziomie */
.lumen-gltf-modal {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    z-index: 99999 !important;
    background: rgba(0,0,0,0.85) !important;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Modal-content na środku, z cieniem i zaokrągleniem */
.lumen-gltf-modal-content {
    width: 70vh;
    height: 70vh;
    max-width: 90vw;
    max-height: 90vw;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 0 32px #000a;
}

.lumen-gltf-viewer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
}

.lumen-gltf-close {
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 2.5em;
    color: #000;
    cursor: pointer;
    z-index: 10;
    background: none;
    border: none;
    line-height: 1;
    padding: 0;
}

@media (max-width: 900px) {
    .lumen-gltf-modal-content {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    .lumen-gltf-viewer {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    .lumen-gltf-close {
        top: 20px;
        right: 20px;
    }
}