.gallery_menu{
	background: #fafafa;
	padding: 5px;
	margin: 25px 0;
}
.gallery_menu.fixed + div{
	margin-top: 95px;
}
.gallery_menu.fixed{
	-webkit-transition: 0.2s;
	   -moz-transition: 0.2s;
	    -ms-transition: 0.2s;
	     -o-transition: 0.2s;
	        transition: 0.2s;
	margin: 0;
	z-index: 100;
	position: fixed;
	top: 47px;
	width: 696px;
}
.gallery_menu.fixed.no_margin{
	top: 0;
}
.gallery_menu ul{
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
	text-align: center;
}
.gallery_menu ul li{
	display: inline-block;
	margin: 0 10px;
	padding: 5px 15px;
	-webkit-border-radius: 3px;
	        border-radius: 3px;
}
.gallery_menu ul li a{
	color: #000;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 15px;
}
.gallery_menu a:hover{
	color: #ff696f;
	}
.gallery_menu ul li a svg{
	margin-right: 5px;
	position: relative;
	bottom: -4px;
	fill: #000;
}
.gallery_menu ul li.active{
	background: #a00000;
}
.gallery_menu ul li.active a svg{
	fill: #FFF;
}
.gallery_menu ul li.active a{
	color: #fff;
}

.gallery_menu ul li span{
	color: #ff0000;
	background: #d5d4d6;
	border-radius: 3px;
	padding: 3px;
	font-size: 16px;
	font-weight: bold;
	}
	
	/*Меню в компаниях*/
	
.company_menu{
	background: #fff;
	padding: 4px;
	}
.company_menu ul{
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
	text-align: center;
}
.company_menu ul li{
	display: inline-block;
	margin: 0 10px;
	padding: 5px 15px;
	-webkit-border-radius: 3px;
	        border-radius: 3px;
}
.company_menu ul li a{
	color: #000;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 15px;
}
.company_menu a:hover{
	color: #a00000;
		}
.company_menu ul li a svg{
	margin-right: 5px;
	position: relative;
	bottom: -4px;
	fill: #000;
}
.company_menu ul li.active{
	background: #1a1a1a;
}
.company_menu ul li.active a svg{
	fill: #FFF;
}
.company_menu ul li.active a{
	color: #fff;
}

.company_menu ul li span{
	color: #ff0000;
	background: #d5d4d6;
	border-radius: 3px;
	padding: 3px;
	font-size: 16px;
	font-weight: bold;
	}
		
	
.gallery h4 a:hover{
	text-decoration: none;
}
.gallery h4{
	border-bottom: 1px solid #0d0d0d;
	line-height: 1;
	padding-bottom: 17px;
	font-size: 21px;
	color: #0d0d0d;
	font-weight: 600;
	margin-bottom: 4px;
}
.gallery h4 span{
	display: inline-block;
	font-size: 12px;
	border-radius: 5px;
	background: #F2F2F2;
	color: #B4BFC4;
	padding: 5px;
	font-weight: 500;
}
.gallery .items{
	margin-left: -15px;
	margin-right: -15px;
}
.gallery .items .item{
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	        box-sizing: border-box;
	display: inline-block;
	width: calc(25%);
	padding: 15px;
	overflow: hidden;
	position: relative;
}
.gallery .items .item .image{
	-webkit-border-radius: 5px;
	        border-radius: 5px;
	margin-bottom: 0;
	width: 100%;
	height: auto;
}
.gallery .items .item span{
	display: inline-block;
	position: absolute;
	bottom: 28px;
	right: 23px;
	padding: 0 4px;
	font-size: 11px;
	color: #fff !important;
	background: RGBA(0, 0, 0, 0.5);
	-webkit-border-radius: 2px;
	        border-radius: 2px;
}
.gallery.video_gallery .items{
	margin-left: -15px;
	margin-right: -15px;
}
.gallery.video_gallery .items .item{
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
	        box-sizing: border-box;
	display: inline-block;
	width: calc(33.33%);
	padding: 20px;
	overflow: hidden;
	position: relative;
	vertical-align: top;
}
.gallery .items .item p{
	margin: 0;
	margin-top: 5px;
	font-size: 15px;
	text-align: center;
	color: #000;
	line-height: 1.2;
}
.gallery_item{
	text-align: center;
}
.gallery_item .item{
	display: inline-block;
	width: 73%;
	position: relative;
}
.gallery_item .item img{
	width: 100%;
}
.gallery_item .item iframe{
	width: 100%;
}
.gallery_item .item a.prev,
.gallery_item .item a.next{
	position: absolute;
	left: 5px;
	}
.gallery_item .item a.next{
	left: auto;
	right: 5px;
}

@media(max-width:1020px){
	.gallery_menu.fixed{
		top: 96px;
		width: 640px;
	}
}
@media(max-width:890px){
	.gallery_menu.fixed{
		width: 515px;
	}
	.gallery.on_page_gallery{
		display: none;
	}
}
@media(max-width:767px){
	.gallery_menu ul li a{
		font-size: 10px;
	}
	
@media(max-width:767px){
	.men_desc ul {
display: none;
}
}
	.gallery_menu ul li{
		margin: 2px 1px;
	}
	.gallery_menu.fixed{
		width: 100%;
		left: 0;
	}
	.gallery_menu.fixed{
		top: 53px;
	}
}
@media(max-width:890px){
	.gallery .items .item{
		width: calc(33.33%);
	}
}
@media(max-width:700px){
	.gallery.video_gallery .items .item{
		width: calc(50%);
	}
}
@media(max-width:550px){
	.gallery .items .item{
		width: calc(50%);
	}
	.gallery.video_gallery .items .item{
		width: calc(100%);
	}
}
@media(max-width:420px){
	.gallery .items .item{
		width: calc(50%);
	}
}

.comments{
	padding: 10px 20px;
	background: #F2F2F2;
}
.comment .comment-content{
	margin-left: 0;
}
.comments .td-comments-title-wrap{
	clear: both;
}
.comments .td-comments-title-wrap .td-comments-title{
	margin: 0;
	width: 50%;
	float: left;
	font-size: 20px;
	font-weight: 600;
	vertical-align: top;
	margin-bottom: 10px;
}
.comments .td-comments-title-wrap .right_side{
	width: 50%;
	float: right;
	vertical-align: top;
	text-align: right;
	margin-bottom: 10px;
}
.comments .form-submit{
	text-align: right;
}
.comments .form-submit input{
	display: inline-block;
	padding: 10px 15px;
	border-radius: 5px;
	color: #FFF;
	background: #969696;
	font-size: 18px;
}
.comments textarea{
	font-size: 16px;
	padding: 10px 15px;
	height: 100px;
	min-height: 100px;
}
.comments .all_comments{
	text-align: center;
	padding: 10px;
	font-size: 20px;
	border-top: 1px solid #969696;
	border-bottom: 1px solid #969696;
	margin-bottom: 10px;
}
.comments .all_comments span{
	color: #ff0000;
	background: #FFF;
	border-radius: 5px;
	padding: 5px;
	font-size: 16px;
	font-weight: bold;
}


@media(max-width: 991px) {
	.hide-on-mobile{
		display: none !important;
	}
	.td-ss-main-sidebar .biographyfields .code-block,
	.td-ss-main-sidebar .biographyfields .code-block.is_stuck{
		display: none !important;
	}
}
@media(max-width: 991px) {
.likebtn-label {
	display: none !important;
	}
}
.td-social-sharing-buttons.show_all_comments{
	border: 2px solid #F2F2F2;
	border-radius: 5px;
	color: #000;
}
.td-social-sharing-buttons.show_all_comments .td-social-but-text{
	top: -7px;
}

.comment .avatar{
	height: 50px;
	width: 50px;
	background-image: url("images/userpic.gif");
	background-repeat: no-repeat;
	background-size: cover;
	background-position: 50% 50%;
	border-radius: 50%;
}

/* === Gallery v3: photo modal + comments tab helpers === */

.biophoto-modal{display:none;position:fixed;inset:0;z-index:99999;}
.biophoto-modal.is-open{display:block;}
.biophoto-overlay{position:absolute;inset:0;background:rgba(0,0,0,.85);}
.biophoto-panel{position:relative;z-index:2;max-width:1100px;margin:0 auto;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:24px;box-sizing:border-box;}
.biophoto-stage{position:relative;max-width:100%;max-height:80vh;display:flex;justify-content:center;align-items:center;}
.biophoto-img{max-width:100%;max-height:80vh;object-fit:contain;}
.biophoto-loading{color:#fff;font-size:16px;padding:16px;}
.biophoto-caption{color:#fff;max-width:1000px;margin-top:12px;font-size:16px;line-height:1.3;text-align:center;}
.biophoto-close{position:absolute;top:16px;right:16px;width:44px;height:44px;border-radius:999px;border:0;background:rgba(255,255,255,.15);color:#fff;font-size:30px;line-height:44px;cursor:pointer;}
.biophoto-prev,.biophoto-next{position:absolute;top:50%;transform:translateY(-50%);width:52px;height:52px;border-radius:999px;border:0;background:rgba(255,255,255,.15);color:#fff;font-size:40px;line-height:52px;cursor:pointer;}
.biophoto-prev{left:16px;}
.biophoto-next{right:16px;}

.biophoto-modal-open{overflow:hidden;}

.biographe-comments-view{padding:16px 0;}
.biographe-comments-header{display:flex;align-items:center;gap:12px;margin-bottom:12px;}
.biographe-comments-back{display:inline-block;text-decoration:none;}
.biographe-comments-open{margin-top:12px;}
.biographe-comments-open a{text-decoration:underline;font-weight:bold;}
.biographe-comments-loading{margin-top:10px;}
.biographe-comments-error{padding:12px;background:#ffecec;border:1px solid #f5b7b7;}
.biographe-comments-sidebar{margin-top:20px;}

@media (max-width: 767px){
  .biophoto-prev,.biophoto-next{width:44px;height:44px;font-size:34px;line-height:44px;}
  .biophoto-panel{padding:16px;}
}

