.gallery {
  margin: 0.8rem 0;
}

.gallery > p {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin: 0;
}

@media screen and (max-width: 600px) {
  .gallery > p {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery a {
  display: block;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 0.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
