html, body {
  height: 100%;
}
.drag-overlay {
  display: none;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  position: fixed;
  font-size: 10vmax;
  color: #F00;
  text-shadow:
    0 0 0.1em #000,
    0 0 0.1em #000,
    0 0 0.1em #000;
  font-weight: bold;
  letter-spacing: 0.15em;
}
body.is-dragging .drag-overlay {
  display: block;
}
.drag-overlay, .drag-overlay * {
  background-color: rgba(0,0,0,0.25);
  padding: 1vh;
}
.drag-overlay * {
  border-radius: 1vh;
}

.preview-wrap {
  box-shadow: 0 0 0.5rem 0.25rem;
  position: relative;
  padding-bottom: 65%;
  background-color: #000;
  transition: 0.5s ease all;
  color: #048;
  text-shadow:
    0 0 0.5em #FFF,
    0 0 0.5em #FFF,
    0 0 0.5em #FFF;
  font-size: 1.25em;
  font-weight: bold;
  cursor: pointer;
  word-break: break-word;
}
.preview-wrap:hover,
.preview-wrap.active {
  color: #F00;
  font-size: 0;
}
.preview-table {
  display: table;
  width: 100%;
  height: 100%;
  margin-bottom: -1px;
  position: absolute;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}
.preview-cell {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  padding: 1.5rem;
  background-color: rgba(255,255,255,0.5);
  transition: 0.5s ease all;
  position: relative;
  overflow: hidden;
}
.preview-wrap:hover .preview-cell,
.preview-wrap.active .preview-cell {
  background-color: rgba(255,255,255,0);
}

.viewer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  background-color: #000;
}

.viewer-cell {
  display: table-cell;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  text-align: center;
  transition: 1s ease all;
}

video {
  width: 100%;
}

.preview-wrap .controls {
  position: absolute;
  bottom: -999px;
  left: 0;
  right: 0;
  background-color: rgba(255,255,255,0.75);
  box-shadow: 0 0 0.5em #000;
  transition: 0.5s ease all;
  padding: 1em 0.5em;
  font-size: 11pt;
}
.preview-wrap.active .controls {
  bottom: 0px;
}
.preview-wrap.active input[type=range] {
  width: 100%;
}
