.banner {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  position: relative;
  overflow: hidden;

  &:after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0.85;
  }
}

/* overlay color options */
.banner--red {

  .banner-slider__item:after,
  &:after {
    background-color: var(--brand-red);
  }
}

.banner--green {

  .banner-slider__item:after,
  &:after {
    background-color: var(--brand-green);
  }
}

.banner--grey-dark {

  .banner-slider__item:after,
  &:after {
    background-color: var(--brand-grey-dark);
  }
}

.banner--grey-light {

  .banner-slider__item:after,
  &:after {
    background-color: var(--brand-grey-light);
  }
}

.banner--ghost-grey {

  .banner-slider__item:after,
  &:after {
    background-color: var(--ghost-grey);
  }

  .banner__title,
  .banner__text {
    color: var(--brand-grey-dark);
  }
}

/* size options */
@media (min-width: 768px) {
  .banner--small {
    .banner__cell {
      height: 250px;
    }
  }

  .banner--medium {
    .banner__cell {
      height: 450px;
    }
  }

  .banner--large {
    .banner__cell {
      height: 650px;
    }
  }
}

/* layout options */
.banner--clean {
  .banner__cell {
    @media (max-width: 767px) {
      height: 250px;
    }
  }
}

.banner--basic {
  .banner__cell {
    padding-bottom: 65px;
  }

  .banner__content {
    display: inline-block;
    width: 100%;
    max-width: 700px;
    padding: 20px 25px;
    background-color: #fff;
    position: relative;
    border: 1px solid #343741;
    box-shadow: 2px 2px 4px -2px #343741;
    border-style: groove;
  }

  .banner__title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 30px;

    strong {
      display: block;
      color: var(--brand-primary);
    }

    @media (min-width: 768px) {
      font-size: 40px;
    }
  }

  .banner__text {
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.2;
    color: var(--brand-grey-light);

    p {
      margin-bottom: 15px;

      &:last-child {
        margin-bottom: 0;
      }
    }

    @media (min-width: 768px) {
      font-size: 20px;
    }
  }

  .banner__btn {
    position: absolute;
    bottom: -25px;
    left: 25px;
  }
}

.banner--simple {
  &:after {
    background-image: url("../../../img/layout/dot-pattern.png");
    opacity: 1;
  }

  .banner__title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 30px;
    font-weight: 300;
    text-align: center;
    color: #fff;

    span {
      display: inline-block;
      color: #ff9d7e;
      position: relative;

      &:after {
        content: "";
        display: block;
        width: 100%;
        height: 2px;
        background-color: #ff9d7e;
        position: absolute;
        top: 50%;
      }
    }

    @media (min-width: 768px) {
      font-size: 40px;
    }
  }
}

.banner--5050 {
  &:after {
    opacity: 1;
  }

  .banner__cell {
    width: 50%;
    text-align: center;

    &:first-child {
      background-image: url("../../../img/layout/dot-pattern.png");

      +.banner__cell {
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;

        @media (max-width: 600px) {
          display: none;
        }
      }
    }
  }

  .banner__content {
    max-width: 400px;
    width: 100%;
    padding: 15px;
    margin-left: auto;
    margin-right: auto;
  }

  .banner__title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: 300;
    color: #fff;

    @media (min-width: 768px) {
      font-size: 36px;
    }
  }
}

.banner--slider {
  &:after {
    display: none;
  }

  .banner-slider {
    .slick-dots {
      height: 10px;
      position: absolute;
      bottom: 25px;
      width: 100%;
      text-align: center;

      @media (min-width: 768px) {
        bottom: 50px;
      }

      li {
        display: inline-block;
        padding-left: 5px;
        padding-right: 5px;

        &.slick-active {
          button {
            background-color: #fff;
          }
        }
      }

      button {
        display: block;
        padding: 0;
        margin: 0;
        width: 10px;
        height: 10px;
        border: 1px solid #fff;
        border-radius: 50%;
        text-indent: -10000px;
        background-color: transparent;
      }
    }

    .slick-arrow {
      position: absolute;
      top: 50%;
      z-index: 10;
      transform: translateY(-50%);
      cursor: pointer;

      &.slick-next {
        right: 30px;
      }

      &.slick-prev {
        left: 30px;
      }
    }
  }

  .banner-slider-large {
    .slick-dots {
      height: 10px;
      position: absolute;
      bottom: 25px;
      width: 100%;
      text-align: center;

      @media (min-width: 768px) {
        bottom: 50px;
      }

      li {
        display: inline-block;
        padding-left: 5px;
        padding-right: 5px;

        &.slick-active {
          button {
            background-color: #fff;
          }
        }
      }

      button {
        display: block;
        padding: 0;
        margin: 0;
        width: 10px;
        height: 10px;
        border: 1px solid #fff;
        border-radius: 50%;
        text-indent: -10000px;
        background-color: transparent;
      }
    }

    .slick-arrow {
      position: absolute;
      top: 50%;
      z-index: 10;
      transform: translateY(-50%);
      cursor: pointer;

      &.slick-next {
        right: 30px;
      }

      &.slick-prev {
        left: 30px;
      }
    }
  }

  .banner-slider__item {
    text-align: center;
    color: #fff;
    background-position: center center;
    background-size: cover;
    position: relative;

    &:after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      opacity: 0.85;
    }
  }

  .banner__cell {
    @media (max-width: 767px) {
      height: 400px;
    }
  }

  .banner__content {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;

    @media (min-width: 768px) {
      max-width: 70%;
    }
  }

  .banner__title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 26px;
    font-weight: 300;

    @media (min-width: 480px) {
      font-size: 30px;
    }

    @media (min-width: 768px) {
      font-size: 36px;
    }

    @media (min-width: 992px) {
      font-size: 42px;
    }

    @media (min-width: 1200px) {
      font-size: 48px;
    }
  }

  .banner__text {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 300;

    p {
      margin-bottom: 15px;

      &:last-child {
        margin-bottom: 0;
      }
    }

    @media (min-width: 480px) {
      font-size: 20px;
    }

    @media (min-width: 768px) {
      margin-bottom: 20px;
      font-size: 22px;
    }

    @media (min-width: 992px) {
      margin-bottom: 30px;
      font-size: 24px;
    }
  }
}

.banner--video {
  .banner__content {
    max-width: 610px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    text-align: center;
  }

  .banner__title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 26px;

    @media (min-width: 480px) {
      font-size: 30px;
    }

    @media (min-width: 768px) {
      font-size: 36px;
    }

    @media (min-width: 992px) {
      font-size: 42px;
    }

    @media (min-width: 1200px) {
      font-size: 48px;
    }
  }

  .banner__subtitle {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 400;

    @media (min-width: 768px) {
      font-size: 24px;
    }
  }

  .banner__text {
    font-size: 16px;
    font-weight: 300;
    color: #c1c2c5;

    p {
      margin-bottom: 10px;

      &:last-child {
        margin-bottom: 0;
      }
    }

    @media (min-width: 768px) {
      font-size: 18px;
    }
  }

  .banner__btn {
    display: inline-block;
    margin-top: 10px;

    svg {
      width: 60px;
      height: 60px;

      path,
      circle {
        stroke: #fff;
      }
    }
  }

  .vidyard-player-container {
    display: none !important;
  }

  .vidyard-player-embed {
    display: none;
  }
}

.banner--code {
  &:after {
    opacity: 1;
  }

  .banner__cell {
    padding-top: 10px;
    padding-bottom: 10px;

    &.banner__cell {
      height: auto;
    }
  }

  .banner__code {
    margin: 0;
    padding: 0;
    background-color: transparent;
    border: 0;
    font-size: 10px;
    line-height: 1.95;
    color: var(--brand-grey-light);
    overflow: hidden;

    strong {
      font-weight: 400;
      color: #fff;
    }

    @media (min-width: 992px) {
      font-size: 12px;
    }

    @media (min-width: 1200px) {
      font-size: 14px;
    }
  }
}


.banner__table {
  display: table;
  table-layout: fixed;
  width: 100%;
  position: relative;
  z-index: 9;
}

.banner__cell {
  display: table-cell;
  vertical-align: middle;
  padding-top: 40px;
  padding-bottom: 40px;
}

.wistia-hero-right {
  display: table-cell;
  vertical-align: middle;
}

@media (max-width: 992px) {
  .wistia-hero-right {
    display: table-footer-group;
  }

  .wistia-responsive-container {
    padding-bottom: 15px;
  }
}

.banner__scroll-indicator {
  display: block;
  width: 50px;
  height: 50px;
  padding-top: 5px;
  border: 2px solid #fff;
  border-radius: 50%;
  background-color: var(--brand-green);
  position: absolute;
  bottom: -25px;
  left: 50%;
  margin-left: -25px;
  text-align: center;

  svg {
    height: 35px;
    width: 35px;

    path {
      stroke: #fff;
    }
  }
}

.sw19-hero {
  width: 100%;
  height: 450px;
  background: #eee;
  overflow: hidden;
}

.sw19-hero .inner {
  max-width: 1200px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 90px 30px 0 30px;
  position: relative;
  background: no-repeat url(../../../img/layout/orbit-small.svg),
    no-repeat url(../../../img/layout/orbit.svg);
  background-position: left 10px center, calc(50% - 55px) 50%;
}

.sw19-hero .box {
  border: 2px solid #111111;
  max-width: 460px;
  padding: 20px 30px 0 30px;
  background: #fff;
  position: relative;
  z-index: 1;
}

.sw19-hero .box h1 {
  margin-top: 0;
}

.sw19-hero a {
  position: relative;
  bottom: -25px;
}

.sw19-hero p {
  font-size: 24px;
  color: #666;
  margin-bottom: 0px;
}

.sw19-hero .screen-contents {
  position: absolute;
  background-color: #fff;
  width: 515px;
  height: 290px;
  top: 48px;
  right: 44px;
}

.sw19-hero .screen-frame {
  position: absolute;
  top: 25px;
  right: -68px;
  width: 750px;
}

@media (max-width: 992px) {
  .sw19-hero .inner {
    background-position: calc(50% - 225px) 50%, calc(50% + 280px) 50%;
    padding: 40px 15px 0 15px;
  }

  .sw19-hero .screen-contents,
  .sw19-hero .screen-frame {
    display: none;
  }

  .sw19-hero .box {
    margin: 0 auto;
  }
}

/* One-off banner heights */
@media (min-width: 768px) {

  /* home page - 23408 */
  /* loggly 3.0 updates page - 23488 */
  .page-id-23488 .banner__cell,
  .page-id-23408 .banner__cell {
    height: 450px;
  }

  /* home page - 23408 */
  .page-id-23408 .banner__cell .banner__content {
    max-width: 500px;
  }

  /* product page - 23274 */
  /* Log analysis and reporting - 23512 */
  /* Cloud monitoring for everyone - 23500 */
  /* Security - 20363 */
  .page-id-23274 .banner__cell,
  .page-id-23512 .banner__cell,
  .page-id-23500 .banner__cell,
  .page-id-20363 .banner__cell {
    height: 400px;
  }
}