.gallery-item {
  width: 160px;
  height: 160px;

  a {
    display: inline-block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 0 6px black;

    img {
      position: absolute;
      top: 50%;
      transform: translate(0, -50%);
      width: 300px;
      height: 250px;
      object-fit: cover;
    }

    .gallery-item_description {
      position: absolute;
      bottom: 0;
      width: 100%;
      text-align: center;
      color: white;
      background-color: #00000090;
      line-height: 1.5rem;
      padding: 0 5px;
    }
  }
}

@media (min-width: 600px) {
  .gallery-item {
    width: 300px;
    height: 250px;
  }
}