#gallery{
width:100%;margin:0;padding:0;border:0;background:transparent;
}
.gallery-images{
width:100%;margin:0 auto;padding:0;border:0;
}
#gallery .gallerycomment{
float:left;width:100%;margin:0;padding:0;
}
#gallery .gallerycomment p{
font-size:.9em;margin:0;padding:0 0 20px 0;
}
#gallery .img{
position:relative;float:left;width:33.3333%;height:auto;margin:0;padding:2%;overflow:hidden;
text-align:center;background-color:transparent;
}

		@media all and (max-width:700px){
		.gallery-images{width:450px;}
		#gallery .img{width:50%;padding-bottom:1em;}
		}
		@media all and (max-width:560px){
		.gallery-images{width:210px;}
		#gallery .img{width:100%;}
		}
#gallery .img p{
font-size:1em;font-weight:normal;color:#333;line-height:1.2em;padding:0;margin:0;
}
#gallery .img a{
display:inline-block;padding:0;margin:0;box-shadow:0px 5px 7px rgba(0,0,0,0.50);
}
#gallery .img a:hover{
box-shadow:0px 5px 7px rgba(0,0,0,0.80);
}
#gallery .img img{
max-width:100%;width:100%;height:auto;margin:0 0 -4px 0;padding:0;border:0;outline:0;
}
#gallery .img img:hover{
}
#gallery .img .valikko_img{
position:absolute;top:25px;right:25px;width:36px;height:36px;margin:0;padding:0;background:#6a6aab;border:0;z-index:100;border-radius:5px;
}
#gallery .img .valikko_img a{
border:0;margin:0;padding:0;box-shadow:none;
}
#gallery .img .valikko_img a:hover{
border:0;margin:0;padding:0;box-shadow:none;
}
#gallery .img .valikko_img img{
width:36px;height:36px;margin:0;padding:0;background:transparent;border:0;border-radius:5px;
}
div.valikko_kuvaus_txt{
width:100%;min-height:3em;margin:10px 0 -18px 0;
}
div.valikko_kuvaus_txt p{
font-size:0.80em !important;margin:0;padding:0;line-height:1.1em;
}
#gallery .pagenavigation{
display:block;float:left;width:100%;height:auto;margin:0;padding:0 4%;background-color:transparent;clear:both;
}
#gallery .prevpage a, #gallery .prevpage em{
display:block;width:50px;height:39px;float:left;margin:0;text-indent:-1000px;background:url(../../images/previous.png) transparent no-repeat 0 0;
}
#gallery .nextpage a, #gallery .nextpage em{
display:block;width:50px;height:39px;float:left;margin:0 6px 0 0;text-indent:-1000px;background:url(../../images/next.png) transparent no-repeat 0 0;
}
#gallery .parentlink{
width:40px;height:40px;margin:0 0 0 4px;padding:0;border-radius:5px;
}
#gallery .parentlink a{
display:block;float:left;width:40px;height:40px;margin:0;padding:0;text-indent:-1000px;background:#6a6aab url(../../images/takaisinvalikkoon.png) no-repeat center center;border-radius:5px;
}
#gallery .pagenavigation a:hover{
/*background-position:0 -40px;*/
}
#gallery .prevpage em, #gallery .nextpage em{
background-position:0 -80px;
}
#gallery .pagelinks{
float:right;border-right:2px solid #666;
}
#gallery .pagelinks a, #gallery .pagelinks em{
margin-top:6px;padding:0 6px;border-left:2px solid #666;text-align:center;font:bold 11px verdana;color:#666;
}
#gallery .pagelinks em{
color:#000;
}
.galleryclear{
clear:both;
}

/*LIGHTBOX-version-2.10.0-vk-evo*/
/* Preload images */
body:after{content: url(../lightbox/images/close.png) url(../lightbox/images/loading.gif) url(../lightbox/images/prev.png) url(../lightbox/images/next.png);display:none}
.lb-loader,.lightbox{text-align:center;line-height:0}
.lb-dataContainer:after,.lb-outerContainer:after{content:"";clear:both}
html.lb-disable-scrolling{overflow:hidden;position:fixed;height:100vh;width:100vw}
.lightboxOverlay{position:absolute;top:0;left:0;z-index:9999;background-color:#000;filter:alpha(Opacity=80);opacity:.8;display:none}
.lightbox{position:absolute;left:0;width:100%;z-index:10000;font-weight:400}
.lightbox .lb-image{display:block;height:auto;max-width:inherit;max-height:none;border-radius:0px;border:4px solid #fff}
.lightbox a img{border:none}
.lb-outerContainer{position:relative;width:250px;height:250px;margin:0 auto;border-radius:0px;background-color:#fff}
/*.lb-container{position:relative}*/
.lb-loader,.lb-nav{position:absolute;left:0}
.lb-outerContainer:after{display:table}
.lb-loader{top:43%;height:25%;width:100%}
.lb-cancel{display:block;width:32px;height:32px;margin:0 auto;background:url('../lightbox/images/loading.gif') no-repeat}
.lb-nav{top:0;height:100%;width:100%;z-index:10}
.lb-container>.nav{left:0}
.lb-nav a{outline:0;background-image:url(data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==)}
.lb-next,.lb-prev{height:100%;cursor:pointer;display:block}
.lb-nav a.lb-prev{width:34%;left:0;float:left;background:url('../lightbox/images/prev.png') left 48% no-repeat;filter:alpha(Opacity=50);opacity:0.5;-webkit-transition:opacity .6s;-moz-transition:opacity .6s;-o-transition:opacity .6s;transition:opacity .6s}
.lb-nav a.lb-prev:hover{filter:alpha(Opacity=100);opacity:1}
.lb-nav a.lb-next{width:64%;right:0;float:right;background:url('../lightbox/images/next.png') right 48% no-repeat;filter:alpha(Opacity=50);opacity:0.5;-webkit-transition:opacity .6s;-moz-transition:opacity .6s;-o-transition:opacity .6s;transition:opacity .6s}
.lb-nav a.lb-next:hover{filter:alpha(Opacity=100);opacity:1}
.lb-dataContainer{margin:0 auto;padding-top:5px;width:100%;border-bottom-left-radius:0px;border-bottom-right-radius:0px}
.lb-dataContainer:after{display:table}
.lb-data{padding:0 4px;color:#ccc}
.lb-data .lb-details{width:100%;float:left;text-align:left;line-height:1.1em}
.lb-data .lb-caption{font-size:13px;font-weight:700;line-height:1em}
.lb-data .lb-caption a{color:#4ae}
div.number-wrapper{position:absolute;display:inline-block;bottom:0;left:0;z-index:100000;min-width:auto;min-height:auto; margin:0;padding:0; background:transparent!important}
div.number-wrapper p.lb-number{display:block;min-width:auto;min-height:auto;margin:0 0 4px 4px!important;padding:0 0.25em!important;line-height:1.5em;color:black;background:white;font-size:0.75em}
.lb-data .lb-number{display:none!important;clear:left;padding-bottom:1em;font-size:12px;color:#999}
div.close-wrapper{position:absolute;top:2%;right:2%;z-index:100000;width:30px;height:30px;background-color:transparent}
div.close-wrapper .lb-close{display:block;width:30px;height:30px;background:url('../lightbox/images/close.png') top right no-repeat;cursor:pointer;filter:alpha(Opacity=100);opacity:1}