/* The Modal (background) */
#modal-image-popup {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 110px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-image-popup-content {
  margin: auto;
  display: block;
  max-width: 1280px;
}

/* Caption of Modal Image */
#modal-image-popup-caption {
  margin: auto;
  display: block;
  max-width: 1280px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-image-popup-content,
#modal-image-popup-caption {
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)}
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* Close Button */
.modal-image-popup-closing {
  position: absolute;
  top: 50px;
  right: 15px;
  color: #f1f1f1;
  font-size: 50px;
  font-weight: bold;
  transition: 0.3s;
}
.modal-image-popup-closing:after {
  content: "\00D7";  /* &times; for close text 'icon'. */
}

.modal-image-popup-closing:hover,
.modal-image-popup-closing:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
  text-shadow: -1px  0px 0 #fff,
               +1px  0px 0 #fff,
                0px -1px 0 #fff;
                0px +1px 0 #fff
               -1px -1px 0 #fff,
               -1px +1px 0 #fff,
               +1px -1px 0 #fff;
               +1px +1px 0 #fff;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
  .modal-image-popup-content {
    width: 100%;
  }
}