.image-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.image-gallery figure {
  margin: 0;
}
.image-wrapper {
  width: 100%;
  position: relative;
  padding-bottom: 100%;
  overflow: hidden;
  cursor: pointer;
}
.image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  display: flex;
}

.lightbox-overlay.hidden {
  display: none;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1001;
  cursor: default;
}

#lightbox-img:hover {
  cursor: zoom-in;
}

#lightbox-img.zoomed {
  cursor: zoom-out;
}

#lightbox-counter {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  font-size: 1.2rem;
  z-index: 1003;
}

.lightbox-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  pointer-events: none;
}

.lightbox-nav button {
  pointer-events: all;
}

.lightbox-nav.left {
  left: 10px;
}

.lightbox-nav.right {
  right: 10px;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  font-size: 24px;
  font-weight: bold;
  color: black;
  cursor: pointer;
  user-select: none;
  border-radius: 0;
}

.nav-btn:hover {
  background: rgba(255,255,255,1);
}
