/*

a/berlin/common/plugins/article/article.css:12

.b-article_p { padding: 9px; }

Because of this we will have different width for galleries on page with that container, and on page without it.
Have 2 variants - looking at context or just deleting rule.

z-index diapasone for gallery is 200-300

z-index for gallery - 200
z-index for overlay - 201, by default overlay is on top

z-index for current FADED gallery - 205

Modifier class for fullscreen gallery type - .is-fullscreen

*/

[id*="gallery_"] {
	margin: 1em auto;
	}

.b-gallery__container {
    -webkit-transition: box-shadow linear .5s;
       -moz-transition: box-shadow linear .5s;
         -o-transition: box-shadow linear .5s;
            transition: box-shadow linear .5s;
    position: relative;
    clear: both;
    width: auto;
    border: 1px solid #c0c0c0;
    z-index: 200;
    background: #f5f5f5;
	text-align: left;
    }
    .b-article_p .b-gallery__container {
        /*margin-left: -9px;
        margin-right: -9px;*/
        }
    .b-gallery__container:hover {
        box-shadow: 0 3px 5px rgba(0,0,0,.3);
        }
    .b-gallery__container_active {
        z-index: 205;
        box-shadow: 0 3px 5px rgba(0,0,0,.3);
        }

.b-gallery__wrapper {
    width: 100%;
    overflow: hidden;
    }
.b-gallery__wrapper-inner {
    /*width: 980px; /* default site width */
	width: 962px;
    }

.b-gallery__main {
    position: relative;
    float: left;
    width: 632px; /* main column + paddings */
    }
.b-gallery__slider {
    position: relative;
    }
.b-gallery__slider__control {
    -webkit-transition: opacity linear .2s;
       -moz-transition: opacity linear .2s;
         -o-transition: opacity linear .2s;
            transition: opacity linear .2s;
    display: block;
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    margin-top: -25px;
    padding: 0;
    border: 1px solid #fff;
    cursor: pointer;
    opacity: 0;
    filter: alpha(opacity=0);
    background: #000;
    }
    .b-gallery__slider__control:before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 0;
        height: 0;
        margin-left: -12px;
        margin-top: -15px;
        border-top: 15px solid transparent;
        border-bottom: 15px solid transparent;
        }
    .b-gallery__slider__control_prev {
        left: 10px;
        }
        .b-gallery__slider__control_prev:before {
            border-right: 24px solid #fff;
            }
    .b-gallery__slider__control_next {
        right: 10px;
        }
        .b-gallery__slider__control_next:before {
            border-left: 24px solid #fff;
            }
    .b-gallery__slider:hover .b-gallery__slider__control {
        opacity: .6;
        filter: alpha(opacity=60);
        }
    .b-gallery__slider__control:hover {
        opacity: 1 !important;
        filter: alpha(opacity=100) !important;
        }
    .b-gallery__slider__control_active {
	    opacity: 1 !important;
	    filter: alpha(opacity=100) !important;
	    }
.b-gallery__slider__photo-outer {
    width: 600px;
    height: 440px;
    margin: auto;
	padding: 10px 0 0;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    }
.b-gallery__slider__photo-inner {
	width: 6000px;
	height: 6000px;
	margin-left: -2700px;
	margin-top: -2780px;
	}
    .b-gallery__slider__photo-inner:before {
        content: "";
        display: inline-block;
        width: 0;
        height: 100%;
        vertical-align: middle;
        }
.b-gallery__slider__photo {
    display: inline-block;
	max-width: 600px;
	max-height: 440px;
    vertical-align: middle;
    }
	.lt-ie8 .b-gallery__slider__photo {
		display: inline;
		zoom: 1;
		}
.b-gallery__slider__data {
    height: 18px;
    padding: 10px;
    overflow: hidden;
    text-align: right;
    }
.b-gallery__slider__trigger {
    float: left;
    margin-top: 5px;
    cursor: pointer;
    font-size: 11px;
    color: #c0c0c0;
    font-weight: bold;
    text-decoration: underline;
    }
.b-gallery__slider__counter {
    display: inline-block;
    margin-left: 10px;
    padding: 0 8px;
    border-radius: 3px;
    background: #333;
    font-size: 12px;
    color: #fff;
/*    vertical-align: middle;*/
    }
	.lt-ie8 .b-gallery__slider__counter {
		display: inline;
		zoom: 1;
		}
.b-gallery__slider__source {
    display: inline-block;
/*    vertical-align: middle;*/
    font-size: 10px;
    color: #c0c0c0;
    }
	.lt-ie8 .b-gallery__slider__source {
		display: inline;
		zoom: 1;
		}

.b-gallery__miniature {
    position: relative;
    overflow: hidden;
    }
.b-gallery__miniature__list-outer {
    position: relative;
    height: 62px;
    margin-bottom: 2px;
    margin-left: 2px;
    margin-right: 4px;
    overflow: hidden;
    }
.b-gallery__miniature__control {
    -webkit-transition: all linear .3s;
       -moz-transition: all linear .3s;
         -o-transition: all linear .3s;
            transition: all linear .3s;
    -webkit-box-sizing: content-box;
       -moz-box-sizing: content-box;
            box-sizing: content-box;
    display: block;
    position: absolute;
    top: 0;
    width: 28px;
    height: 60px;
    padding: 0;
    border: 1px solid #c1c1c1;
    cursor: pointer;
    opacity: 0;
    z-index: 220;
    background: #626262;
    background: rgba(0,0,0,.5);
    }
    .b-gallery__miniature__control:before {
        content: "";
        display: block;
        position: absolute;
        left: 50%;
        top: 50%;
        width: 0;
        height: 0;
        margin-top: -9px;
        margin-left: -7px;
        border-top: 9px solid transparent;
        border-bottom: 9px solid transparent;
        }
    .b-gallery__miniature__control_prev {
        left: -28px;
        }
        .b-gallery__miniature__control_prev:before {
            border-right: 15px solid #fff;
            }
    .b-gallery__miniature__control_next {
        right: -28px;
        }
        .b-gallery__miniature__control_next:before {
            border-left: 15px solid #fff;
            }
    .b-gallery__miniature__control:hover {
        background: #333;
        background: rgba(0,0,0,1);
        }
        .b-gallery__miniature:hover .b-gallery__miniature__control {
            opacity: 1;
            }
            .b-gallery__miniature:hover .b-gallery__miniature__control_prev {
                left: 2px;
                }
            .b-gallery__miniature:hover .b-gallery__miniature__control_next {
                right: 2px;
                }
.b-gallery__miniature__list {
    position: absolute;
    left: 0;
    top: 0;
    height: 62px;
    width: 9999px;
    margin: 0 !important;
    z-index: 215;
    white-space: nowrap;
    }
.b-gallery__miniature__list-item {
	-webkit-transition: border-color linear .2s;
	   -moz-transition: border-color linear .2s;
	     -o-transition: border-color linear .2s;
	        transition: border-color linear .2s;
    display: inline-block;
    width: 80px;
    height: 60px;
    padding: 0 !important;
    border: 1px solid #d6d6d6;
    background: transparent !important;
    vertical-align: top;
    }
    .b-gallery__miniature__list-item + .b-gallery__miniature__list-item {
        margin-left: 2px;
        }
    .b-gallery__miniature__list-item_current {
        width: 78px;
        height: 58px;
        border: 2px solid #567ab0;
        }
        .b-gallery__miniature__list-item + .b-gallery__miniature__list-item_current {
            /*margin-left: 1px;*/
            }
        .b-gallery__miniature__list-item_current + .b-gallery__miniature__list-item {
            /*margin-left: 1px;*/
            }
    .lt-ie8 .b-gallery__miniature__list-item {
	    display: inline;
	    zoom: 1;
	    }
.b-gallery__miniature__list-item__photo {
    -webkit-transition: opacity linear .2s;
       -moz-transition: opacity linear .2s;
         -o-transition: opacity linear .2s;
            transition: opacity linear .2s;
    display: block;
    width: 80px;
    height: 60px;
    opacity: .6;
    filter: alpha(opacity=60);
    }
    .b-gallery__miniature__list-item_current > .b-gallery__miniature__list-item__photo,
    .b-gallery__miniature__list-item:hover > .b-gallery__miniature__list-item__photo {
        opacity: 1;
        filter: alpha(opacity=100);
        }
    .b-gallery__miniature__list-item_current > .b-gallery__miniature__list-item__photo {
        width: 78px;
        height: 58px;
        }



.b-gallery__misc {
    display: none;
    position: relative;
    float: right;
    /*width: 308px; /* introducing to current box model, width + paddings + border must be equal to sidebar column's width (320px) plus gap between columns (10px) */
	width: 290px;
    height: 532px;
    padding: 10px;
    border-left: 1px solid #c2c2c2;
    background: #e6e6e6;
    }
.b-gallery__close {
    display: none;
    position: absolute;
    right: -15px;
    top: -15px;
    width: 30px;
    height: 30px;
    border: 0;
    cursor: pointer;
    background: url(../../plugins/fancybox/fancybox/fancy_close.png) left top no-repeat;
    }
.b-gallery__misc__main {
	position: relative;
    height: 188px;
    overflow: hidden;
    }
	.b-gallery__misc__main:after {
		content: "";
		display: block;
		position: absolute;
		left: 0;
		bottom: 0;
		width: 100%;
		height: 15px;
		background: -webkit-linear-gradient(top, rgba(230,230,230,0), rgba(230,230,230,1));
		background:    -moz-linear-gradient(top, rgba(230,230,230,0), rgba(230,230,230,1));
		background:      -o-linear-gradient(top, rgba(230,230,230,0), rgba(230,230,230,1));
		background:         linear-gradient(top, rgba(230,230,230,0), rgba(230,230,230,1));
		}
.b-gallery__misc__controls {
	text-align: right;
	}
.b-gallery__misc__control {
    display: inline-block;
    margin: 0;
    padding: 4px 12px;
    border: 1px solid #c0c0c0;
    border-radius: 3px;
    cursor: pointer;
    background: #939393;
    background: -webkit-linear-gradient(bottom, rgba(168,168,168,1), rgba(145,145,145,1) 40%, rgba(161,161,161,1) 40%, rgba(168,168,168,1));
    background:    -moz-linear-gradient(bottom, rgba(168,168,168,1), rgba(145,145,145,1) 40%, rgba(161,161,161,1) 40%, rgba(168,168,168,1));
    background:      -o-linear-gradient(bottom, rgba(168,168,168,1), rgba(145,145,145,1) 40%, rgba(161,161,161,1) 40%, rgba(168,168,168,1));
    background:         linear-gradient(to top, rgba(168,168,168,1), rgba(145,145,145,1) 40%, rgba(161,161,161,1) 40%, rgba(168,168,168,1));
    box-shadow: 0 1px 0 #939393;
    vertical-align: middle;
    font-size: 12px;
    color: #fff;
    }
    .b-gallery__misc__control + .b-gallery__misc__control {
        margin-left: 4px;
        }
    .b-gallery__misc__control:before {
        content: "";
        display: inline-block;
        width: 12px;
        height: 12px;
        margin-right: 6px;
        background-image: url(misc-control.png);
        background-repeat: no-repeat;
        vertical-align: middle;
        }
        .b-gallery__misc__control_fullscreen:before {
            background-position: 0 0;
            }
        .b-gallery__misc__control_slideshow:before {
            background-position: -12px 0;
            }
        .b-gallery__misc__control_minimize:before {
            background-position: -24px 0;
            }
        .b-gallery__misc__control_close:before {
            background-position: -36px 0;
            }
    .b-gallery__misc__control:hover {
        background: #828282;
        background: -webkit-linear-gradient(bottom, rgba(168,168,168,.85), rgba(145,145,145,.85) 40%, rgba(161,161,161,.85) 40%, rgba(168,168,168,.85));
        background:    -moz-linear-gradient(bottom, rgba(168,168,168,.85), rgba(145,145,145,.85) 40%, rgba(161,161,161,.85) 40%, rgba(168,168,168,.85));
        background:      -o-linear-gradient(bottom, rgba(168,168,168,.85), rgba(145,145,145,.85) 40%, rgba(161,161,161,.85) 40%, rgba(168,168,168,.85));
        background:         linear-gradient(to top, rgba(168,168,168,.85), rgba(145,145,145,.85) 40%, rgba(161,161,161,.85) 40%, rgba(168,168,168,.85));
        }
    .b-gallery__misc__control_minimize {
        display: none;
        }
    .b-gallery__misc__control_close {
        display: none;
        }
    .b-gallery__misc__control:empty:before {
        margin-right: 0;
        }
    .lt-ie8 .b-gallery__misc__control {
	    zoom: 1;
	    }

.b-gallery__title {
    font-size: 18px;
    line-height: 1.25;
    }
    .b-gallery__slider .b-gallery__title {
        /*-webkit-transition: all linear .3s;
           -moz-transition: all linear .3s;
             -o-transition: all linear .3s;
                transition: all linear .3s;*/
        position: absolute;
        left: 0;
        top: 0;
        right: -1px;
        padding: 6px;
        opacity: 1;
        filter: alpha(opacity=100);
        background: #333;
        background: rgba(0,0,0,.6);
        color: #fff;
        }
        .b-gallery__container_active .b-gallery__slider .b-gallery__title {
            opacity: 0;
            }
    .b-gallery__misc .b-gallery__title {
        margin: 6px 0 8px;
        color: #333;
        }
    .b-gallery__title:before {
        content: "";
        display: inline-block;
        width: 16px;
        height: 12px;
        margin-right: 6px;
        background-image: url(title-icon.png);
        background-repeat: no-repeat;
        vertical-align: baseline;
        }
        .b-gallery__slider .b-gallery__title:before {
            background-position: -16px 0;
            }
        .b-gallery__misc .b-gallery__title:before {
            background-position: 0 0;
            }
.b-gallery__description {
    margin-top: 8px;
    }
.b-gallery__misc .b-sharing {
    height: 24px;
    margin: 12px 0 6px;
    padding: 16px 0;
    border-bottom: 1px solid #c0c0c0;
    overflow: hidden;
    font-size: 11px;
    }
.b-gallery__adv {
    width: 300px;
    height: 270px;
    margin: 6px auto 0;
    padding-bottom: 10px;
    overflow: hidden;
    }
    .b-gallery__adv iframe {
        width: 300px;
        height: 250px;
        margin: 0;
        padding: 0;
        border: 0;
        overflow: hidden;
        }
        .b-gallery__adv iframe body {
            margin: 0;
            }
.b-gallery__adv-text {
    height: 20px;
    font-size: 11px;
    }

.b-gallery__overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 201;
    filter: alpha(opacity=60);
    opacity: .6;
    background: #000;
    }

/********** FULLSCREEN */

.is-fullscreen {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 205;
    background: #000;
    }
    .is-fullscreen .b-gallery__container {
        margin: 0 !important;
        border: 0;
        background: transparent;
        color: #fff;
        }
    .is-fullscreen .b-gallery__wrapper {
        margin-left: 0;
        }
    .is-fullscreen .b-gallery__wrapper-inner {
        width: 100%;
        }
    .is-fullscreen .b-gallery__main {
        width: 100%;
        margin-left: -340px;
        }
    .is-fullscreen .b-gallery__slider,
    .is-fullscreen .b-gallery__miniature {
        margin-left: 340px;
        }
    .is-fullscreen .b-gallery__misc {
        float: right;
        height: auto;
        border-color: #333;
        background: transparent;
        }
    .is-fullscreen .b-gallery__misc__control {
        padding: 10px 20px;
        border-color: #333;
        border-radius: 0;
        background: -webkit-linear-gradient(top, rgba(84,84,84,1), rgba(80,80,80,1) 50%, rgba(72,72,72,1) 50%, rgba(84,84,84,1));
        background:    -moz-linear-gradient(top, rgba(84,84,84,1), rgba(80,80,80,1) 50%, rgba(72,72,72,1) 50%, rgba(84,84,84,1));
        background:      -o-linear-gradient(top, rgba(84,84,84,1), rgba(80,80,80,1) 50%, rgba(72,72,72,1) 50%, rgba(84,84,84,1));
        background:         linear-gradient(to bottom, rgba(84,84,84,1), rgba(80,80,80,1) 50%, rgba(72,72,72,1) 50%, rgba(84,84,84,1));
        box-shadow: none;
        }
        .is-fullscreen .b-gallery__misc__control + .b-gallery__misc__control {
            margin-left: 2px;
            }
        .is-fullscreen .b-gallery__misc__control_minimize {
            display: inline-block;
            }
        .is-fullscreen .b-gallery__misc__control_close {
            display: inline-block;
            }
        .is-fullscreen .b-gallery__misc__control_fullscreen {
            display: none;
            }
    .is-fullscreen .b-gallery__close {
        display: none;
        }
    .is-fullscreen .b-gallery__title {
        color: #fff;
        }
        .is-fullscreen .b-gallery__misc .b-gallery__title:before {
            background-position: -11px 0;
            }
    .is-fullscreen .b-gallery__share {
        border-color: #333;
        }
    .is-fullscreen .b-gallery__share-text {
        color: #333;
        }

/********** END OF */

.b-gallery__voter {
	width: 120px;
	margin: -23px auto 0;
	overflow: visible;
	text-align: center;
	}
	.b-gallery__voter__element {
	    -webkit-transition: opacity linear .2s;
	       -moz-transition: opacity linear .2s;
		     -o-transition: opacity linear .2s;
		        transition: opacity linear .2s;
		display: inline-block;
		margin-left: 10px;
		font-size: 15px;
		font-weight: bold;
		color: #333;
	    opacity: .6;
        filter: alpha(opacity=60);
		}
		.lt-ie8 .b-gallery__voter__element{
			display: inline;
			zoom: 1;
			}
		.b-gallery__voter__icon {
			display: inline-block;
			position: relative;
			width: 24px;
			height: 24px;
			margin-right: 5px;
			background-color: #333;
			background-image: url(voter.png);
			background-repeat: no-repeat;
			vertical-align: -6px;
			cursor: pointer;
			}
			.lt-ie8 .b-gallery__voter__icon {
				display: inline;
				zoom: 1;
				}
			.b-gallery__voter__element_like .b-gallery__voter__icon {
				background-position: 0 0;
				}
				.b-gallery__voter__element_like.b-gallery__voter__element_selected .b-gallery__voter__icon {
					background-position: -24px 0;
					}
			.b-gallery__voter__element_dislike .b-gallery__voter__icon {
				background-position: 0 -24px;
				}
				.b-gallery__voter__element_dislike.b-gallery__voter__element_selected .b-gallery__voter__icon {
					background-position: -24px -24px;
					}
			.b-gallery__voter__element:hover {
				opacity: 1;
				filter: alpha(opacity=100);
				}
			.b-gallery__voter_voted .b-gallery__voter__element {
				opacity: 1;
				filter: alpha(opacity=100);
				}
				.b-gallery__voter_voted .b-gallery__voter__icon {
					cursor: default;
					}
			.b-gallery__voter_disabled .b-gallery__voter__element {
				opacity: .6;
				filter: alpha(opacity=60);
				}
				.b-gallery__voter_disabled .b-gallery__voter__icon {
					cursor: default;
					}
