/****************************************
* For video_optimizer.js
* Styles for Third-party videos with placeholders
****************************************/

.external-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* padding-bottom will need to be overridden on occasion. Should be iframe height / iframe width. */
}

.external-video iframe,
.external-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.external-video .placeholder {
  position: relative;
  background-size: cover;
  background-position: center;
  padding-top: 56.25%;
}

.external-video .placeholder .title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .8), rgba(0, 0, 0, .0));
  padding: .5rem 1rem;
  font-size: 18px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.external-video .placeholder:hover {
  cursor: pointer;
}

.external-video .placeholder button {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: rgba(0, 0, 0, .5);
  width: 50px;
  height: 50px;
  padding: 0;
  transition: all .4s ease;
  pointer-events: none;
}

.external-video .placeholder:hover button {
  background-color: #000000;
}

.external-video .placeholder button.spin {
  transition: none;
  background-color: transparent;
}

.external-video .placeholder svg {
  margin-left: 3px;
  width: 30px;
  height: 30px;
  fill: #ffffff;
  transition: width .4s ease, height .4s ease;
  pointer-events: none;
}

.external-video .placeholder svg.spin,
.external-video .placeholder .spin svg {
  border: solid 5px #ffffff5c;
  border-bottom-color: #ffffff;
  border-radius: 50%;
  fill: transparent;
  animation: 1.5s linear infinite spinner;
}

@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}