.filter{
	display:inline-block;
	width:96%;
	background-color: #f9f9f9;
	padding:2%;
	font-weight:600;
	margin-bottom: 20px;
}
.filter .filter_element{
	float:left;
	width:28%;
	padding-top: 4.5px;
}
.filter .filter_element select{
	width:80px;
}
.filter form > input{
	float:right;
	background-color: #0078e6;
	font-weight:600;
	color: #fff;
	padding:5px 10px;
	border-width: 0px;
    border-radius: 5px;
}
.sections, .fotos_news{
	display:block;
	width:104%;
	padding: -10px;
	margin-top: 20px;
	float:left;
}
.photo-page-main{
	float:left;
}
.sections a{
	display:block;
	float:left;
	width:30%;
	color: #000; 
    text-decoration: none;
	padding:20px 5px;
	margin: 0 9px 9px 0;
	border: 1px solid #ff5000;
	height:380px;
}
.sections a:hover{
	color: #000;
    text-decoration: none;
	border-color: #fff;
    box-shadow: 0 0 17px 0 #e2e2e2;
/*	border: none;
	margin:6px;	*/
}
.sections a h3{
	color: #000;
	margin: 0px 20px;
	text-align:center;
	display:block;
	height:75px;
	font-size:14px;
}
.sections a .ramka{
	width: 100%;
    overflow: hidden;
    height: 150px;
	display:block;
	margin:5px 0;
}

.photo_gallery_p{
	margin-top: 7px
}

.sections a img{
	margin: 0px auto;
/*	text-align:center; */
	display:block;
	width:216px;
}
.sections a .name{
	font-weight:600;
}
.text_block{
	display:block;
	width:96%;
	background-color: #f9f9f9;
	padding:2%;
	margin-bottom:30px;
}
.text_block p .name{
	font-weight:600;
}
a.fotochka{
	overflow: hidden;
	max-height: 177px;
	max-width:177px;
    display: block;
    float: left;
    position: relative;
}	
a.fotochka  img{
    min-height: 155px;
    float: left;
    width: 177px;
    border: 1px solid #ebebeb !important;
    margin: 10px 0px 0px 10px;
    padding: 5px;
}

a.img_width img {
	max-height:155px;
	width:auto!important;
}

a.fotochka:before, a.gallery:before {
		
    content: '';
    background: url('/upload/images/loop2.png') no-repeat;
    position: absolute;
    z-index: 100;
    width: 38px;
    height: 38px;
    display: none;
	right: 6px;
    bottom: 6px;
}
.small_border { 
    border: 1px solid #ebebeb !important;
	margin-top:10px;
    margin-left: 10px;
	position: relative;
	z-index: 120;
	height: 165px;
    width: 165px;
}
.small_border:hover {
	
	position: relative;
    height: 165px;
    width: 165px;
    z-index: 120;
    margin-left: 10px;
    margin-top: 10px;
    border: 1px solid;
    border-color: #FF5000 !important;
}

.small_border:hover + .big_border{
	position: relative;
    height: 154px;
    width: 155px;
    z-index: 110;
    margin-left: 11px;
    margin-top: -165px;
    border: 5px solid;
    border-color: #ffffff;

}
.big_border{
	position: relative;
    height: 154px;
    width: 155px;
  	margin-left: 11px;
    margin-top: -165px;
    border: 5px solid;
    border-color: #ffffff;
}
a.fotochka:hover  img {
	
	z-index:10;
    cursor: pointer;
    border-color: #FF5000 !important;
}
a.fotochka:hover:before {
	
    display: block;
}

