body {
  
  font-family: Arial, sans-serif;
}

.title {
  text-align: center;
  margin-top: 30px;
}

.grid-collage {
  background: #000;
  padding: 18px;
  width: 95%;
  max-width: 1200px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 10px;
  border-radius: 8px;
}

.grid-collage img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
  cursor: pointer;
}

/* Hover effect */
.grid-collage img:hover {
  transform: scale(1.25);
  z-index: 99;
  box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}
.grid-item {
  position: relative;
}

/* Hover preview image */
.grid-item::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 70px;           /* preview appears to the right */
  width: 220px;
  height: 220px;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.8);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.grid-item:hover::after {
  opacity: 1;
  transform: scale(1);
}
