#gallery_block {
			display: none;
			position: fixed;
			width: 800px; height: 608px;
			top: 50%; left: 50%;
			margin-top: -300px;
			margin-left: -400px;
			border: 1px solid #bebebe;
			box-sizing: border-box;
			box-shadow: 0px 1px 1px rgba(0, 0, 0, .4);
			background-clip: padding-box;
			background-color: white;
			z-index: 101;
			opacity: 0;
			transition: box-shadow 100ms, outline 100ms, box-shadow 100ms;
		}
		
		#gallery_block #gallery_filter {
		    margin-bottom: 15px;
		}
		
		#gallery_block.ui-draggable-dragging {
			/*outline: 3px solid #f58220;*/
			border: 1px solid #f58220;
			box-shadow: 0px 1px 3px rgba(0, 0, 0, .6);
			box-shadow: 0px 0px 15px 2px #f58220;
		}

		#gallery_block #gb_title {
			font-family: 'dinblack', sans-serif;
			font-size: 18px;
			line-height: 45px;
			color: #e3e9e7;
			background-color: #888888;
			padding: 0px 20px;
			text-shadow: 0px -1px 0px rgba(0, 0, 0, .75);
		}
		
		#gallery_block #gb_title a {
		    width: 37px;
		    height: 44px;
		    position: relative;
		    margin-right: -20px;
		    border-left: 1px solid #e3e9e7;
		    float: right;
		    transition: background 200ms;
		    background: url('../images/template/floating_icons/faq_comp.png') no-repeat center center;
		}
		
		#gallery_block #gb_title a:hover {
			background-color: #727272;
			transition: background 200ms;
			background: url('../images/template/floating_icons/faq_comp_active.png') no-repeat center center;
		}

		#gallery_block #gb_files {
			font-family: 'Roboto-Regular', sans-serif;
			height: 510px;
			box-sizing: border-box;
			-moz-box-sizing: border-box;
			overflow-x: hidden;
			box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, .3);
		}
		
		#gallery_block #gb_files #current_image,#gallery_block #gb_files #current_image_only {
			display: none;
			/*height: 28px;*/
			color: #f58220;
			font-size: 14px;
			box-sizing: border-box;
			-moz-box-sizing: border-box;
			padding: 10px 10px 0px 10px;
			text-align: center;
			line-height: 10px;
		}
		#gallery_block #gb_files #current_image_grey {
		    color: #888888;
		    display: block;
		    font-size: 14px;
		    box-sizing: border-box;
		    -moz-box-sizing: border-box;
		    padding: 9px;
		    text-align: center;
		    line-height: 14px;
		}

		#gallery_block #gb_files .gb_item {
			width: 70px;
			/*height: 90px;*/
			padding: 10px 7px;
			transition: all 100ms;
			cursor: pointer;
			display: inline-block;
                        vertical-align: top;
			opacity: 1 !important;
                        margin-right: -2px;
                        text-align: center;
		}
		
		#gallery_block #gb_files .unchecked_imgs {
		    min-height: 110px;
		    display: inline-block;
		    width: 100%;
		}
		#gallery_block #gb_files .checked_imgs {
		    content: '';
		    min-height: 110px;
		    border-bottom: 1px dashed #a6a9af;
		    border-top: 1px dashed #a6a9af;
		    background-color: #ebebeb;
		    margin-bottom: 10px;
		    display: inline-block;
		    width: 100%;
                    padding-left: 10px
		}

		#gallery_block #gb_files .checked_imgs:empty:after {
		    content: 'Drag and drop an image from the gallery below.';
		    color: #a6a9af;	
		    width: 420px;
		    display: inline-block;	
		    padding: 39px 0px;	
		    font-size: 14px;
		}
		
		@-moz-document url-prefix() {
		    #gallery_block #gb_files .gb_item {
			padding: 10px 13.5px;
		    }
		}

		#gallery_block #gb_files .gb_item.chosen {
			padding-left: 15px;
			background-color: #e8e8e8;
			transition: all 200ms;
		}

		#gallery_block #gb_files .gb_item:hover {
			background-clip: border-box;
			background-color: #d7d7d7;
			transition: all 100ms;
		}
		
		#gallery_block .hover_block {
			background-clip: border-box;
			background-color: #e8e8e8;
			transition: all 100ms;
		}

		#gallery_block #gb_files .gb_item .image {
			width: 50px; 
			height: 50px;
			background-repeat: no-repeat;
			background-position: center center;
			margin: 0 auto;
			display: block;
		}
		
		#gallery_block .sort_block_gallery {
		    display: inline-block;
		}

		#gallery_block #gb_files .gb_item .title {
			color: #848484;
			font-size: 14px;
		}
		.gb_item .sizes {
		    display: block;
		    text-align: center;
		    font-size: 11px;
		    color: #888;
		    padding-top: 5px;
		}
		#gallery_block #gb_files .hidden {
		    display: none !important;
		    opacity: 0;		    
		}
		
		#gallery_block #gb_files .gb_item .showfull,
		#gallery_block #gb_files .gb_item .remove {
			height: 20px;
                        width: 23px;
                        text-align: center;
			margin-top: 2px;
			padding-right: 9px;
			font-size: 12px;
			line-height:18px;
                        margin: 0 1px 2px 1px !important;
                        padding: 0 !important;
                        display: inline-block;
			box-sizing: border-box;
			-moz-box-sizing: border-box;
			color: #888888;
			background-position: center !important;
			background-repeat: no-repeat;
			transition-property: background-image, color;
			transition-duration: 100ms;
			-webkit-transition-property: background-image, color;
			-webkit-transition-duration: 100ms;
		}

		#gallery_block #gb_files .gb_item .showfull {
			padding-left: 15px;
			background-image: url('../images/template/preview_icon.png');
			margin-left: 12px;
		}
		
		#gallery_block #gb_files [id="gb_item_tmp"] .showfull,
		#gallery_block #gb_files [id^="gb_item_stnd_"] .showfull,
		#gallery_block #gb_files [id^="gb_item_clients_"] .showfull {
		    margin-left: 27px;
		}
		
		#gallery_block #gb_files .gb_item .showfull:hover {
			background-image: url('../images/template/preview_icon_active.png');
		}

		#gallery_block #gb_files .gb_item .remove {
			margin-left: 11px;
			padding-left: 3px;
			background-position-x: 0px;
			background-image: url('../images/template/swindow_remove.png');
		}
		#gallery_block #gb_files .gb_item .remove:hover {
			background-image: url('../images/template/swindow_remove_active.png');
		}

		#gallery_block #gb_files .gb_item .showfull:hover,
		#gallery_block #gb_files .gb_item .remove:hover {
			color: #f58220;
			text-decoration: none;
		}

		#gallery_block #gb_footer {
			background-color: #E8E8E8;
			box-sizing: border-box;
			-moz-box-sizing: border-box;
			/*padding: 0px 20px;*/
			height: 52px;
			line-height: 52px;
			border-top: 1px solid #d7d7d7;
		}

		#gallery_block #gb_footer input {
			width: 33.33%; height: 52px;
			cursor: pointer;
			display: block;
			float: left;
			background-color: #ebebeb;
			box-shadow: inset 0px 2px 3px rgba(255, 255, 255, .7);
			border: none;
			border-right: 1px solid #bdc4cc;
			/*border-radius: 2px;*/
			font-family: 'dinmedium', sans-serif;
			font-weight: 300;
			font-size: 20px;
			text-decoration: none;
			text-align: center;
			color: #888888;
			text-shadow: 1px 1px 1px rgba(235, 235, 235, .6), 0 0 0 #000;
			opacity: 1.0;
			transition: color 100ms, background-color 100ms, opacity 200ms;
			-moz-transition: color 100ms, background-color 100ms, opacity 200ms;
		}
		#gallery_block #gb_footer input:hover {
			color: rgba(245, 130, 32, 0.8);
			background-color: rgb(215, 215, 215);
			transition: color 100ms, background-color 100ms;
			-moz-transition: color 100ms, background-color 100ms;
		}
                #gallery_block #gb_footer .empty {
			color: rgba(245, 130, 32, 0.8);
			background-color: rgb(215, 215, 215);
			transition: color 100ms, background-color 100ms;
			-moz-transition: color 100ms, background-color 100ms;
		}
		#gallery_block #gb_footer #progress_wrapper {
			display: none;
			position: absolute;
			float: right;
			width: 100%; height: 10px;
			padding-top: 1px;
			margin-top: -10px;
			/*padding: 1px;
			border: 1px solid #848484;*/
			background: linear-gradient(top, #cfcfcf, #e7e7e7);
			background: -webkit-linear-gradient(top, #cfcfcf, #e7e7e7);
		}

		#gallery_block #gb_footer #progress_wrapper #progress_bar {
			width: 50%; height: 8px;
			background: url('../images/template/progress_bar.png') repeat-x left top;
			transition: width 500ms;
			-moz-transition: width 500ms;
			-webkit-transition: width 500ms;
		}
		
		#gallery_block #gb_files .gb_item .img_checkbox {
		    width: 26px;
		    height: 35px;
		    margin: 8px 15px 0px 0px;
		    background: url('../images/template/box.png') no-repeat center top;
		    transition: background 200ms;
		    float: left;
		}
		
		#gallery_block #gb_files .gb_item.chosen .img_checkbox {
		    background: url('../images/template/box_active.png') no-repeat center top;
		    transition: background 200ms;
		}
		
		#content #gallery_filter #filter {
		    height: 30px;
		}
		
		#content #gallery_filter #filter li {
		    height: 30px;
		    background-color: #ebebeb;
		}
		
		#content #gallery_filter #filter li a.item {
		    height: 30px;
		    line-height: 30px;
		    font-size: 16px;
		}
		
		#content #gallery_filter #filter li a.item:hover,
		#content #gallery_filter #filter li a.item.active {
		    height: 29px;
		    line-height: 30px;
		    cursor: pointer;
		}
		
		@media (max-height: 800px) {
		    #gallery_block {
			height: 500px !important;
		    }
		    
		    #gallery_block #gb_files {
			height: 400px !important;
		    }
		}