/*

	Title: global overlay || gallery || last frame
	Author: p.vdovcev
	Date: 02.2013

-----------------------------------------------------------------------------------------------
===============================================================================================*/

.g-pbox__viewmore {
	margin-left: -25px;
	position: relative;
	/*overflow: hidden;*/
	opacity: 0.035;
	z-index: 2;

	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;

	-webkit-transform-origin: 50% 50%;
	   -moz-transform-origin: 50% 50%;
	    -ms-transform-origin: 50% 50%;
	     -o-transform-origin: 50% 50%;
	        transform-origin: 50% 50%;

		-webkit-transform: scale( .7 );
		   -moz-transform: scale( .7 );
		    -ms-transform: scale( .7 );
		     -o-transform: scale( .7 );
		        transform: scale( .7 );

	-webkit-transition: 0.23s all cubic-bezier(0.250, 0.460, 0.450, 0.940);
	   -moz-transition: 0.23s all cubic-bezier(0.250, 0.460, 0.450, 0.940);
	    -ms-transition: 0.23s all cubic-bezier(0.250, 0.460, 0.450, 0.940);
	     -o-transition: 0.23s all cubic-bezier(0.250, 0.460, 0.450, 0.940);
	        transition: 0.23s all cubic-bezier(0.250, 0.460, 0.450, 0.940);

	perspective:600;
	-webkit-perspective:600;
}
	.g-pbox__viewmore__gallery {
		position: relative;
		padding-right: 40px;
		padding-bottom: 20px;

		-webkit-transform: rotateX(60deg) scale(.65);
/*		   -moz-transform: rotateX(45deg);*/
/*		    -ms-transform: rotateX(45deg);*/
/*		     -o-transform: rotateX(45deg);*/
/*		        transform: rotateX(60deg) scale(.65);*/


		-webkit-backface-visibility: hidden;

		-webkit-transform-origin: 50% 50%;
/*				  transform-origin: 50% 50%;*/


		-webkit-transition: 0.23s all cubic-bezier(0.250, 0.460, 0.450, 0.940);
/*	        transition: 0.23s all cubic-bezier(0.250, 0.460, 0.450, 0.940);*/


	}
	.g-pbox__viewmore__top {
		text-align: center;
		padding: 10px 0 20px;
		height: 57px;
		overflow: hidden;
		position: relative;
	}
	.g-pbox__viewmore__bottom {
		text-align: center;
		padding: 20px;
	}
	.g-pbox__viewmore__item,
	.g-pbox__viewmore__item:link,
	.g-pbox__viewmore__item:visited {
		text-decoration: none;
	}
	.g-pbox__viewmore__item .g-pbox__viewmore__item__text {
		text-align: left;
		display: inline-block;
		zoom: 1;
		vertical-align: middle;
		color: #fff;
		font-size: .94em;
		padding-bottom: 1px;
	}
		.g-pbox__viewmore__item_link:link .g-pbox__viewmore__item__text,
		.g-pbox__viewmore__item_link:visited .g-pbox__viewmore__item__text {
			text-decoration: underline;
			cursor: pointer;
		}
		.g-pbox__viewmore__item_link:hover .g-pbox__viewmore__item__text,
		.g-pbox__viewmore__item_link:active .g-pbox__viewmore__item__text {
			text-decoration: none;
		}

		.g-pbox__viewmore__item__refresh {
			background: none no-repeat -120px 0px;
			cursor: pointer;
			height: 60px;
			text-align: left;
			display: inline-block;
			top: 50%;
			width: 57px;
			vertical-align: middle;
			margin-right: 13px;
		}
			a:hover .g-pbox__viewmore__item__refresh {
				background-position: -120px -65px;
			}
		.g-pbox__viewmore__item__fotos {
			background: none no-repeat -188px 1px;
			cursor: pointer;
			height: 60px;
			text-align: left;
			display: inline-block;
			top: 50%;
			width: 57px;
			vertical-align: middle;
			margin-right: 13px;
		}
			a:hover .g-pbox__viewmore__item__fotos {
				background-position: -188px -63px;
			}
		.g-pbox__viewmore__item_left {
			left: 16%;
			margin-left: -100px;
			position: absolute;
		}
		.g-pbox__viewmore__item_cntr {
			margin: 0 40px;
		}
		.g-pbox__viewmore__item_right {
			margin-left: -65px;
			position: absolute;
			left: 80%;
		}
	.g-pbox__viewmore__top_simple .g-pbox__viewmore__item_left {
		display: none;
	}
	.g-pbox__viewmore__top_simple .g-pbox__viewmore__item_cntr {
			left: 33%;
			margin-left: -57px;
	}
	.g-pbox__viewmore__top_simple .g-pbox__viewmore__item_right {
			left: auto;
			margin-left: auto;
			margin-right: -75px;
			right: 33%;
	}
	.g-pbox__viewmore__top_single .g-pbox__viewmore__item_left,
	.g-pbox__viewmore__top_single .g-pbox__viewmore__item_right {
			display: none;
	}

		.g-pbox__viewmore__unclicable {
			height: 700px;
			width: 100%;
			position: absolute;
			bottom: 0;
			left: 0;
			display: none;
		}


	.g-pbox__viewmore_unclicable .g-pbox__viewmore__unclicable {
		display: block;
	}
	.g-pbox__viewmore_shown {
		opacity: 1;

		-webkit-transform: scale( 1 );
		   -moz-transform: scale( 1 );
		    -ms-transform: scale( 1 );
		     -o-transform: scale( 1 );
		        transform: scale( 1 );

	}
	.g-pbox__viewmore_shown .g-pbox__viewmore__gallery {
		-webkit-transform: rotateX(0);
/*		   -moz-transform: rotateX(0);*/
/*		    -ms-transform: rotateX(0);*/
/*		     -o-transform: rotateX(0);*/
		        transform: rotateX(0);
	}

/*
last frame fotos
=================
*/


.g-framegall {
	position: relative;
	height: 500px;
}

.g-framegall {
	position: relative;
	height: 505px;
}
	.g-framegall__inner {
		position: absolute;
		top: 0;
		left: 0;
		height: 50%;
		width: 33.333%;
	}
		.g-framegall__item {
			position: absolute;
			left: 0;
			top: 0;
			overflow: hidden;
			width: 100%;
			height: 100%;
			border: none;
			box-shadow: 0px 0px 20px 0px #000;
			background: #000;
		}
	.g-framegall__item__inner {
		width: 100%;
		height: 100%;
		background-position: 50% 50%;
		background-repeat: no-repeat;
		background-size: cover;
	}
	noindex:-o-prefocus,.g-framegall__item__inner { /*opera bug fix*/
		background-size: auto;
		/*padding: 2px; opera 1px background-size: cover; bug fix
		margin: -2px; */
	}

	.g-framegall__item-more,
	.g-framegall__item_more {
		width: 100%;
		height: 100%;
		top: 300%;
		left: 500%;
	}
		.g-framegall__item__clicker {
			z-index: 2;
		}
	.g-framegall__item__text {
		position: absolute;
		height: 100%;
		width: 100%;
		font-size: 12px;
		top: 0;
		bottom: 0;
	}
	.g-framegall__item__text__self {
		display: inline-block;
		text-align: left;
		font-size: 13px;
		line-height: 15px;
		*display: inline;
		*zoom: 1;
	}

		.g-framegall__item_xs-0 {
			left: 0;
		}
		.g-framegall__item_xs-1 {
			left: 100%;
			margin-left: 20px;
		}
		.g-framegall__item_xs-2 {
			left: 200%;
			margin-left: 40px;
		}

		.g-framegall__item_ys-0 {
			top: 0;
		}
		.g-framegall__item_ys-1 {
			top: 100%;
			margin-top: 20px;
		}




/*
 plagin - stars
- * - - * - - * - - * - - * - - * - - * - - * - - * - - * -
============================================================*/



	.g-photo {
		overflow: hidden;
		position: relative;
		display: inline-block;
		font-size: .92em;
		line-height: 1.25em;
		font-family: Helvetica, Arial, Tahoma, sans-serif;
		background: #000;
		text-align: center;
	}
	.g-photo:link,
	.g-photo:visited,
	.g-photo:hover,
	.g-photo:active {
		color: #fff;
		text-decoration: none;
	}
		.g-photo__image {
			background-position: 50% 50%;
			background-repeat: no-repeat;
			background-size: cover;
			display: block;
			margin: 0 auto;
		}
		.g-photo__text {
			position: absolute;
			bottom: 0;
			width: 100%;
			font-style: normal;
			left: 0;
			text-align: left;
		}
			.g-photo__text__inner {
				padding: 16px 40px 0.7em 10px;
				display: block;
				background: #000;
				background: url(/img/modules/global_overlay/gallery/last_frame/g-photo__gradient.png) repeat-x 0 0px;
				-webkit-text-shadow: 0 0 3px rgba(0,0,0,1);
				-moz-text-shadow: 0 0 3px rgba(0,0,0,1);
				text-shadow: 0 0 3px rgba(0,0,0,1);
				position: relative;
			}
				.g-photo__text__inner__gallcount {
					position: absolute;
					right: 5px;
					vertical-align: middle;
					background: none no-repeat -47px -117px;
					height: 23px;
					width: 30px;
					opacity: .5;
					bottom: 4px;
					/* for chrome - чтобы избавиться от скачков во время наведения мыши при некоторых разрешениях на главной. */
					-webkit-backface-visibility: hidden;
				}
					.g-photo__text__inner__gallcount__text {
						font-size: 11px;
						font-family: Helvetica, Arial, Tahoma, sans-serif;
						line-height:15px;
						font-weight: bold;
						color: #fff;
						margin: 3px;
						width: 20px;
						display: block;
						text-align: center;
					}
		.g-photo:hover .g-photo__text__inner__gallcount {
			opacity: 1;
			-webkit-animation-duration: 0.5s;
			-moz-animation-duration: 0.5s;
			animation-duration: 0.5s;
			-webkit-animation-name: g-photo__text__inner__gallcount;
			-moz-animation-name: g-photo__text__inner__gallcount;
			animation-name: g-photo__text__inner__gallcount;
		}

		@-moz-keyframes g-photo__text__inner__gallcount {
			0% {opacity: .5; }
			100% {opacity: 1; }
		}
		@-webkit-keyframes g-photo__text__inner__gallcount {
			0% {opacity: .5; }
			100% {opacity: 1; }
		}
		@keyframes g-photo__text__inner__gallcount {
			0% {opacity: .5; }
			100% {opacity: 1; }
		}

.g-photo_complex {
	width: 100%;
	height: 100%;
	display: block;
	background: transparent;
	/*z-index: 2;*/

}
	.g-photo_complex .g-photo__image {
			background-size: auto;
			width: 100%;
		}
	.ie6 .g-photo_complex .g-photo__image,
	.ie7 .g-photo_complex .g-photo__image {
			height: 100%;
		}


/*
 plagin - stars
- * - - * - - * - - * - - * - - * - - * - - * - - * - - * -
============================================================*/


.g-stars {
	display: inline-block;
	*display: inline;
	zoom: 1;
	vertical-align: middle;
	margin: 20px 10px 20px 0;
	position: relative;
	width: 98px;
	height: 20px;
	background-image: none;
	background-repeat: no-repeat;
	background-position: -100px -40px;
}

	.g-stars_0 {
		background-position: -100px -40px;
	}
	.g-stars_1 {
		background-position: -80px -40px;
	}
	.g-stars_2 {
		background-position: -60px -40px;
	}
	.g-stars_3 {
		background-position: -40px -40px;
	}
	.g-stars_4 {
		background-position: -20px -40px;
	}
	.g-stars_5 {
		background-position: 0 -40px;
	}

.g-stars__unit {
	position: absolute;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 1;
	text-indent: -99em;
	cursor: default;
}
	.g-stars_able .g-stars__unit {
		cursor: pointer;
	}
	.g-stars__unit_active,
	.g-stars_able .g-stars__unit:hover {
		/*z-index: 6;*/
		background-image: none;
		background-repeat: no-repeat;
	}
	.g-stars__unit_active.g-stars__unit_1,
	.g-stars_able .g-stars__unit_1 {
		width: 18px;
		background-position: -80px -40px;
		z-index: 5;
	}
	.g-stars__unit_active.g-stars__unit_2,
	.g-stars_able .g-stars__unit_2 {
		width: 38px;
		background-position: -60px -40px;
		z-index: 4;
	}
	.g-stars__unit_active.g-stars__unit_3,
	.g-stars_able .g-stars__unit_3 {
		width: 58px;
		background-position: -40px -40px;
		z-index: 3;
	}
	.g-stars__unit_active.g-stars__unit_4,
	.g-stars_able .g-stars__unit_4 {
		width: 78px;
		background-position: -20px -40px;
		z-index: 2;
	}
	.g-stars__unit_active.g-stars__unit_5,
	.g-stars_able .g-stars__unit_5 {
		width: 98px;
		background-position: 0px -40px;
		z-index: 1;
	}
	.g-stars_able:hover {
		background-position: -100px -40px;
	}

		.g-stars__unit:after {
			content: " ";
			display: none;
			position: absolute;
			width: 38px;
			height: 38px;
			top: -9px;
			right: -11px;
			background-position: 0 -60px;
			z-index: -1;
			background-image: none;
			background-repeat: no-repeat;
		}
			.g-stars__unit_active:after,
			.g-stars_able .g-stars__unit:hover:after {
				display: block;
			}





/*
 project - logo
- * - - * - - * - - * - - * - - * - - * - - * - - * - - * -
============================================================*/

.g-photo__info {
	display: none;
}
.g-photo_project {}

	.g-photo_project .g-photo__info {
		background: url(/img/modules/global_overlay/gallery/last_frame/g-photo__logo_progects.png?20141110) no-repeat 100% 0;
		position: absolute;
		top: 10px;
		right: 10px;
		width: 100%;
		height: 20px;
		z-index: 333;
		display: block;
		cursor: pointer; /* for old ie*/
	}
		.g-photo_project_lady .g-photo__info {
			background-position: 100% -20px;
		}
		.g-photo_project_news .g-photo__info {
			background-position: 100% -40px;
		}
		.g-photo_project_realty .g-photo__info {
			background-position: 100% -60px;
		}
		.g-photo_project_pogoda .g-photo__info {
			background-position: 100% -80px;
		}
		.g-photo_project_remont .g-photo__info {
			background-position: 100% -100px;
		}
		.g-photo_project_sport .g-photo__info {
			background-position: 100% -120px;
		}
		.g-photo_project_tv .g-photo__info {
			background-position: 100% -140px;
		}
		.g-photo_project_health .g-photo__info {
			background-position: 100% -160px;
		}
		.g-photo_project_moto .g-photo__info {
			background-position: 100% -180px;
		}
		.g-photo_project_afisha .g-photo__info {
			background-position: 100% -200px;
		}
		.g-photo_project_auto .g-photo__info {
			background-position: 100% -220px;
		}
		.g-photo_project_deti .g-photo__info {
			background-position: 100% -240px;
		}
		.g-photo_project_horo .g-photo__info {
			background-position: 100% -260px;
		}
