/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100; /* Sit on top */
    padding-top: 200px; /* 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-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1500px;
}

/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #fff;
    font-weight:bold;
    padding: 10px 0;
    height: 130px;
}

/* Add Animation */
.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)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 130px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.modalImageContainer {
    position: relative;
/*     display: inline-block; added */
    overflow: hidden; /* added */
}


.modalImageContainer:hover {
	cursor:pointer;	
}
.modalImageContainer:hover .contentImage {
    opacity: 0.3;
    filter: alpha(opacity=30); 
}
.modalImageContainer:hover a {
    filter: alpha(opacity=100); 
    opacity: 1; /* added */
    top: 0; /* added */
    z-index: 50;
}
/* added */
.modalImageContainer:hover a .scaleIcon {
    top: 50%;
    position: absolute;
    left: 50%;
    right: 0;
    transform: translate(-50%,-50%);
    color:#007CB0;
}
/* added */
.modalImageContainer a {
    display: block;
    position: absolute;
    top: -100%;
    opacity: 0;
    left: 0;
    bottom: 0;
    right: 0;
    text-align: center;
    color: inherit;
}


.scaleIcon{
	height:70px;
	width:70px;
	max-height:70%;
	max-width:70%;
}



/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 991px){
    .modal-content {
        width: 100%;
    }
}