.editor-body{
    height:100%;
    /* background-color: red; */
}

#adressbarcheck{
    position: fixed;
    top:0px;
    left:0px;
    width:0px;
    height:100vh;
}

.modal-bg{
    position: fixed;
    top:-100vh;
    left:-100vw;
    width:300vw;
    height:300vh;

    z-index: 99999;

    background-color: #53535373;

    
    display: none;
}
.modal-bg.active{
    display: block;
}
.modal-bg > .holder > img.close-cross{
    position: absolute;
    width:2em;
    height:2em;
    right:0px;
    top:0px;
}
.modal-bg > .holder{
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    max-height: 70vh;
    max-width: 80vw;

    background-color: white;
}
.modal-bg.file-upload > .holder{
    width: 800px;
    height:600px;
    border-radius: 14px;
    transition: background-color 0.25s ease-in;
}
.modal-bg.file-upload > .holder > input{
    display: none;
}
.modal-bg.file-upload > .holder > label{
    width:calc(100% - 4em);
    height:calc(100% - 4em);
    margin:2em;
    border:1px dashed var(--color-main);
    text-align: center;
    border-radius: 14px;
    transition: border 0.25s ease-in;
}
.modal-bg.file-upload > .holder.highlight > label,
.modal-bg.file-upload > .holder:hover > label{
    border:1px dashed white;
}
.modal-bg.file-upload > .holder.highlight,
.modal-bg.file-upload > .holder:hover{
    background-color: var(--shadow-main);
}
.modal-bg.file-upload > .holder > label::after{
    content:"Перетащите файлы сюда";
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);

    color:white;
}
.modal-bg.file-upload > .holder.highlight > label::after{
    content:"Перетащите файлы сюда";
}

.modal-bg.file-upload > .holder:hover > label::after{
    content:"Нажмите для выбора файлов или перетащите файлы сюда";
}

.img-carousel{
    height:35vh;
    max-height:400px;
}
.img-carousel.uploaded{
    height: 30vh;
}
.img-carousel .swiper-slide{
    overflow: hidden;
}
.img-carousel .swiper-slide img{
    height:100%;
    width:100%;
    object-fit: cover;
    transition: all 0.5s ease-in-out;
}
.img-carousel .swiper-slide img:hover{
    transform: scale(1.1);
}

.img-carousel .swiper-slide .download-icon{
    width:100%;
    height:100%;
    display: block;

    transition: all 0.5s ease-in-out;
}
.img-carousel .swiper-slide .download-icon label{
    width:100%;
    height:100%;
    display: block;

}
.img-carousel .swiper-slide .download-icon:hover{
    transform: scale(1.1);
}

.img-carousel .swiper-slide .download-icon img{
    width:30%;
    height:100%;
    display: block;
    object-fit: contain;
    margin-left: auto;
    margin-right:auto;
}

.img-carousel .swiper-slide a.edit{
    position: absolute;
    bottom:0px;
    left:0px;
    width:100%;
    display: block;
    text-align: center;

    color:white;
    padding-bottom:0.5em;
    text-decoration: none;

    transition: all 0.15s ease-in-out;

    background-color: #0000008f;
    -webkit-box-shadow: 0px -5px 10px 0px #000000a6;
    -moz-box-shadow: 0px -5px 10px 0px #000000a6;
    box-shadow: 0px -5px 10px 0px #000000a6;
}

/* .img-carousel .swiper-slide a.edit:hover{
    -webkit-box-shadow: 0px -10px 20px 0px #000000a6;
    -moz-box-shadow: 0px -10px 20px 0px #000000a6;
    box-shadow: 0px -10px 20px 0px #000000a6;
} */

img.source-img{
    display: none;
}

.editor-handler > .editor{
    position: relative;
    height:calc(100vh - 4em);
    width: 100vw;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    
    background:
    radial-gradient(circle, rgba(0,0,0,0) 0%, rgba(255,255,255,1) 100%),
    center/20% url("/create/public/img/bg-grid.svg");
}
@media screen and (max-width:800px) {
.editor-handler > .editor{
    height:calc(100vh);
}
   
}
.editor-handler > .editor > canvas{
    width:100%;
    height:100%;
    touch-action: manipulation;
    position: absolute;
    top:0px;
    left:0px;

    
    /* -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none; */

    /* -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none; */
}

canvas{
    outline: none;
}

.editor-handler > .editor > canvas.cursor-default{
    cursor: default;
}
.editor-handler > .editor > canvas.cursor-grab{
    cursor: grab;
}
.editor-handler > .editor > canvas.cursor-pointer{
    cursor: pointer;
}

/* .editor-handler{
} */
.editor-handler .heading{
    /* height: 3em; */
    width: 100vw;
}

.editor-handler .toolbar{
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 100%;
    align-items: center;
}
.toolbar span{
    font-weight: bold;
    font-size: 1.5em;

    margin:0px 0.5em;
    cursor: pointer;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;

    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}
.editor-handler .toolbar > img{
    width:2em;
    height:2em;
    margin:0.5em;

    transition: all 0.15s ease-in-out;

    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;

    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;

    cursor:grab;
}

.editor-handler .toolbar > img:hover{
    transform: scale(1.2);
}

.edit-icon{
    position: fixed;
    width:3vw;
    height:3vw;
    padding: 0.5vw;

    bottom:2vh;
    right:2vw;

    transition: all 0.15s ease-in-out;

    background-color: white;
    border-radius: 100%;
    object-fit: contain;
    filter:invert();

    -webkit-box-shadow: 0px 0px 29px 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 0px 29px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 29px 10px rgba(0, 0, 0, 0.2);

}

.edit-icon:hover,.save-icon:hover{
    transform: scale(1.1);
}
/* @media (orientation: portrait){
    .edit-icon,.save-icon{
        position: fixed;
        width:5vh;
        height:5vh;
        padding: 0.5vh;
    }
} */
@media screen and (max-width:800px){
    .edit-icon,.save-icon{
        position: fixed;
        width:5vh;
        height:5vh;
        padding: 0.5vh;
    }
    .heading{
        display: none;
    }
}
.inline-icon{
    width:2em;
    height:2em;
    margin-left:0.5em;
    transition: all 0.15s ease-in-out;
}
.inline-icon.clickable:hover{
    transform: scale(1.1);
    cursor: pointer;
}
.remove-icon{
    width:32px;
    height:32px;
    display: block;
    margin-left: auto;
    margin-right: 0.5em;
}
.editor-lb-menu-holder{
    overflow: hidden;
    position: fixed;
    left:2em;
    bottom:2em;
    width:3em;
    height:3em;
    z-index: 99;
}
.editor-lb-menu-holder.active{
    overflow: visible;
}
.editor-lb-menu-holder > div{
    position: absolute;
    bottom:0px;
    left:0px;
    display: flex;
    flex-direction: column-reverse;
    height:fit-content;
}
.editor-lb-menu-holder > div > div.item:first-child img{
    background-size: 75%!important;
    background-position: center!important;
    background-repeat: no-repeat!important;
    opacity: 1!important;
    background: url("/create/public/img/menu-icon.svg"), white;
}
.editor-lb-menu-holder.active > div > div.item:first-child img{
    opacity: 0.5!important;
}
.editor-lb-menu-holder > div > div.item{
    margin-top:2em;
    position: relative;
    cursor: pointer;
    
}
.editor-lb-menu-holder > div > div.item span{
    position: absolute;
    top:50%;
    right:-1em;
    width:fit-content;
    white-space: nowrap;
    transform: translate(50%, -50%);
    opacity: 0;
    color:white;
    text-shadow: 0px 0px 8px #000000;
    transition: all 0.25s ease-in-out;
}
.editor-lb-menu-holder.active > div > div.item span{
    transform: translate(100%, -50%);
    opacity: 1;
}
.editor-lb-menu-holder > div > div.item:hover span{
    color:black;
}
.editor-lb-menu-holder > div > div.item img{
    width:3vw;
    height:3vw;

    opacity: 0;

    background-color: white;
    border-radius: 100%;

    transition: all 0.25s ease-in-out;

    padding:0.25em;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
    /* filter:invert(); */

    -webkit-box-shadow: 0px 0px 29px 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 0px 29px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 29px 10px rgba(0, 0, 0, 0.2);
}
.editor-lb-menu-holder.active > div > div.item img{
    opacity: 1;
}

@media screen and (min-width:800px) {
    
    .editor-lb-menu-holder > div{
        padding-right: 10vw;;
    }
    .editor-lb-menu-holder{
        width:calc(3vw + 10vw);
    }

    .editor-lb-menu-holder:hover{
        overflow: visible;
    }
    .editor-lb-menu-holder:hover > div > div.item:first-child img{
        /* background: url("/create/public/img/close-cross.svg"); */
        
        background: url("/create/public/img/menu-icon.svg");
        opacity: 0.5!important;
    }
    .editor-lb-menu-holder:hover > div > div.item span{
        transform: translate(100%, -50%);
        opacity: 1;
    }
    .editor-lb-menu-holder:hover > div > div.item img{
        opacity: 1;
    }
}

.save-icon,.add-to-moderate-icon{
    position: fixed;
    width:3vw;
    height:3vw;
    padding: 0.5vw;

    bottom:2vh;
    right:2vw;

    transition: all 0.15s ease-in-out;

    background-color: white;
    border-radius: 100%;
    object-fit: contain;
    filter:invert();

    -webkit-box-shadow: 0px 0px 29px 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 0px 29px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 29px 10px rgba(0, 0, 0, 0.2);
}

@media (orientation: portrait){
    .editor-lb-menu-holder{
        width:5vh;
        height:5vh;
    }
    .editor-lb-menu-holder > div > div.item img{
        width:5vh;
        height:5vh;
    }
}

/* .save-icon{
    bottom:2vh;
    right:unset;
    left:7vw;
}
.add-to-moderate-icon{
    bottom:2vh;
    right:unset;
    left:2vw;
} */

.hidden-icon{
    display: none;
}

.editor-fields{
    position: fixed;
    left:100vw;
    top:0px;
    height:100%;
    width:300px;
    max-width: 80vw;

    padding-bottom: 3em;

    overflow-y: visible;
    overflow-x: visible;

    z-index: 999;

    background-color: white;
    border-left: 1px solid var(--color-main);

    -webkit-box-shadow: -10px 0px 16px 0px var(--shadow-main);
    -moz-box-shadow: -10px 0px 16px 0px var(--shadow-main);
    box-shadow: -10px 0px 16px 0px var(--shadow-main);

    opacity: 0;

    transition: all 0.15s ease-in-out;

    scrollbar-color: #6969dd #e0e0e0;
    scrollbar-width: thin;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
/* .editor-fields input[type="color"]{
    width:calc(100% - 16px);
    margin
} */
.editor-fields > #input-handler{
    height:100%;
}
.editor-fields > #input-handler{
    overflow-y: scroll;
}
.editor-fields > #input-handler::-webkit-scrollbar{
    width: 1em;
}
.editor-fields > #input-handler::-webkit-scrollbar-track {
    background-color: transparent;
}
.editor-fields > #input-handler::-webkit-scrollbar-thumb {
    background-color: var(--shadow-main);
    border-radius: 10px;
    border:0.25em solid white;
    box-sizing: border-box;
}

.editor-fields.mobile + .bg{
    z-index: 99;
    position: fixed;
    top:0px;
    right:0px;
    width: 100vw;
    height:100vh;
    display: none;
    /* background-color: var(--shadow-main); */
}
.editor-fields.mobile.active + .bg{
    display: block;
}
.editor-fields.mobile.active,
.editor-fields.active{
    transform: translateX(-100%);
    opacity: 1;
    padding:1em;
}

.editor-fields .position{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}
.editor-fields .position span{
    width: 100%;
    box-sizing: border-box;
    position: relative;
    text-align: center;
}
.editor-fields .position input{
    width: calc(100% - 16px);
    position: relative;
}

.editor-fields .rotation{
    /* display: flex;
    flex-direction: row;
    justify-content: space-between; */
}
.editor-fields .rotation span{
    /* width: 30%; */
    position: relative;
    text-align: center;
}
.editor-fields .rotation input{
    width: 100%;
    position: relative;
}

.lil-bot{
    margin-bottom: 0px;
}

.editor-fields p{
    margin-bottom: 0.5em;
}
.editor-fields .align{
    display: flex;
    flex-direction: row;
    justify-content: center;
    width:100%;
}
.editor-fields .align input{
    display: none;
}
.editor-fields .align label{
    display: block;
    width:30%;
    text-align: center;
    padding: 0.25em 0px;

    transition: all 0.25s ease-in-out;
}
.editor-fields .align input:not(:checked)+label:hover{
    background:gainsboro;
}
.editor-fields .align input:checked+label{
    background:black;
    color:white;
}

.editor-fields textarea{
    width:100%;
    height:200px;
}

a.button.save-changes{
    padding-left: 2em;
    padding-right: 2em;
    max-width: 90%;
}

input.save-changes{
    padding: 0px 2em;
    position: fixed;
    bottom:1em;
    left:50%;
    transform: translateX(-50%);
    display: block;
}

.hidden{
    display: none!important;
}

.centered{
    text-align: center;
}

a.title{
    color:inherit;
    
}

.img-holder{
    width:100%;
    height:calc(95vh - 4em);
    margin-bottom: 2vh;
}
.img-holder img{
    width: 100%;
    height:100%;
    object-fit: contain;
}


#block-type{
    display: none;
}


.modal-bg.send-to-moderate > .holder{
    width: calc(200px + 4em);
    /* height:600px; */
    padding:2em;
    border-radius: 14px;
    transition: background-color 0.25s ease-in;
}
.modal-bg.send-to-moderate > .holder input[type="text"]{
    display: block;
    width: 100%;
}

/* .paramState{

} */

.textShadow,
.textBorder{
    transition: all 0.25s ease-in-out;
    height:0px;
    overflow-y: hidden;
}
.textShadow.active,
.textBorder.active{
    height:fit-content;
}

@media screen and (max-width:800px) {
    .hide-mobile{
        display: none;
    }
}











body.headless .editor-handler > .editor{
    height:100vh;
}
body.headless .editor-handler .heading{
    display: none;
}
body.headless .editor-lb-menu-holder{
    display: none;
}
body.headless .editor-fields{
    display: none;
}
body.headless .edit-icon{
    display: none;
}
body.headless .pbl-popup-fadeout{
    display: none;
}