/* Styling Galleria & Carosello */
.gallery-container {
  max-width: 98%;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  list-style: none;
  padding: 0;
  margin: 0;
}

.carousel-slide {
  min-width: 33.333%; /* 3 immagini visibili su desktop */
  box-sizing: border-box;
  padding: 8px;
}

@media (max-width: 768px) {
  .carousel-slide {
    min-width: 100%; /* 1 immagine visibile su mobile */
  }
}

.gallery-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  /* border-radius: 8px; */
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.gallery-img:hover {
  transform: scale(1.03);
  filter: brightness(0.95);
}

/* Pulsanti Navigazione */
.nav-btn {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 14px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 50%;
  position: absolute;
  z-index: 10;
  transition: background 0.2s ease;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev-btn { left: -15px; }
.next-btn { right: -15px; }

/* Lightbox Fullscreen Overlay */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.lightbox-caption {
  color: #fff;
  margin-top: 15px;
  font-size: 16px;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}