/*

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

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

.g-pbox__gallery {
	/*display: none;*/
	top: 0;
	left: 0;
	z-index: 1;
	padding: 0;
	position: relative;
	box-shadow: 0px 0px 25px 0px #000;
	background: #000;
	}
	.g-pbox-animated .g-pbox__gallery {
		background: transparent;
		box-shadow: none;
		}

	.g-pbox__counter {
		color: #606060;
		font-family: georgia;
		font-size: 25px;
		z-index: 1060;
		position: relative;
		text-align: center;
		margin-bottom: 1px;
		line-height: 25px;
		top: -3px;
	}
		.g-pbox__counter__inner {
			padding: 2px 5px;
		}
			.g-pbox__counter__current {
				color: #fff;
			}

	.g-pbox__photo {
		position: relative;
		background: #000;
		}
		.g-pbox__photo__img {
			position: relative;
			z-index: 2;
			border: 1px solid #000;
			display: block;
			background: #000;
			min-width: 100px;
			min-height: 100px;
			margin: 0 auto;
			}
			.g-pbox__photo__img_fail {
				background: #000 url(/img/modules/global_overlay/gallery/g-pbox-shutter.png) no-repeat 50% 50%;
			}
		.g-pbox__photo__lister {
			position: absolute;
			top: 0;
			display: block;
			width: 33%;
			height: 100%;
			z-index: 10;
			background: url(/img/0.gif);
			cursor: pointer;
			}
		.g-pbox__photo__lister_off {
			cursor: default;
			}
		.g-pbox__photo__lister_off .g-pbox__photo__lister__arrow {
			display: none;
			}
		.g-pbox__photo__lister_prev {
			display: none;
			}
		.g-pbox__photo__lister_next {
			right: 0;
			width: 100%;
			padding: 1px 1px 0 0;
			margin:  -1px -1px 0 0;
			}
	.g-pbox__banner {
		/*position: absolute;*/
		right: 0;
		/*left: 10%;*/
		/*top: 5px;*/
		overflow: hidden;
		z-index: 1050;
		margin-left: 7%;
		}


/*
 shares

- * - - * - - * - - * - - * - - * - - * - - * - - * - - * - */


	.g-pbox__shares {
		position: absolute;
		left: -75px;
		padding-left: 40px;
		top: 0px;
	}
	.g-pbox-animated .g-pbox__shares {
		display: none;
	}
		.g-pbox__shares__link {
			display: block;
			width: 27px;
			height: 26px;
			margin-bottom: 5px;
			background: /*url(/img/modules/global_overlay/gallery/g-social_shares.png?2013.12.17)*/none no-repeat;
			text-decoration: none;
			position: relative;
		}
			.g-pbox__shares__link__count {
				position: absolute;
				top: 50%;
				left: 0;
			}
				.g-pbox__shares__link__count__content {
					background: #0e0e0e;
					border: 1px solid #606060;
					-moz-border-radius: 2px;
					-webkit-border-radius: 2px;
					border-radius: 2px;
					position: absolute;
					top: -9px;
					color: #606060;
					font: 62.5% Tahoma;
					padding: 2px 5px;
					right: 5px;
					display: none;
				}
				.g-pbox__shares__link__count__content:after {
					position: absolute;
					width: 3px;
					height: 5px;
					background-color: #fff;
					background: /*url(/img/modules/global_overlay/gallery/g-social_shares.png?2013.12.17)*/none no-repeat 0 -147px;
					content: " ";
					right: -3px;
					margin-top: -2px;
					top: 50%;
				}
		.g-pbox__shares__link_my {
			background-position: 0 0;
		}

			.g-pbox__shares__link_my:hover {
				background-position: -40px 0;
			}
			.g-pbox__shares__link_my:hover .g-pbox__shares__link__count__content,
			.g-pbox__shares__link_my:active .g-pbox__shares__link__count__content {
				border: 1px solid #127fd4;
				color: #0377d1;
			}
			.g-pbox__shares__link_my:hover .g-pbox__shares__link__count__content:after,
			.g-pbox__shares__link_my:active .g-pbox__shares__link__count__content:after {
				background-position: -6px -147px;
			}

		.g-pbox__shares__link_ok {
			background-position: 0 -30px;
		}
			.g-pbox__shares__link_ok:hover {
				background-position: -40px -30px;
			}
			.g-pbox__shares__link_ok:hover .g-pbox__shares__link__count__content,
			.g-pbox__shares__link_ok:active .g-pbox__shares__link__count__content {
				border: 1px solid #de8d47;
				color: #eca86d;
			}
			.g-pbox__shares__link_ok:hover .g-pbox__shares__link__count__content:after,
			.g-pbox__shares__link_ok:active .g-pbox__shares__link__count__content:after {
				background-position: -12px -147px;
			}

		.g-pbox__shares__link_fb {
			background-position: 0 -60px;
		}
			.g-pbox__shares__link_fb:hover {
				background-position: -40px -60px;
			}
			.g-pbox__shares__link_fb:hover .g-pbox__shares__link__count__content,
			.g-pbox__shares__link_fb:active .g-pbox__shares__link__count__content {
				border: 1px solid #425f9c;
				color: #5d7bba;
			}
			.g-pbox__shares__link_fb:hover .g-pbox__shares__link__count__content:after,
			.g-pbox__shares__link_fb:active .g-pbox__shares__link__count__content:after {
				background-position: -18px -147px;
			}

		.g-pbox__shares__link_vk {
			background-position: 0 -90px;
		}
			.g-pbox__shares__link_vk:hover {
				background-position: -40px -90px;
			}
			.g-pbox__shares__link_vk:hover .g-pbox__shares__link__count__content,
			.g-pbox__shares__link_vk:active .g-pbox__shares__link__count__content {
				border: 1px solid #4a5f92;
				color: #6c83b9;
			}
			.g-pbox__shares__link_vk:hover .g-pbox__shares__link__count__content:after,
			.g-pbox__shares__link_vk:active .g-pbox__shares__link__count__content:after {
				background-position: -24px -147px;
			}

		.g-pbox__shares__link_tw {
			background-position: 0 -120px;
		}
			.g-pbox__shares__link_tw:hover {
				background-position: -40px -120px;
			}
			.g-pbox__shares__link_tw:hover .g-pbox__shares__link__count__content,
			.g-pbox__shares__link_tw:active .g-pbox__shares__link__count__content {
				border: 1px solid #518ac1;
				color: #7eaedc;
			}
			.g-pbox__shares__link_tw:hover .g-pbox__shares__link__count__content:after,
			.g-pbox__shares__link_tw:active .g-pbox__shares__link__count__content:after {
				background-position: -30px -147px;
			}



/*
 text blocks

- * - - * - - * - - * - - * - - * - - * - - * - - * - - * - */

	.g-pbox__description {
		padding: 10px 20px 16px;
		-moz-user-select: text;
		-khtml-user-select: text;
		-webkit-user-select: text;
		user-select: text;
		}
		.g-pbox__description__head {
			margin-top: 4px;
			font: 17px Arial;
			color: #fafafa;
			margin-bottom: 7px;
			}

		.g-pbox__description__notice {
			margin-top: 4px;
			font: 14px/18px Georgia, 'Times New Roman', Times, serif;
			color: #fafafa;
			margin-top: 7px;
			}
			.g-pbox__description__notice a {
				color: #fff;
				text-decoration: none;
			}
			.g-pbox__description__notice a:hover {
				text-decoration: underline;
			}
		.g-pbox__description__source {
			bottom: -17px;
			color: #606060;
			font: 11px Arial;
			margin-top: 8px;
			position: absolute;
			right: 0;
			}
			.g-pbox__description__source a {
				font: 11px Arial;
				color: #606060;
				}
				a.g-pbox__description__source__unclickable {
					cursor: text;
					text-decoration: none!important;
				}
		.g-pbox__description__date {
			bottom: -17px;
			color: #606060;
			font: 11px Arial;
			margin-top: 8px;
			position: absolute;
			left: 0;
			}

	.g-pbox__close {
		position: absolute;
		top: 0;
		right: 0;
		z-index: 1050;
		width: 5%;
		height: 60px;
		}
		.g-pbox__close__link {
			display: block;
			font-size: 0;
			width: 33px;
			height: 33px;
			line-height: 0;
			background: none -84px -11px;
			cursor: pointer;
			margin: 0;
			position: absolute;
			top: 50%;
			left: 50%;
			margin-top: -16px;
			margin-left: -16px;
			}
		.g-pbox__close__link:hover {
			background-position:  -84px -67px;
			}


/*
 newsbytheme

- * - - * - - * - - * - - * - - * - - * - - * - - * - - * - */


	.g-pbox__newsbytheme {
		padding: 3px 0px 16px;
		margin: -7px 20px 0px;
		-moz-user-select: text;
		-khtml-user-select: text;
		-webkit-user-select: text;
		user-select: text;
		background: url(/img/modules/global_overlay/gallery/g-split-hor-dark.png) repeat-x scroll 0 0 transparent;
		}
		.g-pbox__newsbytheme__head {
			margin-top: 4px;
			font: 11px Arial;
			color: #606060;
			margin-bottom: 7px;
		}
		.g-pbox__newsbytheme__item {
			margin-top: 4px;
			font: 14px/16px Georgia, 'Times New Roman', Times, serif;
			color: #a7a8aa;
			margin-bottom: 2px;
		}
			.g-pbox__newsbytheme__item__link {
				color: #a7a8aa;
			}

				.g-pbox-container_countered {}
					.g-pbox-container_countered .g-pbox-container__inner__spring_area__inner{
						margin-top: 25px;
					}

				.g-pbox__lister {
					position: absolute;
					top: 50%;
					width: 60px;
					height: 70px;
					margin-top: -35px;
					z-index: 1051;
					background: url(/img/0.gif);
					cursor: pointer;
					display: block;
					}
				.g-pbox__lister_prev {
					left: 0;
					}
				.g-pbox__lister_next {
					right: 0;
					}
				.g-pbox__photo__lister_off,
				.g-pbox__lister_off {
					cursor: default;
					z-index: 1;
					}
				.g-pbox__photo__lister_off .g-pbox__lister__arrow,
				.g-pbox__lister_off .g-pbox__lister__arrow {
					display: none;
					}
					.g-pbox__lister__arrow {
						position: absolute;
						top: 50%;
						z-index: 2;
						width: 42px;
						height: 57px;
						margin-top: -28px;
						cursor: pointer;
						background-image: none;
						}
						.g-pbox__lister_prev .g-pbox__lister__arrow {
							left: 5px;
							background-position: 0 0;
							}
						.g-pbox__lister_prev:hover .g-pbox__lister__arrow,
						.g-pbox__lister_prev.g-pbox__lister-hover .g-pbox__lister__arrow{
							background-position: 0 -57px;
							}

						.g-pbox__lister_next .g-pbox__lister__arrow {
							right: 5px;
							background-position: -42px 0;
							}
						.g-pbox__lister_next:hover .g-pbox__lister__arrow,
						.g-pbox__lister_next.g-pbox__lister-hover .g-pbox__lister__arrow{
							background-position: -42px -57px;
							}



/*не убивать - возможно понадобится при меньших тормозах при смене фоток*/
.g-pbox-container .g-pbox__inner {
/*	opacity: 0.8;

	-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( .95 );
		   -moz-transform: scale( .95 );
		    -ms-transform: scale( .95 );
		     -o-transform: scale( .95 );
		        transform: scale( .95 );

	-webkit-transition: 0.12s all cubic-bezier(0.250, 0.460, 0.450, 0.940);
	   -moz-transition: 0.12s all cubic-bezier(0.250, 0.460, 0.450, 0.940);
	    -ms-transition: 0.12s all cubic-bezier(0.250, 0.460, 0.450, 0.940);
	     -o-transition: 0.12s all cubic-bezier(0.250, 0.460, 0.450, 0.940);
	        transition: 0.12s all cubic-bezier(0.250, 0.460, 0.450, 0.940);*/
}
	.g-pbox-container_sown .g-pbox__inner {
		opacity: 1;/**/

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