.b-gallery {
	position: relative;
}

.b-gallery_fullscreen {
	position: fixed;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 10000;
}

.b-material .b-gallery.b-gallery_fullscreen {
	width: 100%;
	margin: 0;
}

.b-gallery-slider {
	position: relative;
	width: 750px;
	overflow: hidden;
	background-color: #232323;
}

.b-gallery_fullscreen .b-gallery-slider {
	width: 100%;
}

.b-gallery-slider_back {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	background-color: rgba(0,0,0,.92);
}

.b-gallery-slider__list {
	width: 10000%;
	float: left;
}

.b-gallery-slider__item {
    cursor: move;
    cursor: -webkit-grab;
    cursor: -o-grab;
    cursor: -ms-grab;
    cursor: grab;
	position: relative;
	width: 750px;
	height: 458px;
	float: left;
	overflow: hidden;
}

.b-gallery_fullscreen .b-gallery-slider__item {
	width: 100%;
	height: 100%;
}

.b-gallery_fullscreen .b-gallery-item {
	width: auto;
	height: auto;
	display: block;
}

.b-gallery-item .b-gallery-img_large {
    margin: auto;
}

.b-gallery-item {
	text-align: center;
	display: table-cell;
	vertical-align: middle;
	height: 458px;
	width: 750px;
}

.b-gallery-img_large {
    height: auto;
    max-width: 746px;
}

.b-gallery-img_full {
	display: none;
}

.b-gallery_fullscreen .b-gallery-img_large {
	display: none;
}

.b-gallery_fullscreen .b-gallery-img_full {
	display: inline-block;
	max-width: 90%;
	max-height: 80%;
}

.b-gallery-slider__desc {
	position: absolute;
	background-color: rgba(0,0,0,.45);
	bottom: 0;
	left: 0;
	right: 0;
}

.b-material-text .b-gallery-slider__desc-text a[href]{
	color: #FFF;
}

.b-material-text .b-gallery-slider__desc-text a[href]:hover{
	color: #F1F1F1;
	text-decoration: none;
}

.b-gallery_fullscreen .b-gallery-slider__desc {
	bottom: 49px;
}

.b-gallery-slider__desc-text,.b-material-text .b-gallery-slider__desc-text {
	padding: 15px 63px 12px;
	font-size: 13px;
	font-weight: normal;
	color: #fff;
	line-height: 1.4;
}
.b-gallery-slider__desc-text > span,.b-material-text .b-gallery-slider__desc-text > span {
	display: block;
	padding-top: 10px;
}

.b-gallery-slider__desc-cut {
	position: absolute;
	top: 15px;
	right: 20px;
	width: 16px;
	height: 16px;
	display: block;
	background-image: url(/i/b-gallery.png);
	background-repeat: no-repeat;
	background-position: -57px -25px;
	cursor: pointer;
}

.b-gallery-slider__desc-open {
	position: absolute;
	bottom: 10px;
	right: 20px;
	width: 16px;
	height: 16px;
	background-image: url(/i/b-gallery.png);
	background-repeat: no-repeat;
	cursor: pointer;
	display: none;
	background-color: rgba(0,0,0,1);
	border-radius: 2px;
	background-position: -87px -25px;
	z-index: 1;
}

.b-gallery_fullscreen .b-gallery-slider__desc-open {
	bottom: 80px;
}

.b-gallery-panel {
	position: relative;
	width: 100%;
	padding: 12px 0 14px;
    background-color: #232323;
}

.b-gallery_fullscreen .b-gallery-panel {
	position: absolute;
	bottom: 0;
}

.b-gallery-panel__l {
	display: none;
}

.b-gallery_fullscreen .b-gallery-panel__l {
	width: 58%;
}

.b-gallery-panel__r {
	display: inline-block;
	vertical-align: middle;
	margin-left: 65px;
}

.b-gallery__title {
	font-size: 16px;
	font-weight: bold;
	color: #fff;
	line-height: 1.4;
}

.b-gallery_fullscreen .b-gallery__title {
	font-size: 21px;
}

.b-gallery__icon {
	margin-left: 10px;
	display: inline-block;
	background-image: url(/i/b-gallery.png);
	background-repeat: no-repeat;
}

.b-gallery__icon_fullscreen {
	position: absolute;
	top: 50%;
	width: 18px;
	height: 12px;
	margin-top: -6px;
	background-position: 0 -70px;
	right: 41px;
}

html.touch  .b-gallery__icon_fullscreen,
.b-gallery_fullscreen .b-gallery__icon_fullscreen {
	display: none;
}

.b-gallery-nav {
	display: inline-block;
	vertical-align: middle;
	position: relative;
	width: auto;
}

.b-gallery-nav__content {
	max-width: 245px;
	height: 20px;
	margin: 0 20px;
	overflow: hidden;
}

.b-gallery-nav__list {
	width: 1000%;
	float: left;
	line-height: 1;
}

.b-gallery-nav__item {
	float: left;
	width: 24px;
	padding-top: 3px;
	color: #fff;
	font-size: 13px;
	font-weight: bold;
	text-align: center;
	opacity: 0.6;
	display: block;
	cursor: pointer;
	text-decoration: none;
}

.b-gallery-nav__more,.b-gallery-nav__more_last {
	top: 0;
	position: absolute;
	display: none;
	width: 24px;
	z-index: 1;
	opacity: 1;
}

.b-gallery-nav__more span,.b-gallery-nav__more_last span,.b-gallery-nav__more_first span {
	color: #fff;
	font-size: 13px;
	font-weight: bold;
	text-align: center;
	opacity: .6;
	display: block;
	cursor: pointer;
	text-decoration: none;
}

.b-gallery-nav__more_prev {
	left: 20px;
}

.b-gallery-nav__more_next {
	padding-left: 4px;
	padding-right: 2px;
	right: 44px;
}

.b-gallery-nav__more_first {
	left: 20px;
}

.b-gallery-nav__more_last {
	right: 20px;
}

.b-gallery-nav__control {
	position: absolute;
	top: 5px;
	width: 7px;
	height: 9px;
	background-image: url(/i/b-gallery.png);
	background-repeat: no-repeat;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.b-gallery-nav__control_next {
	right: 0;
	background-position: 0 -30px;
}

.b-gallery-nav__control_prev {
	left: 0;
	background-position: -30px -30px;
}

.b-gallery-close {
	position: fixed;
	top: 20px;
	right: 20px;
	width: 26px;
	height: 26px;
	cursor: pointer;
	background: url(/i/b-gallery-close.png) 0 0 no-repeat;
}

.b-gallery-nav__item:hover,.b-gallery-nav__item_active,.b-gallery-nav__more:hover span,.b-gallery-nav__more_last:hover span,.b-gallery-nav__more_firfs:hover span {
	opacity: 1;
}

.b-gallery__control {
	position: absolute;
	top: 50%;
	margin-top: -13px;
	background-image: url(/i/b-gallery.png);
	background-repeat: no-repeat;
	width: 25px;
	height: 25px;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.b-gallery-slider_back .b-gallery__control {
	display: block;
}

.b-gallery__control_prev {
	left: 20px;
	background-position: 0 0;
}

.b-gallery__control_next {
	right: 20px;
	background-position: -30px 0;
}

.b-gallery__control_re {
	display: none;
	right: 18px;
	background-position: -60px 0;
}

.b-gallery__mode {
	display: inline-block;
	vertical-align: middle;
	width: 11px;
	height: 8px;
	margin-left: 17px;
	background-image: url(/i/b-gallery.png);
	background-repeat: no-repeat;
	background-position: 0 -50px;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.b-gallery_fullscreen .b-gallery__mode {
	margin-right: 63px;
}

.b-gallery__count {
	position: absolute;
	padding-top: 30px;
	width: 100%;
	font-size: 13px;
	font-weight: bold;
	color: #fff;
	text-align: center;
}

.b-gallery_fullscreen .b-gallery__count {
	font-size: 22px;
}

.b-gallery-set {
	margin: 45px auto 0;
	padding-top: 25px;
	width: 710px;
	height: 100%;
	z-index: 1;
}

.b-gallery_fullscreen .b-gallery-set {
	padding-top: 38px;
	width: 906px;
}

.b-gallery-set__item {
	margin: 7px;
	width: 162px;
	height: 92px;
	float: left;
	text-align: center;
}

.b-gallery-set__item_fullscreen {
	display: none;
	margin: 12px;
	width: 278px;
	height: 158px;
	float: left;
	text-align: center;
}

.b-gallery_fullscreen .b-gallery-set__item {
	display: none;
}

.b-gallery_fullscreen .b-gallery-set__item_fullscreen {
	display: block;
}

@media screen and (max-height:900px) {
	.b-gallery_fullscreen .b-gallery-set__item {
		display: block;
		width: 212px;
		height: 166px;
	}

	.b-gallery_fullscreen .b-gallery-set__item_fullscreen {
		display: none;
	}
}

.b-gallery-set__item img {
	display: inline-block;
	box-shadow: 0 0 5px 0 rgba(0,0,0,.8);
	cursor: pointer;
}

.b-gallery-set__item_active img {
	margin-left: -2px;
	margin-top: -2px;
	border: 2px solid #fff;
	box-shadow: none;
}

.b-material .b-gallery {
	width: 750px;
	margin: 0 -62px 37px;
	float: left;
}

body.gallery-fullscreen {
	overflow: hidden;
}


.b-video-back,.b-video__content .b-video-back {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	display: none;
	background-color: #000;
}

.b-video-back__content,.b-video__content .b-video-back__content {
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 640px;
	overflow: hidden;
}
.b-video-back__l,.b-video__content .b-video-back__l {
	float: left;
	margin-right: 120px;
}
.b-gallery_fullscreen .b-video-back__l,.b-video_fullscreen .b-video-back__l {
	width: 350px;
	margin-right: 105px;
}
@media only screen and (max-width:1280px) {
	.b-gallery_fullscreen .b-video-back__l,.b-video_fullscreen .b-video-back__l {
		margin-right: 105px;
	}
}
.b-video-back__r,.b-video__content .b-video-back__r {
	float: left;
	width: 362px;
}
.b-video_fullscreen .b-video-back__r,.b-gallery_fullscreen .b-video-back__r {
	display: block;
	width: 620px;
}
.b-video-soc,.b-video__content .b-video-soc {
	margin: auto;
	width: 145px;
}

.b-gallery .b-video-soc {
	margin-top: 75px;
}

.b-gallery_fullscreen .b-video-soc,.b-video_fullscreen .b-video-soc {
	margin-top: 140px;
	width: 249px;
}

.b-video-soc__title,.b-video__content .b-video-soc__title {
	margin-bottom: 18px;
	line-height: 1.6;
	font-size: 16px;
	font-weight: bold;
	color: #fff;
	border-bottom: 3px solid #fff;
}

.b-gallery_fullscreen .b-video-soc__title,.b-video_fullscreen .b-video-soc__title {
	font-size: 27px;
	border-bottom-width: 6px;
	margin-bottom: 35px;
}

.b-video-soc__list,.b-video__content .b-video-soc__list {
	margin: 0 -14px;
	overflow: hidden;
}

.b-gallery_fullscreen .b-video-soc__list,.b-video_fullscreen .b-video-soc__list {
	margin: 0 -25px;
}
.b-video-soc__item,.b-video__content .b-video-soc__item {
	margin: 0 0px 28px 14px;
	width: 26px;
	height: 26px;
	background-image: url(/i/b-soc.png);
	background-repeat: no-repeat;
	cursor: pointer;
	float: left;
}

.b-gallery_fullscreen .b-video-soc__item,.b-video_fullscreen .b-video-soc__item {
	margin: 0 0px 50px 25px;
	width: 44px;
	height: 44px;
	background-image: url(/i/b-soc_large.png);
}

.b-video-soc__item:hover,.b-video__content .b-video-soc__item:hover {
	opacity: .8;
}
.b-video-soc__item_fb {
	background-position: 0 0;
}

.b-video-soc__item_vk {
	background-position: -30px 0;
}

.b-video-soc__item_ok {
	background-position: -60px 0;
}

.b-video-soc__item_twitter {
	background-position: -90px 0;
}

.b-video-soc__item_mailru {
	background-position: -120px 0;
}

.b-video-soc__item_gplus {
	background-position: -150px 0;
}

.b-video-soc__item_lj {
	background-position: -180px 0;
}

.b-video-soc__item_reddit {
    background-position: -208px 0;
}

.b-gallery_fullscreen .b-video-soc__item_fb,.b-video_fullscreen .b-video-soc__item_fb {
	background-position: 0 0;
}

.b-gallery_fullscreen .b-video-soc__item_vk,.b-video_fullscreen .b-video-soc__item_vk {
	background-position: -50px 0;
}

.b-gallery_fullscreen .b-video-soc__item_ok,.b-video_fullscreen .b-video-soc__item_ok {
	background-position: -100px 0;
}

.b-gallery_fullscreen .b-video-soc__item_twitter,.b-video_fullscreen .b-video-soc__item_twitter {
	background-position: -150px 0;
}

.b-gallery_fullscreen .b-video-soc__item_mailru,.b-video_fullscreen .b-video-soc__item_mailru {
	background-position: -200px 0;
}

.b-gallery_fullscreen .b-video-soc__item_gplus,.b-video_fullscreen .b-video-soc__item_gplus {
	background-position: -250px 0;
}

.b-gallery_fullscreen .b-video-soc__item_lj,.b-video_fullscreen .b-video-soc__item_lj {
	background-position: -300px 0;
}

.b-gallery_fullscreen .b-video-soc__item_reddit,.b-video_fullscreen .b-video-soc__item_reddit {
    background-position: -351px 0;
}

.b-video-like__list,.b-video__content .b-video-like__list {
	overflow: hidden;
}

.b-video-like__item,.b-video__content .b-video-like__item {
    display: block;
    float: left;
    position: relative;
	margin-right: 5px;
	margin-bottom: 4px;
}

.b-gallery_fullscreen .b-video-like__item,.b-video_fullscreen .b-video-like__item {
	margin-right: 8px;
	margin-bottom: 7px;
}

.b-video-like__pic,.b-video__content .b-video-like__pic {
	width: 176px;
	height: 120px;
}

.b-gallery_fullscreen .b-video-like__pic,.b-video_fullscreen .b-video-like__pic {
	display: none;
}

.b-video-like__pic_fullscreen,.b-video__content .b-video-like__pic_fullscreen {
	display: none;
}

.b-gallery_fullscreen .b-video-like__pic_fullscreen,.b-video_fullscreen .b-video-like__pic_fullscreen {
	width: 302px;
	height: 206px;
	display: block;
}

.b-video-like__text,.b-video__content .b-video-like__text {
	overflow: hidden;
    display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000;
	text-decoration: none;
}

html.no-touch .b-video-like__item:hover .b-video-like__text {
	display: block;
}


.b-video-like__title,.b-video__content .b-video-like__title {
	padding: 10px 4px;
	font-weight: bold;
	font-size: 12px;
	color: #fff;
	display: block;
	line-height: 1.6;
}

.b-gallery_fullscreen .b-video-like__title,.b-video_fullscreen .b-video-like__title {
	font-size: 20px;
}

.b-video-like__desc,.b-video__content .b-video-like__desc {
	padding: 0 4px;
	display: block;
	color: #7f7f82;
	font-size: 11px;
	line-height: 1.4;
	font-weight: bold;
}

.b-gallery_fullscreen .b-video-like__desc,.b-video_fullscreen .b-video-like__desc {
	font-size: 19px;
}
