.modal {
  padding: $base-spacing-2x;
  box-shadow: $base-elevation-modal;
  width: 500px;
  background: $base-white;
  position: fixed;
  top: -100%;
  transform: translate(-50%, -25%);
  left: 50%;
  z-index: 1;
  display: block;
  opacity: 1;
  transition: top ease-out 0.3s;

  &.centered {
    transform: translate(-50%, -50%);

    &.show {
      top: 50%;
    }
  }

  &.from-right {
    top: 0;
    transform: unset;
    left: unset;
    right: -100%;
    transition: right ease-out 0.3s;

    &.show {
      top: 0;
      right: 0;
    }
  }

  &.full-screen {
    width: calc(100% - 64px);
    height: calc(100% - 64px);
    top: 0;
    transform: unset;
    left: unset;
    right: -100%;
    transition: right ease-out 0.3s;

    &.show {
      top: 0;
      right: 0;
    }
  }

  &.showing {
  }

  &.show {
    top: 25%;
  }

  &-active {
    height: 100vh;
    overflow: hidden;
    padding-right: 15px;
  }

  &-id-navigator {
    display: flex;
    margin-top: $base-spacing-1-half;
    margin-left: -$base-spacing-2x;
    margin-right: -$base-spacing-2x;

    span {
      flex: 1;
      letter-spacing: 0.5px;
      font-family: $base-font-family;
      border: 1px solid $base-white;
      border-right: 1px solid ;
      padding: $base-spacing $base-spacing-2x;
      font-size: $base-font-header;
      line-height: 1;
      white-space: nowrap;
      background: $sky-blue-500;
      border-color: $sky-blue-500;
      color: $sky-blue-100;
      cursor: pointer;
      text-align: center;

      &:hover {
        background: $sky-blue-400;
        border-color: $sky-blue-400;
      }

      &.active {
        background: $sky-blue-600;
        border-color: $sky-blue-600;
      }
    }
  }

  &-body {
    overflow-y: scroll;
    max-height: 400px;
    margin-top: $base-spacing-1-half;
  }

  &-footer {
    margin-top: $base-spacing-1-half;
  }

  .close-modal {
    width: 16px;
    height: 16px;
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 16px;
    margin-right: 16px;
    cursor: pointer;
  }

  [data-btn="close-modal"] {
    z-index: 13; // same as spinner
  }

  &-overlay {
    display: none;

    .container {
      height: 100%;
    }

    &.showing {
      display: block;
      position: fixed;
      left: 0;
      top: 0;
      width: 100%;
      height: 100vh;
      z-index: 999;
      transition: background-color ease-out 0.3s;
    }

    &.show {
      background-color: rgb(20, 19, 20, 0.95);
    }
  }

  &.video-playback {
    background: transparent;
    box-shadow: none;
    position: absolute;
    width: 100%;

    .modal-body {
      overflow-y: hidden;
      max-height: unset;
      height: 100%;
      margin-top: unset;

      iframe {
        width: 100%;
        height: 100%;
        min-height: 500px;

        @media only screen and (max-width: map-get($base-breakpoints, 'lg')) {
          min-height: 300px;
        }

        @media only screen and (max-width: map-get($base-breakpoints, 'md')) {
          min-height: 200px;
        }
      }
    }
  }

  @media only screen and (max-width: map-get($base-breakpoints, 'md')) {
    width: calc(100% - 64px);
  }
}
