/* Stile per la gallery (Thumbnail) */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  justify-content: center;
}

.gallery img.thumbnail {
  width: 350px;
  height: auto;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

/* Extra Small (XS) - Fino a 576px */
@media (max-width: 575.98px) {
   .gallery img.thumbnail {
  		width: 150px;
    }
}

/* Small (SM) - Da 576px a 767px */
@media (min-width: 576px) and (max-width: 767.98px) {
	.gallery img.thumbnail {
  		width: 250px;
    }
}	

.gallery img.thumbnail:hover {
  transform: scale(1.05);
  border-color: #007bff;
}

/* Lightbox (Image Completa) */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.lightbox img.complete {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* Pulsante di chiusura */
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2em;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10100;
}

.lightbox .close:hover {
  color: #f00;
}

/* Pulsanti di navigazione */
.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2em;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  z-index: 10100;
}

.lightbox .prev {
  left: 20px;
}

.lightbox .next {
  right: 20px;
}
