.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox--active {
  display: flex;
  opacity: 1;
}

.lightbox__content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox__image {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  text-align: center;
  padding: 0 1rem;
  max-width: 600px;
}

.lightbox__counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
  opacity: 0.8;
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__close svg {
  width: 32px;
  height: 32px;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  opacity: 0.8;
  border-radius: 0.5rem;
}

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.4);
  opacity: 1;
}

.lightbox__prev svg,
.lightbox__next svg {
  width: 40px;
  height: 40px;
  display: block;
}

.lightbox__prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .lightbox__prev,
  .lightbox__next {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .lightbox__prev {
    left: 1rem;
  }
  
  .lightbox__next {
    right: 1rem;
  }
  
  .lightbox__counter {
    bottom: 1rem;
  }
  
  .lightbox__content {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .lightbox__image {
    max-height: 80vh;
  }
}

.gallery-item img {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.gallery-item img:hover {
  opacity: 0.85;
}
