html.finr-lightbox-open,
html.finr-lightbox-open body{
  overflow: hidden;
}

.finr-lightbox{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  color: #fff;
}

.finr-lightbox.is-open{
  display: block;
}

.finr-lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 30, .88);
  backdrop-filter: blur(8px);
}

.finr-lightbox__panel{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.finr-lightbox__close{
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 34px;
  line-height: 38px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.finr-lightbox__close:hover{
  background: rgba(255,255,255,.20);
}

.finr-lightbox__stage{
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.finr-lightbox__stage.is-dragging{
  cursor: grabbing;
}

.finr-lightbox__img{
  display: block;
  max-width: min(96vw, 1800px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  transform-origin: center center;
  transition: transform .06s linear;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.finr-lightbox__tools{
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 8px 0 0;
  pointer-events: none;
}

.finr-lightbox__hint{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

@media (max-width: 640px){
.finr-lightbox__panel{
    padding: 10px;
  }

.finr-lightbox__close{
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    font-size: 32px;
  }

.finr-lightbox__img{
    max-width: 98vw;
    max-height: 84vh;
    border-radius: 10px;
  }

.finr-lightbox__hint{
    font-size: 11px;
  }
}
