/*
* eSports.cz [www.esports.cz] Media Gallery
* Git repository: 	http://github.com/TomNovosad/fotogalerie/
* Description: 	  	Responsive Media Gallery with video and audio play.
* Version: 			1.7.3 (20121221) 
* Author: 			Tomas Novosad [tomas.novosad@esports.cz]
*
*/  


/* ==========================================================================
   esgallery container
   ========================================================================== */

body.esgallery-lock {
	overflow: hidden;
}

.esgallery-overlay {
	background: url('img/bg-opacity.png') top left;
	bottom: 0;
	display: block;
	height: auto;
	left: 0;
	overflow: auto;
	position: fixed;
	right: 0;
	top: 0;
	width: auto;
	z-index: 9900;
}

.esgallery {
	-khtml-user-select: none; 
	-moz-user-select: none; 
	-o-user-select: none; 
	-webkit-user-select: none;
	bottom: 0;
	color: #fff;
	display: none;
	font-family: sans-serif;
	height: 100%;
	left: 0;
	margin: auto; 
	overflow: hidden;
	padding: 0;
	position: fixed;
	right: 0;
	top: 0;
	user-select: none; 
	width: 100%;
	z-index: 10000;
}

.esgallery a {
	color: #fff;
	text-decoration: none;	
}

.esgallery a:hover {
	text-decoration: underline;
}

.esgallery .clear {
	background: none!important;
	clear: both!important;
	font-size: 0!important;
	height: 0!important;
	margin: 0!important;
	padding: 0!important;
}

.esgallery .hide {
	display: none!important;
}


/* ==========================================================================
   Header [OPTIONAL]
   ========================================================================== */

#media-top {
	background: url('img/bg-top.png') top left repeat-x #a3191b;
	font-size: 1.4em;
	height: 70px;
	overflow: hidden;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 10100;
	display: none;
}

#media-top a {
	font-size: .7em;
	font-weight: bold;
	height: 70px;
	line-height: 70px;
	text-transform: uppercase;
}



/* Header - Title
   ========================================================================== */

#media-top #media-title {
	float: left;
	margin: 0;
	padding: 0;
	width: 50%;
}

#media-top #media-title h1 {
	color: #fff;
	font-size: 1em;
	height: 70px;
	line-height: 70px;
	margin: 0 0 0 2em;
	padding: 0;
}



@media (max-width: 800px) { 
	#media-top #media-title h1  {
		font-size: .8em;
	}	
}

@media (max-width: 700px) { 
	#media-top #media-title h1  {
		font-size: .7em;
	}	
}

@media (max-width: 599px) { 
	#media-top #media-title h1  {
		font-size: .7em;
		line-height: 1.3em;
		padding: .4em 0 0 .4em;
		margin: 0;
    }
}


/* Header - Back link
   ========================================================================== */

#media-top #media-back {
	float: right;
	margin: 0;
	padding: 0;
	text-align: right;
	width: 50%;
}

@media (max-width: 640px) { 
	#media-top #media-back {
		text-align: right;
	}
}


#media-top #media-back a {
	color: #fff;
	margin: 0 2em 0 0;
	padding: 0 0 0 40px;
	position: relative;
	text-decoration: underline;
}

#media-top #media-back a:after {
	background: url('img/bg-top-close.png') 0 0 no-repeat;
	position: absolute;
	top: -5px;
	left: 0;
	content: '';
	width: 30px;
	height: 30px;
}

#media-top #media-back a:hover {
	color: #fff;
	text-decoration: none;
}

#media-top #media-back a:hover:after {
	background-position: 0 -30px;
}

@media (max-width: 640px) { 
	#media-top #media-back a {
		display: block;
		font-size: .6em;
		margin: 0;
		padding: 0 .7em 0 0;
		text-decoration: underline;
	}

	#media-top #media-back a:after {
		background: none;
	}

	#media-top #media-back a:hover {
		text-decoration: none;
	}
}


/* ==========================================================================
   Media containers
   ========================================================================== */

#media-container {
	background: #000;
	bottom: 0;
	font-family: sans-serif;
	height: 100%;
	left: 0;
	margin: auto;
	position: absolute;
	width: 100%;
}

#media-main-container {
	left: 0;
	position: absolute;
	top: 70px;
	width: 100%;
}


/* Media container - Content block
   ========================================================================== */

#media-content {
	bottom: 0;
	height: auto;
	left: 0;
	margin: auto;
	position: absolute;
	right: 0;
	top: 0;	
	width: auto;
}

#media-content img {
	bottom: 0;
	left: 0;
	margin: auto;
	max-height: 100%;
	max-width: 100%;
	position: absolute;
	right: 0;
	top: 0;
}

/* CAUTION: jwplayer render #media_video_wrapper for flash version and #media-video for html5 version */

#media-video_wrapper, #media-video {
	bottom: 0;
	left: 0;
	margin: auto;
	max-height: 100%;
	max-width: 100%;
	position: absolute!important;
	right: 0;
	top: 0;
}

#media-video_wrapper iframe, #media-video iframe,
#media-video_wrapper object, #media-video object,
#media-video_wrapper embed, #media-video embed,
#media-video_wrapper video, #media-video video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
}

span.error {
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 10100;
	top: 0;
	left: 0;
}

span.error:after {
	background: #fff;
	border: 1px solid #999;
	bottom: 0;
	color: #ff0000;
	content: 'Omlouváme se! Obrázek je zřejmě poškozen, nebo dočasně nedostupný.';
	font-size: .6em;
	font-weight: bold;
	height: 1.5em;
	left: 0;
	line-height: 1.5em;
	margin: auto;
	padding: 10px;
	position: absolute;
	right: 0;
	text-align: center;
	top: 0;
	width: 500px;
}


/* Media container - Caption block
   ========================================================================== */

#media-caption {
	bottom: 0;
	height: auto;
	left: 0;
	position: absolute;
	right: 0;
	width: 800px;
	z-index: 10100;
	margin: auto;
}

#media-caption div.caption-content {
	background: url('img/bg-transparent.png') top left;
	font-size: .8em;
	line-height: 1.4em;	
	margin: auto;
	padding: 5px 10px;
	text-shadow: 1px 2px 2px #000;
}

#media-caption div span {
	display: inline-block;
	margin: 0 5px;
}

#media-caption div span.copyright {
	color: #999;
	font-size: .85em;
	line-height: 1.6em;
}

#media-caption div span.link a {
	text-decoration: underline;
}

#media-caption div span.link a:hover {
	text-decoration: none;
}


/* Media container - Next / previous arrow
   ========================================================================== */

#media-main-container .arrow {
	bottom: 0;
	display: block;			
	height: 80px;
	margin: auto;
	position: absolute;
	top: 0;
	width: 80px;
	z-index: 10100;
}

#media-main-container .arrow a {
	background: url('img/bg-arrows.png') top left no-repeat;
	display: block;
	height: 80px;
	outline: none;
	width: 80px;	
}

#media-main-container .arrow span.glow {
	background-image: url('img/bg-arrows.png');
	background-position: -81px 0;
	background-repeat: no-repeat;
	cursor: pointer;
	display: none;
	height: 80px;
	position: absolute;
	width: 80px;
	/*z-index: 1000;*/
}

#media-main-container .arrow.left {
	left: 10px;
}

#media-main-container .arrow.right {		
	right: 10px;
}

#media-main-container .arrow.right a {
	background-position: 0 -81px;
}

#media-main-container .arrow.right span.glow {
	background-position: -81px -82px;
}

#media-main-container .arrow a.hidden {
	visibility: hidden;
}



/* ==========================================================================
   Control container [OPTIONAL]
   ========================================================================== */

#media-control {
	-moz-background-clip: padding;
	-moz-box-shadow: inset 0 1px 0 #a3191b;
	-webkit-background-clip: padding-box;
	-webkit-box-shadow: inset 0 1px 0 #a3191b;
	background-color: #631012;
	background-image: -o-linear-gradient(bottom, #631012 0%, #a3191b 50%, #631012 100%);
	background-image: -webkit-linear-gradient(bottom, #631012 0%, #a3191b 50%, #631012 100%);
	background-image: linear-gradient(bottom, #631012 0%, #a3191b 50%, #631012 100%);
	bottom: 153px;
	box-shadow: inset 0 1px 0 #a3191b;
	display: block;
	height: 30px;
	left: 0;
	margin: 10px auto 0 auto;
	overflow: none;
	padding: 0;
	position: absolute;
	right: 0;
	width: 100%;
}

@media (max-height: 640px) { 
	#media-control {bottom: 0; width: 20em;}
}

#media-control-container {
	display: block;
	padding: 0;
	width: 100%;
	overflow: none;
	margin: auto;
}

#media-control-container a {
	border: 1px solid #a3191b;
	display: block;
	float: left;
	font-size: .8em;
	height: 30px;
	line-height: 30px;
	margin-left: -1px; /* border-collaps "hack" */
	padding: 0;
	position: relative;
	text-align: right;
	text-shadow: 1px 1px #000;
	width: 35px;
}

#media-control-container a:hover {
	background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDQyIDM0IiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48bGluZWFyR3JhZGllbnQgaWQ9ImhhdDAiIGdyYWRpZW50VW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiB4MT0iNTAlIiB5MT0iMTAwJSIgeDI9IjUwJSIgeTI9Ii0xLjQyMTA4NTQ3MTUyMDJlLTE0JSI+CjxzdG9wIG9mZnNldD0iMCUiIHN0b3AtY29sb3I9IiMwZDE1MWQiIHN0b3Atb3BhY2l0eT0iMSIvPgo8c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iIzBkMTUxZCIgc3RvcC1vcGFjaXR5PSIwLjUiLz4KPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjMGQxNTFkIiBzdG9wLW9wYWNpdHk9IjAiLz4KICAgPC9saW5lYXJHcmFkaWVudD4KCjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSI0MiIgaGVpZ2h0PSIzNCIgZmlsbD0idXJsKCNoYXQwKSIgLz4KPC9zdmc+);
	background-image: -moz-linear-gradient(bottom, #0d151d 0%, rgba(13,22,29,.5) 49.61%, rgba(13,22,29,0) 100%);
	background-image: -o-linear-gradient(bottom, #0d151d 0%, rgba(13,22,29,.5) 49.61%, rgba(13,22,29,0) 100%);
	background-image: -webkit-linear-gradient(bottom, #0d151d 0%, rgba(13,22,29,.5) 49.61%, rgba(13,22,29,0) 100%);
	background-image: linear-gradient(bottom, #0d151d 0%, rgba(13,22,29,.5) 49.61%, rgba(13,22,29,0) 100%);
}

@media (max-height: 640px) { 
	#media-control-container .control-playlist {display: none;}
}


/* Control container - Icons
   ========================================================================== */

#media-control-container a span.ico {
	background-repeat: no-repeat;
	background-image: url('img/bg-control-ico.png');
	display: block;
	height: 30px;
	left: 0;
	position: absolute;
	top: 0;
	width: 50px;
}

#media-control-container a.control-playlist span.ico {
	background-position: 50% 0;
}

#media-control-container a.control-playlist.active-control span.ico {
	background-position: 50% -30px;
}

#media-control-container a.control-caption span.ico {
	background-position: 50% -120px;
}

#media-control-container a.control-caption.active-control span.ico {
	background-position: 50% -150px;
}

#media-control-container a.control-slideshow span.ico {
	background-position: 50% -60px;
}

#media-control-container a.control-slideshow.active-control span.ico {
	background-position: 50% -90px;
}


/* Control container - :after for rendering text
   ========================================================================== */

#media-control-container a.control-caption {
	width: 11em;
}

#media-control-container a.control-playlist {
	width: 11em;
}

#media-control-container a.control-slideshow {
	width: 12em;
}

#media-control-container a:after {
	top: 0;
	right: .8em;
	position: absolute;
}

#media-control-container a.control-caption:after {
	content: 'Skrýt popisky';
}

#media-control-container a.control-caption.active-control:after {
	content: 'Zobrazit popisky';
}

#media-control-container a.control-playlist:after {
	content: 'Skrýt náhledy';
}

#media-control-container a.control-playlist.active-control:after {
	content: 'Zobrazit náhledy';
}

#media-control-container a.control-slideshow:after {
	content: 'Spustit přehrávání';
}

#media-control-container a.control-slideshow.active-control:after {
	content: 'Zastavit přehrávání';
}

#media-control-container a.no-text:after, #media-control-container a.active-control.no-text:after {
	content: '';
}

#media-control-container a:hover:after {
	text-decoration: underline;
}


/* ==========================================================================
   Playlist container [OPTIONAL]
   ========================================================================== */
#media-playlist {
	background: url('img/bg-media-playlist.png') top left repeat-x #a3191b;
	bottom: 0;
	display: block;
	height: 153px;
	overflow: hidden;
	position: absolute;
	width: 100%;
}

@media (max-height: 640px) { 
	#media-playlist {display: none;}
}


/* Playlist - List of media
   ========================================================================== */

#media-list {
	display: none;
	height: 86px;
	margin: 17px 0;
	overflow: hidden;
	position: absolute;
}

#media-list ul {
	display: table;
	height: 86px;
	margin: auto;
	padding: 0;
}

#media-list ul li {
	display: table-cell;
	list-style: none;
	padding: 0 4px;
}

#media-list ul li span {
	display: none;
}

#media-list ul li a {
	position: relative;
}

#media-list ul li a img {
	border: 3px solid transparent;
	height: 80px;
	width: 120px;
}

#media-list ul li a[data-media-type="video"]:after {
	background: url('img/ico-play.png') 50% 50% no-repeat;
	bottom: 0;
	content: '';
	display: block;
	height: 80px;
	left: 0;
	margin: 5px 3px;
	position: absolute;
	width: 120px;
}

#media-list ul li a:hover img, #media-list ul li.active img {
	border: 3px solid #eee;
}



/* ==========================================================================
   Scrollbar definition (dependency of jquery.tinyscrollbar.min.cz)
   ========================================================================== */
#media-playlist .viewport {
	height: 120px;
	overflow: hidden;
	position: relative;
}

#media-playlist .overview {
	left: 0;
	position: absolute;
	top: 0; 
}

#media-playlist .scrollbar {
	clear: both;
	height: 15px;
	margin: 0;
	position: relative;
}

#media-playlist .track {
	height: 15px; 
	position: relative;
	width: 100%; 
}

#media-playlist .thumb { 
	cursor: pointer; 
	height: 12px; 
	left: 0; 
	overflow: hidden; 
	position: absolute; 
	top: 5px;
}

#media-playlist .thumb:hover {
	cursor: pointer;
} 

#media-playlist .thumb .corner {
	background: transparent; 
	display: block;
	float: left;
	height: 12px; 
	overflow: hidden; 
	width: 15px;
}

#media-playlist .thumb .main {
	-moz-background-clip: padding;
	-moz-border-radius: 8px;
	-moz-box-shadow: inset 0 1px 0 #a3191b;
	-webkit-background-clip: padding-box;
	-webkit-border-radius: 8px;
	-webkit-box-shadow: inset 0 1px 0 #a3191b;
	background-clip: padding-box;
	background-color: #fff;
	background-image: -moz-linear-gradient(bottom, rgba(28,42,55,.5) 0%, rgba(49,66,80,.5) 100%);
	background-image: -o-linear-gradient(bottom, rgba(28,42,55,.5) 0%, rgba(49,66,80,.5) 100%);
	background-image: -webkit-linear-gradient(bottom, rgba(28,42,55,.5) 0%, rgba(49,66,80,.5) 100%);
	background-image: linear-gradient(bottom, rgba(28,42,55,.5) 0%, rgba(49,66,80,.5) 100%);		
	background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDE3MCAxNiIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+PGxpbmVhckdyYWRpZW50IGlkPSJoYXQwIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjUwJSIgeTE9IjEwMCUiIHgyPSI1MCUiIHkyPSItMS40MjEwODU0NzE1MjAyZS0xNCUiPgo8c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjMWIyOTM3IiBzdG9wLW9wYWNpdHk9IjAuNSIvPgo8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMzMTQxNGYiIHN0b3Atb3BhY2l0eT0iMC41Ii8+CiAgIDwvbGluZWFyR3JhZGllbnQ+Cgo8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTcwIiBoZWlnaHQ9IjE2IiBmaWxsPSJ1cmwoI2hhdDApIiAvPgo8L3N2Zz4=);
	border-radius: 8px;
	box-shadow: inset 0 1px 0 #a3191b;
	float: left;
	height: 12px; 
	overflow: hidden; 
	width: 10px;
}

#media-playlist .disable { 
	display: none;
}

.noSelect { 
	user-select: none; 
	-o-user-select: none; 
	-moz-user-select: none; 
	-khtml-user-select: none; 
	-webkit-user-select: none;
}
