body {
  background-color: #eee;
}

.naglowek_galeria
    {
      background-color: rgba(0,0,0,0.6);
      background-size: cover;
      padding: 2%;
      text-align: center;
      position: relative;
      overflow: hidden;
      margin-bottom: 1em;
    }
    .naglowek_galeria:before {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
    background-image: url('https://picsum.photos/1000/500');
    background-repeat: no-repeat;
    background-position: center ;
    -ms-background-size: cover;
    -o-background-size: cover;
    -moz-background-size: cover;
    -webkit-background-size: cover;
    background-size: cover;
    background-attachment: fixed;
    }
    .hline
    {
      background-color: rgba(255, 255, 255, 0.4);
      margin-bottom: 1em;
    }
    h1
    {
      color: whitesmoke;
      margin: 0;
      padding: 0;
      font-size: 4em;
      font-weight: 400;
      z-index: 1;
      position: relative;
      display: inline;
      
    }

    h2
    {
      font-family: 'Open Sans Condensed', sans-serif;
      font-size: 2em;
      text-shadow: black 2px;
    }
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
  }
}
@media (max-width: 400px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
  }
}

