/* Masonry-style gallery */
#gallery {
  column-count: 3;          /* number of columns */
  column-gap: 1.5em;        /* space between columns */
}

.item {
  break-inside: avoid;      /* prevent images from being split */
  margin-bottom: 1.5em;
  display: inline-block;    /* needed so display:none works with filtering */
  width: 100%;
}

.thumb {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s;
}

.thumb:hover {
  transform: scale(1.03);
}

/* Responsive tweaks */
@media (max-width: 900px) {
  #gallery {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  #gallery {
    column-count: 1;
  }
}
