

/* Сетка раздела */
#photo {}
#photo #photo-tree {width: 245px; margin-right: 20px; font-size:11px; line-height:13px; float: left;}
#photo #photo-tree .tmargin {margin-top:5px}
#photo #photo-main {padding-top:10px; overflow: hidden;}


/* Дерево альбомов */
#photo #photo-tree .filetree {margin-top:10px; font-size:11px;}


/* Форма поиска */
form#photo-search{margin: 10px 0; display:block;}
form#photo-search input, form#photo-search button {font-size:115%;}
form#photo-search .example {margin-top:5px; font-size: 11px;}



/* Список подразделов */
#photo-sub-div {margin: 0; width:100%}
#photo-sub-div a {
	display: block;
	float: left;
	margin-right: 4%;
	margin-bottom: 4%;
	background: none #eeeeee no-repeat center;
	width: 22%; height:165px;
	-webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover;
	background-size: cover; position: relative; overflow: hidden;
	text-decoration: none;
}

#photo-sub-div a:nth-child(4n+4){
	margin-right: 0;
}

#photo-sub-div a .caption {
	font-size: 11px;
	margin: 0;
	padding: 6px 46px 1px 10px;
	width: 100%;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	position: absolute;
	bottom:0;
	left:0;
	background: none repeat scroll 0% 0% rgba(0, 0, 0, 0.4);
	color: white; line-height:1.1;
	-webkit-transition: all 0.5s ease;
	-moz-transition: all 0.5s ease;
	-o-transition: all 0.5s ease;
	transition: all 0.5s ease;
}

#photo-sub-div .name {
	font-weight: bold;
	padding-bottom:5px;
}

#photo-sub-div a .caption .descr {
	max-height:0;
	overflow: hidden;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
		-webkit-box-sizing: border-box;
	font-size: 10px;
	-webkit-transition: all 0.5s ease;
	-moz-transition: all 0.5s ease;
	-o-transition: all 0.5s ease;
	transition: all 0.5s ease;
}

#photo-sub-div a .updated{
	position: absolute;
	right:0;
	top:20px;
	margin:0;
	display: inline-block;
	padding:2px 5px 3px;
	background-color: red;
	color:#fff;
	font-size: 10px;
	line-height: 1;
	text-transform: uppercase;
}

#photo-sub-div a .caption .count{
	position: absolute;
	right:10px;
	top: 6px;
	float:right;
	color:#fff;
	font-weight: normal;
	line-height: 11px;
	background: url('/photo/photo-camera.png') no-repeat left center;
	padding-left:15px;
}

#photo-sub-div a:hover .caption{
	background: none repeat scroll 0% 0% rgba(0, 0, 0, 0.7);
	-webkit-transition: all 0.5s ease;
	-moz-transition: all 0.5s ease;
	-o-transition: all 0.5s ease;
	transition: all 0.5s ease;
}

#photo-sub-div a:hover .caption .descr{
	max-height:130px;
	overflow: hidden;
	margin-bottom: 10px;
}



/* Список фото */
#photo-main-list {margin: 0;}
#photo-main-list a {
	display: block;
	float: left;
	margin: 0 15px 15px 0;
	background: none #eeeeee no-repeat center;
	width: 120px; height:110px;
	-webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover;
	background-size: cover; position: relative; overflow: hidden;
	text-decoration: none;
}
#photo-main-list a div {
	font-size: 10px; margin: 0;
	padding: 2px 4px;
	width: 100%;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	max-height: 34px;
	position: absolute;
	bottom:0; left:0;
	background: none repeat scroll 0% 0% rgba(0, 0, 0, 0.5);
	color: white; line-height:100%;
}








.photo-menu-box{clear:both; padding:10px; border:1px #e0e0e0 solid}
.photo-inner10{padding:10px;}


/* обновления */
.photo-new-box{clear:both; padding:10px; margin-top:10px; font-size:11px; border:1px #e0e0e0 solid}
.photo-new-box ul {list-style-type: none;margin: 0px;padding: 0px;list-style-type: none;clear: both;}
.photo-new-box ul li {clear:both; margin-top:10px; border-top:1px #e0e0e0 solid; padding-top:7px}



.thumbwrap {
	padding: 0px;
	margin: 0px;
}

.thumbwrap li {
	display: -moz-inline-box;
	display: inline-block;
	/*\*/ vertical-align: top; /**/
	margin: 0px 3px 5px 0px;
	border: 0px solid #ccc;
	padding: 0px;
	text-align: center;
	position:relative;
}

/*  Moz: NO border qui altrimenti difficolta' con width, table altrimenti problemi a text resize (risolubili con refresh) */
.thumbwrap li>div {
	/*\*/ display: table; /**/
	width: 180px;
}

.thumbwrap a {
	display: block;
	text-decoration: none;
	color: #000;
	/*background: #fff; иначе на главной ОИНФО заменяется цвет фона */
	cursor: pointer;
}


.thumbwrap div.albumN{position:absolute; left:8px; top:8px; z-index:100; background:url('/images/ico_album.gif') no-repeat left top; display:block; width:19px; height:16px;}
.thumbwrap div.albumY{position:absolute; left:8px; top:8px; z-index:100; background:url('/images/ico_album_friends.gif') no-repeat left top; display:block; width:19px; height:16px;}

.thumbwrap a.albumN {
	display: block;
	text-decoration: none;
	color: #000;
	cursor: pointer;
}



.thumbwrap a.albumY {
	display: block;
	text-decoration: none;
	color: #000;
	cursor: pointer;
}

/*\*/
.thumbwrap>li .wrimg {
	display: table-cell;
	vertical-align: middle;
	width: 180px;
	height: 189px;
}
/**/
.thumbwrap img {
	border: solid 1px #999;
	vertical-align: middle;
}

.thumbwrap a:hover {
	background-color: #f0f0f0;
}
/*\*//*/
.thumbwrap li .wrimg {
	display: block;
	font-size: 1px;
}
.thumbwrap .wrimg span {
	display: inline-block;
	vertical-align: middle;
	height: 189px;
	width: 1px;
}
/**/
.thumbwrap .caption {
	display: block;
	padding: 0 5px 5px 5px;
	font-size: 12px;
	/*line-height: 1.1;*/
	/*border-top: 1px solid #ccc;*/
	/*w\idth: 180px;*/  /* Moz, IE6 */
}

.thumbwrap .caption .grey{color:#c0c0c0}



/* thubm comments number */
.thumbwrap .comments-num {
	position:absolute;
	left:5px;
	top:5px;
	z-index:99;
}

.thumbwrap .comments-num a, .thumbwrap .comments-num a:visited{
	padding:1px;
	padding-left:15px;
	font-size:10px;
	color:#505050;
	text-decoration:none;
	display:block;
	background-image: url(/images/comments_num.gif);
	background-repeat: no-repeat;
	background-position: 2px 3px;
}
.thumbwrap .comments-num a:hover{
	text-decoration:underline;
}


/* thubm rating */
.thumbwrap .rating {
	position:absolute;
	right:5px;
	top:5px;
	z-index:99;
	width: 75px;
	height: 15px;
	overflow: hidden;
	padding:0;
}


/* top ib e hover Op */
@media all and (min-width: 0px) {
	.thumbwrap {
	border-collapse: collapse;
	}
	.thumbwrap a {
	display: inline-block;
	vertical-align: top;
	}
	.thumbwrap {
	display: inline-block; /* non deve avere margin */
	}
}