/* Modal window */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 9999; /* Sit on top */
  padding-top: 20px; /* 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.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  position:relative;
  background-color: rgba(255,255,255,0.9);
  -webkit-box-shadow: 0 0 15px 0px #333;
  box-shadow: 0 0 10px 5px #4D4D4D;
  margin: auto;
  padding: 0px;
  border: 4px solid #777;
  width: 100%;
  max-width:630px;
}
@media only screen and (min-width:1px) and (max-width:660px) {
  .modal-content { max-width:90%; }
}

.modal-content img { 
  width:100%;
  display:block; /* Remove white space below image hack */
}

/* The Close Button */
.close {
  position:absolute;
  top:10px;
  right:10px;
  color: #fff;
  float: right;
  font-size: 40px;
  font-weight: bold;
  padding:0px 15px;
  background-color:rgba(40,40,40,0.8);
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
