.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
  display: none;
}

.lightbox--active {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

.lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 1);
  cursor: none;
}

.lightbox__container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

@media (max-width: 768px) {
  .lightbox__container {
    padding: 1rem;
  }
}

.lightbox__image-wrapper {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  cursor: none;
}

.lightbox__image--loaded {
  opacity: 1;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: white;
  border: none;
  color: #333;
  padding: 0.75rem;
  cursor: none;
  transition: all 0.3s ease;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {

  transform: scale(1.1);
}

.lightbox__prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox__next:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox__close:active,
.lightbox__prev:active,
.lightbox__next:active {
  transform: scale(0.95);
}

.lightbox__prev:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox__next:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox__close svg,
.lightbox__prev svg,
.lightbox__next svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .lightbox__close,
  .lightbox__prev,
  .lightbox__next {
    width: 40px;
    height: 40px;
    padding: 0.5rem;
  }

  .lightbox__close svg,
  .lightbox__prev svg,
  .lightbox__next svg {
    width: 20px;
    height: 20px;
  }
}

.lightbox__close {
  top: 2rem;
  right: 2rem;
  z-index: 10001;
}

@media (max-width: 768px) {
  .lightbox__close {
    top: 1rem;
    right: 1rem;
  }
}

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

@media (max-width: 768px) {
  .lightbox__prev {
    left: 1rem;
  }
}

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

@media (max-width: 768px) {
  .lightbox__next {
    right: 1rem;
  }
}

.lightbox__counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #333;
  font-size: 1rem;
  background: white;
  padding: 0.5rem 1rem;
  border: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .lightbox__counter {
    bottom: 1rem;
    font-size: 0.875rem;
  }
}

.js-lightbox-trigger {
  cursor: none;
  transition: transform 0.3s ease;
}

.js-lightbox-trigger:hover {
  transform: scale(1.02);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body.lightbox-open {
  overflow: hidden;
}

