48 lines
		
	
	
	
		
			731 B
		
	
	
	
		
			CSS
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
	
		
			731 B
		
	
	
	
		
			CSS
		
	
	
	
	
	
#image-gallery {
 | 
						|
  margin: 2rem 0;
 | 
						|
}
 | 
						|
 | 
						|
.gallery {
 | 
						|
  column-count: 3;
 | 
						|
  column-gap: 1rem;
 | 
						|
}
 | 
						|
 | 
						|
.gallery-item {
 | 
						|
  break-inside: avoid;
 | 
						|
  margin-bottom: 1rem;
 | 
						|
  text-align: center;
 | 
						|
  list-style: none; /* ← important! */
 | 
						|
}
 | 
						|
 | 
						|
 | 
						|
.gallery-item img {
 | 
						|
  width: 100%;
 | 
						|
  height: auto;
 | 
						|
  border-radius: 12px;
 | 
						|
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
 | 
						|
  transition: transform 0.2s ease;
 | 
						|
}
 | 
						|
 | 
						|
.gallery-item img:hover {
 | 
						|
  transform: scale(1.6);
 | 
						|
}
 | 
						|
 | 
						|
.caption {
 | 
						|
  font-size: 0.9rem;
 | 
						|
  margin-top: 0.5rem;
 | 
						|
  margin-bottom: 0; /* ← just in case */
 | 
						|
  color: var(--fg-color);
 | 
						|
  list-style: none; /* ← extra-safe */
 | 
						|
}
 | 
						|
 | 
						|
@media (max-width: 768px) {
 | 
						|
  .gallery {
 | 
						|
    column-count: 2;
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
@media (max-width: 480px) {
 | 
						|
  .gallery {
 | 
						|
    column-count: 1;
 | 
						|
  }
 | 
						|
}
 |