/*
=======================================================
Lightbox.js
Version: 0.0.6
Author: Victor Diego <victordieggo@gmail.com>
License: MIT
Edited by Rob Bradley <rob@nwdm.co.uk>
=======================================================
1. Base Styles
2. Buttons
3. Videos
4. Animations
=======================================================
*/

/*
-------------------------------------------------------
1. Base Styles
-------------------------------------------------------
*/

.remove-scroll {
  overflow: hidden;
}

.lightbox-hide {
  top: -9999px;
  left: -9999px;
  position: absolute;
  visibility: hidden;
}

.lightbox-container {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5vw;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  position: fixed;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px); 
  z-index: 10; /* Edit - to appear over everything */
}

.lightbox-wrapper {
  position: relative;
}

.lightbox-image {
  /* Edit - to make image responsive on all screens */
  height: 100%;
  width: 100%;
  max-height: 95vh;
  max-width: 95vh;
  padding: 1%;
  object-fit: contain;
  background-color: white;
}

@media (max-width: 650px) {
  .lightbox-image {
    padding: 0;
    margin: 0;
  }
}

/*
-------------------------------------------------------
2. Buttons
-------------------------------------------------------
*/

.lightbox-btn {
  width: 1em;
  height: 2em;
  position: absolute;
  border-radius: 5em;
  border: none;
  box-shadow: none;
  transition: all 0.3s;
  background-color: rgba(0, 0, 0, 0.1);
  background-position: center;
  background-repeat: no-repeat;
}

.lightbox-btn:hover {
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
}

.lightbox-btn:disabled {
  cursor: initial;
  background-color: rgba(173, 173, 173, 0.3);
}

.lightbox-btn-close {
  top: -2.5em;
  right: -0.8em;
  background-size: 40%;
  background-color:rgba(29, 29, 29, 0);
  background-image: url('icons/icon-lightbox-close.svg');
}

.lightbox-btn-close:hover {
  background-color: rgba(0,0,0,0);
}

.lightbox-btn-next,
.lightbox-btn-previous {
  top: calc(50% - (2.2em / 2));
  background-size: 25% 80%;
  background-image: url('icons/icon-lightbox-arrow.svg');
}

.lightbox-btn-previous {
  left: 0;
  transform: rotate(180deg);
}

.lightbox-btn-next {
  right: 0;
}

/*
-------------------------------------------------------
3. Videos
-------------------------------------------------------
*/

.lightbox-video-wrapper {
  width: 80vw;
  overflow: hidden;
  position: relative;
  padding-bottom: 56.25%;
}

.lightbox-video-player {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}

/*
-------------------------------------------------------
4. Animations
-------------------------------------------------------
*/

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes createBox {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

@keyframes deleteBox {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(0);
  }
}
