.grib-gallery {
    position: relative;
    margin-top: 1em;
	-moz-box-shadow: 0 0 -4px rgba(0,0,0,0.5);
	-webkit-box-shadow: 0 0 -4px rgba(0,0,0,0.5);
	box-shadow: 0 0 4px rgba(0,0,0,0.5);
	text-align: center;
}

.grib-gallery img{
	width: 49%;
    height: inherit;
    display: inline-block !important;
    cursor: zoom-in;
}

.article article .entry .grib-gallery img{
	display: inline-block !important;
}

.grib-gallery img:hover {
	-moz-box-shadow: 0 0 -10px rgba(0,0,0,0.5);
	-webkit-box-shadow: 0 0 -10px rgba(0,0,0,0.5);
	box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.col_link {
    color: black !important;
    text-decoration: none !important;
    font-weight: 700;
}

.grib-gallery ul.actions{
	top:5%;
	left:30%;
	border: 1px solid #a0a5aa;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
    box-sizing: border-box;
    margin-bottom: 8px;
    position: absolute;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    max-width: 98%;
    z-index: 100100;
	background: #f5f5f5;
    padding: 0;
	list-style: none;
	margin: 0;
	display: none;
}


.white-popup {
    position: relative;
    background: #FFF;
    padding: 30px 20px;
    min-width: 320px;
	max-width: 520px;
    margin: 20px auto;
}
/*
.white-popup:before{
    content: '';
	position: absolute;
    width: 100%;
    height: 100%;
	background: #000;
	opacity:0.3;
	z-index:100;
	top:0;
	left:0;
	background: url(../images/loader.gif) no-repeat 50% 50%;
}
*/

#gallery_manager{
    position: relative;
}

#gallery_manager.loading:before{
    content: '';
	position: absolute;
    width: 100%;
    height: 100%;
	top:0;
	left:0;
	z-index:100;
	background: url(../images/loader.gif) no-repeat 50% 30%;
}


#gallery_manager .gallery-images{
    list-style: none;
    margin: 0;
    padding: 0;
}


#gallery_manager li.image,
#gallery_manager li.scalia-gallery-images-sortable {
	float: left;
	margin: 0 10px 10px 0;
	width: 150px;
	height: 150px;
	position: relative;
}

#gallery_manager li.image .rotate_img {
	top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    margin: -16px 0 0 -16px;
    position: absolute;
    background: url(../images/rotate.png) #fff;
    border-radius: 50%;
    opacity: 0.6;
}

#gallery_manager li.scalia-gallery-images-sortable {
	background: url('../images/dummy.png') no-repeat 50% 50%;
	outline: 1px solid #dddddd;
}


#gallery_manager li.image span.img {
    height: 150px;
    width: 150px;
    overflow: hidden;
	float: none;
    display: block;
	border: 2px solid #c7c7c7;
}

#gallery_manager li.image img {
	width: 100%;
	height: auto;
	max-height: 150px;
}

#gallery_manager li.image .img-file-name{
	position: absolute;
    top: 0;
    color: #fff;
    background: #000;
    left: 0;
    padding: 0;
    margin: 0;
    font-size: 11px;
    width: 100%;
    overflow: hidden;
}

#gallery_manager li.image a.remove {
	position: absolute;
	width: 20px;
	height: 20px;
	text-align: center;
	line-height: 16px;
	top: -8px;
	right: -8px;
	background-color: #000000;
	border: 2px solid #ffffff;
	box-shadow: 0 0 2px 0 #000000;
	-moz-box-shadow: 0 0 2px 0 #000000;
	-webkit-box-shadow: 0 0 2px 0 #000000;
	text-decoration: none;
	font-size: 10px;
	color: #ffffff;
	border-radius: 100%;
	-moz-border-radius: 100%;
	-webkit-border-radius: 100%; 
	text-transform: uppercase;
	display: none;
}
#gallery_manager li.image:hover a.remove {
	display: block;
}
#gallery_manager li.image a.remove:hover {
	background-color: #ff0000;
}
#gallery_manager li.image .hidden{
	display: none!important;
}


.uploader
{
	border: 2px dotted #A5A5C7;
	width: 100%;
	color: #92AAB0;
	text-align: center;
	vertical-align: middle;
	padding: 30px 0px;
	margin-bottom: 10px;
	font-size: 150%;

	cursor: default;

	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.uploader div.or {
	font-size: 50%;
	font-weight: bold;
	color: #C0C0C0;
	padding: 10px;
}

.uploader div.browser label {
	background-color: #5a7bc2;
	padding: 5px 15px;
	color: white;
	padding: 6px 0px;
	font-size: 60%;
	font-weight: bold;
	cursor: pointer;
	border-radius: 2px;
	position: relative;
	overflow: hidden;
	display: block;
	width: 300px;
	margin: 20px auto 0px auto;

	box-shadow: 2px 2px 2px #888888;
}

.uploader div.browser span {
	cursor: pointer;
}


.uploader div.browser input {
	position: absolute;
	top: 0;
	right: 0;
	margin: 0;
	border: solid transparent;
	border-width: 0 0 100px 200px;
	opacity: .0;
	filter: alpha(opacity= 0);
	-o-transform: translate(250px,-50px) scale(1);
	-moz-transform: translate(-300px,0) scale(4);
	direction: ltr;
	cursor: pointer;
}

.uploader div.browser label:hover {
	background-color: #427fed;
}





@keyframes progress-bar-stripes {
  from { background-position: $progress-height 0; }
  to { background-position: 0 0; }
}

.progress {
  display: flex;
  height: $progress-height;
  overflow: hidden; // force rounded corners by cropping it
  font-size: $progress-font-size;
  background-color: $progress-bg;
  @include border-radius($progress-border-radius);
  @include box-shadow($progress-box-shadow);
}

.progress-bar {
  position:absolute;
  bottom:2px;
  color:#fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: $progress-bar-color;
  text-align: center;
  background-color: $progress-bar-bg;
  @include transition($progress-bar-transition);
}

.progress-bar-striped {
  @include gradient-striped();
  background-size: $progress-height $progress-height;
}

.progress-bar-animated {
  animation: progress-bar-stripes $progress-bar-animation-timing;
}

.bg-primary {
    background-color: #007bff!important;
}

.bg-success {
    background-color: #28a745!important;
}

#remove-selected-type-grib{
	color: red;
    font-style: normal;
    cursor: pointer;
    font-weight: bold;
}

#search-modal-title {
	background: #fcfcfc;
	border-bottom: 1px solid #dfdfdf;
	font-size: 18px;
	font-weight: 600;
	line-height: 36px;
	padding: 0 36px 0 16px;
	position: relative;
	color: #555;
	font-family: "Open Sans",sans-serif;
}
#search-result {
	max-height: 300px;
	overflow: auto;
	list-style: none;
	margin: 0;
	padding: 0;
}
#search-result li {
	font-size: 13px;
	line-height: 1.4em;
	margin-bottom: 0;
	border-bottom: 1px solid #f1f1f1;
	color: #333;
	padding: 4px 6px 4px 10px;
	cursor: pointer;
}
#search-result li:nth-child(odd) {
	background: #fcfcfc;
}
#search-result li:hover {
	background: #eaf2fa;
}
#search-result li .large{  /* Для большого изображения и названия */
	position: absolute;
	display:none;
	background-color: #000000;
	font-weight: bold;
	padding: 3px;
	line-height: 0px;
	box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
}
#search-result span:hover .large { 
	display:block;
	top: 100px;
	right: 410px;
	z-index: 100;
	cursor:default;
}
#search-query {
	text-align: center; margin: 20px 0; padding: 4px; width: 97%; height: 26px; 
	font-size: 24px; 
	border: 1px solid #dfdfdf;
	height: 40px;
}
#search-msg {
	font-size: 18px;
	font-weight: 600;
	text-align: center;
}
#search-box{
	/*width: 400px;*/
	background-color: white;
}
#selected-mroom-tite{
	padding: 20px 10px 0 10px;
	color: #5ba82c;
}

.grib-loading:before {
	content: 'Поиск...';
	position: absolute;
	top: 120px;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 30px 0 0;
	background: #B2B2B2;
	background: rgba(0,0,0,.4);
	font-weight: bold;
	color: #FFF;
	text-align: center;
}
.grib-loading{
	min-height: 50px;
}

@media (max-width: 414px) {
	#search-box { width: 280px; }
}