/* CSS Document */
main {
  .hero {
    box-shadow: var(--box-shadow);
    margin: 0 20px;
    background: url(../images/fences_hero.jpg) no-repeat center center / cover;
    height: 20vh;
    display: grid;
    align-items: center;
    padding: 20px;

    h1 {
      font-size: 1.75rem;
      font-weight: bold;
      margin: 0;
      padding: 0;
      line-height: 1.75rem;
      color: #fff;
      text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.75);
    }
  }

  .gallery {
    margin: 0 20px;
    max-width: 1280px;

    ul {
      display: grid;
      gap: 20px;
      padding: 0;
      list-style: none;

      li {

        h1 {
          font-size: 1rem;
          line-height: 1rem;
          margin-bottom: 10px;
        }

        a {

          img {
            width: 100%;
          }
        }

        video:nth-of-type(1) {
          margin-bottom: 10px;
        }

        video {
          max-height: 180px;
        }
      }
    }
  }
}

@media screen and (min-width: 576px) {
  .gallery {

    ul {
      grid-template-columns: auto auto;

      li {}
    }
  }
}