img {height: auto;max-width: 100%;vertical-align: middle;border: 0;}
.thumbnails {list-style: none;padding:0;margin:0;}

.thumbnails:before,
.thumbnails:after {display: table;line-height: 0;}
.thumbnails:after {clear: both;}
.row-fluid .thumbnails {margin-left: 0;}
.thumbnails > li {float: left; margin-right:30px; margin-top:50px;}

@media (min-width: 1200px) {
.thumbnails > li { float:left;margin-right: 60px;}
.thumbnails > li:nth-of-type(3n){ margin-right:0;}
.thumbnails-2 > li:nth-of-type(4n){ margin-right:0;}
.thumbnails-2 > li:nth-of-type(3n){ margin-right:60px;}
.thumbnails-5 > li:nth-of-type(5n){ margin-right:0;}
.thumbnails-5 > li:nth-of-type(3n){ margin-right:60px;}
.row-fluid .thumbnails {margin-left: 0;}
}
@media (min-width: 768px) and (max-width: 1024px) {
.span3 {width:30%;}
.thumbnails > li { margin-right:3%; margin-top:20px; }
}
@media (max-width: 767px) {
.thumbnails > li { margin-right:0px; margin-top:20px;}
}

.fs_gallery {background: rgba(0,0,0, 0.9);position: fixed;left: 0;top: 0;right: 0;bottom: 0;z-index: 100;}
.fs_gallery_close {position: absolute;top: 20px;right: 20px;width: 25px;height: 25px;color: #ccc;font-size: 34px;line-height: 23px;text-align: center;
cursor: pointer;z-index: 102;}
.fs_gallery_close:before {content: "×";}
.fs_gallery_close:hover {color: #fff;}
.fs_gallery_prev, .fs_gallery_next {position: absolute; width: 80px; color: #ccc; font-size: 30px; cursor: pointer;z-index: 101;}
.fs_gallery_prev:hover, .fs_gallery_next:hover {background: rgba(0,0,0, 0.1);color: #fff;}
.fs_gallery_prev { left: 0; top: 0; bottom: 0;}
.fs_gallery_next { right: 0; top: 0; bottom: 0;}
.fs_gallery_prev:before { content: "‹"; position: absolute; height: 30px; margin-top: -30px; top: 50%; left: 35px;}
.fs_gallery_next:before { content: "›"; position: absolute; height: 30px; margin-top: -30px; top: 50%; left: 35px;}
.fs_gallery_shuft { position: relative; width: 9999999px;}
.fs_gallery_shuft:after { clear: both; content: ""; display: block;}
.fs_gallery_shuft_item { float: left; position: relative; background-position: center center; background-repeat: no-repeat;}
.fs_gallery_shuft_item img { box-shadow: 0 0 8px rgba(0,0,0, 0.8);  position: absolute; top: 50%;left: 50%;}

