/* CSS Document */
html.modal-open {
/*    position: fixed; */
    overflow: hidden;
	padding-right: 17px;  /*Compensates for scroll bar disappearing when modal content opens */
}
#modal-bg {
    height: 0;
    width: 0;
    margin: 0;
    position: fixed;
	background-color: rgba(0, 0, 0, 0.7);
	display: none;
	overflow: hidden;
	cursor: pointer;
}
html.modal-open #modal-bg {
    height: 100%;
    width: 100%;
    top: 0;
    bottom: 0; /* */
    left: 0;
    right: 0;
	display: block;
	overflow: auto;
	z-index: 100;
}

html.modal-open #modal-bg div.modal-content {
    position: relative;
    width: 80%;
	max-width: 800px;
	min-width: 300px;
    margin-left: auto;
    margin-right: auto;
    background-color: #d7d0c0;
    padding: 20px;
    margin-top: 60px;
	border-radius: 10px;
	cursor: auto;
}

html.modal-open #modal-bg div.modal-content img {
    display: block;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
html.modal-open #modal-bg .dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
	padding: 4px 4px 7px 3px;
	border-radius: 4px;
    color: #d7d0c0;
    font-size: 36px;
	background: #261d09;
    text-decoration: none;
    cursor: pointer;
   -ms-user-select: none;
   -moz-user-select: none;
   -webkit-user-select: none;
	user-select: none;
}
img.thumbnail {
    cursor: pointer;
}
#modal_header,
#modal_content {
	display: none;
}
#modal_image {
	border: solid 2px #261d09;
	min-height: 70px;
	background-image: url(../img/loading.gif);
	background-repeat: no-repeat;
	background-position: center center;
	background-color: #fff;
}
@media screen and (max-width: 767px) {
    html.modal-open #modal-bg div.modal-content {
	    width: 98%;
		margin-top: 10px;
	}
	html.modal-open #modal-bg .dismiss {
	    
	}
}