﻿html {
	container-type: scroll-state;
	container-name: scroller;
	scroll-behavior: smooth;
	scroll-padding-top: 50px;
}

/* scroll to top */
a.scroller {
	width: 64px;
	height: 64px;
	color: #b5b5b5;
	text-align: center;
	font-size: 2em;
	position: fixed;
	bottom: 10px;
	right: 10px;
	translate: 80px 0;
	transition:
		0.4s translate,
		0.2s background-color;
}

a.scroller:hover {
	text-decoration: none;
	color: #b5b5b5;
}
	
@container scroller scroll-state(scrollable: top) {
	a.scroller {
    translate: 0px 0;
  }
}

/* base stuff */
body { 
	/* background-color: #6ea2c5;*/
	background-color: #efefef;
	font-family: "system-ui";
	font-size: 13pt;
}

div.main {
	box-shadow: 0px 0px 10px 0px #000000;
	background-color: #ffffff;
	width: 55%;
	/*min-width: 890px;*/
	min-width: 360px;
	margin: auto;
}

div.content {
	padding: 1% 3% 1% 3%;
}

a {
	color: #5555ca;/* 1c7eb2 */
	text-decoration: none;
	text-align: justify;
	font-weight: bold;
}

a:hover {
	color:red;
	text-decoration: underline;
}

img {
	display: block;
	margin: auto;
	margin-bottom: 1em;
	margin-top: 1em;
}

/* imgs in articles */
img.r {
	width: 100%;
	border: 1px solid black;
}

/* two images */
img.r2 {
	width: 49%;
	display: inline flow-root;
	border: 1px solid black;
	margin-bottom: 0px;
	margin-top: 0px;
}

/* three images */
img.r3 {
	width: 32%;
	display: inline flow-root;
	border: 1px solid black;
	margin-bottom: 0px;
	margin-top: 0px;
}

/* floated images */
.left_float {
	width: 35%;
	float: left;
	margin-right: 2%;
	margin-bottom: 2%;
	border: 1px solid black;
}

.right_float {
	width: 35%;
	float: right;
	margin-left: 2%;
	margin-bottom: 2%;
	border: 1px solid black;
}

div.left_float {
	border: 0px;
}

div.right_float {
	border: 0px;
}

p {
	color: black;
	text-indent: 24px;
	text-align: justify;
}

p.label {
	text-indent: 0px;
	text-align: center;
	font-weight: bold;
	font-size: 0.9em;
	color: grey;
}

p.notice {
	font-style: italic;
	background: #B3EFDA;
	padding: 1%;
}

h1 {
	font-size: 1.4em;
	margin: 10px 0 0;
	border-color: #b5b5b5; /*#6ea2c5;*/
	border-style: solid;
	border-image: linear-gradient(to right, #b5b5b5 0%, #ffffff 90%) 1;
	border-width: 0px 0px 4px 20px;
	padding: 6px 10px;
	text-indent: 0px;
	text-align: left;
	font-weight: bold;
}

h2 {
	font-size: 1.25em;
}

/* icons for downloads */
p img {
	width: 0.95em;
	height: 0.95em;
	margin: 0;
	display: inline;
}

/* menues */
div.menu {
	text-align: left;
	background-color: #b5b5b5;/* 6ea2c5 */
	border: 1px solid #202020;
	position: sticky;
	position: -webkit-sticky;
	top: 0;
	z-index: 90;
}

div.menu ul {
	margin: 0px;
}

div.menu li {
	display: inline-block;
	margin-inline: -2.3px;
	vertical-align: top;
	padding: 10px 5px;
	color: #ffffff;
	transition: 0.7s;
}

div.menu li a {
	text-decoration: none;
	color: #ffffff;
}

div.menu li:hover {
	background-color: #000000;
	transition: 0.7s;
}

/* other */
li {
	text-align: justify;
}

iframe {
	border: 1px solid black;
	aspect-ratio: 16 / 9;
	width: 100%;
	height: auto;
}

/* materials */
p.materials {
	text-indent: 0px;
	text-align: left;
}

/* table of contents */
p.cont {
	text-indent: 0px;
}

p.cont a {
	padding-left: 20px;
	color: black;
}

/* museum */
div.item {
    margin: 0px 0px 25px;
	clear: both;
}

div.item_image {
	width: 50%;
    float: left;
    margin: 0em 1.5em 0.2em;
	
	img {
		width: 100%;
		height: 50%;
	}
}

div.item_description {
    min-width: 100%;
	
	p {
		text-align: left;
		text-indent: 0px;
	}
}

div.item_caption {
	margin: 0 0 0 57%;
	
	h2 {
		margin: 20px auto 5px;
		font-size: 14pt;
	}
	
	a {
		color: #000000;
		text-decoration: none;
		transition: 0.4s;
		font-size: 16pt;
	}
}

/* fancybox */
.fancybox__container {
	--fancybox-bg: rgba(24, 24, 27, 0.5);
}

.fancybox__content {
	border: 1px solid rgba(24, 24, 27, 0.65);
	box-sizing: content-box;
}

/* albums */
.album:hover {
	text-decoration: none;
}

.album .r {
	display: block;
	box-sizing: border-box;
}

.album_footer {
	display: flex;
	justify-content: space-between;
	padding: 6px 12px;
	background: #6ea2c5;
	color: white;
	border: 1px solid black;
    border-top: none;
}

.album_icon {
	width: 20px;
    height: 20px;
}

/* responsitive */
@media screen and (width < 1780px) {
	div.main {
		width: calc(98% - calc((100vw - 360px) / 33.8095) * 0.01 * calc(100vw / 1px));
	}
	
	div.menu ul {
		padding-inline-start: calc(40 * 100vw / 1780); /* 40px; */
	}
}

@media screen and (width < 616px) {
	div.menu li {
		font-size: calc((1em / 1px) * 100vw / 616);
	}
}

@media screen and (width < 800px) {
	div.item_image {
		width: 95%;
		float: none;
	}
	
	div.item_caption {
		margin: 0;
	}
}

@media screen and (width < 1000px) {
	/* images in articles */
	img.r2 {
		width: 100%;
	}
	
	img.r3 {
		width: 100%;
	}
	
	/* floated images in articles */
	.left_float {
		width: 90%;
		float: none;
		margin: auto;
	}

	.right_float {
		width: 90%;
		float: none;
		margin: auto;
	}

}