
/**************************TEXT SELECTION***********************/
*:not(div)::selection {
  background: var(--highlight);
    color: #fff;
}

*:not(div)::-moz-selection {
	background: var(--highlight);
    color: #fff;
}

*:not(div)::-webkit-selection {
	background: var(--highlight);
    color: #fff;
}


/**************************HTML & BODY***********************/
html{
    font-size: 20px;
	scroll-behavior: smooth;
}

body, html {
    height: 100%;
    margin: 0 auto;
    width: 100%;
}

body {
    margin-top: -1px; /*margin collapse*/
    border-top: 1px solid transparent; /*margin collapse*/
    margin-bottom: 2px;
    background: var(--middleGrey);
    box-sizing: border-box;
    overflow-x: hidden;
	position: relative;
	padding:2rem 4rem;
}

.desktop {
    display: block;
}

.desktop.inline{
    display: inline;
}

.mobile {
    display: none;
}

/**************************HEADER & NAVIGATION***********************/
nav li.selected a{
	font-weight: 600;
	font-size: 2rem;
}

div.namedanchor{
	position: relative;
	width:0;
	height:0;
}

div.namedanchor a[id]{
	position: absolute;
	display: block;
	bottom:0;
	padding-bottom: 8em; /* top offset for pagescroll */
}

/**************************CONTENT***********************/
main{
	min-height: 100%;
	padding:20rem 2rem 0;
	max-width: 1920px;
	margin: 0 auto 5rem;
}

/**************************FOOTER***********************/
footer{
	margin:10rem 2rem 5rem;
	position: relative;
}

/**************************LIGHTBOX***********************/
div.lightbox{
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 4rem;
	backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

div.lightbox img{
	object-fit: contain;
	width:100%;
	height:100%;
}