/* mala galeria */
#tb-gallery-small{
	width:100%;
	height:344px;
	display:inline-block;
}
/* pasek ikon malej galerii */
#tb-gallery-small .thumbs{
	position:relative;
	padding:4px 0;
}
#tb-gallery-small .thumbs a,
#tb-gallery-small .preview a,
#tb-gallery-big .thumbs a,
#tb-gallery-big .preview a{
	height:100%;
	position:absolute;
	top:0;
	left:0;
	background-color:#000;
	background-position:center center;
	background-repeat:no-repeat;
	opacity:0.5;
    -webkit-transition: opacity .3s ease-in-out;
    -moz-transition: opacity .3s ease-in-out;
    -o-transition: opacity .3s ease-in-out;
    -ms-transition: opacity .3s ease-in-out;
    transition: opacity .3s ease-in-out;		
}
#tb-gallery-small .thumbs a.prev,
#tb-gallery-big .thumbs a.prev{
	background-image:url(../images/small_arrow_left.png);
}
#tb-gallery-small .thumbs a.next,
#tb-gallery-big .thumbs a.next{
	background-image:url(../images/small_arrow_right.png);
}
#tb-gallery-small .preview a.prev,
#tb-gallery-big .preview a.prev{
	background-image:url(../images/big_arrow_left.png);
}
#tb-gallery-small .preview a.next,
#tb-gallery-big .preview a.next{
	background-image:url(../images/big_arrow_right.png);
}
#tb-gallery-small .thumbs a:hover,
#tb-gallery-small .preview a.prev:hover,
#tb-gallery-small .preview a.next:hover,
#tb-gallery-small .preview:hover a.open,
#tb-gallery-big .thumbs a:hover,
#tb-gallery-big .preview a:hover{
	opacity:0.85;
}
#tb-gallery-small .thumbs a.next,
#tb-gallery-small .preview a.next,
#tb-gallery-big .thumbs a.next,
#tb-gallery-big .preview a.next{
	left:auto;
	right:0;
}
#tb-gallery-small .thumbs img,
#tb-gallery-big .thumbs img {
	max-height:100%;
	float:left;
	cursor:pointer;
	margin:0 2px;
}
#tb-gallery-small .thumbs img:first-child,
#tb-gallery-big .thumbs img:first-child{
	margin-left:0;
}
#tb-gallery-small .thumbs img:last-child,
#tb-gallery-big .thumbs img:last-child{
	margin-right:0;
}
/* aktywna ikona w malej galerii */
#tb-gallery-small .thumbs img.active{
	border:2px solid #CCC;
}
#tb-gallery-small .thumbs>div,
#tb-gallery-big .thumbs>div{
	overflow:hidden;
	position:relative;
	text-align:center;
	height:100%;
}
#tb-gallery-small .thumbs>div>div,
#tb-gallery-big .thumbs>div>div{
	display:inline-block;
	position:relative;
	height:100%;	
}
/* podglad w malej galerii */
#tb-gallery-small .preview{
	height:290px;
	width:100%;
	position:relative;
	cursor:pointer;
}
#tb-gallery-small .preview a,
#tb-gallery-big .preview a{
	width:50px;
	opacity:0;
}
#tb-gallery-big .preview a{
	opacity:0.2;
}
#tb-gallery-small .preview a.open{
	width:64px;
	height:64px;
	left:50%;
	top:50%;
	margin:-32px 0 0 -32px;
	background:url(../images/open.png) center center no-repeat #000;
}
#tb-gallery-small .preview>div{
	height:100%;
	width:100%;
	text-align:center;
	font-size:0;
	overflow:hidden;
	position:relative;
}

#tb-gallery-small .preview div img{
	height:auto;
	max-height:100%;	
}

#tb-gallery-big{
	width:100%;
	height:100%;
	display:none;
	position:fixed;
	left:0;
	top:0;
	z-index:9999;
	padding:10px 0 0;
}
#tb-gallery-big>a{
	position:absolute;
	right:0;
	top:0;
	width:64px;
	height:64px;
	background:url(../images/close.png) center center no-repeat #ddd;
	opacity:0.5;
    -webkit-transition: opacity .3s ease-in-out;
    -moz-transition: opacity .3s ease-in-out;
    -o-transition: opacity .3s ease-in-out;
    -ms-transition: opacity .3s ease-in-out;
    transition: opacity .3s ease-in-out;			
}
#tb-gallery-big>a:hover{
	opacity:1;
}
#tb-gallery-big .overlay{
	position:absolute;
	left:0;
	top:0;
	width:100%;
	height:100%;
	background:#000;
	opacity:0.9;
}
#tb-gallery-big .preview>div{
	height:100%;
	width:100%;
	text-align:center;
	font-size:0;
	overflow:hidden;
	position:relative;
}
#tb-gallery-big .preview>div>div,
#tb-gallery-small .preview>div>div{
	height:100%;
}
#tb-gallery-small .preview>div>div>p,
#tb-gallery-big .preview>div>div>p{
	margin:0;
	text-align:center;
	float:left;
	height:100%;
}
#tb-gallery-big .preview div img{
	max-height:100%;
	max-width:100%;
}
/* pasek ikon w duzej galerii */
/* wysokosc mozna ustawic procentowo (% wysokosci body) lub na stale w px */
#tb-gallery-big .thumbs{
	padding:8px 0;
	position:relative;
}

#tb-gallery-big .thumbs img{
	max-height:100%;
	float:left;
	cursor:pointer;
	margin:0 4px;	
}
/* aktywna ikona w duzej galerii */
#tb-gallery-big .thumbs img.active{
	border:4px solid #888;
}