#uploadImageContainer #uploadImage_button_saving, #uploadImageContainer.saving #uploadImage_button{
  display: none
}

#uploadImageContainer.saving #uploadImage_button_saving{
  display: block;
}

.imagepreview{
  max-width: 100%;
  max-height: 100%;
  transition: transform 0.3s ease;
}
.imagepreview:hover{
  transform: scale(1.05);
}

.mdPreview{
  max-height: 9em;
  display: block;
}

.hiddenImg{
  display: none
}

.floatLeftPreview{
  float: left;
  max-height: 3em;
  margin-right: 0.5em;
  border-radius: 0.5em
}

#galleryview{
  display: none;
  max-height: 0px;
  max-width: 0px;
  position: fixed;
  transition: all 0.5s ease;
  overflow: hidden;
}
#galleryview.visible{
  display: block;
  top: 50%;
  left: 50%;
  -moz-transform: translateX(-50%) translateY(-50%);
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  z-index: 20;
}
#galleryview.visible2{
  height: fit-content;
  max-height: 100%;
  width: fit-content;
  max-width: 95%;
}

#galleryview.visible img{
  max-width: 100vw;
  max-height: 100vh;
}

#closegalleryviewButton{
  position: absolute;
  top: 0.3em;
  right: 0.3em;
  background-image: url("/static/startid/root/delete.png");
  font-size: 200%
}

#darkenbackground.visible{
  position: fixed;
  background-color: rgba(0,0,0,0.55);
  width: 100vw;
  height: 100vh;
  top:0;
  left:0;
  z-index: 19;
}
#darkenbackground{
  transition: background-color 0.5s ease
}

#galleryview:not(.containsgallery) #leftArrow, #galleryview:not(.containsgallery) #rightArrow{
  display: none
}

#leftArrow, #rightArrow{
  position: absolute;
  top: calc(50% - 2.2em);
  height: 4.4em;
  width: 4.4em;
  opacity: 60%;
  transition: opacity 0.3s ease
}
#leftArrow:hover, #rightArrow:hover{
  opacity: 90%
}
#leftArrow{
  left: 0px;
  background-image: url("/static/startid/images/leftArrow.png");
}
#rightArrow{
  right: 0px;
  background-image: url("/static/startid/images/rightArrow.png");
}



.hidden{
  display: none
}
.imageSort{
  max-height: 3em;
}
.imageSortDesc{
  display: inline-block
}
.sortable_draggable{
  background-color: rgb(15,15,15);
  margin: 0.2em;
}

#imagename:not(".visible"){
  display:none
}
#imagename.visible{
  position: fixed;
  bottom: 0;
  left: 0;
  background-color: rgba(30, 30, 30, 0.5);
  color: white;
  padding: 0.2em;
}