/* --- Zoom universale per immagini --- */
img.zoomable {
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img.zoomable:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  user-select: none;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-close:hover {
  background: #048742;
}

.lightbox-close span {
  font-size: 1.2rem;
  color: white;
}
@media (max-width: 768px) {
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.9);
    z-index: 9998;
    flex-direction: column;
  }

  .lightbox img {
    max-width: 95vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
  }

  .lightbox-close {
    position: fixed;
    /* top: 15px; */
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.3rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.75);
    padding: 10px 22px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 10001; /* sopra alla foto */
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 8px rgba(0,0,0,0.6);
  }

  .lightbox-close span {
    font-size: 1.1rem;
  }

  .lightbox-close:hover {
    background: #048742;
  }
}
