/* basic */

#mTinyLightbox{
	position: fixed;
	width: 0;
	height: 0;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 0;
	margin: 0;
	text-align: center;
	overflow: hidden;
	white-space: nowrap;
	font-family: arial, sans-serif;
	font-size: 80%;
	line-height: 20px;
	text-shadow: none;
	z-index: 999;
}

#mTinyLightbox._mTL_active{ 
	width: auto;
	height: auto;
}

#mTL_wrapper:before, #mTL_container, #mTL_container img{
	-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
}

#mTL_overlay{
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: #000;
	transition: opacity .2s ease-out;
	opacity: 0;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)"; /* ie8 */
}

._mTL_active #mTL_overlay{ opacity: .4; }

#mTL_wrapper{
	position: absolute;
	overflow: auto;
	width: 100%;
	height: 100%;
}

#mTL_wrapper:before {
	content: "";
	display: inline-block;
	height: 100%;
	vertical-align: middle;
	margin-right: -.25em;
}

#mTL_container{
	position: relative;
	text-align: left;
	vertical-align: middle;
	display: inline-block;
	background-color: transparent;
	min-width: 30%;
	margin: 1% 10%;
	white-space: normal;
}

/* image */

#mTL_container > img{
	border: 0;
	display: block;
	vertical-align: middle;
	width: 0;
	height: 0;
	box-shadow: 0 0 140px rgba(0,0,0,.35);
	transition: opacity .3s ease-in-out;
	z-index: 1;
	opacity: 0;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; /* ie8 */
}

._mTL_loaded #mTL_container > img._mTL_current{
	width: 100%;
	height: auto;
	z-index: 3;
	opacity: 1;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; /* ie8 */
}

/* -------------------- */

/* image title */

.mTL_title{
	display: none;
	position: absolute;
	bottom: -30px;
	left: 10px;
	overflow: hidden;
	text-align: left;
	background: #000;
	color: #fff;
	opacity: 1;
	transition: all .2s ease-in-out .2s;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; /* ie8 */
}

._mTL_active .mTL_title{ display: block; }

.mTL_title > span{
	display: inline-block;
	padding: 5px 15px;
}

._mTL_loading .mTL_title{
	opacity: 0;
	transition-delay: -.2s;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; /* ie8 */
}

/* -------------------- */

/* next/previous/close buttons */

#mTL_next, #mTL_previous, #mTL_close{
	display: none;
	outline: 0;
	position: absolute;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	z-index: 3;
	transition: all .2s ease-in-out;
	/* ie8 */
	background-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
}

#mTL_close{
	top: 10px;
	right: -30px;
	line-height: 30px;
	width: 30px;
	height: 30px;
	text-align: center;
	background: #000;
}

#mTL_next, #mTL_previous{
	width: 20%;
	height: auto;
	top: 0;
	bottom: 0;
	opacity: 0;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; /* ie8 */
}

#mTL_next{ right: 0; }

#mTL_next > span, #mTL_previous > span, #mTL_close{ font-family: Courier New; }

#mTL_next > span, #mTL_previous > span{
	display: inline-block;
	width: 64px;
	height: 64px;
	line-height: 60px;
	font-size: 64px;
	text-align: center;
	position: absolute;
	margin: auto;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	vertical-align: middle;
	text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000;
	/* ie8 */
	background/*\**/: #000\9;
}

#mTL_next > span{ text-indent: -3px; }

#mTL_previous > span{ text-indent: 3px; }

#mTL_close > span{
	vertical-align: middle;
	font-size: 28px;
	opacity: 0;
	transition: opacity .2s ease-in-out;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; /* ie8 */
}

._mTL_loaded #mTL_close > span{
	opacity: .5;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; /* ie8 */
}

._mTL_loaded #mTL_next:hover, ._mTL_loaded #mTL_previous:hover, ._mTL_loaded #mTL_close:hover > span{ 
	opacity: 1;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; /* ie8 */
}

._mTL_loaded #mTL_close, ._mTL_loaded._mTL_in_group #mTL_next, ._mTL_loaded._mTL_in_group #mTL_previous{ display: block; }

._mTL_loaded._mTL_in_group_f #mTL_previous, ._mTL_loaded._mTL_in_group_l #mTL_next, 
._mTL_loaded._mTL_in_group_f._mTL_in_group_l #mTL_previous, ._mTL_loaded._mTL_in_group_f._mTL_in_group_l #mTL_next{ display: none; }

/* -------------------- */

/* (pure css) loading spinner */

@keyframes mTL_spinner{ to {transform: rotate(360deg);} }
@-webkit-keyframes mTL_spinner{ to {-webkit-transform: rotate(360deg);} }

.mTL_spinner{
    position: absolute;
    left: 50%;
	top: 50%;
	height: 96px;
	width: 96px;
	margin: -48px auto auto -48px;
	z-index: 2;
	display: none;
}

.mTL_spinner:before{
    content: 'Loading…';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
	height: 48px;
	margin-top: -24px;
	margin-left: -24px;
	/* ie8 */
	background/*\**/: #000\9;
    color/*\**/: #fff\9;
    font-size/*\**/: 80%\9;
    width/*\**/: 120px\9;
    height/*\**/: 30px\9;
    line-height/*\**/: 30px\9;
    text-align/*\**/: center\9;
}

.mTL_spinner:not(:required):before{
    content: '';
    border-radius: 50%;
    border-top: 5px solid #fff;
    border-right: 5px solid transparent;
    animation: mTL_spinner .6s linear infinite;
    -webkit-animation: mTL_spinner .6s linear infinite;
}

._mTL_active._mTL_loading .mTL_spinner{ display: block; }

/* -------------------- */

/* extended */

#mTL_autoplay{
	display: none;
	outline: 0;
	position: absolute;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	transition: all .2s ease-in-out;
	top: 40px;
	margin-top: 1px;
	right: -30px;
	line-height: 30px;
	width: 30px;
	height: 30px;
	text-align: center;
	background: #000;
	font-family: Lucida Sans Unicode, Arial Unicode MS, sans-serif;
	z-index: 3;
}

#mTL_autoplay > span, #mTL_autoplay._mTL_active:before{
	display: inline-block;
	font-size: 16px;
	opacity: 0;
	transition: opacity .2s ease-in-out;
	/* ie8 */
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; 
	font-size/*\**/: 14px\9;
}

#mTL_autoplay._mTL_active > span{ text-indent: -9999px; }

#mTL_autoplay._mTL_active:before{
	content: "\2590\A0\258C"; /* pause icon */
	font-size: 8px;
	letter-spacing: -1px;
	vertical-align: text-bottom;
	font-family: Courier New;
}

._mTL_loaded #mTL_autoplay > span, ._mTL_loaded #mTL_autoplay._mTL_active:before{
	opacity: .5;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; /* ie8 */
}

._mTL_loaded #mTL_autoplay:hover > span, ._mTL_loaded #mTL_autoplay._mTL_active:hover:before{ 
	opacity: 1;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; /* ie8 */
}

._mTL_loaded._mTL_autoplay._mTL_in_group #mTL_autoplay{ display: block; }

._mTL_in_group._mTL_in_carousel #mTL_next, ._mTL_in_group._mTL_in_carousel #mTL_previous{ display: block; }

._mTL_loaded._mTL_in_group_f._mTL_in_group_l #mTL_autoplay{ display: none; }