/* ======================================================
   Jonathan Gallery
   La gestione delle colonne è demandata al JS
   ====================================================== */

.jonathan-gallery {
  display: grid;
  gap: 12px;
  width: 100%;
}


/* ======================================================
   Gallery item – quadrato perfetto
   ====================================================== */

.jonathan-gallery-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background: #000; /* fallback */
}


/* ======================================================
   Immagine
   ====================================================== */

.jonathan-gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.35s ease;
  will-change: transform;
}


/* ======================================================
   Hover
   ====================================================== */

.jonathan-gallery-item:hover img {
  transform: scale(1.05);
}


/* ======================================================
   Lightbox
   ====================================================== */

.jonathan-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.jonathan-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
}

.jonathan-lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  line-height: 1;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
}

