
/**************************TEXT SELECTION***********************/
*:not(div)::selection {
    background: #000;
    color: #fff;
}

*:not(div)::-moz-selection {
	background: #000;
    color: #fff;
}

*:not(div)::-webkit-selection {
	background: #000;
    color: #fff;
}


/**************************HTML & BODY***********************/
html{
    font-size: 28px;
	scroll-behavior: smooth;
}

body, html {
    height: 100%;
    margin: 0 auto;
    width: 100%;
}

body {
    margin-top: -1px; /*margin collapse*/
    border-top: 1px solid; /*margin collapse*/
    margin-bottom: 2px;
    background: var(--bg-color);
    box-sizing: border-box;
    overflow-x: hidden;
	position: relative;
}

/**************************HEADER & NAVIGATION***********************/
.logo{
	position: fixed;
	top:0;
	left:0;
	padding:1rem 2rem;
	width:4rem;
	height:auto;
	box-sizing: content-box;
	cursor:pointer;
}


nav{
	position: fixed;
	top:0;
	right:-.15rem;
	margin-top:-.55rem;
	margin-left: auto;
	padding:1rem 2rem;
}

nav ul li{
	text-align: right;
	/*text-transform: uppercase;*/
}

nav a{
	text-decoration: none;
	letter-spacing: var(--letterSpacing);
	padding:.2rem 0;
	display:block;
	font-size: 1rem;
}

nav li.selected a{
	font-weight: 600;
	font-size: 2rem;
}

div.namedanchor{
	position: relative;
	width:0;
	height:0;
}

div.namedanchor [id]{
	position: absolute;
	display: block;
	bottom:0;
	padding-bottom: 5em; /* top offset for pagescroll */
}

/**************************CONTENT***********************/
main{
	min-height: 100%;
	padding:20rem 2rem 0;
	max-width: 1720px;
	margin: 0 auto 5rem;
}

/**************************FOOTER***********************/
footer{
	margin:10rem 2rem 5rem;
	position: relative;
}

footer:before{
	content:'Galerie Lattemann';
	border-bottom: .09rem #000 solid;
	width:100%;
	display: block;
	text-decoration: none;
	letter-spacing: var(--letterSpacing);
	/*text-transform: uppercase;*/
	font-size: 1rem;
	font-weight: 300;
	text-align: right;
	margin-bottom: 1rem;
}

footer:after{
	content:'';
	transform:rotate(-135deg);
	border-bottom: .09rem #000 solid;
	border-right: .09rem #000 solid;
	position: absolute;
	top:.47rem;
	left:calc(50% - 1rem);
	width:2rem;
	height:2rem;
	background: #fff;
}
/*
footer form,
footer div > p{
	width:calc(50% - 2rem);
	max-width: 1920px;
} */

footer .kontakt{
	margin-top:1.5rem;
}

footer .kontakt *{
	font-size: .6rem;
	text-decoration:none;
}

footer button{
	margin-left: 100%;
	float:right;
}

footer h2{
	margin-bottom: 1rem;
}

footer hr{
	margin-bottom: 4rem;
	padding-bottom: 4rem;
	height:0;
	border-bottom: .09rem #000 solid;
}

footer ul a{
	/*text-transform: uppercase;*/
	text-decoration: none;
	font-size: .5rem;
}

.footerNavi{
	display:flex;
	width:100%;
	justify-content: end;
	padding:2rem 0 ;
}

.footerNavi li{
	margin-left: 1rem;
}

.sib-form{
	font-size: .8rem;
	padding:0;
}

#sib-container{
	padding:0;
}

.input--hidden,
.sib-form-message-panel{
	display:none;
}

.entry__error,
#error-message{
	color:darkred;
}

.entry__choice {
	padding-left: 1.5em;
	text-indent: -1.5em;
}

button svg{
	display:none;
}

/**************************LIGHTBOX***********************/
dialog.lightbox {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	height: 100dvh;
	max-height: none;
	padding: 1rem 2rem;
	background: transparent;
	border: 0;
}

dialog.lightbox[open] {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	gap: 1rem;
}

dialog.lightbox::backdrop {
	background: rgba(255, 255, 255, .8);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

.lightbox-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto 2.75rem;
	align-items: center;
	gap: 1rem;
	font-size: .8rem;
	min-height: 2.75rem;
}

.lightbox-title { min-width: 0; }
.lightbox-title,
.lightbox-counter { line-height: 1.3; }
.lightbox-counter { white-space: nowrap; }

.lightbox button {
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #000;
	box-shadow: none;
	cursor: pointer;
	flex-shrink: 0;
}

.lightbox button:hover,
.lightbox button:active {
	color: #000;
	background: transparent;
}

.lightbox button:focus-visible,
div.collectionItem a.exhibition-gallery-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.lightbox .lightbox-close,
.lightbox .lightbox-prev,
.lightbox .lightbox-next {
	width: 2.75rem;
	height: 2.75rem;
	position: relative;
	display: grid;
	place-items: center;
	font-size: 0;
	line-height: 1;
}

.lightbox-close::before,
.lightbox-close::after {
	content: '';
	position: absolute;
	width: 1rem;
	height: 2px;
	background: currentColor;
	transform: rotate(45deg);
}

.lightbox-close::after { transform: rotate(-45deg); }

.lightbox-prev::before,
.lightbox-next::before {
	content: '';
	width: .6rem;
	height: .6rem;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

.lightbox-prev::before { transform: rotate(-135deg); }

.lightbox-stage {
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
	grid-template-rows: minmax(0, 1fr);
	align-items: center;
	min-height: 0;
	min-width: 0;
	gap: .5rem;
	touch-action: pan-y pinch-zoom;
}

.lightbox-image {
	grid-column: 2;
	grid-row: 1;
	width: 100%;
	min-width: 0;
	min-height: 0;
	height: 100%;
	max-height: 100%;
	object-fit: contain;
}

.lightbox-prev { grid-column: 1; grid-row: 1; }
.lightbox-next { grid-column: 3; grid-row: 1; }

.lightbox-thumbs {
	position: relative;
	display: flex;
	gap: .5rem;
	overflow-x: auto;
	scrollbar-width: none;
	padding: .25rem;
	/* Leave room to center even the first and last thumbnail. */
	padding-inline: max(.25rem, calc(50% - 2rem));
	width: 100%;
	min-width: 0;
	max-width: 100%;
	justify-self: center;
}

.lightbox-thumbs::-webkit-scrollbar {
	display: none;
}

.lightbox-thumbs button {
	width: 4rem;
	height: 3rem;
	opacity: .5;
}

.lightbox-thumbs button[aria-pressed="true"] {
	opacity: 1;
	outline: 2px solid currentColor;
}

.lightbox-thumbs img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lightbox [hidden] { display: none; }

@media (max-width: 600px) {
	dialog.lightbox { padding: .75rem; gap: .5rem; }
	.lightbox-header { gap: .5rem; }
	.lightbox-stage { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.lightbox-image { grid-column: 1; }
	.lightbox .lightbox-prev,
	.lightbox .lightbox-next { display: none; }
}
