/* ---- Project Gallery — lightGallery grid (single cover image) ---- */

.lg-gallery {
  columns: 1;
  column-gap: 0.75rem;
}

.lg-gallery .lg-item:not(:first-child) {
  display: none;
}

.lg-gallery .lg-item {
  break-inside: avoid;
  display: block;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  overflow: hidden;
  cursor: none;
}

.lg-gallery .lg-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
  -webkit-user-drag: none;
}

.lg-gallery .lg-item:hover img {
  transform: scale(1.04);
  opacity: 0.88;
}

@media (max-width: 991px) {
  .lg-gallery { columns: 1; }
}

@media (max-width: 479px) {
  .lg-gallery { columns: 1; }
}

/* ---- Gallery custom cursor (Lerp) ---- */

#gallery-cursor-container {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#gallery-cursor-container.is-visible {
  opacity: 1;
}

#gallery-cursor-ball {
  width: 6rem;
  height: 6rem;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#gallery-cursor-ball span {
  color: black;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
}

#gallery-cursor-container.is-visible #gallery-cursor-ball {
  transform: translate(-50%, -50%) scale(1);
}
