/* Old Home Page Hero Section, as in templates/blocks/home-page-hero.php */

/* .hero doubled up so these beat the theme's .hero rules in dev/styles.css, which can load after this file */
.hero.papertrail_homepage_hero_old {
  overflow: hidden;
  position: relative;
  text-align: center;
  padding: 140px 0;
  border-bottom: none;

  video {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 0;
    width: 100%;
    transform: translateX(-50%);
  }

  @media all and (max-width: 50em) {
    background: #000 url("../../assets/images/loglines-bg.png");

    video {
      display: none;
    }
  }

  * {
    position: relative;
    z-index: 2;
  }

  h1,
  h2,
  h3 {
    margin: 0;
  }

  h1 {
    color: #fff;
    font-size: 3.25em;
    line-height: 140%;
    margin-bottom: 10px;
  }

  h2 {
    font-weight: bold;
    font-size: 1.4em;
    color: #fff;
    margin-bottom: 20px;
    line-height: 40px;
  }

  h3 {
    color: #aaa;
    font-size: 1.25em;
    margin: 0.5em 0 1.5em 0;
  }

  .btn {
    padding: 15px 100px;
    font-weight: 600;
    border: 0;
  }
}

/* Variation B as Optimizely showed it before this block (experiment 6224567675387904): it
   added these on top of the Papertrail Homepage Hero block's styles. If B wins, move the ones
   to keep into papertrail-homepage-hero/styles.css before replacing this block. Not child
   selectors: ACF wraps the inner blocks in .acf-innerblocks-container */
[data-sw-hp-hero="b"] {
  .papertrail_homepage_hero .header {
    width: 1100px;
  }

  @media (min-width: 768px) {
    height: 560px;
    overflow: hidden;
  }

  @media (max-width: 767px) {
    overflow-x: clip;

    .papertrail_homepage_hero {
      overflow: clip;
      padding-bottom: 0;

      > div {
        min-width: 0;
        max-width: 100%;
      }

      /* Media column, widened into the section's padding */
      > div:nth-of-type(2) {
        align-self: stretch;
        width: auto;
        max-width: none;
        margin: 0 -12px;
        overflow: clip;
      }

      .header {
        width: 100%;
        max-width: 8.3em;
        margin: 0 auto;
        overflow-wrap: break-word;
        font-size: clamp(27px, 8.8vw, 40px);
        line-height: 1.15;
      }

      .subheader {
        text-wrap: pretty;
      }

      .container {
        width: 100%;
        max-width: 100%;
      }

      .media_container,
      .media_wrapper {
        max-width: 100%;
        overflow: clip;
      }

      .media_wrapper {
        aspect-ratio: 3.608;
        min-height: 0;
      }

      /* Crops the video's edges */
      .media-file {
        width: 115.97%;
        max-width: none;
        margin-left: -7.93%;
        margin-right: -8.04%;
      }

      .pause_toggle {
        top: 8.172%;
        right: 3.557%;
        width: 2.718%;
        height: auto;
        aspect-ratio: 1;
        border: 0.22vw solid #ff6200;
        z-index: 4;

        svg {
          flex: none;
          width: 80%;
          height: auto;
        }

        /* Larger tap target */
        &::after {
          content: "";
          position: absolute;
          top: 50%;
          left: 50%;
          width: 44px;
          height: 44px;
          transform: translate(-60%, -20%);
          border-radius: 50%;
        }
      }
    }
  }
}
