/*GALLERIA LIGHTBOX*/
  /* Sfondo opacizzato */
  .lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh; /* 🔹 limita l’altezza al 90% dell’altezza visibile */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .lightbox-content img {
    max-width: 100%;
    max-height: 90vh; /* 🔹 anche qui per sicurezza */
    object-fit: contain; /* 🔹 fa sì che non venga tagliata */
    border-radius: 18px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
  }

  .lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /*background: rgba(255,255,255,0.2);*/
    background: rgba(255,242,0,0.8);
    border: 1px solid var(--black);
    color: var(--black);/* white;*/
    font-size: 2rem;
    padding: 2px 13px 6px 15px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 100px;
  }

  .lightbox-close:hover,
  .lightbox-prev:hover,
  .lightbox-next:hover {
    background: rgba(255,242,0,0.3);
    color: var(--yellow);
  }

  .lightbox-close {
    top: 5px;
    right: -60px;
    transform: none;
    font-size: 2rem;
  }
  .lightbox-prev { left: -60px; }
  .lightbox-next { right: -60px; }

  @media (max-width: 768px) {
    .lightbox-close { right: 5px; }
    .lightbox-prev { left: 5px; }
    .lightbox-next { right: 5px; }
    
    .lightbox-close:hover,
    .lightbox-prev:hover,
    .lightbox-next:hover {
      background: rgba(255,242,0,0.4);
      color: var(--black);
    }
  }
