title: How can I bring my text to the front and leave the image on the background?
body: <p>This is my first question after reading and solving my problems with stackoverflow's community. </p>
  
  <p>I want to bring my title and subtitle to the front. I've tried with z-index but it still doesn't work. thank you for the help.</p>
  
  <p>This is the code: <a href="https://codepen.io/gabrielacaesar/pen/gWyqJb?editors=1100" rel="nofollow noreferrer">https://codepen.io/gabrielacaesar/pen/gWyqJb?editors=1100</a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.container {
    padding: 0;
    max-width: 1500px;
    margin: 0 auto;
  }
  
  .title {
    height: 65vh;
    background-image: url("images/alvoradaBetoBarataPR7maio2017.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: top;
  }
  
  .grayscale {
    filter: grayscale(95%);
  }
  
  .blur {
    filter: blur(3px);
  }
  
  .grayscale.blur {
    filter: blur(3px) grayscale(95%);
    z-index: 5;
  }
  
  .title h1,
  .title h2 {
    z-index: 666;
    color: black;
    text-align: center;
    margin-top: 5px;
  }
  
  .title h1 {
    font-size: 85px;
    font-weight: 700;
    font-family: 'Signika', Helvetica, sans-serif;
  }
  
  .title h2 {
    font-size: 35px;
    font-weight: 400;
    font-family: 'Lato', Helvetica, sans-serif;
  }
  
  .title img {
    object-fit: cover;
    z-index: -666;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;section class="container"&gt;
    &lt;div class="title grayscale blur" alt="Foto: Beto Barata/Presidência da República - 7.maio.2017"&gt;
      &lt;h1&gt;alto escalão&lt;/h1&gt;
      &lt;h2&gt;os poderosos indicados pelo Palácio do Planalto&lt;/h2&gt;
    &lt;/div&gt;
  &lt;/section&gt;</code></pre>
  </div>
  </div>
  </p>