/* Miniatury */
.gallery {
  display:flex;
  gap: 10px;
  flex-wrap:wrap;

	
}
.gallery img {
  width: 150px;
	height: 150px;
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.2s;
	padding-top: 10px;
	padding-right: 10px;
	
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Lightbox tło */
#lightbox {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10004;
}
#lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

/* Zdjęcie */
#lightbox img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
#lightbox.show img {
  transform: scale(1);
}

/* Krzyżyk zamykania */
#closeBtn {
  position: absolute;
  top: 40px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  pointer-events: auto;
  z-index: 10004;
}
#closeBtn:hover {
  color: #ccc;
}

/* Nawigacja */
#prevBtn, #nextBtn {
  position: absolute;
  top: 50%;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  padding: 10px;
  user-select: none;
 
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
}
#prevBtn { left: 30px; }
#nextBtn { right: 30px; }
#prevBtn:hover, #nextBtn:hover {  }