.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1.5rem;
  justify-items: center;
  margin: 0;
  padding: 0;
}

.gallery-frame {
  padding: 0.5rem;
  font-size: 1.2rem;
  text-align: center;
  background-color: #333;
  color: #d9d9d9;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-img {
  transition: opacity 0.25s ease-in-out;
  max-height: 350px;
  width: auto;
  max-width: 100%;
}

figcaption {
  margin-top: 0.5rem;
}

.gallery-img:hover {
  transform: scale(1.0);
}