﻿.moveable-gallery-wrapper {
    display: block;
    width: 100%;
    /*border: 1px solid #d1d1d1;*/
    padding: 4px;
    margin: 4px;
    /*margin-left: 3.5em;*/
}


.moveable-gallery {
    display: block;
    position: relative;
    width: 100%;
}
/*Clearfix*/
.moveable-gallery:after, .moveable-gallery .gallery-row:after {
    content: "";
    display: table;
    clear: both;
}

.moveable-gallery * {
    transition: min-width 0.3s ease-in-out, background-color 0.3s linear;
    -webkit-transition: min-width 0.3s ease-in-out, background-color 0.3s linear;
    -moz-transition: min-width 0.3s ease-in-out, background-color 0.3s linear;
    -o-transition: min-width 0.3s ease-in-out, background-color 0.3s linear;
}

.moveable-gallery .gallery-row {
    display: flex;
    width: 100%; 
}

.moveable-gallery .gallery-row .moveable-image {
    flex-basis: 10%;
    min-width: 0;
}

.moveable-gallery .moveable-image {
    position: relative;
    float: left;
}

.moveable-gallery .moveable-image, .moveable-image.hold {
    display: block;
    min-width: 120px;
    background-size: cover;
    background-position: 50% 50%;
    margin: 0 4px 4px 0;
    cursor: move;
    min-height: 120px;
    overflow: hidden;
}

.moveable-image.hold {
    position: fixed;
    z-index: 4;
}

.moveable-gallery .moveable-image:hover {
    -webkit-box-shadow: 0 0 20px 0 rgba(0,0,0,0.2);
    box-shadow: 0 0 20px 0 rgba(0,0,0,0.2);
}

.moveable-gallery .drop-zone {
    display: block;
    float: left;
    min-width: 0;
    min-height: 120px;
    margin: 0 4px 4px 0;
    border: 1px solid black;
    background-color: #32a9de;
}

.moveable-gallery .drop-zone.show {
    min-width: 5px;
}

.moveable-gallery .drop-zone.hit {
    min-width: 120px;
}

.moveable-gallery .original {
    display: block;
    float: left;
    min-width: 120px;
    min-height: 120px;
    margin: 0 4px 4px 0;
    border: 2px dashed #d1d1d1;
}

.moveable-gallery .original.hit {
    background-color: white;
}

.moveable-gallery .moveable-image > span {
    display: none;
}

.moveable-image > input[type=submit] {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 20px;
    border: none;
    background-color: transparent;
    color: white;
    border-radius: 5%;
    padding: 0;
    font-size: 10px;
    margin: 5px;
    text-align: center;
    cursor: pointer;
    padding-left: 1px;

}

    .moveable-image > input[type=submit]:hover {
        background-color: black;
    }
