/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 3; /* Sit on top */
    padding-top: 50px; /* 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 img:hover {
	opacity: 100;
}

/* Modal Content (Image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
/*    max-width: 500px;*/
}

/* The Close Button */
.close {
  color: #aaaaaa;
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  font-size: 28px;
  font-weight: bold;  
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
/*    color: #ccc;*/
	color: white;
    padding: 10px 0;
    height: 50px;
	z-index: 9999;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #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)}
}

/* 100% Image Width on Smaller Screens */
/*@media only screen and (max-width:700px){
    .modal-content {
        width: 100%;
    }*/
    
    
@media only screen and (min-width: 768px) {

.close {
	top: 1em;
	right: 1em;
}
}

@media only screen and (min-width: 1400px) {

.close {
		top: 1em;
		right: 15em;
}
}
