::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #fff;
  padding: 1px;
}
::-webkit-scrollbar-thumb {
  background: #9ca2b0;
  border-radius: 4px;
}
.lightbox::-webkit-scrollbar-track {
  background: #000;
}
.lightbox::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}

.lightbox {
  position:fixed;
  top: 0;
  left: 0;
  width:100%;
  height:100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 10;
  overflow: auto;
  animation: lightboxIn .5s;
  transition: opacity .5s
}
.lightbox.fadeOut {
  opacity: 0;
}
.lightbox__prev, .lightbox__next {
  border: none;
  background: url(svg/right-arrow.svg);
  background-repeat: no-repeat;
  background-size: 16px 28px;
  background-position: center center;

  width: 50px;
  height: 100%;
  position: fixed;
  top: 0;
  right: 0;
  margin-top: -14px;
  z-index: 11;
}
.lightbox__prev {
  right: auto;
  left:0;
  transform: rotate(180deg);
}
.lightbox__close {
  border: none;
  width:30px;
  height: 30px;
  background: url(svg/close.svg) center center / 16px 28px no-repeat transparent;
  position: fixed;
  top: 40px;
  right: 10px;
  z-index: 12;
}
.lightbox button{
  opacity: .5;
  cursor: pointer;
  transition: opacity .5s;
  text-indent: -3000px;
}
.lightbox button:hover {
  opacity: 1;
}
.lightbox__container{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 50px;
  min-height:100vh;
  margin-right: 50px;
}
.lightbox__container img{
  max-width: 100%;
  max-height:100vh;
  height: auto;
  animation: lightboxIn .5s;
}
.lightbox__loader {
  border: none;
  width:38px;
  height: 38px;
  opacity: .5;
  background: url(svg/loader.svg) center center no-repeat;
}
@keyframes lightboxIn{
  from {opacity: 0;}
  to {opacity: 1;}
}
