.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 10px;
  margin-bottom: 10px;
}

.gallery img {
	width: 100%;
	aspect-ratio: 1 / 1; 
	object-fit: cover; 
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-image {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

.lightbox .close {
  position: absolute;
  top: 20px; right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.lightbox .prev, .lightbox .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: white;
  padding: 10px;
  user-select: none;
}

.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }

.lightbox .close,
.lightbox .prev:hover,
.lightbox .next:hover {
  color: #ccc;
}

@media screen and (max-width: 768px) {

.gallery {
	grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
	gap: 5px;
}

.lightbox .prev, 
.lightbox .next,
.lightbox .prev:hover,
.lightbox .next:hover {
  color: #0183D7;
}

}