.redactor-plugins-photogallery2-box-image-item {
    background: #f5f5f5;
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
}
.redactor-plugins-photogallery2-box-image-item .image-obj {
    transition: all ease-in-out .26s;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
}
.redactor-plugins-photogallery2-box-image-item .image-obj + x {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-weight: 600;
    color: #999;
    text-shadow: 0 1px 0 #fff;
    transition: all ease-in-out .36s;
    transition-delay: .12s;
    width: 46px;
    height: 46px;
    text-align: center;
    line-height: 46px;
}
.redactor-plugins-photogallery2-box-image-item .image-obj + x:before {
    content: 'IMG';
    display: inline-block;
    line-height: 46px;
}
.redactor-plugins-photogallery2-box-image-item .image-obj[type="JPG"] + x:before {
    content: 'JPG';
}
.redactor-plugins-photogallery2-box-image-item .image-obj[type="PNG"] + x:before {
    content: 'PNG';
}
.redactor-plugins-photogallery2-box-image-item .image-obj[type="GIF"] + x:before {
    content: 'GIF';
}

.redactor-plugins-photogallery2-box-image-item .image-obj.loaded {
    opacity: 1;
    visibility: visible;
}
.redactor-plugins-photogallery2-box-image-item.uploaded .image-obj + x,
.redactor-plugins-photogallery2-box-image-item .image-obj.loaded + x {
    transform: translate(-50%,-50%) scale(0.75);
    opacity: 0;
    visibility: hidden;
}
.redactor-plugins-photogallery2-box-image-item button {
    border: none;
    padding: .5em;
    line-height: 1;
    height: auto;
    min-height: auto;
    background-color: rgba(0,0,0,.35);
    color: #fff;
    position: absolute;
    border-radius: 0;
}
.redactor-plugins-photogallery2-box-image-item button:hover {
    background-color: rgba(0, 0, 0, .95);
    color: #fff;
}
.redactor-plugins-photogallery2-box-image-item .rotate-image {
    top: 0;
    left: 0;
    transition: all ease-in-out .26s;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}
.redactor-plugins-photogallery2-box-image-item .remove-image {
    top: 0;
    right: 0;
    transition: all ease-in-out .26s;
}
.redactor-plugins-photogallery2-box-image-item .cancel-upload {

    bottom: 12.5%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,.16);
    color: #fff;
    font-size: 13px;
    border-radius: 5rem;
    padding: 6px 10px;
    padding-left: 26px;

    transition: all ease-in-out .26s;

}
.redactor-plugins-photogallery2-box-image-item .cancel-upload:hover {
    background-color: rgba(0,0,0,.36)!important;
    color: #fff!important;
}
.redactor-plugins-photogallery2-box-image-item .cancel-upload .mdi {
    position: absolute;
    left: 2px;
    font-size: 21px;
}
.redactor-plugins-photogallery2-box-image-item .image-title {
    border: none;
    display: block;
    line-height: 2.5;
    width: 100%;
    height: auto;
    font-size: 11px;
    background-color: rgba(0,0,0,.35);
    color: #fff;
    padding: 0 2px;
    border-radius: 0;
    transition: all ease-in-out .26s;
    position: absolute;
    bottom: 0;
    left: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,.56);
}
.redactor-plugins-photogallery2-box-image-item .image-title:hover,
.redactor-plugins-photogallery2-box-image-item .image-title:active,
.redactor-plugins-photogallery2-box-image-item .image-title:focus {
    background-color: rgba(0,0,0,.95);
}

.redactor-plugins-photogallery2-box-image-item progress {
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    transition: all ease-in-out .26s;
}

.redactor-plugins-photogallery2-box-image-item progress[value]::-webkit-progress-value {

    /*background-image:
            -webkit-linear-gradient(-45deg,
            transparent 33%, rgba(0, 0, 0, .1) 33%,
            rgba(0,0, 0, .1) 66%, transparent 66%),
            -webkit-linear-gradient(top,
            rgba(255, 255, 255, .25),
            rgba(0, 0, 0, .25)),
            -webkit-linear-gradient(left, #09c, #fff);

    border-radius: 0;
    background-size: 35px 20px, 100% 100%, 100% 100%;
    background-position: 0 0;
    -webkit-animation: animate-stripes 5s linear infinite;
        animation: animate-stripes 5s linear infinite; */

}


@-webkit-keyframes animate-stripes {
    100% { background-position: -100px 0; }
}

@keyframes animate-stripes {
    100% { background-position: -100px 0; }
}


.redactor-plugins-photogallery2-box-image.in-elaboration .redactor-plugins-photogallery2-box-image-item .image-title,
.redactor-plugins-photogallery2-box-image.in-progress .redactor-plugins-photogallery2-box-image-item .image-title {
    visibility: hidden;
    opacity: 0;
    transform: translateY(100%);
}

.redactor-plugins-photogallery2-box-image.in-elaboration .redactor-plugins-photogallery2-box-image-item .remove-image,
.redactor-plugins-photogallery2-box-image.in-elaboration .redactor-plugins-photogallery2-box-image-item .rotate-image,

.redactor-plugins-photogallery2-box-image.in-progress .redactor-plugins-photogallery2-box-image-item .remove-image,
.redactor-plugins-photogallery2-box-image.in-progress .redactor-plugins-photogallery2-box-image-item .rotate-image {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-100%);
}

.redactor-plugins-photogallery2-box-image.in-elaboration .redactor-plugins-photogallery2-box-image-item progress,
.redactor-plugins-photogallery2-box-image.in-progress .redactor-plugins-photogallery2-box-image-item progress {
    opacity: 0;
    transform: translateY(-100%);
}

.redactor-plugins-photogallery2-box-image .redactor-plugins-photogallery2-box-image-item .elaboration-spinner {
    position: absolute;
    width: 46px;
    height: 46px;
    z-index: 99;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(.5);
    opacity: 0;
    visibility: hidden;
}
.redactor-plugins-photogallery2-box-image .redactor-plugins-photogallery2-box-image-item .elaboration-spinner:after {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: 3px solid #ccc;
    border-top-color: #007dff;
    -webkit-animation: 1s spin linear infinite;
    animation: 1s spin linear infinite;
    content: ' ';
    display: inline-block;
}
.redactor-plugins-photogallery2-box-image.in-elaboration .redactor-plugins-photogallery2-box-image-item .elaboration-spinner {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%,-50%) scale(1);
}
@-webkit-keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes spinBack {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(-720deg);
        transform: rotate(-720deg);
    }
}

@keyframes spinBack {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(-720deg);
        transform: rotate(-720deg);
    }
}

@-webkit-keyframes spinBorder {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
        border-width: 15px;
    }
    50% {
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
        border-width: 3px;
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
        border-width: 15px;
    }
}

@keyframes spinBorder {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
        border-width: 15px;
    }
    50% {
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
        border-width: 3px;
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
        border-width: 15px;
    }
}

#redactor-modal.photogallery2 .redactor-modal-header,
#redactor-modal.photogallery2 .redactor-modal-body,
#redactor-modal.photogallery2 .redactor-modal-footer {
    padding: 24px!important;
    position: relative;
}

#redactor-modal.photogallery2 .uk-alert {
    margin-top: -24px;
    margin-left: -24px;
    margin-right: -24px;
    padding: 12px 24px!important;
    position: sticky;
    top: -2px;
    z-index: 999;
}

#redactor-modal.photogallery2.dragging .redactor-modal-body {
    outline: 2px dashed orangered;
}
#redactor-modal.photogallery2 .uk-alert p {
    margin: 0!important;
}
#redactor-modal.photogallery2.dragging .uk-alert p:not(.on-dragging),
#redactor-modal.photogallery2:not(.dragging) .uk-alert p.on-dragging {
    display: none;
}
#redactor-modal.photogallery2.dragging .uk-alert * {
    pointer-events: none;
}
#redactor-modal.photogallery2 [rel="redactor-plugins-photogallery2-input-files"] {
    padding: 2px 8px;
    height: auto;
    min-height: auto;
}
#redactor-modal.photogallery2 .redactor-plugins-photogallery2-box-image-item {
    transition: all ease-in-out .26s;
}
@media screen and (min-width: 768px) {

    #redactor-modal.photogallery2 .redactor-plugins-photogallery2-box-image-item.focused {
        z-index: 999;
        transform-origin: bottom center;
        transform: scale(1.15);
        box-shadow: 0 2px 8px;
        outline: 2px solid #fff;
    }

}

.redactor-plugins-photogallery2-box-image.in-elaboration .image-obj {
    opacity: .2!important;
}

#photogallery2-container-images.empty-images:not(.in-progress-upload):before {
    content: 'Nessuna immagine presente';
    display: block;
    font-size: small;
    position: absolute;
    left: 24px;
    top: 58px;
    color: #ccc;
}

#redactor-modal.photogallery2 .redactor-modal .redactor-close {
    z-index: 9999;
}