﻿/* Устанавливаем полосу прокрутки у основной части страницы */
.main_modal {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	overflow: hidden;
}
/* Устанавливаем свойства тумана */
.fog {
	width: 100%;
	background-color: #000;
	opacity: 0.5;
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 998;
}
/* Устанавливаем свойства модального окна, в т.ч. прокрутку, которая будет отображаться вместо прокрутки для дива .body */
.modal {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
	z-index: 999;
}
/* Устанавливаем свойства дива, в котором показывается контент модального окна */
.infog {
	background: #fff; /*border: 1px solid red;*/
	margin: 15px auto 85px auto;
	position: relative;
	box-shadow: 0px 1px 3px rgba(0,0,0,.75);
	-moz-box-shadow: 0px 1px 3px rgba(0,0,0,.75);
	-webkit-box-shadow: 0px 1px 3px rgba(0,0,0,.75);
	z-index: 999;
}

.infog .topinfon {
	padding: 17px 20px 10px 20px;
}

.modal_table_center .type-view-photo {
	background: #000;
}

.modal_table_center .type-view-photo .model-data-button {
    color: #fff;
}

.modal_table_center .type-view-photo .h3 {
	color: #fff;
}

.modal_table_center .type-view-photo .model-data-currentphotoposition-num {
	color: #565656;
}

.infog .comments, .infog #comments, .gallerycontentcenter {
	margin: 0 auto;
}

.gallerycontentcenter {
	width: 100%;
}

.infog .h2 {
	font-weight: 100;
	margin: 0 0 5px;
}

.infog .model-data-group-info {
	position: relative;
	height: 20px;
}

.infog .model-data-next-prev {
	position: absolute;
	width: 220px;
	margin-left: -115px;
	left: 50%;
	top: 0%;
	text-align: center;
}

.infog .model-data-next-prev .icon {
	position: relative;
	top: 3px;
    display: inline-block;
    width: 14px;
}

.infog .model-data-currentphotoposition-num {
	position: absolute;
	left: 0;
	top: 0;
}
/* Чтобы не рисовать картинку кнопки, которая будет менять фон, я сделал небольшой div, который будет изменяться на div .fonact  при смене фона и обратно */
.fon {
	width: 15px;
	height: 15px;
	margin-left: -10px;
	background-color: #959595;
	position: fixed;
	bottom: 30px;
	left: 50%;
	border-radius: 15px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	box-shadow: 0px 1px 3px rgba(0,0,0,.75);
	-moz-box-shadow: 0px 1px 3px rgba(0,0,0,.75);
	-webkit-box-shadow: 0px 1px 3px rgba(0,0,0,.75);
	z-index: 999;
}

.fon:hover {
	width: 15px;
	height: 15px;
	background-color: #fff;
	position: fixed;
	bottom: 30px;
	left: 50%;
	border-radius: 15px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	box-shadow: 0px 1px 3px rgba(0,0,0,.75);
	-moz-box-shadow: 0px 1px 3px rgba(0,0,0,.75);
	-webkit-box-shadow: 0px 1px 3px rgba(0,0,0,.75);
}

.fonact {
	width: 15px;
	height: 15px;
	margin-left: -10px;
	background-color: #959595;
	position: fixed;
	bottom: 30px;
	left: 50%;
	display: none;
	border-radius: 15px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	box-shadow: 0px 1px 3px rgba(0,0,0,.75);
	-moz-box-shadow: 0px 1px 3px rgba(0,0,0,.75);
	-webkit-box-shadow: 0px 1px 3px rgba(0,0,0,.75);
}

.fonact:hover {
	width: 15px;
	height: 15px;
	background-color: #646464;
	position: fixed;
	bottom: 30px;
	left: 50%;
	border-radius: 15px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	box-shadow: 0px 1px 3px rgba(0,0,0,.75);
	-moz-box-shadow: 0px 1px 3px rgba(0,0,0,.75);
	-webkit-box-shadow: 0px 1px 3px rgba(0,0,0,.75);
}

/* Кнопка с картинкой крестиком */
.modal .close, .modal .close > a {
    display: block;
    height: 100%;
}

.topinfogalleryblock {
	margin: 0;
}

.bannergallerytop {
	float: right;
	width: 240px;
	margin: 66px 0 0;
}

.bannergallerytop .banner {
	margin: 0 0 20px;
}

.gallery_main_image {
	text-align: center;
	position: relative;
	background: url(/Images/loading_big.gif) no-repeat 50% 50%;
	min-height: 100px;
	overflow: hidden;
    margin: 0 auto;
}

.gallery_main_image_a {
    position: relative;
    margin: 0 auto;
}

.gallery_main_image .gallery_image {
	display: block;
	position: relative;
    height: 100%;
}

.gallery_main_image .gallery_image img {
	position: relative;
    width: 100%;
    height: auto;
    cursor: pointer;
}

.modal_table {
    background: rgba(0,0,0,0.5);
}

.modal_table, .modal_table td {
	border: 0;
    padding: 0;
    margin: 0;
    height: 100%;
}

.modal_table_center {
	margin: 0 auto;
}

.modal_table_left {
	width: 50%;
	cursor: pointer;
}

.modal_table_right {
	width: 50%;
	cursor: pointer;
}

.modal_table_border {
    min-width: 20px;
}

.model-data-title {
    width: 85%;
}

.model-data-button {
    position: absolute;
    top: 17px;
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
    cursor: pointer;
    padding: 5px;
    overflow: hidden;
    color: #565656;
}

.model-data-lupa {
    right: 45px;
}

.model-data-close {
    right: 14px;
}

.gallery_fullscreen {
    background: #000;
}

.gallery_fullscreen .gallery_main_lupa,
.gallery_fullscreen .gallery_main_liker_elem {
    display: none;
}

.gallery_fullscreen .gallery_main_nav,
.gallery_fullscreen .gallery_main_nav_close,
.gallery_fullscreen .gallery_main_nav_page {
    display: block;
}

.gallery_main_nav_close {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 50px;
    font-size: 40px;
    line-height: 40px;
    color: #fff;
    padding: 5px;
    overflow: hidden;
    cursor: pointer;
}

.gallery_main_nav_page {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    padding: 10px;
    font-size: 30px;
    line-height: 30px;
    color: #fff;
    font-family: "Roboto Slab",serif;
}

.gallery_main_nav_page .model_transition,
.gallery_main_nav_close .model_transition {
    opacity: 0.3;
}

.gallery_main_nav_page:hover .model_transition,
.gallery_main_nav_close:hover .model_transition {
    opacity: 1;
}

.gallery_main_nav {
    display: none;
    position: absolute;
    width: 50px;
    top: 0;
    bottom: 0;
    cursor: pointer;
}

.gallery_main_nav_left {
    left: 0;
}

.gallery_main_nav_right {
    right: 0;
}

.gallery_main_nav:hover .gallery_main_nav_bg {
    opacity: 1;
}

.gallery_main_nav_bg {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40px;
    height: 40px;
    margin: -25px 0 0 -25px;
    font-size: 40px;
    line-height: 40px;
    color: #fff;
    opacity: 0.3;
    padding: 5px;
    overflow: hidden;
}

.gallery_main_lupa {
	position: absolute;
    left: 50%;
    top: 0;
    width: 100px;
    height: 100px;
    margin: 0 0 0 -50px;
    cursor: pointer;
    color: #000;
    
}

.gallery_main_lupa_bg {
    width: 50px;
    height: 50px;
    padding: 5px;
    margin: 0 0 0 -25px;
    position: absolute;
    left: 50%;
    top: 0;
    font-size: 40px;
    line-height: 40px;
    overflow: hidden;
    opacity: 0;
}

.model_transition {
	-webkit-transition: All 1s ease;
	-moz-transition: All 1s ease;
	-ms-transition: All 1s ease;
	-o-transition: All 1s ease;
	transition: All 1s ease;
}

.gallery_main_lupa:hover .gallery_main_lupa_bg {
    opacity: 0.3;
}

.gallery_main_lupa .gallery_main_lupa_bg:hover {
    opacity: 1;
}

/* лайкер */
.gallery_main_liker {
	position: absolute;
	left: 50%;
	bottom: 0%;
	width: 160px;
	height: 70px;
	margin: -70px 0 0 -80px;
	text-align: center;
	-webkit-transition: All 1s ease;
	-moz-transition: All 1s ease;
	-ms-transition: All 1s ease;
	-o-transition: All 1s ease;
	transition: All 1s ease;
	opacity: 0;
}

.gallery_main_liker:hover, .gallery_main_liker_open {
	opacity: 1;
}

.gallery_main_liker_fon {
	/*-webkit-box-shadow: 0px 0px 5px rgba(255, 255, 255, 1);
    -moz-box-shadow:    0px 0px 5px rgba(255, 255, 255, 1);
    box-shadow:         0px 0px 5px rgba(255, 255, 255, 1);*/
	display: inline-block;
	margin: 5px auto 0 auto;
	background: #979797; /* Old browsers */
	background: -moz-linear-gradient(top, #979797 0%, #676767 50%, #4b4a4b 51%, #4b4a4b 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#979797), color-stop(50%,#676767), color-stop(51%,#4b4a4b), color-stop(100%,#4b4a4b)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #979797 0%,#676767 50%,#4b4a4b 51%,#4b4a4b 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, #979797 0%,#676767 50%,#4b4a4b 51%,#4b4a4b 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, #979797 0%,#676767 50%,#4b4a4b 51%,#4b4a4b 100%); /* IE10+ */
	background: linear-gradient(to bottom, #979797 0%,#676767 50%,#4b4a4b 51%,#4b4a4b 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#979797', endColorstr='#4b4a4b',GradientType=0 ); /* IE6-9 */
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	border: 5px solid #FFFFFF;
	height: 42px;
	font: 22px/22px Verdana;
	color: #fff;
	font-weight: bold;
}

.gallery_main_liker_fon > span {
	padding: 10px 10px;
	display: inline-block;
}

.gallery_main_liker .liker_bg {
	background: #6f6e6f; /* Old browsers */
	background: -moz-linear-gradient(top, #6f6e6f 0%, #282827 50%, #000000 51%, #000000 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#6f6e6f), color-stop(50%,#282827), color-stop(51%,#000000), color-stop(100%,#000000)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #6f6e6f 0%,#282827 50%,#000000 51%,#000000 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, #6f6e6f 0%,#282827 50%,#000000 51%,#000000 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top, #6f6e6f 0%,#282827 50%,#000000 51%,#000000 100%); /* IE10+ */
	background: linear-gradient(to bottom, #6f6e6f 0%,#282827 50%,#000000 51%,#000000 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#6f6e6f', endColorstr='#000000',GradientType=0 ); /* IE6-9 */
	cursor: pointer;
}

.gallery_main_liker .liker_hide {
	color: #595959;
}

.gallery_main_liker .liker_left {
	-webkit-border-top-left-radius: 5px;
	-webkit-border-bottom-left-radius: 5px;
	-moz-border-radius-topleft: 5px;
	-moz-border-radius-bottomleft: 5px;
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
}

.gallery_main_liker .liker_right {
	-webkit-border-top-right-radius: 5px;
	-webkit-border-bottom-right-radius: 5px;
	-moz-border-radius-topright: 5px;
	-moz-border-radius-bottomright: 5px;
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
}

.gallery_main_liker .liker_count {
	color: #ccc;
}
/*.gallery-user-link a,*/
.gallery-user-link {
	color: #959595;
	padding: 0 7px 0 0;
}

.gallery-user-link a:hover {
	color: #000;
}

.gallery-title {
	padding: 0 0 10px;
}

/* последний кадр в фотогалереи с ссылками на следующие галереи */
.block-hover-image {
	position: relative;
	width: 288px;
	height: 178px;
	overflow: hidden;
    margin: 0 auto;
}

.block-hover-image > .description {
	position: absolute;
	left: 0;
	top: 0;
	width: 288px;
	height: 178px;
	background: rgba(0,0,0,0.8);
	transition: opacity 0.3s;
	opacity: 0;
	display: table;
}

.block-hover-image > .description a {
	display: table-cell;
	vertical-align: middle;
	text-align: center;
	color: #fff;
	padding: 0 20px;
}

.block-hover-image:hover > .description {
	opacity: 1;
}

.gallery-next {
	overflow: hidden;
	width: 612px;
    height: 100%;
    background: #000;
}

.gallery-next .listitems .item {
	height: 201px;
}

.gallery-next .listitems {
	width: 648px;
}

.gallery-next .icon {
	position: relative;
	top: 2px;
}

.gallery-next .title-footer a {
	color: #fff;
}

.model-data-comments {
	transition: opacity 0.5s;
	opacity: 1;
    min-width: 500px;
}

.comments-is-load {
	opacity: 0.2;
}

.gallery-next .item-hide,
.gallery-next .item-hide-table {
	display: none;
}

.editor-button-pay-email {
    display: inline-block;
    background: url("/Images/icon/download.png") no-repeat scroll 35px 12px #9ecc4b;
    border-radius: 5px 5px 5px 5px;
    -moz-border-radius: 5px 5px 5px 5px;
    -webkit-border-radius: 5px 5px 5px 5px;
    border: 0px solid #9ECC4B;
    padding: 12px 30px 12px 60px;
    font-size: 16px;
    line-height: 16px;
    color: #fff;
    letter-spacing: 1px;
    -webkit-box-shadow: 0 2px 2px 0 rgba(50, 50, 50, 0.60);
    -moz-box-shadow: 0 2px 2px 0 rgba(50, 50, 50, 0.60);
    box-shadow: 0 2px 2px 0 rgba(50, 50, 50, 0.60);
    cursor: pointer;
    text-transform: uppercase;
    margin: 5px 0;
}

.editor-button-pay-email:hover {
    background: url("/Images/icon/download.png") no-repeat scroll 35px 12px #88B242;
    color: #fff;
}

@media only screen and (min-width:1300px) {
	.gallery-next {
		width: 936px;
	}
	.gallery-next .item-hide {
		display: block;
	}
    .gallery-next .item-hide-table {
		display: table-cell;
	}
	.gallery-next .listitems {
		width: 972px;
	}
}

@media only screen and (max-width:649px) {
    /* gallery model */
    .modal_table_border {
        min-width: 0px;
    }
    .model-data-title {
        font-size: 16px;
    }
    .modal_table_center .infog .topinfon {
        padding: 7px 10px 5px;
    }
    .modal_table_center .model-data-button {
        top: 5px;
    }
    .modal_table_center .model-data-lupa {
        right: 35px;
    }
    .modal_table_center .model-data-close {
        right: 4px;
    }
    .modal_table_center .infog {
        margin: 0 auto 0 auto;
    }
    .modal_table_load .modal_table_center {
        vertical-align: top;
    }
    .modal_table_load .modal_table_left,
    .modal_table_load .modal_table_right {
        display: none;
    }
}