/* CSS Document */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox-img:hover {
  transform: scale(1.05);
}

.lightbox .caption {
  margin-top: 0.5rem;
  color: #fff;
  font-size: 1.1rem;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
}

.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  color: #fff;
  font-size: 3rem;
  padding: 0 1rem;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  border-radius: 5px;
}

.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }
