#overlay2 .header {
	background: #b22229;
	border: 1px solid #fff;
	height: 32px;
	width: 95%;
	margin: 2px auto 10px;
	overflow: hidden;
	padding: 0;
}
/*#overlay2 div.image-gallery img#img-fgallery {
	width: 50%!important;
	height: auto!important;
	border: 1px solid #fff!important;
}*/
#overlay2 div.image-gallery p#popis {
	width: 50%!important;
	height: auto!important;
	border: 1px solid #ccc!important;
}
#overlay2 li.photo-count {
	font-size: 14pt;
}
#overlay2 li#next a, #overlay2 li#prev a {
	font-size: 16pt;
}

/* ---------------------- TABLET VERZIA ----------------------- */
@media only screen and (max-width:940px) {

#overlay2 div.image-gallery img#img-fgallery {
	width: 71%!important;
	height: auto!important;
	font-weight: bold;
}
#overlay2 div.image-gallery p#popis {
	width: 70%!important;
	height: auto!important;
	border: 1px solid #ccc!important;
}

}

/* ---------------------- MOBIL VERZIA ----------------------- */
@media only screen and (max-width:540px) {

#overlay2 .header {
	background: #b22229;
	border: 1px solid #fff;
	height: 32px;
	width: 95%;
	margin: 2px auto;
	overflow: hidden;
	padding: 0;
}
#overlay2 div.image-gallery img#img-fgallery {
	width: 95%!important;
	height: auto!important;
	border: 1px solid #fff!important;
}
#overlay2 div.image-gallery p#popis {
	width: 89%!important;
	height: auto!important;
	border: 1px solid #ccc!important;
	margin-top: 2px!important; 
}	
#overlay2 ul#links-pn {
    left: 35%!important;
    margin: 0;
    position: absolute;
    top: 0;
    width: 30%!important;
}

}