@charset "UTF-8";

.cover {
  position: relative;
  padding: calc(1.5vw + 30px) 0 calc(1vw + 40px);
  min-height: calc(24vw + 220px);
  margin: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  + section {
    margin-top: 0;
  }

  .container {
    margin: 0;
  }

  &[data-type="artwork"] {
    .image-box {
      display: none;
    }
  }

  &[data-type="background-color"],
  &[data-type="background-image"] {
    color: white;

    .artwork {
      display: none;
    }

    .btn {
      @extend .btn.white;
    }
  }

  &[data-type="background-color"] {
    background: linear-gradient(120deg, rgba($color-primary, 0.6) 0%, $color-primary 100%);
    background: linear-gradient(120deg, rgba(var(--theme-color-primary-rgb, $color-primary-rgb), 0.6) 0%, rgba(var(--theme-color-primary-rgb, $color-primary-rgb), 1) 100%);

    .image-box {
      display: none;
    }
  }

  &[data-type="background-image"] {
    .image-box {
      @include fullsize;

      &:after {
        content: "";
        @include fullsize;
        background: linear-gradient(120deg, rgba($color-primary, 1) 0%, rgba($color-primary, 0.2) 100%);
        background: linear-gradient(120deg, rgba(var(--theme-color-primary-rgb, $color-primary-rgb), 1) 0%, rgba(var(--theme-color-primary-rgb, $color-primary-rgb), 0.2) 100%);
      }

      img {
        position: relative;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
  }

  &[data-type="image"] {
    padding: 0;
    min-height: 0;
    display: block;

    .image-box {
      position: relative;
      display: block;

      img {
        display: block;
        width: 100%;
      }
    }

    .text-box, .artwork, .container {
      display: none;
    }
  }

  .text-box {
    position: relative;
    width: 60%;
    max-width: 580px;
  }

  .btn {
    margin-left: -1px;
    margin-top: 10px;
  }
}

[data-browser="ie"] .cover:before {
  content: "";
  position: relative;
  display: block;
  width: 0;
  height: calc(21.5vw + 150px);
}
