/* Blygsam CSS för Elmuseum.se
 Några rader baserade på:
 http://meyerweb.com/eric/tools/css/reset/
   v2.0b1 | 201101
*/

/* HTML5 display-role reset for older browsers */

html { scrollbar-gutter: stable; }

body {
	background-image:url("images/backgrounds/chalk.jpg");
	background-repeat: repeat;
	background-attachment: fixed;
	background-position: top left;
	font-family: 'Times New Roman', serif;
	padding:0;
	line-height: line-height: 105%;
	text-align:left;
}

body.marmor {
	background-image:url("images/marmortavla.jpg");
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	background-position: center center;
}

body.marmor2 {
	background-image:url("images/marmortavla2.jpg");
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	background-position: center top;
}

body.antique {
	background-image:url("images/boksida.jpg");
	background-repeat: repeat;
	background-attachment: fixed;
	background-position: top left;
	font-family: 'Times New Roman', serif;
	padding:0;
	line-height: 1;
	text-align:left;
}

body.topmenu {
	background-image:none;
	background-color:#000000;
	font-family: Arial, sans-serif;
	text-align: left;
}


#leadthumb {
  display: none;
  text-align: center;
  margin: 0;
}

/* GRID */
.thumbitem {
  display: inline-block;
  margin: 2px;
  vertical-align: top;
  text-align: center;
}

.thumbitem img {
  border: 0;
  cursor: pointer;
  display: block;
  margin: 0 auto 4px;
}

.caption {
  font-size: 12px;
}

/* Mörk bakgrund */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  inset: 0;
  width: 100vw;
  height: 100vh; /* Fallback for older browsers */
  height: 100dvh;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
justify-content: center;
  display: none;
}

/* Popup-box */
#popup {
  background: #fff;
display: inline-block;
  width: auto;
/*  width: 90%;
  max-width: 1000px; */
  margin: 60px auto;
  padding: 20px 20px 40px 20px;
  position: relative;
  box-shadow: 0 0 20px #000;
  overflow: auto;
  max-height: 80vh; /* Fallback for older browsers */
  max-height: 80dvh;
  background: rgba(31,31,31,1);
  scroll-snap-type: y mandatory;
}

/* Bilder */
#gallery img {
/*  width: 100%; */
  width: auto;
max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 40px;
  scroll-snap-align: center;
}

#close {
  position: fixed;
  top: 16px;
/*  right: 16px; */
/*  right: calc((100% - 1000px)/2 + 20px); */
/*  right: calc((100% - 400px)/2 + 20px); */
  right: calc((100% - 90%)/2 + 0px);

  width:40px;
  height:40px;

  line-height:40px;
  text-align:center;
  font-size:54px;
  font-weight:bold;
  color:#000;
  background:#eee;

  border-radius:50%;
  cursor:pointer;
  box-shadow:0 0 6px rgba(0,0,0,0.5);
  z-index: 10;
}

#goback {
  position: fixed;
  top: 10px;
/*  right: calc((100% - 90%)/2 + 0px); */
  left: 10px;
/*
  width:40px;
  height:40px;
*/
  line-height:40px;
  text-align:center;
  font-size:40px;
  font-weight:bold;
  color:#000;

/*
  background:#eee;
  border-radius:50%;
  cursor:pointer;
  box-shadow:0 0 6px rgba(0,0,0,0.5);
*/
  z-index: 10;
}


article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
	display: block;
}

div#corner_top_left { width:20px; height:20px; position: fixed; left: 0px; top: 0px;
	background-image: url("images/corner_top_left_20px.gif"); background-position: top left; background-repeat: none;
	opacity:0.3; filter:alpha(opacity=30); }

div#corner_top_right { width:20px; height:20px; position: fixed; right: 0px; top: 0px;
	background-image: url("images/corner_20px.gif"); background-position: bottom left; background-repeat: none;
	opacity:0.3; filter:alpha(opacity=30); }

div#corner_bottom_left { width:20px; height:20px; position: fixed; left: 0px; bottom: 0px;
	background-image: url("images/corner_20px.gif"); background-position: top right; background-repeat: none;
	opacity:0.3; filter:alpha(opacity=30); }

div#corner_bottom_right { width:20px; height:20px; position: fixed; right: 0px; bottom: 0px;
	background-image: url("images/corner_bottom_right_20px.gif"); background-position: top left; background-repeat: none;
	opacity:0.3; filter:alpha(opacity=30); }

div#edge_left   { width:20px; position: fixed; left: 0px; top: 20px; bottom: 20px;
	background-image: url("images/edge_left_20px.gif"); background-repeat: repeat-y;
	opacity:0.3; filter:alpha(opacity=30); }

div#edge_right  { width:20px; position: fixed; right: 0px; top: 20px; bottom: 20px;
	background-image: url("images/edge_right_20px.gif"); background-repeat: repeat-y;
	opacity:0.3; filter:alpha(opacity=30); }

div#edge_top    { height:20px; position: fixed; left: 20px; right: 20px; top: 0px;
	background-image: url("images/edge_top_20px.gif"); background-repeat: repeat-x;
	opacity:0.3; filter:alpha(opacity=30); }

div#edge_bottom { height:20px; position: fixed; left: 20px; right: 20px; bottom: 0px;
	background-image: url("images/edge_bottom_20px.gif"); background-repeat: repeat-x;
	opacity:0.3; filter:alpha(opacity=30); }

ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
	content: '';
	content: none;
}
/* remember to define visible focus styles!
:focus {
	outline: ?????;
} */
/* remember to highlight inserts somehow! */
ins {
	text-decoration: none;
}
del {
	text-decoration: line-through;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}


/*****************************************************************/


/* http://www.w3.org/wiki/CSS/Properties/text-align
 left, right, center, justify, inherit */

.left { text-align: left; }
.right { text-align: right; }
.center { text-align: center; } /* Centerar innehållet i tables. Positionen centreras av table.centerposition nedan */
.justify { text-align: justify }

.maincontainer { margin-left:1em; margin-right:1em; }

.xmaincontainer {
  display: flex;
  flex-direction: row;   /* horisontell layout */
  gap: 2%;               /* lite mellanrum mellan kolumner */
  max-width: 1200px;
  /* margin: 0 auto;        /* centrera sidan */
}
.xleftpage, .xrightpage {
  flex: 1;               /* dela lika på bredd */
  padding: 1em;
}




div.ingress { margin-left:1em; margin-right:1em; width:80%; }
div.forteckning { font-size: 0.8em; }
div.faktaruta {
	border-style: solid;
	border-width: medium;
	border-color: #FF0000;
	padding: 10px 10px 10px 10px;
}

img.shadow {
	box-shadow: 10px 10px 5px #888888;
	margin: 0px 0px 10px 0px;
}

img.byline {
	float: right;
}

table.centerposition {
	margin-left: auto;
	margin-right: auto;
}

	/* http://www.w3.org/wiki/CSS/Properties/vertical-align
	* baseline, sub, super, top, text-top, middle, bottom, text-bottom, length, or a value in percentage */
td.valign_baseline {
	vertical-align: baseline;
}
td.valign_top {
	vertical-align: top;
}

table.imagetable {
	width:100%;
}

td.imagecell2 {
	vertical-align: baseline;
	padding: 0px 20px 0px 0px;
}

td.leftpage { width: 50%; vertical-align: top; padding: 1em; }
td.rightpage { width: 50%; vertical-align: top; padding: 1em; }
td.fullpage { width: 100%; vertical-align: top; padding: 1em; }

td.imagecell {
	vertical-align: top;
	padding: 0px 20px 0px 0px;
}

.fontsize1 { font-size: 0.6em; }
.fontsize2 { font-size: 0.8em; }
.fontsize5 { font-size: 2em; }
.font_bigger { font-size: 1.2em; }
.text_shout { color: #E00000; font-weight: bold; }

h1 {
	font-family: Arial, sans-serif;
	font-size: 2em;
	font-weight: bold;
	text-align: center;
}

h2 {
	font-family: Arial, sans-serif;
	font-size: 1.4em;
	font-weight: bold;
	text-align: center;
}

h2.bildavdelning {
	font-family: Arial, sans-serif;
	font-size: 1.4em;
	font-weight: bold;
	text-align: left;
}

h1.antique {
	font-family: 'Times New Roman', serif;
	font-size: 2em;
	font-weight: bold;
}
h2.antique {
	font-family: 'Times New Roman', serif;
	font-size: 1em;
	font-weight: bold;
}

h3 {
	font-family: Arial, sans-serif;
	font-size: 1em;
	font-weight: bold;
}

h1.site-title {
	text-decoration: none;
	font-size: 1.2em;
	font-weight: bold;
	text-align: left;
	float: left;
	margin: 12px 0 0 0;
}

div.site-navigation {
	margin-left:10px;
}

.site-navigation ul {
	float: left;
	list-style: none outside none;
	margin-top: 15px;
	margin-bottom: 0px;
}

.site-navigation li {
	float: left;
	font-weight: bold;
	margin: 0 1em 0 0;
	position: relative;
}

.site-title a {	text-decoration: none; color:#ffffff }
.site-navigation a { text-decoration: none; color:#ffffff }
.site-navigation a:hover { background-color:#0080a0; }


/* Mobil-specifik visning (600 CSS pixels = fysiska pixels 1080 / window.devicePixelRatio 2.8125 = window.innerWidth 384) */
@media(max-width:600px){
  #close { display: block; }

  td.leftpage, td.rightpage {
    display: block;  /* stapla vertikalt */
    width: 100%;     /* full bredd */
    padding: 1em 0;  /* lite mellanrum mellan sektioner */
  }


  .xmaincontainer {
    flex-direction: column;  /* stapla divs */
  }
  .xleftpage, .xrightpage {
    width: 100%;
    padding: 0.5em 0;
  }

  #leadthumb {
    display: block;
  }

  /* Hälften så bred fasning i kanterna */
  div#corner_top_left { width:10px; height:10px; position: fixed; left: 0px; top: 0px; }
  div#corner_top_right { width:10px; height:10px; position: fixed; right: 0px; top: 0px; }
  div#corner_bottom_left { width:10px; height:10px; position: fixed; left: 0px; bottom: 0px; }
  div#corner_bottom_right { width:10px; height:10px; position: fixed; right: 0px; bottom: 0px; }
  div#edge_left   { width:10px; position: fixed; left: 0px; top: 10px; bottom: 10px; }
  div#edge_right  { width:10px; position: fixed; right: 0px; top: 10px; bottom: 10px; }
  div#edge_top    { height:10px; position: fixed; left: 10px; right: 10px; top: 0px; }
  div#edge_bottom { height:10px; position: fixed; left: 10px; right: 10px; bottom: 0px; }
}

@media(min-width:601px){
  #close { display: none; }
  #goback { display: none; }
}
