.lightbox picture {
    overflow: hidden;
}

.lightbox img {
    cursor: pointer;
    margin: auto;
    display: block;
}

.lightbox__outer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background-color: rgba(0,0,0,0.7);
    transition: 500ms;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__inner img {
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 80%;
}

@media (max-width: 992px) {
    .lightbox__inner img {
        max-width: 50%;
        max-height: 50%;
    }
}

.lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
}

.lightbox__close:before, .lightbox__close:after {
    position: absolute;
    left: 15px;
    content: ' ';
    height: 33px;
    width: 2px;
    background-color: #fff;
  }

  .lightbox__close:before {
    transform: rotate(45deg);
  }

  .lightbox__close:after {
    transform: rotate(-45deg);
}

.lightbox__nav-prev,
.lightbox__nav-next {
    position: absolute;
    top: calc(50vh - 0.5rem);
    width: 2rem;
    height: 2rem;
    cursor: pointer;
}

.lightbox__nav-prev {
    left: 2rem;
}

.lightbox__nav-next {
    right: 2rem;
}
  
.lightbox__nav-prev:after,
.lightbox__nav-next:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    display: inline-block;
}

.lightbox__nav-prev:after {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}

.lightbox__nav-next:after {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

