#filedrag,
.filedrag {
    box-sizing: border-box;
    border: 1px dashed #ccc;
    padding: 10px;
    width: 100%;
    background: #FFF;
    margin-top: 5px;
}

.drag-text {
    /*font-size: 120%;*/
    font-size: 14px;
    color: grey;
    text-align: center;
    font-weight: normal;
    font-weight: 400;
    line-height: initial;
}

.file {
    position: relative;
    box-sizing: border-box;
    padding: 2% 0;
}

.file>input[type="file"] {
    position: absolute;
    opacity: 0;
}

label[for*="files"] {
    font-weight: normal!important;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    justify-content: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 60%;
    margin: auto;
    padding: 0;
    background: transparent;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0px;
    color: #152ba5;
    font-weight: 700;
    font-weight: 400;
}

.file>label:hover {
    transition: all ease-in-out 0.3s;
    color: darkblue!important;
}

#user-submitted-image {
    display: flex;
    flex-direction: column;
}

#user-submitted-image {
    display: flex;
    flex-direction: column;
}

#user-submitted-image .last {
    display: none;
    order: 3
}

#user-submitted-image {
    display: block
}

#user-submitted-image .visible {
    order: 1
}

div[id*="img-up"] {
    width: 100%;
    margin-bottom: 5%;
    display: flex;
    flex-direction: column;
}

div[id*="img-up"]:hover {
    border-color: #b15e2e!important;
    transition: all ease-in-out 0.2s;
}

div[id*="img-up"]:hover .file {
    background: #EEE!important
}

div[id*="img-up"]:hover div[id*="clear"] {
    background: orange!important
}

div[id*="img-up"] .file:hover {
    cursor: pointer
}

figure.upload-ready-img {
    width: 24%!important;
    float: left;
    margin-right: 1%;
    box-sizing: border-box;
    border: 1px solid #EEE
}

figure.upload-ready-img figcaption,
.gallery_item figcaption {
    font-size: 80%;
    text-align: center;
    font-style: italic;
    /*white-space: nowrap;*/
    overflow: hidden;
    padding: 0 10px 5px;
}

div[id*="clear"] {
    background: #EEE;
    text-align: center;
    width: 100%;
    padding: 1% 0;
    display: none
}

div[id*="clear"]:hover {
    cursor: pointer;
    background: orange!important;
    transition: all ease-in-out 0.25s
}

input#files {
    pointer-events: none;
    display: none!important
}

.upimg {
    width: 28%;
    max-width: 150px;
    font-size: 80%;
    font-style: italic;
    box-sizing: border-box;
    padding: 0;
    margin: 10px;
    border: 1px solid #EEE;
    display: inline-block;
    text-align: center;
    z-index: 1000;
    position: relative;
}

.upimg_filename {
    font-size: 9px;
    overflow-x: hidden;
    line-height: normal;
    padding: 5px;
    white-space: nowrap;
}

.upimg img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}


/*
#project_modal .upimg {
    width: 100%!important;
    margin-left: 0!important;
    margin-right: 0!important;
}
*/

.selectedFiles .upimg:hover {
    -webkit-box-shadow: 0px 0px 5px 1px rgba(138, 138, 138, 1);
    -moz-box-shadow: 0px 0px 5px 1px rgba(138, 138, 138, 1);
    box-shadow: 0px 0px 5px 1px rgba(138, 138, 138, 1);
    transition: all ease-in-out 0.2s;
}

.selectedFiles .upimg:hover .removeImg {
    opacity: 1!important;
    transition: all ease-in-out 0.12s;
    -webkit-transition: all ease-in-out 0.12s;
}

.removeImg {
    opacity: 0;
    color: #FFF;
    background-color: rgb(190, 76, 70);
    text-align: center;
    width: 20px;
    float: right;
    position: absolute;
    top: 0;
    right: 0;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: normal;
}

.removeImg:hover {
    cursor: pointer;
    background-color: rgb(225, 36, 26)!important;
    transition: all ease-in-out 0.3s;
    transform: scale(1.15);
    transition: all ease-in-out 0.15s;
}

.upload_files {
    color: #152ba5;
    padding: 5px;
    max-width: 200px;
    margin-top: 10px;
    cursor: pointer;
}

.upload_files:hover {
    color: #5066cb!important;
    transition: all ease-in-out 0.2s;
}

.upload_files i {
    margin-right: 5px
}