/**
 * cm-modals ($cm-modals)
 */

/* 1. Ensure this sits above everything when visible */
.cm-modal {
    position: absolute;
    z-index: 10000; /* 1 */
    top: 0;
    left: 0;
    visibility: hidden;
    width: 100%;
    height: 100%;
}

.cm-modal.is-visible {
    visibility: visible;
}

.cm-modal-overlay {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: hsla(0, 0%, 0%, 0.5);
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 0.3s, opacity 0.3s;
}

.cm-modal.is-visible .cm-modal-overlay {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.cm-modal-wrapper {
    position: absolute;
    z-index: 9999;
    top: 50%;
    left: 50%;
    width: 90%;
    margin: 0 auto;
    transform: translate(-50%, -50%) !important;
}

.cm-modal-content {
    position: relative;
}

.cm-modal-transition {
  transition: all 0.3s 0.12s;
  transform: translateY(-10%);
  opacity: 0;
}

.cm-modal.is-visible .cm-modal-transition {
  transform: translateY(0);
  opacity: 1;
}

.cm-modal-header,
.cm-modal-content {
  padding: 1em;
}

.cm-modal-header {
  position: relative;
  background-color: #fff;
  box-shadow: 0 1px 2px hsla(0, 0%, 0%, 0.06);
  border-bottom: 1px solid #e8e8e8;
}

.cm-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1em;
  color: #aaa;
  background: none;
  border: 0;
}

.cm-modal-close:hover {
  color: #777;
}

.cm-modal-heading {
  font-size: 1.125em;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cm-modal-content > *:first-child {
  margin-top: 0;
}

.cm-modal-content > *:last-child {
  margin-bottom: 0;
}

.cs__play-button_modal{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}