@charset "utf-8";
/* CSS Document */

/* The Modal Thumb */
.modal-thumb {
	border:2px gray solid;
	width:100%;
	max-width:240px;
	cursor:zoom-in;
}

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

/* Modal Content (image) */
.modal-content {
    margin-left:auto; 
	margin-right:auto;
    display: block;
	cursor:zoom-out;
	position:relative;
    width: 100%;
    max-width: 700px;		/* can be changed to 100% in in-line style for specific pages */
	border:2px white solid;
	border-radius: 7px;		/*curve the edges*/
}

/* Caption of Modal Image */
#caption {
    margin-left:auto; 
	margin-right:auto;
    display: block;
	cursor:zoom-out;
	position:relative;
    width: 100%;
    /*max-width: 700px;*/
	max-width: auto;
    text-align: center;
    font-size:14px;
    color: #000;
    padding: 2px 0;
    background-color:white;
    height: 20px;
	border-radius: 3px;		/*curve the edges*/
}

/* The Close Routine */
.close {
    position: absolute;		/* if I change this from absolute, it makes the popup image too big */
/*    top: 60px;
    right: 35px;*/
    color: #000;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}
.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 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)}
}


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