.lightbox {
  display: block;
  will-change: top, left, width, height, filter, position;
  transition-timing-function: ease;
  transition-property: top, left, width, height, filter, position;
  cursor: zoom-in;
  transform: translate(0);

  &:hover {
    filter: brightness(110%);
  }

  &.active {
    position: absolute;
    cursor: zoom-out;
    z-index: 1000;
  }
}

.lightbox-overlay {
  position: fixed;
  transition-timing-function: ease;
  transition-property: opacity, background-color;
  opacity: 0;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  .lightbox-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}
