	html, body {
		width: 100%;
		height: 100%;
	}
	
	/* Fix for off center glyphicons */
	.glyphicons { line-height: 1.28em; }
	/* Remove margin on glyphicons on buttons */
	.btn .glyphicons { margin: 0; }

	/* Modals */

	body.modal-open { /* Prevent window scroll when modal is opened */
		overflow: hidden;
	}

	.modal-body {
		padding-bottom: 65px; /* Make some room for fixed buttons in bottom */
	}

	.modal-footer {
		text-align: left;
	}

	.modal-content .modal-footer { /* Footer inside the content area */
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
	}

	.modal-content .modal-footer.fixed { /* Footer inside the content area */
		position: fixed;
	}

/* 	body .content { margin-top: 188px; }  Set this in js instead */

	.modal-lg {
		width: 96%;
	}

	/* General */

	.navbar.navigation {
		/* margin-top: 50px; */
	}

	.btn:focus { /* Remove blue outline in Safari */
		outline: none !important;
	}

	a:hover { text-decoration: none; cursor: pointer; }

	.text-indicator {
		color: #BB8838;
	}

	/* Login page */

	/*html.loginpage {
		background: url(../images/backgrounds/voxxHeaderLogo.jpg) no-repeat left center fixed; 
		-webkit-background-size: cover;
		-moz-background-size: cover;
		-o-background-size: cover;
		background-size: cover;
	}*/

	html.loginpage body {
		background: none;
	}

	.panel.login {
		width: 250px;
		position: absolute;
		top: 260px;
		right: 80px;
	}

	/* Headers */

	nav.navbar[role=banner] { margin-bottom: 0; }
	nav.navbar[role=navigation] { margin-bottom: 0; }
	nav.navbar[role=toolbar] { margin-bottom: 0; }


	nav .icons a {
		font-size: 24px;
		padding: 12px 27px 28px 23px;
	}
	nav .icons label {
		position: absolute;
		bottom: 2px;
		width: 74px;
		text-align: center;
		white-space: nowrap;
		opacity: 0.4;
		font-weight: normal;
	}
	nav.navigation .navbar-form {
		margin-top: 18px;
		margin-bottom: 18px;
	}


nav[role='toolbar'] form[role='search'] .advancedsearch {
    position: relative;
    display: inline-block;
    width: auto;
    vertical-align: top;
}
nav[role='toolbar'] form[role='search'] .advancedsearch a {
    font-size: 14px;
    margin-left: 10px;
    text-transform: capitalize;
    margin-top: 0;
    vertical-align: middle;
    display: block;
    padding: 8px 0px;
}
nav[role='toolbar'] form[role='search'] .advancedsearch a + ul {
    /*background: #484848;*/
}
nav[role='toolbar'] form[role='search'] .advancedsearch a + ul li a {
    color: #333;
    background: transparent;
    padding: 5px 10px 5px 10px;
    margin-left: 0;
    font-weight: 400;
    /*letter-spacing: 0.045em;*/
    text-transform: capitalize;
    font-size: 14px;

}

	/* Navigation bar/Buttons */
	#navigator_table .nav > li > a, 
    #basketpanel .nav > li > a {
		overflow: hidden;
		text-overflow: ellipsis;
	}
	
	.nav.icons label {
		overflow: hidden;
		text-overflow: ellipsis;
	}

	#togglePannelLeftBtn {
	    background: transparent;
	    color: #fff;
	    border-radius: 100%;
	    font-size: 20px;
	    line-height: 20px;
	    padding: 5px 7px;
	    margin: 0 10px;
	    position: relative;
	    height: 32px;
	    width: 32px;
	    border-width:2px;
	    border-color:#555;
	    vertical-align: top
	}
	#togglePannelLeftBtn:focus {
	  outline: none;
	}
	#togglePannelLeftBtn span {
	    display: block;
	    position: absolute;
	    top: 48%;
	    left: 5px;
	    right: 4px;
	    height: 2px;
	    background: #555;
	     -webkit-transition: -webkit-transform 0.3s;
	     -moz-transition:  -moz-transform 0.3s;
	     -o-transition: -o-transform 0.3s;
	     transition: transform 0.3s;
	    font-size: 0px;
	}
	#togglePannelLeftBtn span:before,
	#togglePannelLeftBtn span:after  {
	    position: absolute;
	    display: block;
	    left: 0;
	    width: 100%;
	    height: 2px;
	    background-color: #555;
	    content: "";
	}
	#togglePannelLeftBtn span:before {
	  top: -6px;
	  -webkit-transform-origin: top left;
	    -moz-transform-origin: top left;
	    -o-transform-origin: top left;
	    transform-origin: top left;
	   -webkit-transition: -webkit-transform 0.3s, width 0.3s, top 0.3s;
	     -moz-transition: -moz-transform 0.3s, width 0.3s, top 0.3s;
	    -o-transition:  -o-transform 0.3s, width 0.3s, top 0.3s;
	     transition: transform 0.3s, width 0.3s, top 0.3s;
	}
	#togglePannelLeftBtn span:after {
	  bottom: -6px;
	  -webkit-transform-origin: bottom left;
	    -moz-transform-origin: bottom left;
	    -o-transform-origin: bottom left;
	    transform-origin: bottom left;
	    
	  -webkit-transition: -webkit-transform 0.3s, width 0.3s, bottom 0.3s;
	     -moz-transition: -moz-transform 0.3s, width 0.3s, bottom 0.3s;
	     -o-transition:  -o-transform 0.3s, width 0.3s, bottom 0.3s;
	     transition: transform 0.3s, width 0.3s, bottom 0.3s;
	}
	#togglePannelLeftBtn span.is_active {
	  -webkit-transform: rotate(180deg);
	    -moz-transform: rotate(180deg);
	    -o-transform: rotate(180deg);
	   transform: rotate(180deg);
	}
	#togglePannelLeftBtn span.is_active:before,
	#togglePannelLeftBtn span.is_active:after {
	  width: 50% ;
	}
	#togglePannelLeftBtn span.is_active:before {
	  top: 0;
	  -webkit-transform: translate(0, 0) rotate(-45deg);
	    -moz-transform: translate(0, 0) rotate(-45deg);
	    -o-transform: translate(0, 0) rotate(-45deg);
	   transform: translate(0, 0) rotate(-45deg);
	}
	#togglePannelLeftBtn span.is_active:after {
	  bottom: 0;
	  -webkit-transform: translate(0, 0) rotate(45deg);
	  -moz-transform: translate(0, 0) rotate(45deg);
	  -o-transform: translate(0, 0) rotate(45deg);
	   transform: translate(0, 0) rotate(45deg);
	}

	/* Left panels */

	.container-fluid,
	.container-fluid > .row,
	#left-pannel,
	#main{
		height:100%;
	}
	#left-pannel {
	   padding-right: 0;
	}
	#accordion {
		position: fixed;
		overflow-y: hidden;
		height: 650px;
		z-index:1;
		left: 0;
		padding-right:0;
	}
	#accordion:hover {
		overflow-y: auto;
		/*padding-right: 0px;*/
	}
	#accordion.unpaddme:hover {
		/*overflow-y: auto;*/
		padding-right: 0px;
	}
		
		/* Filters */
		.showmore { 
			margin-left: 20px; 
		}

		#panel-filter #filter-content {
		}
		
	/* Add all to basket button */
	#main #addalltobasket {
	    bottom: 26px;
	    right: 15px;
	    font-size: inherit;
	    background: #292929;
	    border-radius: 100%;
	    vertical-align: middle;
	    padding: 20px;
	    z-index: 1;
	    -webkit-transition: all 200ms ease;
	    transition: all 200ms ease;
	}
	#main #addalltobasket span {
	    color: #fefefe;
	    vertical-align: middle;
	    line-height: 25px;
	    font-size: 25px;
	}
	#main #addalltobasket:hover{
	    background: #337ab7;
	}

	/* Toplevel */

	.volume {

		width: 240px;
		height: 180px;
		padding: 15px 20px 25px 20px;
		position: relative;
		
		margin: 0 20px 20px 0;
		border: 1px solid #ddd;
		border-radius: 4px;

		-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.075);
		box-shadow: 0 1px 2px rgba(0,0,0,.075);
	}

	.volume .caption {
		position: absolute;
		width: 238px;
		bottom: 0;
 		border-top: rgba(255,255,255,0.1) solid 1px;
		margin-left: -20px;
		font-size: 18px;
	}

	/* Volume - hover */

	.volume .lefty, 
	.volume .righty {
		display: none;
		position: absolute;
		width: 50%;
		height: 178px;
		background: rgba(0,0,0,0.9);
		color: #ffffff;
		cursor: pointer;

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

	.volume .lefty > div, 
	.volume .righty > div {
		position: relative;
		top: 50%;
		margin-top: -50px;
	}

	.volume .lefty { top: 0; left: 0; width: 119px; border-radius: 4px 0 0 4px; padding-left: 15px; }
	.volume .righty { top: 0; right: 0; width: 119px; border-radius: 0 4px 4px 0; padding-right: 15px; }

	.volume .lefty .glyphicons, 
	.volume .righty .glyphicons {
		display: block;
		clear: right;
	}


	.volume .lefty small, 
	.volume .righty small {
		line-height: 30px;
	}

	/* Navigate */

	#accordion > div {
		margin-bottom: 10px;
	}
    
    /*ACCORDION SECTION*/
    #accordion .panel{
    	padding:0;border-radius: 0px;border-color: rgba(221,221,221,0.6);
    }
    #accordion .panel .panel-heading{
        border-radius: 0;
        border-left: 2px solid #337ab7;
        padding: 8px 15px;
        margin-left: -1px;
        /* border-bottom: none; */
    }
    #accordion .panel .panel-heading .badge {
        border: 1px solid #fff;
        background: #d81b21;
        background: -webkit-gradient(linear, left top, left bottom, from(#ed1c24), to(#aa1317));
        background: -moz-linear-gradient(top, #ed1c24, #aa1317);
        filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#ed1c24', endColorstr='#aa1317')";
    }
    #accordion .panel-body{
    	padding: 0 0 0 4px;
    	border: none;
    }
    #accordion .panel-title {
        font-weight: 400;
        letter-spacing: 0.035em;
        text-transform: uppercase;
        color: #337ab7;
        font-size: 13px;
    }
    #accordion .panel-title .btn {
        line-height: 20px;
        font-size: 20px;
        padding: 0 5px;
        color: #2e6da4;
        cursor: pointer;
        background: transparent;
        border: none;
        padding: 0;
        margin-top: -4px;
        margin-right: -12px;
    }
    #accordion .panel-title .btn .glyphicons {
    	top: 3px; 
    	font-family: "Glyphicons Halflings"
    }
    #accordion .panel-body ul {
    	padding:0px
    }
    #accordion .panel-body ul li:first-child {
    	margin-top:5px
    }
    #accordion .panel-body ul li{
        margin: 1px 0 0 0 !important;
        padding:0 !important;
        position: relative;
    }
    #accordion .panel-body ul li[style="padding-left: 40px;"] a{
      padding-left: 40px !important
    }
    #accordion .panel-body ul li[style="padding-left: 60px;"] a{
      padding-left: 60px !important
    }
    #accordion .panel-body ul li[style="padding-left: 80px;"] a{
      padding-left: 80px !important
    }
    #accordion .panel-body ul li[style="padding-left: 100px;"] a{
      padding-left: 100px !important
    }
    #accordion .panel-body ul li a{
        padding: 3px 0px; 
        white-space: nowrap;
        -webkit-transition:color .2s ease-out, background .2s ease-in;
        -moz-transition:color .2s ease-out, background .2s ease-in;
         -ms-transition:color .2s ease-out, background .2s ease-in;
         -o-transition:color .2s ease-out, background .2s ease-in;
    } 
    #accordion .panel-body ul li.navigator_active a, 
    #accordion .panel-body ul li a:hover,
    #accordion .panel-body ul li a:focus{
        border-radius:0px;
        margin:0;
        /*text-transform: capitalize;*/
    }
    #accordion .savetoggle .panel-body ul li a {
        width:100%;
        font-size: 12px;
        font-weight: 300;
        letter-spacing: 0.035em;
        /*text-transform:capitalize;*/
        padding-right: 30px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #accordion .savetoggle .panel-body ul li > span{
        top: 21%;
        right: 10px !important;
        line-height: 1 !important;
    }
    #accordion .savetoggle #basketpanel ul li a {
        padding-right: 3px;
    }
    #accordion .panel-body ul li.navigator_active a{
    	color:#fff; 
    	background-color: #337ab7
    }

    /*ADVANCED SEARCH PAGE*/
    #searchfields .table{
        box-shadow: 0 1px 1px rgba(0,0,0,0.25), 0 0 1px rgba(0,0,0,0.35);
        margin-bottom:0;
        border-radius:4px;
    }
    #searchfields table:last-child{box-shadow: none}
    #searchfields .table>tbody>tr:first-child>th{border-top:none}

    /*METADATA FORM STYLING*/
    form[name="metadataform"] input[type='text'],
    form[name="metadataform"] textarea,
    form[name="metadataform"] select:not([multiple]){
        background: transparent;
        font-size: 13px !important;
        line-height: 1.2;
        height: auto;
        width:100% !important;
        color: inherit;
        letter-spacing: 0.035em;
        box-shadow: none;
    }
    form[name="metadataform"] textarea{line-height: 16px; height: 80px!important}
    form[name="metadataform"] select:not([multiple]) {
        padding: 8px 10px;
        padding-right: 20px;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-position: right 50%;
        background-repeat: no-repeat;
        background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAMCAYAAABSgIzaAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NDZFNDEwNjlGNzFEMTFFMkJEQ0VDRTM1N0RCMzMyMkIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NDZFNDEwNkFGNzFEMTFFMkJEQ0VDRTM1N0RCMzMyMkIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0NkU0MTA2N0Y3MUQxMUUyQkRDRUNFMzU3REIzMzIyQiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo0NkU0MTA2OEY3MUQxMUUyQkRDRUNFMzU3REIzMzIyQiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PuGsgwQAAAA5SURBVHjaYvz//z8DOYCJgUxAf42MQIzTk0D/M+KzkRGPoQSdykiKJrBGpOhgJFYTWNEIiEeAAAMAzNENEOH+do8AAAAASUVORK5CYII=) !important;

    }
    form[name="metadataform"] select:not([multiple]).datefield {
        border-radius: 0;
        border-left-width:0px;
        border-right-width:0px;
        width:auto !important;
        margin-left:-6px;
        padding-right: 19px !important
    }
    form[name="metadataform"] select:not([multiple]).datefield:first-of-type {
        border-right: 0px;
        border-left-width: 1px ;
        border-radius: 4px 0 0 4px;
        margin-left: 0 !important;
    }
    form[name="metadataform"] select:not([multiple]).datefield:last-of-type {
        border-left: 0px;
        border-right-width: 1px;
        border-radius: 0px 4px 4px 0px;
    }
    form[name="metadataform"] select:not([multiple]).datefield:last-of-type + input[type='button'] {
        background: transparent;
        border: 0px;
        color: #337ab7;
        padding: 8px 5px;
        font-weight: 300;
        font-size: 11px;
    }
    form[name="metadataform"] input[type='text']:focus,
    form[name="metadataform"] select:not([multiple]):focus{
        box-shadow: none;
    }

	/* Breadcrumb */
	#breadcrumbs {
		padding-left: 15px;
	}
	
	ol.breadcrumb {
		padding: 0 15px;
		line-height: 36px;
	}

/*THUMBNAILS*/
	/*
	#thumbnails .thumbnail {
		position: relative;
		margin: 0 10px 10px 0;
    	vertical-align: top;
    	display: inline-block;
    	padding: 0;
	}
	*/
	/*
	#thumbnails .thumbnail .folder {
		height: 200px;
		min-width: 200px;
		cursor: pointer;
	}
	*/
	
	#thumbnails .thumbnail .folder span.glyphicons {
		margin-top: 30px;
	}
	#thumbnails .thumbnail .folder a.glyphicons {
	    margin-top: 30px;
		color: #333;
		text-decoration: none;
	}
	
	/*
	#thumbnails .thumbnail .image {
		height: 200px;
		min-width: 200px;
		overflow: hidden;
		background-repeat: no-repeat;
		background-position: center; 
		border-radius: 2px;
	}*/
	/*
	#thumbnails .thumbnail .filebuttons {
		padding: 10px 20px;
	}
	#thumbnails .thumbnail .filebuttons > a span.glyphicons { margin: 0; }
	#thumbnails .thumbnail .filebuttons > a {
		padding: 5px 0px;
	}
	#thumbnails .filebuttons.stripes {
		position: absolute;
		top: 0;
		right: 0;
		height: 40px;
		padding: 10px;
	}*/
	
#thumbnails .thumbnail .filebuttons {}
#thumbnails .thumbnail .filebuttons > a span.glyphicons {
    margin: 0;
}
#thumbnails .thumbnail .filebuttons > a {
    padding: 5px 0px;
}
#thumbnails .filebuttons.stripes {
    position: absolute;
    top: 0;
    right: 0;
    height: 40px;
    padding: 10px;
}	

/*ADDED BY LANDRY@NORTHPLAINS LONDON*/

/*THUMBNAILS*/

#thumbnails .thumbnail {
	position: relative;
	/*min-width: 285px; 
	width: 245px;*/
	margin: 0 10px 10px 0;
    vertical-align: top;
    display: inline-block;
    padding: 0;
    /*border: 2px solid transparent;*/
}
	
#thumbnails .thumbnail .folder,
#thumbnails .thumbnail .image {
    height: 130px !important;
    max-height: 230px;
    cursor: pointer;
    min-width: auto;
    border:4px 4px 0 0;
}

#thumbnails .thumbnail .folder span,
#thumbnails .thumbnail .image a{
    display: block;
    height: 100%;
    width: 100%;
    margin: 0;
    top:0;
    padding: 2%;
    position: relative

}
#thumbnails .thumbnail .folder span:before{
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    font-size: 50px;
    line-height: 100px;
} 
#thumbnails .thumbnail .image a:before {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    content:'';    
}

#thumbnails .thumbnail .folder span:after,
#thumbnails .thumbnail .image a img{
    vertical-align: middle;
    display: inline-block;
    height: 100%;
    width: auto;
}
#thumbnails .thumbnail .caption {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    padding: 10px;
    text-align: center;
    /* border-top: 1px solid #000; */
}
#thumbnails .thumbnail .caption small {
    font-weight: normal;
    font-style: normal;
    font-size: 12px;
    font-size: 1.2rem;
    line-height: 1.2;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    text-overflow: ellipsis;
}

@media (min-width: 0px) and (max-width: 377px) {
    #main .volume,
    #thumbnails .thumbnail{
        width: -webkit-calc((100% - (1*10px))/2)!important;
        width: -moz-calc((100% - (1*10px))/2)!important;
        width: -o-calc((100% - (1*10px))/2)!important;
        width: -ms-calc((100% - (1*10px))/2)!important;
        width: calc((100% - (1*10px))/2)!important;
    }
    #main .volume:nth-child(2n),
    #thumbnails .thumbnail:nth-child(2n){
        margin-right: 0px !important;
    }
}

@media (min-width: 378px) and (max-width: 501px) {
    #main .volume,
    #thumbnails .thumbnail{
        width: -webkit-calc((100% - (1*10px))/2)!important;
        width: -moz-calc((100% - (1*10px))/2)!important;
        width: -o-calc((100% - (1*10px))/2)!important;
        width: -ms-calc((100% - (1*10px))/2)!important;
        width: calc((100% - (1*10px))/2)!important;
    }
    #main .volume:nth-child(3n),
    #thumbnails .thumbnail:nth-child(2n){
        margin-right: 0px !important;
    }
}
@media (min-width: 502px) and (max-width: 625px) {
     #main .volume,
    .col-sm-6 #thumbnails .thumbnail{
        width: -webkit-calc((100% - (1*10px))/2)!important;
        width: -moz-calc((100% - (1*10px))/2)!important;
        width: -o-calc((100% - (1*10px))/2)!important;
        width: -ms-calc((100% - (1*10px))/2)!important;
        width: calc((100% - (1*10px))/2)!important;
    }
     #main .volume:nth-child(3n),
    .col-sm-6 #thumbnails .thumbnail:nth-child(2n){
        margin-right: 0px !important;
    }

    .col-sm-9 #thumbnails .thumbnail{
        width: -webkit-calc((100% - (1*10px))/2)!important;
        width: -moz-calc((100% - (1*10px))/2)!important;
        width: -o-calc((100% - (1*10px))/2)!important;
        width: -ms-calc((100% - (1*10px))/2)!important;
        width: calc((100% - (1*10px))/2)!important;
    }
    .col-sm-9 #thumbnails .thumbnail:nth-child(2n){
        margin-right: 0px !important;
    }

    .col-sm-12 #thumbnails .thumbnail{
        width: -webkit-calc((100% - (2*10px))/3)!important;
        width: -moz-calc((100% - (2*10px))/3)!important;
        width: -o-calc((100% - (2*10px))/3)!important;
        width: -ms-calc((100% - (2*10px))/3)!important;
        width: calc((100% - (2*10px))/3)!important;
    }
    .col-sm-12 #thumbnails .thumbnail:nth-child(3n){
        margin-right: 0px !important;
    }
}
@media (min-width: 626px) and (max-width: 1003px) {
    #main .volume,
    .col-sm-6 #thumbnails .thumbnail{
        width: -webkit-calc((100% - (1*10px))/2)!important;
        width: -moz-calc((100% - (1*10px))/2)!important;
        width: -o-calc((100% - (1*10px))/2)!important;
        width: -ms-calc((100% - (1*10px))/2)!important;
        width: calc((100% - (1*10px))/2)!important;
    }
    #main .volume:nth-child(3n),
    .col-sm-6 #thumbnails .thumbnail:nth-child(2n){
        margin-right: 0px !important;
    }

    .col-sm-9 #thumbnails .thumbnail{
        width: -webkit-calc((100% - (2*10px))/3)!important;
        width: -moz-calc((100% - (2*10px))/3)!important;
        width: -o-calc((100% - (2*10px))/3)!important;
        width: -ms-calc((100% - (2*10px))/3)!important;
        width: calc((100% - (2*10px))/3)!important;
    }
    .col-sm-9 #thumbnails .thumbnail:nth-child(3n){
        margin-right: 0px !important;
    }

    .col-sm-12 #thumbnails .thumbnail{
        width: -webkit-calc((100% - (3*10px))/4)!important;
        width: -moz-calc((100% - (3*10px))/4)!important;
        width: -o-calc((100% - (3*10px))/4)!important;
        width: -ms-calc((100% - (3*10px))/4)!important;
        width: calc((100% - (3*10px))/4)!important;
    }
    .col-sm-12 #thumbnails .thumbnail:nth-child(4n){
        margin-right: 0px !important;
    }
}
@media (min-width: 1004px) and (max-width: 1251px) {
    .col-sm-6 #thumbnails .thumbnail{
        width: -webkit-calc((100% - (2*10px))/3)!important;
        width: -moz-calc((100% - (2*10px))/3)!important;
        width: -o-calc((100% - (2*10px))/3)!important;
        width: -ms-calc((100% - (2*10px))/3)!important;
        width: calc((100% - (2*10px))/3)!important;
    }
    .col-sm-6 #thumbnails .thumbnail:nth-child(3n){
        margin-right: 0px !important;
    }

    .col-sm-9 #thumbnails .thumbnail{
        width: -webkit-calc((100% - (3*10px))/4)!important;
        width: -moz-calc((100% - (3*10px))/4)!important;
        width: -o-calc((100% - (3*10px))/4)!important;
        width: -ms-calc((100% - (3*10px))/4)!important;
        width: calc((100% - (3*10px))/4)!important;
    }
    .col-sm-9 #thumbnails .thumbnail:nth-child(4n){
        margin-right: 0px !important;
    }

    .col-sm-12 #thumbnails .thumbnail{
        width: -webkit-calc((100% - (4*10px))/5)!important;
        width: -moz-calc((100% - (4*10px))/5)!important;
        width: -o-calc((100% - (4*10px))/5)!important;
        width: -ms-calc((100% - (4*10px))/5)!important;
        width: calc((100% - (4*10px))/5)!important;
    }
    .col-sm-12 #thumbnails .thumbnail:nth-child(5n){
        margin-right: 0px !important;
    }
}
@media (min-width: 1252px) and (max-width: 1499px) {
    .col-sm-6 #thumbnails .thumbnail{
        width: -webkit-calc((100% - (3*10px))/4)!important;
        width: -moz-calc((100% - (3*10px))/4)!important;
        width: -o-calc((100% - (3*10px))/4)!important;
        width: -ms-calc((100% - (3*10px))/4)!important;
        width: calc((100% - (3*10px))/4)!important;
    }
    .col-sm-6 #thumbnails .thumbnail:nth-child(4n){
        margin-right: 0px !important;
    }

    .col-sm-9 #thumbnails .thumbnail{
        width: -webkit-calc((100% - (4*10px))/5)!important;
        width: -moz-calc((100% - (4*10px))/5)!important;
        width: -o-calc((100% - (4*10px))/5)!important;
        width: -ms-calc((100% - (4*10px))/5)!important;
        width: calc((100% - (4*10px))/5)!important;
    }
    .col-sm-9 #thumbnails .thumbnail:nth-child(5n){
        margin-right: 0px !important;
    }

    .col-sm-12 #thumbnails .thumbnail{
        width: -webkit-calc((100% - (5*10px))/6)!important;
        width: -moz-calc((100% - (5*10px))/6)!important;
        width: -o-calc((100% - (5*10px))/6)!important;
        width: -ms-calc((100% - (5*10px))/6)!important;
        width: calc((100% - (5*10px))/6)!important;
    }
    .col-sm-12 #thumbnails .thumbnail:nth-child(6n){
        margin-right: 0px !important;
    }
}
@media (min-width: 1500px) and (max-width: 4000px) {
    .col-sm-6 #thumbnails .thumbnail{
        width: -webkit-calc((100% - (4*10px))/5)!important;
        width: -moz-calc((100% - (4*10px))/5)!important;
        width: -o-calc((100% - (4*10px))/5)!important;
        width: -ms-calc((100% - (4*10px))/5)!important;
        width: calc((100% - (4*10px))/5)!important;
    }
    .col-sm-6 #thumbnails .thumbnail:nth-child(5n){
        margin-right: 0px !important;
    }

    .col-sm-9 #thumbnails .thumbnail{
        width: -webkit-calc((100% - (5*10px))/6)!important;
        width: -moz-calc((100% - (5*10px))/6)!important;
        width: -o-calc((100% - (5*10px))/6)!important;
        width: -ms-calc((100% - (5*10px))/6)!important;
        width: calc((100% - (5*10px))/6)!important;
    }
    .col-sm-9 #thumbnails .thumbnail:nth-child(6n){
        margin-right: 0px !important;
    }

    .col-sm-12 #thumbnails .thumbnail{
        width: -webkit-calc((100% - (7*10px))/8)!important;
        width: -moz-calc((100% - (7*10px))/8)!important;
        width: -o-calc((100% - (7*10px))/8)!important;
        width: -ms-calc((100% - (7*10px))/8)!important;
        width: calc((100% - (7*10px))/8)!important;
    }
    .col-sm-12 #thumbnails .thumbnail:nth-child(8n){
        margin-right: 0px !important;
    }
}


@media (min-width: 0px) and (max-width: 768px) {
	
	nav[role="toolbar"] .navbar-form {
	    border: 0 none;
	    box-shadow: none;
	    vertical-align: top;
	    display: inline-block;
	    width: auto;
   }
	nav[role="toolbar"] form[role="search"] button + .input-group {
	    display: inline-block;
	    width: auto;
	} 
	nav[role="toolbar"] form[role="search"] button + .input-group .input-group-btn {
	    display: inline-block;
	    float: left;
	    width: auto;
	}

    nav[role='navigation'],
    nav[role='toolbar'] .navbar-form:nth-child(2),
    nav[role='toolbar'] .navbar-form.navbar-right,
    nav[role='toolbar'] .filtersets,
    nav[role='toolbar'] form[role='search'] .btn.btn-default:nth-child(3),
    nav[role='toolbar'] form[role='search'] .btn.btn-default:nth-child(4) {
    	display: none;
    }
    
    nav[role='toolbar'] form[role='search'] button + .input-group input[type='text'],
    nav[role='toolbar'] form[role='search'] button + .input-group input[type='text']:focus {
        width:100px;
    }
}


	/* Highlighting of search results in popup over thumbnails */

	.image + .tooltip > .tooltip-inner {
		text-align: left;
		background-color: rgba(0, 0, 0, 0.9);
		color: #fff;
		border: 1px solid #fff;
		padding: 10px;
		font-size: 12px;
		/*margin-bottom: -20px;*/
		white-space:pre-wrap;
		max-width: 500px;
		z-index: 2147483646;
	}
	.image + .tooltip > .tooltip-inner > span {
		background-color: #fd7507;
		padding: 2px;
		cursor: pointer;
	}
	.folder + .tooltip > .tooltip-inner {
		text-align: left;
		background-color: rgba(0, 0, 0, 0.9);
		color: #fff;
		border: 1px solid #fff;
		padding: 10px;
		font-size: 12px;
		/*margin-bottom: -20px;*/
		white-space:pre-wrap;
		max-width: 500px;
		z-index: 2147483646;
	}
	.folder + .tooltip > .tooltip-inner > span {
		background-color: #fd7507;
		padding: 2px;
		cursor: pointer;
	}

	/* File details */

	#thumbnails .thumbnail .keywords {

	}
	#thumbnails .thumbnail .keywords, 
	#thumbnails .thumbnail .dates {
		padding: 0 8px;
	}
	#thumbnails .thumbnail .keywords hr,
	#thumbnails .thumbnail .dates hr { /* Ruler */
		margin: 0 0 8px 0;
	}
	#thumbnails .thumbnail .keywords dl,
	#thumbnails .thumbnail .dates dl {
		margin: 0 0 8px 0;
	}

	#thumbnails .thumbnail .keywords dt,
	#thumbnails .thumbnail .dates dt { /* Title cell */
/* 		background: red; */
		white-space: nowrap;
		max-width: 219px;
		text-overflow: ellipsis;
		overflow-x: hidden;

	}
	#thumbnails .thumbnail .keywords dd,
	#thumbnails .thumbnail .dates dd { /* Value cell */
		text-overflow: ellipsis;
		overflow-x: hidden;
		max-width: 219px;
	}
	#thumbnails .thumbnail .fileinfoicons {
		position: absolute;
		top: 10px;
		left: 10px;
		z-index: 100;
	}

	/* Thumbnail page controls */
	#thumbnails .thumbnail .pagectrl {
	    text-align: center;
	    line-height: 16px;
	    position: absolute;
	    /*padding: 0 2px;*/
	    background: rgba(255, 255, 255, 0.8);
	    border-radius: 11px;
	    box-shadow: -1px -1px 6px rgba(0, 0, 0, 0.2), inset 1px 1px 1px #fff, 1px 1px 2px rgba(0, 0, 0, 0.2);
	    text-shadow: 0 1px 0 #fff;
	    color: black;
	}
	#thumbnails .thumbnail .pagectrl .glyphicons {
	    font-size: 10px;
	    line-height: 16px;
	}

	#thumbnails .thumbnail .pagectrl,
	#details-thumbnail .lgpreview .pagectrl {
		display: none;
	}

	#thumbnails .thumbnail .pagectrl {
	    right: 5px;
	    top: 85px;
	}
	#thumbnails .thumbnail .pagectrl {
	    background: rgba(255, 255, 255, 0.8) none repeat scroll 0 0;
	    border-radius: 11px;
	    box-shadow: -1px -1px 6px rgba(0, 0, 0, 0.2), 1px 1px 1px #fff inset, 1px 1px 2px rgba(0, 0, 0, 0.2);
	    color: black;
	    line-height: 16px;
	    position: absolute;
	    text-align: center;
	    text-shadow: 0 1px 0 #fff;
	}
	#thumbnails .thumbnail .control_count {
	    text-align: center;
	    font-size: 10px;
	    font-weight: bold;
	}
	
	/* details */
	#details-thumbnail .lgpreview .pagectrl,
	.annotations .pagectrl {
		text-align: center;
		line-height: 32px;
		position: absolute;
		padding: 0 10px;
		background: rgba(255,255,255,0.8);
		border-radius: 19px;
		box-shadow: -1px -1px 6px rgba(0,0,0,0.2),inset 1px 1px 1px #fff,1px 1px 2px rgba(0,0,0,0.2);
		text-shadow: 0 1px 0 #fff;
	}	
	#details-thumbnail .lgpreview .pagectrl .glyphicons,
	.annotations .pagectrl .glyphicons {
		font-size: 16px;
		line-height: 32px;
	}
	#thumbnails .thumbnail .pagectrl.prev .glyphicons,
	#details-thumbnail .lgpreview .pagectrl.prev .glyphicons {
		
	}

	#details-thumbnail .lgpreview .control_count,
	.annotations .control_count {
		text-align: center;
		font-size: 14px;
		font-weight: bold;
	}

	#thumbnails .thumbnail .pagectrl.next, 
	#details-thumbnail .lgpreview .pagectrl.next {
	}

	/* No more files message */
	#nomorefilesmsg {
		position: absolute;
		bottom: -80px;
		line-height: 69px;
		width: inherit;
		padding: 0;
		margin: 20px 0 0 0;
		border-top: rgba(125,125,125,0.2) dashed 1px;
	}

	/* Add all files to basket */
	#addalltobasket {
		position: fixed;
		bottom: 5px;
		right: 5px;
		font-size: 24px;
	}

	#details-addalltobasket {
		font-size: 24px;
		padding: 0;
	}

	/* Folders */
	#folders {
		margin-bottom: 10px;
	}

	#folders .thumbnail {
		display: block;
		float: left;
		height: 56px;
		min-width: 58px;
		vertical-align: top;
/* 		overflow: hidden; */
		position: relative;
		margin: 0 10px 10px 0;
/* 		padding: 0; */
		line-height: 46px;
		cursor: pointer;
	}

	#folders .thumbnail .icon {
		width: 48px;
		font-size: 28px;
		text-align: center;
		line-height: inherit;
		color: #777777;
	}
	#folders .thumbnail .icon .glyphicons { line-height: inherit;margin: -1px 0 0 -2px; }

	#folders .thumbnail .name {
		padding: 0 20px;
		line-height: inherit;
	}

	.thumbnail .previewPadColor .glyphicons {
		text-shadow: 0 1px 1px #fff;
	}

	/* Archive ribbon */

	#thumbnails .thumbnail .archive {
		position: absolute;
		top: -6px;
		right: 10px;
		font-size: 28px;
		z-index: 1;
	}
	#folders .thumbnail .archive {
		position: absolute;
		top: -4px;
		right: 4px;
		font-size: 20px;
		z-index: 1;
	}
	.nearline { color: rgb(68,117,71) !important; }
	.offline { color: rgb(189,76,76) !important; }

	/* Details preview */

	#details-thumbnail {
		opacity: 0;
		transition: opacity 0.5s linear;
		height: 100%;
	}

	#details-thumbnail .lgpreview { /* Outer preview container */
		width: 100%;
		height: 100%;
	}

	#details-thumbnail .image {
		display: inline-block;
		vertical-align: middle;
		overflow: hidden;
		background-repeat: no-repeat;
		background-position: center; 
		border-radius: 2px;
		width: 100%;
		height: 85%;
/* 		padding: 10px; */
		padding: 0;
		margin: 0;
	}

	#details-thumbnail .largepreview {

	}

	/* Details thumbnails */

	#details-files {
		background: #000000;
		padding: 10px 40px;
		margin-top: 20px;
		white-space: nowrap;
		overflow-x: scroll;
		overflow-y: hidden;
	}

	#details-files .thumbnail {
		zoom: 0.5;
		margin: 0 5px 5px 0 !important;

		display: inline-block;
		float: none !important;
	}

	#details-files .thumbnail .btn-group,
	#details-files .thumbnail .caption {
		display: none;
	}	

	/* Details info */
	.details #details-info .details-tabs {
		height: 10%;
	}
	.details #details-info .content {
		display: none;
		/*position: absolute;*/
		top: 42px;
		right: 15px;
		bottom: 0;
		left: 15px;
		overflow-x: auto;
		margin-bottom: 0;
		height: 90%;
	}
	#details-info {
		height: 100%;	
	}
	.details.left.column {
		height: 100%;
	}
	.details.right.column {
		height: 100%;
	}
	.details.top.row {
		height: 60%;
		overflow: hidden;
	}
	.details.bottom.row {
		height: 40%;
		overflow: auto;
	}

/*
	.details.row div[class*=col-] {
		height: 100%;
	}
*/
	/* Comments */
	
	#details-info .comment .delete {
		font-size: 16px;
	}
	#details-info .addcomment {

		padding: 6px;
	}
	/* Pages */
	#details-info .pages > div {
		padding: 4px 0 0 1px;
		
	}
	#details-info .pages .thumbnail {
		width: 118px;
		height: 118px;
		display: inline-block;
		margin: 0;
		padding: 2px;
	}
	#details-info .pages .thumbnail.currentspread {
		background: #337ab7;
	}


.modal-open #details-info {
    border: 1px solid #ddd;
    padding: 0;
    background: #fff
}
.modal-open #details-info .details-tabs {
	height: auto !important
}
.modal-open #details-info .details-tabs li a {
    border:0px; 
    border-radius: 0px;
    font-size: 14px;
    background: #fafafa;
    font-weight: 300;
    padding: 10px 4%;
    letter-spacing: 0.035em;
    border-bottom: 2px solid rgba(221, 221, 221, 0.40);
}
.modal-open #details-info .details-tabs li.active a{background: #fff; border-bottom: 2px solid #337ab7}
.modal-open #details-info .list-group .list-group-item{border:0px; padding-bottom: 5px}
.modal-open #details-info .list-group.metadata-info .list-group-item p{
    width: 60%;
    margin: 0;
    overflow: hidden;}
.modal-open #details-info .list-group.metadata-info .list-group-item p input[type='text'], 
.modal-open #details-info .list-group.metadata-info .list-group-item p textarea,
.modal-open #details-info .list-group.metadata-info .list-group-item p select:not([multiple]){
    color:#292929;
    border-color: #ddd;

}
.modal-open #details-info .list-group.metadata-info .list-group-item p select:not([multiple]).datefield{margin-left: -5px}

.modal-open #details-info .list-group.history .list-group-item,
.modal-open #details-info .list-group.comments .list-group-item{border-bottom: 1px solid rgba(221, 221, 221, 0.40);}

/*.modal-open #details-info .list-group .list-group-item:hover, 
.modal-open #details-info .list-group .list-group-item:focus{background:transparent;}*/

.modal-open #details-info .addcomment,
.modal-open #details-info .addcomment:hover{
    margin-top: 10px;
    position: absolute;
    bottom: 0;
    background-color: #337ab7 !important;
    width: 100%;
}
.modal-open #details-info .addcomment input[type='text'] {
    width: 100% !important;
}
.modal-open #details-info .addcomment input[type='text'] + span button {
    border-radius: 0!important;
    /*font-size: 13px;*/
    text-transform: initial;
}
form[name="metadataform"] .table>tbody>tr>td label, 
.table tr th,
.modal-open #details-info .list-group .list-group-item h5 {
    /*text-transform: uppercase;*/
    letter-spacing: 0.025em;
    padding: 5px 0;
    font-weight: 400;
}
.modal-open #details-info .list-group .list-group-item.keyword h5{width:40%; float: left}
.modal-open #details-info .list-group .list-group-item p{font-size: 13px}

/* info modal responsiveness */
.col-md-6 {
	width:50%
}
.details.column {
	float: left
}
.modal-content .modal-footer {
    background: #fafafa;
    border-top: 1px solid #ddd;
}

form[name="metadataform"] input[type='text'],
form[name="metadataform"] textarea,
form[name="metadataform"] select:not([multiple]){
    background: transparent;
    font-size: 13px !important;
    line-height: 1.2;
    height: auto;
    width:100% !important;
    color: inherit;
    letter-spacing: 0.035em;
/*  font-weight: 300;  
    border-color: rgba(255, 255, 255, 0.30);*/
    box-shadow: none;
}
form[name="metadataform"] textarea{line-height: 16px; height: 80px!important}
form[name="metadataform"] select:not([multiple]) {
/*    color: #fff;*/
    padding: 8px 10px;
    padding-right: 20px;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-position: right 50%;
    background-repeat: no-repeat;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAMCAYAAABSgIzaAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NDZFNDEwNjlGNzFEMTFFMkJEQ0VDRTM1N0RCMzMyMkIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NDZFNDEwNkFGNzFEMTFFMkJEQ0VDRTM1N0RCMzMyMkIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0NkU0MTA2N0Y3MUQxMUUyQkRDRUNFMzU3REIzMzIyQiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo0NkU0MTA2OEY3MUQxMUUyQkRDRUNFMzU3REIzMzIyQiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PuGsgwQAAAA5SURBVHjaYvz//z8DOYCJgUxAf42MQIzTk0D/M+KzkRGPoQSdykiKJrBGpOhgJFYTWNEIiEeAAAMAzNENEOH+do8AAAAASUVORK5CYII=) !important;
    
}
form[name="metadataform"] select:not([multiple]).datefield {
    border-radius: 0;
    border-left-width:0px;
    border-right-width:0px;
    width:auto !important;
    margin-left:-6px;
    padding-right: 19px !important
}
form[name="metadataform"] select:not([multiple]).datefield:first-of-type {
    border-right: 0px;
    border-left-width: 1px ;
    border-radius: 4px 0 0 4px;
    margin-left: 0 !important;
}
form[name="metadataform"] select:not([multiple]).datefield:last-of-type {
    border-left: 0px;
    border-right-width: 1px;
    border-radius: 0px 4px 4px 0px;
}
form[name="metadataform"] select:not([multiple]).datefield:last-of-type + input[type='button'] {
    background: transparent;
    border: 0px;
    color: #337ab7;
    padding: 8px 5px;
    font-weight: 300;
    font-size: 11px;
}
form[name="metadataform"] input[type='text']:focus,
form[name="metadataform"] select:not([multiple]):focus{
    box-shadow: none;
}

form[name="metadataform"] .table>tbody>tr>td, 
form[name="metadataform"] .table>tbody>tr>th, 
form[name="metadataform"] .table>tfoot>tr>td, 
form[name="metadataform"] .table>tfoot>tr>th, 
form[name="metadataform"] .table>thead>tr>td, 
form[name="metadataform"] .table>thead>tr>th{border:none}



	/* Search */

	.filetype_disabled, .archived_disabled {
		display: none;
	}

	#savedialogue {
		display: none;
	}

	/* Advanced search */

	#searchfields .table th {
		white-space: nowrap;
	}

	/* Messages and notifications */

	div.alert {
		width: 400px;
		position: absolute;
		top: 5px;
		left: 50%;
		margin-left: -200px;
	}

	/* Hiding stuff */

	.navbar.navigation .icons .button_noshow { /* .button_noshow behavior in header menu */
		pointer-events: none;
		cursor: not-allowed !important;
		filter: alpha(opacity=65);
		-webkit-box-shadow: none;
		box-shadow: none;
		opacity: .65;
	}

	.content .button_noshow, .modal .button_noshow, .popover-content .button_noshow {
		width: 0 !important;
		height: 0 !important;
		display: none !important;
	}

	/* Straight from old */

	.noshow, .div_noshow, .options_noshow {
		display: none;
	}

	.action_disable {
		display: none;
	}
	
	/* Basket plugins */
	#batchapply, #batchorder, #contactsheet, #downloadbasket, #downloadbasketfpo {
		overflow: hidden;
		overflow-y: scroll;
		height: 100%;
	}
