.gallery {
  column-count: 3;
  column-gap: 20px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;*/
  overflow: hidden;
  transition: transform 0.2s;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item h4 {
  padding: 10px;
  margin: 0;
  font-size: 16px;
  text-align: center;
}

body.dark .gallery-item h4 {
	color:var(--white);
  
}

/************************************* 480px *************************************/
@media only screen and (max-width: 640px) {
	 
 .gallery {
  column-count: 2;
  column-gap: 10px;
}
}