* {
	transition: 0.3s;
	-webkit-transition: 0.3s;
	-moz-transition: 0.3s;
	-o-transition: 0.3s;
	outline:none;
}
.logout {color: #1E5799;cursor: pointer; position: absolute; right: 0;}
.dn {display:none;}
body{margin:0px;   }
#main {
	margin:auto;
	width:100%;
	min-width: 350px;
	max-width: 1200px;
	height: auto;
}
#main a {
 text-decoration: none;
}
header {
	min-width: 350px;
	position: relative;
	width: 100%;
	background: #34495e; /* Old browsers */

}
.onlyprevnext
{
	margin:40px;
}
.nav {
	
	min-width: 350px;
	max-width: 1200px;
	min-height: 30px;
	position: relative;
}
nav {
	/*position: absolute;*/
	padding:30px;
	left: 10px;
	min-height: 30px;
	float: left;
}
#mainul {
	list-style: none;
	margin: 0;
	padding: 0;
	z-index: 1;
}
.input-group-addon {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: normal;
    line-height: 1;
    color: #555555;
    text-align: center;
    background-color: #eeeeee;
    border: 1px solid #cccccc;
    border-radius: 0 4px 4px 0;
    border-left: 0;
    margin: 0;
}
.input-group-addon:hover {
	background: #ccc;
}
.hr .input-group a,
.hr .input-group a:hover {
	border: none;
	width: auto;
	height: auto;
	background: none;
	padding: 0;
	margin: 0;
}
.input-group {
	min-width: 80px;
  position: relative;
  display: inline-block;
}
input.form-control.input-poisk {
    width: 38px;
    box-sizing: border-box;
    padding: 7px 6px 6px 6px;
    margin: 0;
    border-radius: 4px 0 0 4px;
    border: solid 1px #CCC;
    border-right: 0;
}
input.form-control.input-poisk:focus {
	width: 250px;
}
.hr {
	float:right;
		margin: 0; /* Обнуляем значение отступов */
		padding: 4px; /* Значение полей */
	text-align: right;
	 }
#mainul li {
	display: inline-block;
}
#mainul li a {
	cursor: pointer;
	color: #48cfad;
	text-decoration: none;
	display: inline-block;
	padding: 0 5px;
	margin: 0;
	height: 30px;
	text-align: center;
	line-height: 64px;
	border-bottom: solid 3px transparent;
	font-family: 'Lato', sans-serif;
}
#mainul li a:hover {
	color: #9DFFE6;
	/*border-bottom: solid 3px #FBEA00;
	background: rgba(0, 31, 64, 0.17);*/
}
#mainul li a.active {
	color: #fff;
}
span {
	color: #48cfad;
}
.hr li {
		display: inline; /* Отображать как строчный элемент */
		margin-right: 5px; /* Отступ слева */
		padding: 3px; /* Поля вокруг текста */
	 }
.hr a {
	color: #999;
		text-decoration: none;
		font-family: 'Lato', sans-serif;
	padding: 4px;
}
.hr a:hover {
	background: #48cfad;
		color: #fff;
		border-radius: 4px;
}
.mobilemenu {
	height: 50px;
	color: #fff;
	line-height: 50px;
	text-align: center;
	display: none;
	cursor: pointer;
	
}
.mobilemenu:hover,
.mobilemenu:active {
	color: #FBEA00;
	border-bottom: solid 3px #FBEA00;
}

.topmenumobile .mobilemenu:hover,
.topmenumobile .mobilemenu:active, {
	border-radius: none;
}
content {
	text-align: justify;
	display: block;
	position: relative;
	width: 100%;

}
.clear
{
clear:both;

}
.jmenu {
		min-width: 350px;
		max-width: 1200px;
		box-sizing: border-box;
		padding-top: 25px;
		padding-bottom: 25px;
}
.jh {
	float: left;
		margin: 0px;
		color: #777;
		font-family: 'Lato', sans-serif;
		font-weight: 500;
		line-height: 30px;
}
.jhh {
	float: right;
	color: #fff;
	margin: 0;
	font-family: 'Lato', sans-serif;
	font-weight: 500;
		line-height: 64px;
}
.jli {
	cursor: pointer;
		color: #fff;
		text-decoration: none;
		padding: 0 5px;
		margin: 0;
		height: 30px;
		text-align: center;
		line-height: 64px;
		border-bottom: solid 3px transparent;
		font-family: 'Lato', sans-serif;
}
.cats a {
	color:#444e67;
}
.cats a:hover {
	color:#48cfad;
}
.rightpanel {
	display: block;
	width: 300px;
	min-height: 1000px;
	height: auto;
	position: absolute;
	right: 0;
	margin-top: 20px;
}
.content {
	position: absolute;
	left: 0;
	width: calc(100% - 320px);
	box-sizing: border-box;
	margin-top: 20px;
}

.cat-item {
	border: dashed 1px #ddd;
	position: relative;
	font-weight: bold;
	font-size: 80%;
	color: #fff;
	margin-bottom: 2px;
	width: 279px;
	height: 196px;
	overflow: hidden;
	display: inline-block;
	vertical-align: top;
	background:#FFF;

}
h4{margin:0px;}

.img {width: 281px;height: 200px;line-height: 200px;}

.fl{
	clear: both;
	text-align: center;
	display: inline-block;
	height: 200px;
	width: 281px;
	line-height: 1;
	padding: 20px;
	box-sizing: border-box;
}
.cr{float: left!important;}

.cat-item img {
	max-width: 279px;
	max-height: 196px;
	min-height: 150px;
	line-height: 196px;
	vertical-align: middle;
}
.cat-item .mask {
	background: rgba(0,0,0,.5);
	top: 0px;
	opacity: 0;
	transition: all 0.3s ease-out 0.5s;
	height: 200px;
	width: 281px;
	line-height: 200px;
}

.mask .mask-panel {
	position: absolute;
	width: 281px;
	height: 100px;
	top: 0;
	line-height: 100px;
	text-align: center;
	font-size: 30px;
	z-index: 2;
}
.m-save
{
	color:white;
	padding-right:20px;
}
.mask-panel .m-see,
.mask-panel .m-save,
.mask-panel .m-print {
	display: inline-block;
	color: #fff;
	width: 50px;
	height: 50px;
	line-height: 50px;
	border-radius: 100%;
	margin: 2px;
	cursor: pointer;
}
.mask-panel .m-see:hover,
.mask-panel .m-print:hover,
.mask-panel .m-save:hover,
.mask-panel .m-save.active {
	background: rgba(255,255,255,.5);
	color: #34495E;
}
.control-panel {
	margin-top:40px;
	background: rgba(0,0,0,.5);
	padding: 5px 20px;
	border-radius: 8px 8px 0 0;
	font-weight: bold;
	font-size: 15px;
}
.control-panel .m-see,
.control-panel .m-save,
.control-panel .m-print {
	display: inline-block;
	color: #fff;
	border-radius: 5px;
	margin: 0 10px;
	cursor: pointer;
	padding: 2px 10px;
}
.control-panel .m-see:hover,
.control-panel .m-save:hover,
.control-panel .m-print:hover {
	background: rgba(255,255,255,.5);
	color: #34495E;
}


.jm {
	 background: black;
	 max-height: 200px;
}




.img-item {
	border: dashed 1px #ddd;
	position: relative;
	font-weight: bold;
	font-size: 80%;
	color: #fff;
	margin-bottom: 2px;
	width: 100%;
	height: 600px;
	overflow: hidden;
	display: inline-block;
	vertical-align: top;
	background:#FFF;

}
.img-item img {
	max-width: 100%;
	max-height: 600px;
}


.categories {
	text-align: center;
}
.desc {
	background: rgba(0,0,0,.5);
	width: 100%;
	display: block;
	position: absolute;
	min-height: 15px;
	padding: 3px 0;
	left: 0;
	bottom: 0;
}

.cat-item .eye-preview {
	color: #111;
	opacity: 0.1;
	font-size: 150px;
	position: absolute;
	left: 0px;
	width: 100%;
	height: 100%;
	transition: 0.3s;
	-webkit-transition: 0.3s;
}
a:hover .cat-item .eye-preview {
	opacity: 0.3;
	transition: 0.3s;
	-webkit-transition: 0.3s;
}
.item {
	display: inline-block;
	position: relative;
}
.item1 {
	display: flex;
    justify-content: center;
    align-items: center;
}
.controls {
	position: absolute;
	display: block;
	bottom: 20px;
	right: 0;
	padding: 15px;
	min-width: 60px;
	height: 30px;
	z-index: 1;
}
.controls .del-img>a,
.controls .edit-img>a {
	display: block;
	color: red;
	width: 30px;
	height: 30px;
	line-height: 30px;
}

.controls .edit-img>a {color: #48cfad;}

.controls .edit-img:hover>a {color: #9DFFDD;}
.controls .del-img:hover>a {color: #FF9D9D;}

.controls .del-img,
.controls .edit-img {
	float: left;
	font-size: 120%;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	color: red;
	border-radius: 100%;
	border: solid 1px red;
	opacity: 0.8;
	cursor: pointer;
}

.controls .del-img:hover {
	background: red;
	border: sold 1px darkred;
	color: #fff;
}
.controls .edit-img:hover {
	background: #48cfad;
	border: sold 1px #34AF90;
	color: #9DFFDD;
}

.controls .edit-img {border: solid 1px #48cfad;margin-right: 5px;}

.desc div {

	float:right;
	margin-right:10px;
	margin-left:10px;
}
.cats {list-style: none;}

/*---------- Пагинация --------------*/
ul.pagination {
	list-style: none;
	font-family: 'Courier New';
	font-size: 80%;
	font-weight: bold;
}
.pagination li.p-item a {color: #f5f5f5;	width: 50px; height: 30px; display: block;}
.pagination li.p-item {
	margin: 3px;
	width: 50px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	border-radius: 8px;
	background: rgba(0,0,0,.5);
	display: inline-block;
	border: solid 1px rgba(0,0,0,.5);
	cursor: pointer;
}
.pagination li.p-item.prev,
.pagination li.p-item.next,
.pagination li.p-item.prev a,
.pagination li.p-item.next a {
	width: 150px;
}
.pagination li.p-item.active,
.pagination li.p-item:hover {background: #f5f5f5;}
.pagination li.p-item.active a,
.pagination li.p-item:hover a {color: rgba(0,0,0,.5);}
/*---------- Пагинация --------------*/

/*---------- Облако Тегов --------------*/
.rp-cloud {
	box-sizing: border-box;
	display: block;
	width: 100%;
	text-align: center;
}
.rp-cloud span.remove-tag{display: inline-block; border-radius: 0 4px 4px 0;}
.rp-cloud span.tag-elem span.remove-tag a{color: red;padding: 5px 8px;}
.rp-cloud span.remove-tag:hover {background: red;}
.rp-cloud span.tag-elem span.remove-tag:hover a{color: #fff;}

.rp-cloud span.tag-elem a{color: #34495e;padding: 5px 8px;}
.rp-cloud span.tag-elem {
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    background: #FFFFFF;
    border: solid 1px #48CFAD;
    position: relative;
    color: white;
    margin: 2px 0 2px 2px;
}
.rp-cloud span.tag-elem:first-child {margin-left: 0;}
.rp-cloud span.tag-elem:hover {   background: #EEE;}
.rp-cloud span.tag-elem:hover a{color: #000;}
/*---------- Облако Тегов --------------*/

/*---------- МЕДИА ЗАПРОСЫ --------------*/

@media screen and (max-width: 860px) {
	.content {
		position: relative;
		width: 100%;
	}
	.rightpanel {
		margin: auto;
		position: relative;
		width: auto;
		max-width: calc(279px + 279px + 9px * 5);
	}

}
@media screen and (max-width: 680px) {
	.rightpanel {
		max-width: calc(279px + 9px * 2);;
	}
	.mobilemenu {
		display: block;
	}
	.nav nav {
		
		position: relative;
		right: 0;
	}
	#mainul {
		background: #54769A;
		margin-bottom: 10px;
	}
	#mainul li {
	display: block;
	}
	#mainul li a {
		color: #fff;
		text-decoration: none;
		display: block;
		padding: 0 5px;
		margin: 0;
		height: 50px;
		text-align: center;
		line-height: 50px;
	}
}
/*---------- МЕДИА ЗАПРОСЫ --------------*/















/* По умолчанию на мобилках скрываем список, когда нет класса active */
@media (max-width: 768px) {
    .topmenu ul#mainul {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    /* Когда класс active добавлен — показываем */
    .topmenu ul#mainul.active {
        display: flex;
    }
    .mobilemenu {
        display: block; /* Показываем иконку гамбургера на мобилках */
        cursor: pointer;
    }
}

/* На десктопах меню всегда видимое */
@media (min-width: 769px) {
    .topmenu ul#mainul {
        display: flex !important;
    }
    .mobilemenu {
        display: none;
    }
}