#grid-wrapper {
  display: flex;
  justify-content: center;
  align-content: center;
  max-width: 100%;
  margin: 2rem;
}
#grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, auto));
  gap: 2rem;
  padding: 1rem;
  align-items: start;
}
@media (max-width: 800px) {
  #grid {
    grid-template-columns: auto auto auto;
  }
}
@media (max-width: 600px) {
  #grid {
    grid-template-columns: auto auto;
  }
}
.item {
  display: block;
  overflow: hidden;
  max-width: 150px;
  text-align: center;
  padding: 2px;
  border: 1px solid black;
  border-radius: 4px;
  transition: transform 0.15s;
  background: white;
}
.item:hover {
  cursor: pointer;
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.8);
}
.item img{
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid black;
}
.item span {
  height: auto;
  color: rgb(50, 130, 240);
  font-weight: bold;
  pointer-events: none;
  overflow-wrap: break-word;
}