@keyframes popUp {
  from {
    transform: translateY(-50%) scale(1);
  }
  to {
    transform: translateY(-50%) scale(1.5);
  }
}

@keyframes fadeOutLeft {
  from {
    left: 50%;
    opacity: 1;
  }
  to {
    left: 40%;
    opacity: 0;
  }
}

@keyframes fadeOutRight {
  from {
    left: 50%;
    opacity: 1;
  }
  to {
    left: 60%;
    opacity: 0;
  }
}

@keyframes fadeInLeft {
  from {
    left: 40%;
    opacity: 0;
  }
  to {
    left: 50%;
    opacity: 1;
  }
}

@keyframes fadeInRight {
  from {
    left: 60%;
    opacity: 0;
  }
  to {
    left: 50%;
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.jbox-container .pop-up {
  -moz-animation-name: popUp;
  -o-animation-name: popUp;
  -webkit-animation-name: popUp;
  animation-name: popUp;
  -moz-animation-duration: 150ms;
  -o-animation-duration: 150ms;
  -webkit-animation-duration: 150ms;
  animation-duration: 150ms;
  -moz-animation-timing-function: ease-in-out;
  -o-animation-timing-function: ease-in-out;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  -moz-animation-iteration-count: 2;
  -o-animation-iteration-count: 2;
  -webkit-animation-iteration-count: 2;
  animation-iteration-count: 2;
  -moz-animation-direction: alternate;
  -o-animation-direction: alternate;
  -webkit-animation-direction: alternate;
  animation-direction: alternate;
}

.jbox-container .fade-out-left {
  animation-name: fadeOutLeft;
  animation-duration: 150ms;
  animation-iteration-count: 1;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

.jbox-container .fade-out-right {
  animation-name: fadeOutRight;
  animation-duration: 150ms;
  animation-iteration-count: 1;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

.jbox-container .fade-in-right {
  animation-name: fadeInRight;
  animation-duration: 150ms;
  animation-iteration-count: 1;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

.jbox-container .fade-in-left {
  animation-name: fadeInLeft;
  animation-duration: 150ms;
  animation-iteration-count: 1;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

.jbox-container .fade-in {
  animation-name: fadeIn;
  animation-duration: 0ms;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
}

.jbox-img {
  cursor: pointer;
}

.jbox-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(255 255 255 / 17%);
  display: none;
  z-index: 10;
  color: white;
  z-index: 12;
}

.jbox-container .img-alt-text {
  position: fixed;
  font-family: 'Open Sans', sans-serif;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  bottom: 0;
  left: 0;
  padding: 15px;
  width: 100%;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .jbox-container .img-alt-text {
    text-align: left;
    top: 0;
  }
}

@media screen and (min-width: 992px) {
  .jbox-container .img-alt-text {
    padding: 25px;
  }
}

.jbox-container img {
  position: fixed;
  top: 50%;
  left: 50%;
  -moz-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  -o-transform: translateX(-50%) translateY(-50%);
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  width: auto;
  max-height: 95%;
  max-width: 85%;
  border: 2px solid white;
  z-index: 11;
  box-shadow: 5px 5px 50px rgba(0, 0, 0, 0.5);
}

.jbox-container i {
  position: fixed;
  top: 50%;
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  z-index: 12;
  font-size: 48px;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  -moz-transition: all 150ms ease-in-out;
  -o-transition: all 150ms ease-in-out;
  -webkit-transition: all 150ms ease-in-out;
  transition: all 150ms ease-in-out;
}

.jbox-container i:hover {
  -moz-transform: translateY(-50%) scale(1.5);
  -ms-transform: translateY(-50%) scale(1.5);
  -o-transform: translateY(-50%) scale(1.5);
  -webkit-transform: translateY(-50%) scale(1.5);
  transform: translateY(-50%) scale(1.5);
}

@media screen and (min-width: 768px) {
  .jbox-container i {
    font-size: 65px;
  }
}

.jbox-container #next {
  right: 10px;
}

@media screen and (min-width: 768px) {
  .jbox-container #next {
    right: 25px;
  }
}

.jbox-container #prev {
  left: 10px;
}

@media screen and (min-width: 768px) {
  .jbox-container #prev {
    left: 25px;
  }
}

.jbox-container #close {
  top: 25px;
  right: 25px;
  font-size: 24px;
}

.jbox-container .hidden-btn {
  display: none;
}


.img-popup img {
  width: 100%;
  transition: 0.5s all ease-in-out;
}

.img-popup:hover img {
  transform: scale(1.1);
}



.image-hover {
  position: relative;
  width: 100%;
}

.image {
  display: block;
  width: 100%;
  height: auto;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .3s ease;
  background-color: rgba(12, 3, 51, 0.656);
  padding: 50px 30px;
}

.overlay h2{ color: #fff; text-align: center;}
.comer-box{border-left: #e55b31 solid 3px; margin: 30px 0 0 50px; padding-left: 20px; }
.comer-box p{ color: #fff; font-size: 20px;}

.image-hover:hover .overlay {
  opacity: 1;
}
.image-hover a{ color: #e55b31; font-size: 22px; margin:20px 0 0 70px; }
.image-hover a:hover{ color: #b7401c;}

.icon {
  color: white;
  font-size: 100px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.fa-user:hover {
  color: #eee;
}

.img-resize, .img-popup img {
  width: 100%;
  transition: 0.5s all ease-in-out;
  
}