@import "variables";
@import "mixins";
@import "animations";

// CONTENT

a.lightbox > img.img-lightbox{
  position: relative;
  height: 200px;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  object-fit: cover;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: #FFF; /* Fallback color */
  background-color: rgba(0, 0, 0, 0.1); /* Black w/ opacity */
  opacity: 1;
  
  &:hover, &:focus{
    cursor: pointer;
  }
}

.modal-active {
  display: block;
  @include animation(fade-in $blur-duration)
}

/* Modal Content/Box */
.modal-content {
  background-color: transparent;
  margin: 20px auto; /* 15% from the top and centered */
  height: auto;
  width: 60%; /* Could be more or less, depending on screen size */
  @include responsive(){
    width: 100%;
  }
  &:hover, &:focus{
    cursor: default;
  }
}

/* The Close Button */
.close {
  color: #aaa;
  font-size: 28px;
  position: absolute;
  width: 60%;
  margin-left: -10px;
  margin-top: 10px;
  text-align: right;
  @include responsive(){
    display: none;
  }
}

.close:hover,
.close:focus {
  color: #8f8f8f;
  text-decoration: none;
  cursor: pointer;
}

.blur-active .wrapper {
  filter: blur(13px);
  animation: image-blur 1s;
}

.blur-out .wrapper {
  filter: blur(0px);
  @include animation(image-blur-out $blur-duration);
}

.wrapper {
  -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000;
  -webkit-transform: translate3d(0,0,0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000;
  transform: translate3d(0,0,0);
  transform: translateZ(0);
}