/* Cross */
.cross {
  position: fixed;
  right: 0;
  top: 0;
  margin: 30px 55px 0 0;
  cursor: pointer;
  transition: 300ms all ease-in-out;
  z-index: 99;
  opacity: 1;
  will-change: transform;
}

.cross::after,
.cross::before {
  position: absolute;
  content: '';
  width: 30px;
  height: 3px;
}

.cross::after {
  transform: rotate(45deg);
}

.cross::before {
  transform: rotate(-45deg);
}

/* Cross Themes */
.cross--light::after,
.cross--light::before {
  background-color: black;
}

.cross--dark::after,
.cross--dark::before {
  background-color: white;
}

/* Image classes */
.slb {
  box-shadow: 2px 2px 12px 1px rgba(0, 0, 0, 0.2);
  cursor: zoom-in;
}

.slb--invert {
  box-shadow: 2px 2px 12px 1px rgba(255, 255, 255, 0.3);
}

.slb--opened {
  cursor: auto;
}

/* Animation */
.pop-in {
  animation: pop-in 250ms;
}

.pop-out {
  animation: pop-out 250ms;
}

/* Overlay */
#overlay {
  display: none;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  pointer-events: none;
  cursor: pointer;
  will-change: transform;
  z-index: 999;
}

/* Helper */
.center {
  max-height: 90%;
  max-width: 90%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

/* Animation definitions */
@keyframes pop-in {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes pop-out {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.5); }
}
