@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -80%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.open, .closing {
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}
.open.fadeIn {
  animation-name: fadeIn;
}

.open.slideDown {
  animation-name: slideDown;
}

.closing {
  animation-name: fadeOut;
}

#ots-image-carousel-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0,0,0,0.25);
  z-index: 10000;
}

.carousel-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90vw;
  max-height: 90vh;
  padding: 2em;
  transform: translate(-50%, -50%);
  z-index: 10001;
  background-color: #fdfdfd;
  border-radius: 10px;
  box-shadow: 0 15px 30px 0 rgba(0,0,0,0.11), 0 5px 15px 0 rgba(0,0,0,0.08);
}

#ots-carousel_images {
  background-color: #f7f7f7;
  box-shadow: inset -2px 2px 10px #e1e1e1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1em 2em;
  list-style: none;
  overflow: scroll;
  max-height: 300px;
}

#ots-carousel_images li {
  width: calc((100% / 5) - 10px);
  text-align: center;
  cursor: pointer;
  position: relative;
  margin: 0 2.5px 1em 2.5px;
  min-height: 120px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  cursor: move;
}

#ots-carousel_images li .img-options {
  opacity: 0;
  width: 100%;
  border: 1px dashed #777;
  border-radius: 5px;
  overflow: hidden;
}

#ots-carousel_images li:hover .img-options {
  padding: 0;
  opacity: 1;
}

#ots-carousel_images li .img-options div {
  display: inline-flex;
  justify-content: center;
  background-color: #fcfcfc;
  opacity: 0.85;
  width: 50%;
  cursor: pointer;
}


#ots-carousel_images li .img-options div:hover {
  opacity: 1;
}

#ots-carousel_images li .img-options div:first-child {
  left: 0;
  border-right: 1px solid #777;
}
#ots-carousel_images li .img-options div:first-child:hover {
  background-color: #93ea99;
}

#ots-carousel_images li .img-options .img-delete:hover { background-color: #db5c5c; }

#ots-carousel_images li .img-options div i {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: black !important;
}

#ots-carousel_images li img {
  width: 100%;
  height: 50px;
  object-fit: contain;
}

.modal-detail-box-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.close-modal a {
  background-color: transparent !important;
}

.close-modal a i {
  font-size: 20px;
  color: black !important;
}

.modal-detail-box {
  width: 200px;
  height: 200px;
  background-color: #f7f7f7;
  border-radius: 10px;
  margin-bottom: 2em;
  box-shadow: inset -2px 2px 10px #e1e1e1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.modal-detail-box img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

#ots-carousel_upload-wrap {
  text-align: center;
}

#upload-icon {
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#upload-icon i {
  font-size: 100px;
  color: #e2e2e2 !important;
}

.upload-button {
  background-color: #777 !important;
  border: none;
  border-radius: 3px;
  padding: 4px 2em;
  box-shadow: 0px 0px 0px transparent;
  display: inline-block;
  transition: all 0.3s ease-in-out;
}

.upload-button.success,
.upload-button.danger {
  color: #777 !important;
  background-color: transparent !important;
}

.upload-button.success:hover,
.upload-button.danger:hover {
  color: white !important;
}

.upload-button.success:hover {
  background-color: #93ea99 !important;
}

.upload-button.danger:hover {
  background-color: #db5c5c !important;
}

.upload-button:hover {
  background-color: #123f57 !important;
  box-shadow: 2px 4px 10px #a3a3a3;
  transform: translateY(-10%);
}

#ots-image-detail-modal {
  width: 400px;
}

.buttons {
  margin-top: 1em;
}

.buttons button:first-child {
  margin-right: 1em;
}

[v-cloak] { display:none; }