html {
	height: 100%;
	width: 100%;
}

body {
	margin: 0;
	padding: 0;
	background-color: #F2EEE6;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 100%;
	overflow-x: hidden;
}

header {
	position: relative; /* for IE */
	position: -webkit-sticky;
	position: sticky;
	width: 100%;
	z-index: 50;
	top: 0;
	background-color: #10110c;
	color: White;
	padding: 0 0 30px 0;
}

header::after {
	content: '';
	display: block;
	position: absolute;
	height: 15px;
	width: 100%;
	top: 100%;
	background-color: #E4DBCB;
    background-image: url(../svg/repeating-squares.svg);
    background-size: 30px;
	background-position: center;
}

header > div,
main,
footer > div {
	max-width: 950px;
	width: 100%;
	width: calc(100% - 20px);
	margin: 0 auto;
	padding: 0;
}

header,
header > div {
	background-image: url(../jpg/header-norman-arches.jpg);
	background-position: center top;
	background-repeat: no-repeat;
}

header.dummy > div {
	visibility: hidden;
}

header.fixed {
	background-image: none;
	z-index: 200;
	background-color: transparent;
	padding-bottom: 0;
	position: fixed;
}

header.fixed::after {
	display: none;
}

header.fixed > div::after {
	content: "";
	background: linear-gradient(to bottom, white 50%, rgba(255,255,255,0));
	height: 10px;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
}

header > div {
	position: relative;
	z-index: 150;
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	flex-wrap: wrap;
	padding: 0;
}

header a.logo {
	display: block;
	width: 350px;
	max-width: 75%;
	line-height: 1;
	margin: 10px 0;
}

header div.nav {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	margin-top: 10px;
}



header ul.compact li.menu,
header nav h2 {
	display: none;
}

header ul {
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
	list-style-type: none;
	margin: 0;
	padding: 0;
}

header ul li {
	margin: 0 0 0 1em;
	padding: 0;
	background-image: none;
}

header ul li a {
	display: inline-block;
	padding: 0.5em 1em;
	border: 1px solid rgba(255,255,255,0.4);
	border-bottom: none;
	text-decoration: none;
	font-weight: bold;
	white-space: nowrap;
	transition: 0.25s;
}

header nav ul li.home,
header nav ul li.admin {
	display: none;
}

header nav ul li a:hover {
	background-color: rgba(255,255,255,0.2); 
}

header nav ul li.current a {
	background-color: White; 
	color: #666;
	border: none;
}


header ul.compact li {
	margin-left: 0;
}

header ul.compact li a {
	border: 0;
	font-size: 16px;
	padding: 0;
	margin-left: 16px;
}

header a {
	color: White;
}

main {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	margin: -30px 10px;
	position: relative;
	z-index: 100;
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	/* IE10+ */
	main {
		display: block;
		margin-left: auto;
		margin-right: auto;
	}

	body {
		display: block;
	}
}

main > section,
ul.image-gallery > li {
	background-color: White;
	padding: 10px;
	box-shadow: 0 0 4px 0 rgba(0,0,0,0.1);
	position: relative;
}

main > section:last-child {
	flex-grow: 1;
}

main > section:first-child::before,
main > section:last-child::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: 0;
	right: 0;
	box-shadow: 0 0 7px rgba(0,0,0,0.5);
}

main > section:first-child::before {
	border-bottom-right-radius: 10px 100px;
	border-bottom-left-radius: 10px 100px;
	top: 0;
	height: 115px;
}

main > section:last-child::after {
	border-top-right-radius: 10px 200px;
	border-top-left-radius: 10px 200px;
	bottom: 0;
	height: 215px;
}

main > section + section {
	margin-top: 10px;
}

main > section.content {
	display: flex;
	flex-wrap: wrap;
}

main > section.content > article {
	flex-grow: 1;
	flex-shrink: 1;
	flex-basis: 1px;
	overflow: hidden;
}

main > section.content > .sidebar {
	font-size: 0.9em;
}

main > section.content > .left-sidebar {
	width: 200px;
	margin-right: 20px;
	position: -webkit-sticky;
	position: sticky;
	top: 150px;
	align-self: flex-start
}

main > section.content > .right-sidebar {
	width: 182px;
	margin-left: 20px;
}

main > section.content > p.breadcrumbs {
	width: 100%;
	text-align: right;
	margin: 2em 0 0 0;
	font-size: 0.9em;
	align-self: flex-end;
}

main > section.gallery {
	background-color: transparent;
	padding: 0;
	box-shadow: none;
}

footer {
	width: 100%;
	z-index: 50;
	padding: 45px 0 0 0;
	background-color: #343434;
	color: #BBB;
	font-size: 0.8em;
}

footer a {
	color: #BBB;
}

footer p.website-by a {
	font-weight: bold;
	text-transform: uppercase;
	text-decoration: none;
}

footer ul.logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	list-style-type: none;
	margin: 20px 0;
	padding: 20px 0;
	border-top: 1px solid #444;
}

footer ul.logos li {
	background-image: none;
	margin: 0 0 25px 25px;
	padding: 0;
	opacity: 0.7;
}

footer ul.logos li:first-child {
	margin-left: 0;
}

footer ul.logos li.cath { width: 150px; }
footer ul.logos li.uni { width: 115px; }
footer ul.logos li.tid { width: 120px; margin-top: 7px; }
footer ul.logos li.dcc { width: 120px; }
footer ul.logos li.sjc { width: 55px; }
footer ul.logos li.unesco { width: 225px; display: none }
footer ul.logos li.trust { width: 90px; }



/**********************************************************
 * Section Navigation                                     *
 **********************************************************/


.sidebar nav ul {
	border-style: solid;
	border-color: #E5DDE5;
	border-bottom-width: 1px;
	padding: 0;
	clear: both;
	list-style-type: none;
	margin: 0 0 1em 0;
}

.sidebar nav > ul > li.current:first-child a,
.sidebar nav > ul > li:first-child a {
	background-color: #633563;
	color: White;
	font-weight: bold;
	font-size: 1.2em;
}

.sidebar nav > ul > li:first-child a:hover {
	color: #633563;
}

.sidebar nav ul li {
	display: block;
	border-bottom: 1px solid #E5DDE5;
	padding: 0;
	margin: 0;
	background-image: none;
}

.sidebar nav ul li a {
	display: block;
	padding: 4px 10px;
	text-decoration: none;
	line-height: 1.2em;
	transition: 0.25s;
}

.sidebar nav ul li a:hover, 
.sidebar nav ul li.current > a {
	background-color: #F5EDF5;
}

.sidebar nav ul li.current a {
	font-weight: bold;
}

.sidebar nav ul li.current li a  {
	background-image: none;
	font-weight: normal;
}

.sidebar nav ul ul {
	padding: 0;
	margin: 0;
}

.sidebar nav ul li li {
	border-bottom: none;
	background-image: url(../png/bullet.png);
	background-position: 12px 8px;
	background-repeat: no-repeat;
	padding: 0 0 0 24px;
}

.sidebar nav ul li li li {
	padding-left: 16px;
	background-position: 2px 7px;
}

.sidebar nav ul li li a {
	padding-left: 4px;
}




/**********************************************************
 * Mobile Navigation                                      *
 **********************************************************/

nav#handheld-navigation {
	display: none;
}


#overlay-screen {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
	padding: 0;
	margin: 0;
	background-color: Black;
	opacity: 0.7;
}

div.sidr {
	opacity: 1;
    display: block;
    position: fixed;
    top: 0;
    height: 100%;
    z-index: 999999;
    width: 300px;
    overflow-x: hidden;
    overflow-y: auto;
	background-color: White;
	/*padding: 10px;*/
	margin: 0;
	font-size: 1.2em;
	-webkit-box-shadow: 0 0 15px 0 rgba(0,0,0,0.5);
	box-shadow: 0 0 15px 0 rgba(0,0,0,0.5);
}

div.sidr * {
	box-sizing: border-box;
}

div.sidr.left {
	left: -320px;
	right: auto;
	border: 0;
	padding: 0;
}

div.sidr.right {
	left: auto;
	width: 400px;
	right: -440px;
	border: 0;
	padding: 0;
}

div.sidr p.sidr-close {
	cursor: pointer;
	text-align: right;
	vertical-align: middle;
	padding-right: 10px;
	margin-bottom: 0;
}

div.sidr p.sidr-close * {
	vertical-align: middle;
}

div.sidr p.sidr-close img {
	height: 1em;
}

div.sidr.left h2 {
	display: none;
}


div.sidr.left ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

div.sidr.left ul li {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	background-image: none;
}

div.sidr.left ul li a {
	display: flex;
	position: relative;
	align-items: center;
	width: 100%;
	border-bottom: 1px solid #CCC;
	text-decoration: none;
	margin: 0;
	padding: 0.5em 5px;
	color: #333;
	justify-content: space-between;
}

div.sidr.left ul li i.expand {
	height: 1em;
	border-left: 1px solid rgba(0,0,0,0.2);
    padding: 0 10px;
}

div.sidr.left ul li.current > a {
	background-color: #EEE;
	font-weight: bold;
}

div.sidr.left ul ul {
	display: none;
	padding-left: 1em;
}

div.sidr.left ul ul li a {
	font-size: 0.9em;
}


/**********************************************************
 * Overlay                                                *
 **********************************************************/

body > div.modal-dialog,
body > div.overlay {
	display: flex;
	visibility: hidden;
	align-items: center;
	justify-content: center;
	background-color: rgba(0,0,0,0);
	transition: background-color 0.25s,
				visibility 0.25s;
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 1000;
	padding: 0;
	margin: 0;
}

body > div.modal-dialog > div {
	position: relative;
	background-color: White;
	padding: 20px;
	margin: 0;
	border-radius: 6px;
	box-shadow: 0px 0px 10px 1px black;
	width: 1px;
	height: 1px;
	max-width: 100%;
	max-height: 100%;
	overflow: hidden;
	overflow-y: hidden;
	transition: width 0.25s,
				height 0.25s;
}

body > div.modal-dialog.visible,
body > div.overlay.visible {
	visibility: visible;
	background-color: rgba(0,0,0,0.6);
	transition: background-color 0.5s;
}

body > div.modal-dialog.visible > div {
	transition: height 0.5s,
				width 0.5s,
				overflow 0.5s,
				overflow-y 0.5s;
	overflow: auto;
	overflow-y: auto;
}




body > div.modal-dialog > div > div.loading {
	text-transform: lowercase;
	font-variant: small-caps;
	text-align: center;
	padding-top: 70px;
	background-image: url(../ajax-loader.html);
	background-position: 50% 50px;
	background-repeat: no-repeat;
}

body > div.modal-dialog div.close-button,
body > div.modal-dialog a.close {
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: White;
	padding: 5px;
	border-radius: 30px;
	opacity: 0.8;
	line-height: 1;
}



div.waiting {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url(../ajax-loader.html);
	background-position: 50% 50%;
	background-repeat: no-repeat;
	background-color: rgba(255,255,255,0.9);
}