.carousel-container {
  position: relative;
  width: 100%;
  /* max-width: 1200px; */
  overflow: hidden;
}

.carousel {
  display: flex;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-image {
  width: 24%;
  flex-shrink: 0;
  object-fit:scale-down;
  cursor: pointer;
  aspect-ratio: 1; /* Aggiungi questa proprietà per rendere l'immagine quadrata */ 
  padding: 1%;
}

/* Rimuovere il margine dal lato destro dell'ultima immagine */
.carousel-image:last-child {
  margin-right: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
 background-color: rgba(0, 112, 138, 0.6);
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 1;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.carousel-btn:focus {
  outline: none;
}

@media (max-width: 768px) {
  .carousel-image {
    width: 50%;
  }
}

@media (max-width: 480px) {
  .carousel-image {
    width: 100%;
  }
}

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

.lightbox.visible {
  display: flex;
}

.lightbox-image {
  max-width: 90%;
  max-height: 80%;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1001;
}