.banooye-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(0, 0, 0, 0);

  opacity: 0;

  animation: banooyeLightboxFade 0.3s ease forwards;

  overflow: hidden;

  touch-action: none;
}
.banooye-lightbox img {
  display: block;

  max-width: 95vw;
  max-height: 90vh;

  width: auto;
  height: auto;

  object-fit: contain;

  border-radius: 8px;

  opacity: 1;

  user-select: none;
  -webkit-user-drag: none;

  cursor: grab;

  transform-origin: center center;

  will-change: transform, opacity;

  transition:
    transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.22s ease;
}
.banooye-lightbox img.banooye-image-enter {
  opacity: 0;
  transform: scale(0.96);
}
.banooye-lightbox img.banooye-image-exit {
  opacity: 0;
  transform: scale(1.04);
}
.banooye-lightbox img.banooye-image-active {
  opacity: 1;
}
.banooye-lightbox img.banooye-dragging {
  transition: none;
  cursor: grabbing;
}
.banooye-lightbox-close {
  position: absolute;

  top: 15px;
  right: 20px;

  z-index: 10;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;

  font-size: 22px;

  cursor: pointer;

  opacity: 0;

  animation: banooyeLightboxClose 0.3s ease 0.1s forwards;

  background: rgba(0, 0, 0, 0.35);

  border-radius: 50%;

  transition: background 0.2s ease;
}
.banooye-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.6);
}
.banooye-lightbox-controls {
  position: absolute;

  left: 50%;
  bottom: 20px;

  transform: translateX(-50%);

  z-index: 10;

  display: flex;
  align-items: center;

  gap: 8px;

  padding: 8px;

  background: rgba(0, 0, 0, 0.45);

  border-radius: 12px;

  opacity: 0;

  animation: banooyeLightboxClose 0.3s ease 0.1s forwards;
}
.banooye-lightbox-controls button {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.15);

  color: #fff;

  font-size: 17px;

  cursor: pointer;

  transition: background 0.2s ease;
}
.banooye-lightbox-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
}
.banooye-zoom-value {
  min-width: 48px;

  color: #fff;

  font-size: 13px;

  text-align: center;
}
@keyframes banooyeLightboxFade {
  from {
    opacity: 0;
    background: rgba(0, 0, 0, 0);
  }

  to {
    opacity: 1;
    background: rgba(0, 0, 0, 0.88);
  }
}

@keyframes banooyeLightboxClose {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
.banooye-lightbox.banooye-lightbox-closing {
  opacity: 0;
  background: rgba(0, 0, 0, 0);

  transition:
    opacity 0.3s ease,
    background 0.3s ease;
}

.banooye-lightbox.banooye-lightbox-closing img {
  opacity: 0;
  transform: scale(0.94);

  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.4, 0, 1, 1);
}
.banooye-lightbox-prev,
.banooye-lightbox-next {
  position: absolute;

  top: 50%;
  transform: translateY(-50%);

  width: 48px;
  height: 48px;

  border: none;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.55);

  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;

  cursor: pointer;

  z-index: 20;

  transition:
    background 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}
.banooye-lightbox-prev {
  left: 25px;
}
.banooye-lightbox-next {
  right: 25px;
}
.banooye-lightbox-prev:hover,
.banooye-lightbox-next:hover {
  background: rgba(0, 0, 0, 0.8);

  transform: translateY(-50%) scale(1.08);
}
.banooye-lightbox-prev:disabled,
.banooye-lightbox-next:disabled {
  opacity: 0.25;

  cursor: default;

  pointer-events: none;
}
@media (max-width: 768px) {
  .banooye-lightbox {
    padding: 10px;
  }

  .banooye-lightbox img {
    max-width: 96vw;
    max-height: 88vh;
  }

  .banooye-lightbox-close {
    top: 10px;
    right: 10px;
  }

  .banooye-lightbox-controls {
    bottom: 12px;
  }
}

@media (max-width: 640px) {
  .banooye-lightbox-prev,
  .banooye-lightbox-next {
    width: 42px;
    height: 42px;

    font-size: 15px;
  }

  .banooye-lightbox-prev {
    left: 10px;
  }

  .banooye-lightbox-next {
    right: 10px;
  }
}
