/* 
	Body styling 
*/
body
{
	padding: 0px 10px;
	font-size: 16px;
	font-family: Corbel;
}

a:hover
{
	text-decoration: none;
	color: #333;
}

a
{
	text-decoration:underline;
	font-weight: bold;
	color: #333;
}

.no-list-style
{
	list-style-type: none;
	padding-left: 0px;
}

/* 
	Header styling 
*/

div.header-image
{
	height: 100px;
	width: 200px;
	position: relative;
}

#header-image
{
	background-color: #FFF;
	position: absolute;
	top: 0;
	bottom: 0;
	margin: auto;
	height: 100%;
  padding: 10px 0px;
}

#header-image img
{
	max-height: 92px;
}

#header-image h1
{
	float: right;
}

#country-pages
{
	float:left;
}

#country-pages>ul
{
	padding-left:0px;
}

#country-pages li, #global-nav li
{
	display: inline-block;
}

#global-nav
{
	float:right;
}

#top-tier
{
	padding-bottom: 10px;
	margin-bottom: 10px;
	border-bottom: solid 1px black;
}

.page-header
{
	margin: 0px;
	border-bottom: 0px;
}

/* 
	Footer styling 
*/
footer
{
	padding-top: 10px;
	border-top: solid 1px black;
	padding-bottom:20px;
}

#address
{
	float: left;
}

#footer-links
{
	text-align: center;
}

#footer-links span
{
	padding-right: 4px;
	border-right: solid 1px black;
}

#footer-links span:last-child
{
	border-right: 0px;
}

#attribution
{
	float: right;
}

/* 
	Menu bar styling 
*/

.navbar
{
	border-radius: 0px;
}

/* Background styling of navbar */

.navbar-inverse
{
	background-color: black;
	border-color: black;
}

.navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form
{	
	background-color: black;
}

.navbar-inverse .navbar-toggle:focus, .navbar-inverse .navbar-toggle:hover {
    background-color: black;
}

.navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form {
    border-color: black;
}

/* 
.navbar-inverse ul li
{
	border-right: solid 1px black;
}
*/

/* Navbar menu items styling */

.navbar-inverse .navbar-nav>.active>a
{	
	font-weight: bold;
	color: black;
	background-color:white;
}

.navbar-inverse .navbar-nav>.active>a, .navbar-inverse .navbar-nav>.active>a:focus, .navbar-inverse .navbar-nav>.active>a:hover
{
	background-color: white;
	color: black;
}

.navbar-inverse .navbar-nav>li>a:hover
{
	text-decoration: none;
	background-color: white;
	color: black;
}

.navbar-inverse .navbar-nav>li>a
{
	color: white;
	text-decoration: none;
}

/* Mobile friendly navbar */

@media only screen and (max-width: 767px)
{
	.navbar-inverse ul li
	{
		border-right: 0px;
	}
	
	.navbar-inverse .navbar-nav>.active>a
	{	
		font-weight: bold;
		color: black;
		background-color:white !important;
	}
	
	.navbar-inverse .navbar-toggle {
		border-color: white;
	}
}

/* 
	Search bar & advanced search 
*/

@media only screen and (min-width: 768px)
{
	
	#simplesearch {
		width: 75%;
		display: inline-flex;
	}

	#simplesearch>div
	{
		display: inline-table;
		/* width: 100%; */
		vertical-align: top;
		padding-right: 10px;
	}
	
	#simplesearch>input
	{
		display: table-cell;
		width: 25%;
		margin-right: 10px;
	}	
}

/* Mobile friendly search bar */
@media only screen and (max-width: 767px)
{
	#simplesearch>div>button
	{
		margin-top: 8px;
	}
	
	.advancedsearchbutton
	{
		margin-right: 0px !important;
	}
}

div#simplesearch
{
	padding-left:30px;
}

div#simplesearch label
{
	line-height: 34px;
}

#searchbar
{
	padding: 0px 0px 20px 5px;
}

#advancedsearchbox
{
	margin: 20px 0px;
}

div.searchbutton>button.advancedsearchbutton
{
	margin-right: 15px;
}

.advancedsearchbutton
{
	float: right;
	margin-right: 35px;
	margin-bottom: 10px;
	font-size: 1em;
	font-weight: bold;
}

.btn-default:hover,
.btn-default:active.
.btn-default
{
	color: white;
  background-color: black;
}

.advanced-search-fields
{
	background-color:#FFF !important;
}

div#advancedsearch label
{
	white-space: nowrap;
	padding-top: 6px;
}

.searchbutton
{
	float:right;
}

#imagecheckbox
{
	float:left;
	padding-right: 15px;
}

@media only screen and (max-width: 767px)
{
	#imagecheckbox
	{
		width: calc(100% - 100px);
		margin-top: 0px;
	}
	
	div#advancedsearch label
	{
		white-space: normal !important;
	}
}

.back-button
{
	float: right;
	font-weight: bold;
	margin-bottom: 20px;
}

/* 
	Content styling 
*/
#content
{
	padding-bottom: 20px;
	clear: right;
}

#content h1, #content h2, #content h3, #content h4
{
	font-family: Corbel;
	font-weight: 100;
}

#content h1
{
	font-size: 2.1em;
}

#content h2
{
	font-size: 1.7em;
}

#content h3
{
	font-size: 1.35em;
}
#content h4
{
	font-size: 1.2em;
}

button.collection
{
	margin-bottom: 10px;
}

/* 
	Results page 
*/

.results
{
	border-top: solid 1px black;
	/*border-bottom: solid 1px black;*/
	padding: 15px 15px 15px 15px;
}

ul.results
{
	list-style-type: none;	
}

ul.results li
{
	display: block;
	overflow: auto;
	clear: both;
	border-bottom: solid 1px black;
}

ul.results li:last-child
{
	border-bottom: none;
}

.result a
{
	width: 100%;
}

ul.details
{
	list-style:none;
	padding-left: 5px;	
}

.details h1
{
	padding-bottom: 10px;
}

.creators
{
	list-style-type: none;
	padding: 5px 0px;
}

ul.names
{
	list-style-type: none;
	padding: 0px;	
}

.names li
{
	padding: 0;
}

div.hierarchy
{
	border-top: solid 2px black;
	padding-top: 15px;
	margin-top: 15px;
	float: none;
}

div.hierarchy ul
{
	list-style: none;
	padding: none;
}

div.hierarchy ul li
{	
	padding: 2px 0px;
}

div.hierarchy a
{
	font-weight: normal;
	text-decoration: none;
	cursor: pointer;
	cursor: hand;
}

div.hierarchy .active
{
	font-weight: bold;
}

#listoptions
{
	float: right;
}

#listoptions button
{
	font-size: 1.3em;
	padding: 2px 8px 2px;
}

#sort-control
{
	float: left;
	padding-right: 5px;
}

.result.active
{
	border: solid 1px black;
}

.result
{
	border-bottom: dotted 1px black;
	padding: 10px 0px;
}

.record-navigation
{
	float: right;
	margin-top: 20px;
}

.record-navigation>span
{
	padding: 10px;
	cursor: pointer;
	cursor: hand;
}

.expandable
{
	border: solid 1px black; 
	padding: 1.5px 1.5px 2px 1.5px;
	margin-right: 10px;
	font-size: 0.65em;
}

.new-lines
{
	white-space: pre-line;
	list-style-type: none;
}

p.overflow
{
	display: block;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow: hidden;
    max-height: 3.6em;
    line-height: 1.8em;
}

p.overflow::after
{
	content: "";
	text-align: right;
	position: absolute;
	bottom: 0;
	right: 0;
	width: 25%;
	height: 2em;
	background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 50%);
}

p.permalink
{
	text-align: right;    
}

p.permalink>a
{
	font-size: 0.8em;
}

h1.results-heading
{
	padding-left: 15px;
}

.catalogue-search
{
}

div.record-detail
{
	padding-left: 0px;
}

div.resultcontent
{
}

.fieldprompt
{
	font-weight: bold;
}

/* Narratives */

.narrative-content
{
	padding-left:0px;
	margin: 0px 15px;
}

#main-narrative
{
	margin-left: 0px;
}

#childNarratives
{
	margin-top: 20px;
}

.image-slides
{
	width:90%;
	margin-left:5%;
	margin-right:5%;
}

.narrative-slides div, div.narrative-carousel
{
	float: left;
	display: inline;
	width: 25%;
	padding: 0px 10px;
}

div.narrative-carousel-lg
{
  width: 16%;
}

div.narrative-carousel-md
{
  width: 25%;
}

div.narrative-carousel-sm
{
  width: 33%;
}


.carousel .row
{
	margin-bottom: 20px;
}

.glyphicon-menu-right
{
	position: absolute;
	/* top: 30%;
	height: 100%; */
	color: #000;
	font-size: 1.25em;
	right: 0;
	background-color: transparent;	
	padding-top: 7%;
	margin-right: -25px;
}

.glyphicon-menu-left
{
	position: absolute;
	/* top: 30%;
	height: 100%; */
	color: #000;
	font-size: 1.25em;
	left: 0;
	background-color: transparent;    
	padding-top: 7%;
	margin-left: -25px;
}

@media only screen and (max-width: 767px)
{
	
	.glyphicon-menu-right, .imagegallery .glyphicon-menu-right, .glyphicon-menu-left, .imagegallery .glyphicon-menu-left
	{
		top: 30%;
	}
	
	.relation-section .glyphicon-menu-right, .relation-section .glyphicon-menu-left,
	.narrative-section .glyphicon-menu-right, .narrative-section .glyphicon-menu-left
	{
		top: 35%;
	}
}

@media only screen and (max-width: 991px) and (min-width: 768px)
{
	
	.glyphicon-menu-right, .imagegallery .glyphicon-menu-right, .glyphicon-menu-left, .imagegallery .glyphicon-menu-left
	{
		top: 25%;
	}
	
	.relation-section .glyphicon-menu-right, .relation-section .glyphicon-menu-left,
	.narrative-section .glyphicon-menu-right, .narrative-section .glyphicon-menu-left
	{
		top: 10%;
	}
}

@media only screen and (min-width: 992px)
{
	
	.glyphicon-menu-right, .imagegallery .glyphicon-menu-right, .glyphicon-menu-left, .imagegallery .glyphicon-menu-left
	{
		top: 15%;
	}
	
	.relation-section .glyphicon-menu-right, .relation-section .glyphicon-menu-left,
	.narrative-section .glyphicon-menu-right, .narrative-section .glyphicon-menu-left
	{
		top: 10%;
	}
}

#subnarrativeCarousel
{
	margin-top:25px;
}

.subnarrative
{
	clear: left;
	padding-top: 10px;
}

.narrative-search
{
	padding-top: 15px;
	padding-left: 15px;
	padding-right: 10px;
}

/* 
	Images 
*/

.img-responsive 
{
	width:100%;
	cursor: pointer;
}

#welcomeimage
{
	width: 30%;
	min-width: 200px;
	float:right;
}

div.resultimage
{
	min-width: 90px;
	background-color: #FFF;
	text-align: center;
}

div.resultimage p
{
	word-wrap: break-word;
  /*overflow: hidden;*/
  max-height: 1.2em;
	text-overflow: ellipsis;
  white-space: nowrap;
  text-align:left;
  padding-top: 10px;
}

.resultimage img
{
  width: 100%;
	border: solid 5px #e8e8e8;
}

.galleryview
{
	height: auto;
}

.galleryview.row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
}

.galleryview.row  > div {
  padding-right: 20px;
}

.galleryview img
{
	height: auto;
	max-height: 30vh;
	border: solid 5px #e8e8e8;
	width: auto;
	max-width: 100%;
}

.galleryview.row  > div
{
	text-align: center;
}

p.galleryoverflow
{
	position: relative;
	display: block;
	text-overflow: ellipsis;
	word-wrap: break-word;
	overflow: hidden;
	max-height: 3.6em;
	line-height: 1.9em;
	margin: 0;
}

p.galleryoverflow::before
{
	content: "";
	text-align: right;
	position: absolute;
	bottom: 0;
	right: 0;
	width: 40%;
	height: 2em;
	background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 50%);
}

.modal-body img
{
	cursor: -moz-zoom-out; 
    cursor: -webkit-zoom-out; 
    cursor: zoom-out;
    max-height: 74vh;
	max-width: 90vw;
	width: auto;
}

.modal-dialog
{
	width: auto;
	max-width: 90%;
}
.modal-content
{
	display:inline-block;
}

/* #imagegallery
{
	background-color: white;
	column-count: 3;
    column-fill: balance;
    column-gap: 8px;
    padding-top: 10px;
}
#imagegallery>ul
{
	list-style-type: none;
	overflow: auto;
	white-space: nowrap;
}
#imagegallery li
{
	display:inline;
}
#imagegallery div.item>div, #imagegallery div
{
	padding-bottom: 8px;
}
 */

#imagegallery
{
	background-color: white;
	padding-top: 15px;
}

#imagegallery > div
{
	/*padding: 0px 2px;*/
	margin: auto;
}

#imagegallery > div img
{
	float: left; 
	width:33%;
	padding-left: 1px;
}



.imagepreview
{
	/* height: 35vh; */
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;	
	cursor: -moz-zoom-in; 
	cursor: -webkit-zoom-in; 
	cursor: zoom-in;
	min-width:100%;
	min-height:100%;
}

.imagepreview img
{
	display: block;
	margin: auto;
	/* max-height:30vh; */
	height:auto;
	cursor: -moz-zoom-in; 
	cursor: -webkit-zoom-in; 
	cursor: zoom-in;
}

@media only screen and (max-width: 767px) and (orientation: portrait)
{
	.imagepreview
	{
		height: 15vh;
	}
}

.visible-xs>button, .visible-xs>div
{
	margin: 10px 0px;
}

div.loading
{	
	text-align: center;
}

div.thumbs
{
	float: left; 
	width:33%;
	padding-left: 1px;
	cursor: pointer;
}

div.thumbs img
{
	border: solid 2px #e8e8e8;
	width: 100%;
}

@media only screen and (min-width: 768px) and (max-width: 991px)
{
	div.thumbs
	{
		width:50%;
	}
}

@media only screen and (max-width: 767px)
{
	div.thumbs
	{
		width:90vw;
	}
}

/* Fixes */
.clickformore
{
	margin: 10px 0px;
}

.no-padding-style {
	padding-top: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
	padding-right: 0px;
}
