/* Style the Image Used to Trigger the Modal */
#myImg0,#myImg1,#myImg2,#myImg3,#myImg4,#myImg5,#myImg6,#myImg7,#myImg8,#myImg9,#myImg10,#myImg11,#myImg12,#myImg13,#myImg14,#myImg15,#myImg16,#myImg17,#myImg18,#myImg19,#myImg20,#myImg21,#myImg22,#myImg23,#myImg24,#myImg25,#myImg26,#myImg27,#myImg28,#myImg29,#myImg30#myImg31,#myImg32,#myImg33,#myImg34,#myImg35,#myImg36,#myImg37,#myImg38,#myImg39{
    /* border-radius: 5px; */
    cursor: pointer;
    transition: 0.3s;
}


/* The Modal (background) */
/* .modal1,.modal2,.modal3,.modal4,.modal5,.modal6,.modal7,.modal8,.modal9,.modal10,.modal11,.modal12,.modal13,.modal14,.modal15,.modal16,.modal17,.modal18,.modal19,.modal20,.modal21,.modal22,.modal23,.modal24,.modal25,.modal26,.modal27,.modal28,.modal29,.modal30.modal31,.modal32,.modal33,.modal34,.modal35,.modal36,.modal37,.modal38,.modal39 { */
.modal{
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* 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(45,45,45,0.95); /* Black w/ opacity */
	opacity:1;
	}

/* Modal Content (Image) */
.modal-content {
    margin: auto;
    display: block;
    /* width: 80%; */
    /* max-width: 700px; */
	max-height:520px;
	border:5px solid white;
	/* z-index:999999999999999999999999999999999999999; */
}
.modal-content img{
	opacity:1;
	max-height:520px;
	/* z-index:999999999999999999999999999999999999999; */
	}
/* 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: #fff;
    padding: 10px 0;
	font-size:1em;
    height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
	-o-animation-name: zoom;
    -o-animation-duration: 0.6s;
    -moz-animation-name: zoom;
    -moz-animation-duration: 0.6s;
    -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)}
}

@-webkit-keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

@-o-keyframes zoom {
    from {-webkit-transform:scale(0)}
    to {-webkit-transform:scale(1)}
}

@-o-keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

@-moz-keyframes zoom {
    from {-webkit-transform:scale(0)}
    to {-webkit-transform:scale(1)}
}

@-moz-keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

@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: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
	z-index:81;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

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