.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 40px;
  background: linear-gradient(45deg, hotpink, lime, cyan, yellow); /* totally clashing */
  padding: 20px;
}

.gallery img {
  flex: 1 1 150px;
  width: 200px;
  height: 120px;
  border: 5px solid magenta;
  border-radius: 50%; /* wacky rounded images */
  transform: rotate(calc(15deg * var(--i))); /* slight rotation for chaos */
  transition: all 0.5s ease;
  filter: hue-rotate(180deg) saturate(3) brightness(1.5); /* makes colors pop, crazy */
}

/* Hover insanity: spinning, scaling, hue changes */
.gallery img:hover {
  transform: rotate(720deg) scale(1.5) skewX(25deg);
  filter: invert(1) hue-rotate(360deg) saturate(5) brightness(2);
  z-index: 10; /* makes hovered image “jump” above others */
}

@media (max-width: 600px) {
  .gallery {
    gap: 5px; /* compressed, messy spacing */
    justify-content: flex-start; /* uneven alignment */
    background: repeating-linear-gradient(45deg, red, yellow 10px, blue 20px);
  }
}