body {
  background-color: ghostwhite;
  font-family: sans-serif;
}

p {
  line-height: 1.2em;
}

.gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  grid-auto-flow: row;
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(1, 1fr);
  }
}

.gallery .gallery-item {
  height: 20rem;
  overflow: hidden;
}

.gallery .gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery .gallery-item:hover {
  filter: brightness(0.8);
}

.gallery .gallery-item img {
  transition: transform 0.2s;
}

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

.gallery .gallery-item-subtitle {
  position: absolute;
  display: none;
  width: 100%;
  top: 0;
}

.gallery .gallery-item-subtitle p {
  padding: 5px;
}

.gallery .gallery-item:hover .gallery-item-subtitle {
  display: block;
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
}

.card {
  background-color: white;
  padding: 2rem;
  box-shadow: 10px 10px black;
}