#pageGalleryBrowse{
    padding-top: 20px;
        

}


#pageGalleryBrowse.in{
    opacity: 1 !important;
    
    -webkit-transition: opacity 0.15s linear;
    transition: opacity 0.15s linear
}


#pageGalleryBrowse.admin{
	padding-top: 70px;
}


#pageGalleryBrowse #filterDropdown span.what{
    font-weight: bold;
}

#pageGalleryBrowse #sortDropdown span.what{
    font-weight: bold;
}

#pageGalleryBrowse #sortDropdown {
    margin-right: 15px;
}

#pageGalleryBrowse #filterDropdown a.active,
#pageGalleryBrowse #sortDropdown a.active{
    position: relative;
}

#pageGalleryBrowse #filterDropdown a.active:before,
#pageGalleryBrowse #sortDropdown a.active:before{
    content: '';
    display: block;
    position: absolute;
    top: 7px;
    left: 13px;
    width: 5px;
    height: 9px;
    border-style: solid;
    border-color: #555555;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
}


.theme-dark #pageGalleryBrowse #filterDropdown a.active:before,
.theme-dark #pageGalleryBrowse #sortDropdown a.active:before{
    border-color: #d0d0d0;
}

/*@media (max-width: 767px) {
    #pageGalleryBrowse #filterDropdown a.active:before,
    #pageGalleryBrowse #sortDropdown a.active:before{
        top: 9px;
    }
}*/



#pageGalleryBrowse #filterDropdown li:not(.control):hover {
    background-color: #f5f5f5;
}


.theme-dark #pageGalleryBrowse #filterDropdown li:not(.control):hover {
    background-color: #313131;
}

#pageGalleryBrowse #filterDropdown li:not(.control):hover a {
    color: #333333;
}

.theme-dark #pageGalleryBrowse #filterDropdown li:not(.control):hover a {
    color: #d0d0d0;
}

#pageGalleryBrowse #filterDropdown li a:focus,
#pageGalleryBrowse #filterDropdown li a:hover{
    background-color: transparent;
}

#pageGalleryBrowse #filterDropdown li.control{
    margin-top: 8px;
    margin-bottom: 8px;
    padding-left: 28px;
    padding-right: 20px;
}

#pageGalleryBrowse #filterDropdown li.control .btn{
    width: 100%;
}

#pageGalleryBrowse #filterDropdown li.control [data-reset]{
    margin-bottom: 5px;
}

#pageGalleryBrowse #filterDropdown li.control [data-conditions]{
    display:block;
    margin-top: 2px;
}

#pageGalleryBrowse #filterDropdown li.control [data-conditions] button{
    width: 50%;
/*    to not jump*/
    vertical-align: top; 
    
}

#pageGalleryBrowse #filterDropdown li:not(.control) .btn-group{
    margin-left: 28px;
    margin-right: 20px;
    display:block;
    white-space:nowrap;
    padding-bottom: 8px;
}


#pageGalleryBrowse #filterDropdown li .btn-group .btn{
    padding-left: 10px;
    padding-right: 10px;
    float:none;
    /*    to not jump*/
    vertical-align: top; 
}


#pageGalleryBrowse #header.centered #filterDropdown .dropdown-menu{
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
}



#pageGalleryBrowse .no-images{
    margin-top: 40px;
    text-align: center;
}



#pageGalleryBrowse #thumbs{
	position: relative;
}



#pageGalleryBrowse .thumb{
    position: relative;
    display: inline-block;
    background-color: #dedede;
    width: 300px;
    /*height: 273px;*/
    padding: 10px 10px 8px 10px;
    margin-right: 3px;
    margin-bottom: 3px;

    text-align: left;
    vertical-align: top;
}

.theme-dark #pageGalleryBrowse .thumb{
    background-color: #3e3e3e;
}

#pageGalleryBrowse .thumb.bottom-space{
    padding-bottom: 32px;
}

/* .selection-mode .thumb{
    cursor: pointer;
} */

#pageGalleryBrowse .thumb.selected{
    background-color: #fde5bf;
}


.theme-dark #pageGalleryBrowse .thumb.selected{
    background-color: #656565;
}

/*#pageGalleryBrowse.rating-enabled .thumb,
#pageGalleryBrowse.colors-enabled .thumb{
	height: 296px;
}*/

#pageGalleryBrowse .thumb.next-page{
    display: inline-block;
    background-color: transparent; 
    white-space: nowrap;   
}

#pageGalleryBrowse .thumb.next-page a{
    width: 100%;
    height: 100%;
/*    to not show decoration on :before element*/
    text-decoration: none;
}

/* The ghost, nudged to maintain perfect centering */
#pageGalleryBrowse .thumb.next-page a:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -0.25em; /* Adjusts for spacing */
  
}



/* The element to be centered, can also be of any width and height */ 
#pageGalleryBrowse .thumb.next-page a .v-centered {
    display: inline-block;
    vertical-align: middle;
    text-align:center;
    width: 100%;
    text-decoration: inherit;
}

#pageGalleryBrowse .thumb.next-page a:hover .v-centered {

    text-decoration: underline;
}

#pageGalleryBrowse .thumb.next-page a .v-centered div:last-child{
    margin-top: 12px;
}


#pageGalleryBrowse .thumb.next-page .icon-arrow-right{
    display: inline-block;
    width: 47px;
    height: 90px;
    color: inherit;
}



#pageGalleryBrowse .thumb .saving{
    position: absolute;
    visibility: hidden; 
    opacity: 0; 
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(230,230,230,0.81);
    text-align: center;

    -webkit-transition: opacity 0.15s linear, visibility 0s;
            transition: opacity 0.15s linear, visibility 0s;
            
    -webkit-transition-delay: 0s, 0.15s;
            transition-delay: 0s, 0.15s;
}

.theme-dark #pageGalleryBrowse .thumb .saving{
    background-color: rgba(0,0,0,0.81);
}

#pageGalleryBrowse .thumb .saving:before{
    display: inline-block;
    content: '';
    height: 100%;
    vertical-align: middle;
    font: 0/0 a; 
    
}



#pageGalleryBrowse .thumb .saving p{
    display: inline-block;
}

#pageGalleryBrowse .thumb .saving p.swing{
    
    -webkit-transform-origin: top center;
            transform-origin: top center;

    -webkit-animation: swing 0.7s;
            animation: swing 0.7s;
}


#pageGalleryBrowse .thumb.blocked .saving{
    visibility: visible; 
    opacity: 1;   
    
    -webkit-transition-delay: 0s, 0s;
            transition-delay: 0s, 0s;
}

#pageGalleryBrowse .thumb > a{
    display: block;
}

#pageGalleryBrowse .thumb .image{
	display: table;
    width: 280px;
	height: 240px;
	text-align: center;
    table-layout: fixed;
    
}

#pageGalleryBrowse .thumb .image .cell{
    display: table-cell;
    vertical-align: middle;
/*    //to center vertically okey*/
    line-height: 1;
}

#pageGalleryBrowse .thumb .image .img-wrap{
/*    position: relative; 
    display:inline-block;*/
}

#pageGalleryBrowse .thumb .image  .img{
    position: relative;
    margin: 0 auto;
    background-size: contain;
    background-repeat: no-repeat;
}


#pageGalleryBrowse .thumb .image .img:not(.inview){
    background-image: none !important;
}

#pageGalleryBrowse .thumb .org-filename{
    padding-top: 6px;
    padding-bottom: 2px;
    text-align: center;
}

#pageGalleryBrowse .thumb .org-filename > span{
    display:inline-block;
    text-overflow: ellipsis;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    vertical-align:middle;
    line-height: 1;
    padding-bottom: 4px;
}


/*absolute positioning of components is faster to layout*/ 
#pageGalleryBrowse .thumb div.top-left{
    position:absolute;
    top: 10px;
    left: 10px;
}

#pageGalleryBrowse .thumb div.top-right{
    position:absolute;
    top: 10px;
    right: 10px;
}

#pageGalleryBrowse .thumb div.bottom-left{
    position:absolute;
    bottom: 8px;
    left: 10px;
}

#pageGalleryBrowse .thumb div.bottom-right{
    position:absolute;
    bottom: 8px;
    right: 10px;
}


#pageGalleryBrowse .thumb div.centered{
    margin-top: 3px;
    /*margin-bottom: -2px;*/
    line-height: 1;
/*    position:absolute;
    left: 10px;
    right: 10px;
    bottom: 8px;*/
    text-align:center;
}

#pageGalleryBrowse .thumb div.centered div{
    position:relative;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
}



#pageGalleryBrowse #header.centered{
   text-align: center;
}

#pageGalleryBrowse #header p.title{
	font-size: 22px;
    margin-bottom: 15px;
}


#pageGalleryBrowse #header .controls{
    position: relative;
/*    no filtrer and sort*/
    min-height: 25px;
/* 	text-align: right; */
}

/*pseudo element used as a margin bottom of header case: no filterign and sorting, only pagination visible*/
#pageGalleryBrowse #header .controls:after{
    content: '';
    display:block;
    width: 100%;
    height: 15px;
}

#pageGalleryBrowse #header .controls .breaker{
	display:none;
}

#pageGalleryBrowse #header.centered .controls .breaker{
	display:block;
}

#pageGalleryBrowse #header.centered .controls{
	text-align: center;
}

#pageGalleryBrowse #header .controls #pagination-top{
    display:inline-block;
    position: absolute;
    right: 0;
    bottom: 15px; /*same as 15px pseudo margin element*/
    margin-right: 3px; /* the same as thumb margin */
}

#pageGalleryBrowse #header.centered .controls #pagination-top{
    display:inline-block;
    position: static;
}

#pageGalleryBrowse #header .controls .buttons{
    display:inline-block;
}

#pageGalleryBrowse #header.centered .controls .buttons{
    margin-bottom: 10px;
} 

/*if header is centered and dropdwond will not fit into one line when selected 
longest text option, stack it*/ 
#pageGalleryBrowse #header.centered.buttons-block .controls .buttons > *{
    display:block;
    margin: 0;
    margin-bottom: 8px;
} 


#pageGalleryBrowse #header.centered.buttons-block .controls .buttons > *:last-child{
    margin-bottom: 0;
} 


#pageGalleryBrowse #header .controls .buttons > *{
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;

}

#pageGalleryBrowse #header .controls .buttons > * .btn{
/*    prevent jumping buttons*/
    vertical-align:top;
}

#pageGalleryBrowse #header .controls .buttons > *:last-child{
    margin-right: 0;
}


#pageGalleryBrowse #header .controls .buttons .dropdown .divider{
    margin-top: 3px;
    margin-bottom: 3px;
}

#pageGalleryBrowse #header .controls .buttons .dropdown .dropdown-menu > li > a {
    padding-left: 28px;
}

#pageGalleryBrowse #header .controls .buttons #finaliseControl{
    display:none;
}

#pageGalleryBrowse.finalise-enabled #header .controls .buttons #finaliseControl{
    display:inline-block;
}

#pageGalleryBrowse #header .controls .buttons #finaliseControl > *{
    display:none;
}

#pageGalleryBrowse.finalised #header .controls .buttons #finaliseControl > span{
    display:block;
}

#pageGalleryBrowse:not(.finalised) #header .controls .buttons #finaliseControl > button{
    display:inline-block;
}

#pageGalleryBrowse #pagination-bottom{
    text-align: center;
    margin-top: 20px;
    margin-right: 0;
    margin-left: 0;
}
/*
#pageGalleryBrowse #pagination-bottom.centered{
    text-align: center;
   
}*/

#pageGalleryBrowse #pagination-top p,
#pageGalleryBrowse #pagination-bottom p{
    display:inline-block;
    margin: 0;
    vertical-align: bottom;
}


#pageGalleryBrowse #pagination-top p span,
#pageGalleryBrowse #pagination-bottom p span{
    padding-right: 10px;
    padding-left: 10px;
}

#pageGalleryBrowse #pagination-bottom p{
    display:block;
}

#pageGalleryBrowse #header.centered #pagination-top p{
    display:block;
}


/* is only text no pagination controls */
#pageGalleryBrowse #pagination-top p.text-muted:last-child{
    padding-right: 0;
}

#pageGalleryBrowse #pagination-top ul.pagination,
#pageGalleryBrowse #pagination-bottom ul.pagination{
    margin-bottom: 0;
    margin-top: 0;
    vertical-align: middle; 
}

#pageGalleryBrowse #pagination-bottom ul.pagination{
    margin-bottom: 10px;
} 

#pageGalleryBrowse #header.centered #pagination-top ul.pagination{
    margin-top: 10px;
} 


#pageGalleryBrowse #selectionBar.panel{
    position: fixed;
    right: 20px;
    bottom: 20px;
    margin-bottom: 0;
/*     padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #f8f8f8;
    border: 1px solid #e7e7e7;
    border-radius: 4px; */
    z-index: 1030;

    border-left: none;
    border-right: none;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.7); 
	
}

/* #pageGalleryBrowse #selectionBar.active{
	animation: fade 2s;
} */

#pageGalleryBrowse #selectionBar .panel-body p{
    display: inline-block;
    margin: 0; 
    margin-right: 20px;
    vertical-align: middle;
}

/* #pageGalleryBrowse #selectionBar p:first-child{
    display: block;
	margin-bottom: 5px;
} */

#pageGalleryBrowse #selectionBar button{
    display: inline-block;
    vertical-align: middle;
    /* margin: 0; */
	
}




