/* modal*/
/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100; /* Sit on top */
    padding-top: 2px; /* 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(238,238,238); /* Fallback color */
    background-color: rgba(238,238,238,0.9); /* Black w/ opacity */
	opacity : 0.95;
	filter:alpha(opacity=95);
}

/* Modal Content (Image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 600px;
	border:3px solid #333;
	background:#EEE;
	z-index: 100;
	opacity : 1;
	filter:alpha(opacity=100);
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption, #detail {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 600px;
    text-align: center;
    /*color: #ccc;*/
    /*padding: 10px 0;*/
    height: auto;
	z-index: 100;
}
.modal100{max-width: 10vw !important;}
.modal200{max-width: 20vw !important;}
.modal300{max-width: 30vw !important;}
.modal400{max-width: 40vw !important;}
.modal500{max-width: 50vw !important;}
.modal600{max-width: 60vw !important;}
.modal700{max-width: 70vw !important;}
.modal800{max-width: 80vw !important;}
.modal900{max-width: 90vw !important;}

.modal-title{
	margin:0;background:#333;color:#fff;width:100%; height:20px;max-height:20px;
	overflow:hidden;border:0px solid red;
	display:inline-block;
	text-align:left;
	line-height:14px;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 1 !important; // max nb lines to show
	-webkit-box-orient: vertical;
}
.modal-title span{
	height:20px !important;
	max-height:20px;
	overflow:hidden;
	
	padding:2px;
	font-weight:bold;
	font-size:0.7em;
	display:inline-block;
	
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 1 !important; // max nb lines to show
	-webkit-box-orient: vertical;
}
/* Add Animation - Zoom in the Modal */
.modal-content, #caption, #detail {
    -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: 15px;
    right: 35px;
    color: #bbb;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}