/* projekty-ns */
.gallNS {float:left; width:125px; height:125px; overflow:hidden; margin:5px; border:solid #2D2E2E 1px; position:relative; cursor:pointer;
  opacity:1; -webkit-transition:opacity 0.5s; transition:opacity 0.5s;}
.gallNS:hover {border:solid #00ADEE 1px; opacity:0.85;}
.imgW {height:125px; position:relative; left:-15px;}
.imgH {width:125px; position:relative; top:-15px;}
a.goto {text-decoration:none; color:#074D8B; text-transform:uppercase; font-size:90%;
  background:url('/images/goto.png') no-repeat left center; padding:2px 0px 1px 10px;
  -webkit-transition:color 0.5s; transition:color 0.5s;}
a.goto:hover {color:#00ADEE;}

/* mod */
a.mod {cursor:pointer;}
img.mod_img {visibility:hidden; position:absolute; top:0; left:0; overflow:hidden;
  border:1px solid #999; cursor:pointer; z-index:2000;} 
img.minus {cursor:pointer;}
a.noModal {cursor:default;} 

/* modal */
#modal_overlay {display:none; position:fixed; overflow:hidden; top:0; left:0; width:100%; height:100%; 
  z-index:8888; text-align:left;}
#modal_overlay {background:#000; opacity:0.4; filter:alpha(opacity = 40);}
#modal_window {display:none; position:absolute; overflow:hidden; z-index:9999; text-align:left;  border-radius:7px;
  border:7px solid #2D2E2E; background:#2D2E2E; box-sizing: border-box;}
#modal_bar {height:2em; padding:0px; background:#2D2E2E; box-sizing: border-box;}
#modal_bar h3 {border:none; background:#2D2E2E; font-style.normal; font-size:120%; color:#CCC; margin:0;}
#modal_close {background:url('/images/gallery/close.png') no-repeat top left; 
	cursor:pointer; font-size:0px; overflow:hidden; position:absolute; top:3px; right:7px;
	text-decoration:none; text-indent: -9999px; width:16px; height:16px; box-sizing: border-box;}
#modal_close:hover {background-position:bottom left; box-sizing: border-box;}
#modal_content {overflow:hidden; box-sizing: border-box;}
#modal_image_wrapper {display:none; position:relative; overflow:hidden; box-sizing: border-box;}

/* projekty */
.boxGall {text-align:left; background:#2D2E2E; box-sizing: border-box;}
.boxGall * {box-sizing: border-box;}
#divImg {text-align:center; overflow:hidden; position:relative; padding:0px; border-top:solid #CCC 1px; padding:2px 0 0 0;}
#inDivImg {display:table-cell; vertical-align:middle;}
.countP {position:absolute; top:10px; right:10px; text-align:right; color:#CCC; font-family:arial;}
/*width photo-next = padding+widthImg => 30+23*/
#photo-next, #photo-prev, #lleft, #rright {position:absolute; cursor:pointer;}
#photo-next {right:0px;padding:20px 10px 20px 20px;}
#photo-prev {left:0px; padding:20px 20px 20px 10px;}
#lleft, #rright {padding:7px 3px; top:17px;}
#lleft {left:3px;}
#rright {right:3px;}
#topDivGal {width:100%; height:66px; position:absolute; left:0px; bottom:0px; background:#424343;}
#divGall {margin:0 20px; overflow:hidden; text-align:center; white-space:nowrap;}
.gallTh {border:solid #FFF 1px; margin:3px 1px; cursor:pointer; opacity:0.4; filter:alpha(opacity = 40);}
.thumbsNone {display:none;}
.thumbsView {display:block;}

/* referencie-projekty, referencie-stavby */
.gallsP0 {float:left; text-align:center; min-width:176px;}
.gallsP {width:150px; height:150px; margin:13px auto;}
.gallsS {width:350px; height:263px; float:left; margin:13px;}
.gallsP, .gallsS {background:#2D2E2E; overflow:hidden; border:solid #2D2E2E 1px; position:relative; cursor:pointer;}
.gallsP div, .gallsS div {display:none; width:100%;	height:100%; text-align:center; position:absolute; top:0px; left:0px; color:#FFF; padding:5px;}
.gallsP div {padding-top:4em;}
.gallsS div {padding-top:5em;}
.gallsP em, .gallsS em {line-height:3; font-size:90%;}
.gallsP strong, .gallsS strong {display:block; position:absolute; top:0; left:0; padding:10px; color:#FFF; font-weight:normal;}
.gallsP strong {width:100%; font-size:130%; text-align:left;}
.gallsS strong {width:100%; font-size:120%; text-align:center;}
/*.gallsP img.imgW {height:100%; position:relative; left:-25px;}200x150*/
/*.gallsP img.imgH {width:100%; position:relative; top:-25px;}150x200*/
.gallsS img, .gallsP img {width:100%; height:100%;}

@media screen and (max-width:768px) { 
  .gallsP0 {width:25%; min-width:150px;}
}
@media screen and (max-width:667px) { 
  .gallsP {width:140px; height:140px; margin:5px auto;}
}
@media screen and (max-width:630px) { 
  .gallsP0 {width:33.3%;}
  .gallsP {width:150px; height:150px;}
  .gallsS {width:300px; height:225px; margin:10px;}
}
@media screen and (max-width:515px) { 
  .gallsP {width:140px; height:140px;}
}
@media screen and (max-width:461px) { 
  .gallsP {width:150px; height:150px;}
  .gallsP0 {width:50%;}
}
@media screen and (max-width:320px) {
  .gallsP0 {width:100%;}
}
