/*
Theme Name: Foreningen Les
Theme URI: http://www.foreningenles.no
Author: Metabits
Author URI: http://metabits.no/
Description: Tema for Foreningen Les
Version: 1.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: x
Text Domain: les
*/

/* Reset */
html,body,address,blockquote,div,dl,form,h1,h2,h3,h4,h5,h6,ol,p,pre,table,ul,
dd,dt,li,tbody,td,tfoot,th,thead,tr,button,del,ins,map,object,
a,abbr,acronym,b,bdo,big,br,cite,code,dfn,em,i,img,kbd,q,samp,small,span,
strong,sub,sup,tt,var,legend,fieldset{margin:0;padding:0;}
img{vertical-align:bottom;}
img,fieldset{border:0;}
html{overflow-y:scroll;}
header,nav,section,article,figure,aside, footer{display:block;}

strong {
  font-weight: bold;
}

/* Sticky footer */
html, body {height: 100%;}
#wrap {min-height: 100%;}
#main {overflow:auto;padding-bottom: 370px;}
#footer {position: relative;margin-top: -350px;height: 350px;clear:both;} 


/* Typo */
h1,.head-as-h1, h2,.head-as-h2, h3,.head-as-h3, h4,.head-as-h4 {  line-height: 1.0em;font-family:Merriweather,georgia;color:#3D4144; margin-bottom: .2em; }
h1 a,.head-as-h1 a, h2 a,.head-as-h2 a, h3 a,.head-as-h3 a, h4 a,.head-as-h4 a {color:#3D4144;}
h1,.head-as-h1 {font-size: 1.8em; margin-bottom: .4em; padding-top:2px; }
h2,.head-as-h2 {font-size: 1.4em;}
h3,.head-as-h3 {font-size: 1.17em;}
h4,.head-as-h4 {font-size: 1em;}
a {color: #2e3192; font-weight:bold; text-decoration: none;  }
a:hover {color: #58595B; text-decoration: underline; }
p {margin-bottom: .5em; }
.intro {font-family:Merriweather,georgia; line-height: 1.6em; margin-bottom: 1.1em;}
address {font-style:normal;}
.meta {font-size: .85em; margin-top: -5px;}
.meta,.meta a {color:#888;  }
.meta a {text-decoration:underline;font-weight: normal;}
.meta a:hover {text-decoration:none;}

/* Forms */
input[type=text],input[type=email],input[type=password], textarea {-webkit-border-radius: 3px;border-radius: 3px; border: 0px solid #aaa; font-family: arial, sans-serif; color: #58595B; font-size: 15px; padding: 6px 5px; box-sizing: border-box;-moz-box-sizing: border-box;-webkit-box-sizing: border-box; width: 200px; outline:none; display:block;box-shadow: 0 0 3px #666;}
textarea {height: 100px; display: block; }
input[type=radio],input[type=checkbox] {display:inline-block; margin: 0 8px 0 2px;}
.element label {display:block; font-weight:bold; font-size:1.1em;margin: 0 0 0 0.2em;}
.element {float:left;}
.element label {display:block;}
.element input, .element select {font-size: 15px;font-family:arial,sans-serif;max-width: 150px;}
.filter-form {margin-bottom:1em;overflow:hidden; }
.filter-form .element {width: auto; margin-right: 5px;}
.element input[type=submit] {display:block; width: 100px;margin-top: 3px;}

/* Buttons */
.primary-button,.secondary-button,.button,#commentform input[type=submit] {font-size: 1.2em; border:none; font-family: arial,sans-serif;font-weight:bold; display:inline-block; line-height: 36px; background:#444; padding: 0 14px; border-radius: 2px; color:#fff; text-decoration:none; text-shadow: 0 1px 0 rgba(0,0,0,.5); box-shadow: inset 0 0 5px rgba(0,0,0,.2), 0 0 5px rgba(0,0,0,.5);}
.primary-button:hover,.secondary-button:hover,#commentform input[type=submit]:hover {text-decoration:none; color:#fff;cursor:pointer; }
.primary-button,
#commentform input[type=submit] {background-color:#E72D25; }


/* Layout */
#main,
#footer-inner,
#header-inner {max-width: 1140px;margin:0 auto;}

body {background: #f2f2f2 url(images/bg.png); font: 15px/22px arial,sans-serif; color:#3D4144;  }
#wrap {position:relative;}
#main {padding-left: 14px; padding-right: 14px;padding-top: 15px;}
div.page,.subpage {background:#fff; border-radius: 4px; box-shadow: 0 0 6px rgba(0,0,0,.6);}
div.page {margin-right: 250px;float:left; }
.aside { width: 230px;}
#aside-primary,#aside-secondary {float:right;margin-left: -230px;}
#aside-secondary {float: left;}
.subpage {float:left; padding: 18px 14px;position:relative;z-index: 1;margin-right: 250px;}
.subpage:after {content:""; position:absolute; border-radius: 4px 0 0 4px;top: 0px; left: 0px; width: 260px; border-right: 1px solid #ccc; background:#f2f2f2; height: 100%; z-index: 0;}
.subpage.no-sidebar:after {display:none;}
.subpage .aside {float:left;margin-right: -230px;z-index: 1000;position:relative;}
.subpage .article {margin-left: 265px;float:right;}
.subpage.no-sidebar .article {margin-left: 0px;float:none;}

/* Icons */
.main-menu a:after,
#logo strong,
#logo span:before,
#header input[type=submit],
.nav-next:before,
.nav-previous:before,
.taxonomy,
.comments-link:before,
.ico-facebook,
.ico-twitter,
.prev,
.next,
#crumbs a:after,
.flexipages_widget h3:after,
.flexipages_widget li:after,
.widget_links li:after,
.les_users_online span,
aside .widget_search input[type=submit] {overflow:hidden; text-indent:-999px;background-image: url(images/sprite.png); background-repeat: no-repeat;display:inline-block;}

/* Footer */
#footer {background:#333 url(images/shadow-bottom.png) no-repeat 50% 0%; background-color:rgba(0,0,0,.7);color:#fff; position:relative;} 
#footer-inner {padding: 24px 20px 0;}
#footer-inner .widget-area {float:left; }
#footer-inner.four .widget-area {width: 25%; }
#footer-inner.tree .widget-area {width: 33%; }
#footer .share {position:absolute; bottom: 30px; right: 30px;}
.ico-facebook {width: 94px; height: 20px; background-position:-140px -40px;margin-right: 15px;}
.ico-twitter {width: 111px; height: 20px; background-position:-140px -70px;}
.credits {position:absolute; bottom: 10px;  font-size: 10px;font-weight:normal; width: 320px; margin-left: -160px;left:50%;}
.credits a {color:#777;font-weight:normal;}

/* Header */
#header {background:#fff no-repeat 50% 100%;   border-bottom: 7px solid #E72D25;  }
#header-inner {overflow:hidden; height: 1%;position: relative; }
#logo {float:left; margin: 14px 20px 15px 15px;}
#logo strong {float:left; width: 150px; height: 90px; overflow:hidden; text-indent: -999px; background-position:-310px -110px; }
.main-menu { height: 40px;  position:absolute; bottom: 0px;left: 185px;}
#header ul, #header ul li {margin: 0; padding: 0; display:inline; list-style:none; }

.main-menu a {float:left;font-family: Merriweather, serif; background:#f2f2f2; font-weight:bold; margin: 0 4px 0 0px; line-height: 40px; 
font-size: 1.2em; color:#E72D25; padding: 0 15px;text-decoration:none; border-radius: 2px 2px 0 0;box-shadow: inset 0 0 5px rgba(0,0,0,.2);}
.main-menu a:hover {color:#282B2E;}
.main-menu .current-menu-item a,
.main-menu .current-page-ancestor a {background: #E72D25;color:#fff; text-shadow: 0 1px 0 rgba(0,0,0,.3);box-shadow:none;}

.corporate-menu {float:right;margin: 10px 10px 5px; }
.corporate-menu a {color:#282B2E; font-weight:normal; float: left; margin-left: 6px; padding-left: 6px; border-left: 1px solid #282B2E; line-height:16px;}
.corporate-menu li:first-child a {border:none;}
#header form div {float:right; position:relative; margin: 5px 10px; clear:right; }
#header input[type=text] { padding: 10px;border-radius: 17px; height: 34px;*height: 10px;*padding: 8px 8px 12px; background:#f2f2f2;margin: 0;}
#header input[type=submit] {border:none; width: 17px; height: 16px; background-color:transparent; box-shadow:none; border-radius: 0px; background-position:-160px 0;position:absolute; right: 5px; top: 9px;padding:0;}

/* Widgets */
.widget {font-family:Merriweather;margin: 0 0 15px;height: 1%; overflow:hidden;}
aside .widget {background:#fff; border-radius: 3px; box-shadow: 0 0 5px rgba(0,0,0,.5);color:#777;font-size:0.9em;}
aside .widget-title {background:#ECEDE6 url(images/shadow-small.png) no-repeat 50% 100%; margin: 0; 
padding: 10px 8px;border-radius: 3px 3px 0 0;font-size: 1.0em;text-shadow: 0 1px 0 #fff;color:#777;}
aside .widget-title a {color:#3D4144;font-weight: normal;}

/* Text/iframe widget */
aside .widget_text {background:none;box-shadow:none;border-radius: 0px;}
.widget iframe {width: 230px !important;margin:0!important;background:#fff;}
.widget_text .widget-title {display:none;}

/* Resecent images*/
.les_posts_image li {margin: 0;padding: 0; display:inline;}
.les_posts_image li img {float:left; width: 64px; height: auto; box-shadow: 0 0 6px rgba(0,0,0,.6); margin: 0px 8px 0px 2px;  }
.les_posts_image li a {color:#3D4144;}
.les_posts_image li a cite {font-family: arial, sans-serif; font-style:normal;font-weight:normal; display:block; color:#808080; line-height: 1.2em;font-size: 0.9em; }
 
/* Online brukere */
.les_users_online div {text-align:center; }
.les_users_online span {display:inline-block; text-indent: 0px; width: 46px; height: 68px; background-position: -540px 0; color:#fff; line-height: 68px; font-size: 65px; margin: 10px 2px 15px;text-shadow: 0 0 4px #000;}

/* Text widget and Widget meta */
aside .widget_black_studio_tinymce .textwidget,
.widget_meta ul,
aside .widget form,
aside .widget_recent_entries ul,
aside .widget_recent_comments ul,
aside .widget_archive ul,
aside .widget_categories ul,
.les_users_online div  {padding: 12px 10px 4px;}
aside .widget_black_studio_tinymce a {font-family:arial,sans-serif; font-size: 16px;}

.widget_meta a:after,
aside .widget_recent_entries a:after,
aside .widget_recent_comments li:after,
aside .widget_archive a:after,
aside .widget_categories a:after {content:" \00bb";color:#B3B3B3; }
.widget_meta li,
aside .widget_recent_entries li,
aside .widget_recent_comments li,
aside .widget_archive li,
aside .widget_categories li {list-style:none; margin-bottom: 4px;}
.widget_meta a {color:#777;}

/* Search widget */
aside .widget_search {}

aside .widget_search form div {position:relative;margin-bottom: 10px;}
aside .widget input[type=text] {width: 100%;margin:0;background:#f2f2f2; box-shadow: inset 1px 1px 2px #ccc;border:1px solid #ccc; margin-bottom: 5px;}
aside .widget_search input[type=submit] {border:none; width: 17px; height: 16px; background-color:transparent; box-shadow:none; 
border-radius: 0px; background-position:-160px 0;position:absolute; right: 8px; top: 50%;margin-top: -8px; padding:0;}

/* Mailchimp */
aside .widget label {display:block; font-size: 14px;font-family:arial,sans-serif; color:#999; }
aside .widget form {width: auto !important;}
aside .widget form p {font-size: 14px; }
.widget .button {line-height: 32px;display:block;}

/* Image widget */
.widget_sp_image img {display:block; width: 100%; height: auto;}

/* Flex nav widget, submenu and widget links */
.flexipages_widget h3 {position:relative; }
.flexipages_widget h3:after {content:"";width: 24px; height: 24px; position:absolute; top: 50%; margin-top: -12px; right:10px;
background-position:-180px 0px; }
aside .flexipages_widget .widget-title {background-image:none;border-radius: 3px;}
aside .flexipages_widget:hover .widget-title {background-image:url(images/shadow-small.png);border-radius: 3px 3px 0 0;}
.flexipages_widget:hover h3:after {background-position:-210px 0px;}
.flexipages_widget ul {display:none;}
.flexipages_widget:hover ul {display:block;}
.flexipages_widget li,
aside .widget_links li,
.widget_submenu a,
.les_posts_image li a {list-style:none; border-top: 1px solid #ddd; padding: 8px 8px; position:relative; height: 1%; overflow:hidden;display:block }
.flexipages_widget li:after,
aside .widget_links li:after {content:"";width: 10px; height: 14px; position:absolute; top: 50%; margin-top: -7px; right:10px;
background-position:-240px 0px;}
.flexipages_widget li:first-child,
aside .widget_links li:first-child,
.les_posts_image li:first-child a {border:none;}
.flexipages_widget a,
aside .widget_links a,
.widget_submenu a {color:#777; display:block;}
.widget_submenu a {color:#3D4144;}
.widget_sp_image img {margin: 0 !important;}

/* Submenu */
#aside-sub .widget-title {background-color:#E72D25; color:#fff; text-shadow: 0 1px 0 rgba(0,0,0,.3);}
#aside-sub .widget-title a {color:#fff;}
.widget_submenu { }
.widget_submenu li {list-style:none; }

.widget_submenu li li a {  }
.widget_submenu li li a {padding-left: 18px; color:#777;}
.widget_submenu li li a:after {display:none;}
.widget_submenu li li li a {padding-left: 34px;}
.widget_submenu a:hover {color:#2e3192;text-decoration: none;}
.widget_submenu a.sel {background-color:#f2f2f2;color:#2e3192;}


/* Widgets footer */
footer .widget,footer .widget a {color:#B3B3B3; font-weight:normal;font-size: .95em;}
footer .textwidget a {text-decoration:underline;}
footer .textwidget a:hover {text-decoration:none;}
footer .widget-title { color:#fff; margin-bottom: 10px;}
footer .widget ul li {list-style:none; margin-bottom: 8px;line-height: 20px; }

.placeholder {display:block; background:#ccc; }

/* Crumb */
#crumbs {color:#808080; font-size: .85em; margin: -5px 0 8px;}
#crumbs a {display:inline-block; position:relative; color:#808080; font-weight:normal; padding-right: 12px;margin-right: 2px;}
#crumbs span {font-weight:bold; }
#crumbs strong {color:#282B2E;}
#crumbs a:after {content:""; width: 6px; height: 8px; position:absolute; right: 0px;top:50%; margin-top:-4px; background-position:-440px 0px;}

/* Features */
.features {padding-top: 18px;padding-right: 16px;}
.introduction .features {margin-left: -16px; margin-right: -16px;padding-top: 8px;}
.features li {list-style:none; float:left; width: 33.33%; }
.features a {display:block; overflow:hidden; background:#fff; box-shadow: 0 0 9px rgba(0,0,0,.4);border-radius:2px; margin-left: 16px; margin-bottom: 20px; }
.introduction .features a {margin-bottom: 0;}
.features strong {display:inline-block; padding: 8px 0 8px 10px; width: 100%; overflow:hidden; text-overflow: ellipsis; white-space:nowrap;}
.features strong:after {content:"\00bb"; color:#B3B3B3; }
.features .img-holder {display:block; height: 1%; overflow:hidden;}
.features img {width: 100%; height: auto;}
.features .placeholder {height: 10em;}

/* Frontslide */
#front-slide {position:relative; text-align:right; }
#front-slide .slides_container {margin: 0; padding: 0; text-align:left;}
#front-slide .slides_container li {list-style:none;}
#front-slide .slides_container a {position:relative; color:#fff;display:block;font-weight:normal; }
#front-slide .slides_container strong {display:block; font-size: 26px; font-family: Signika, sans-serif; font-weight:600; margin-bottom: 4px; }
#front-slide .slides_container a > span {position:absolute;display:block; bottom: 0px; left: 0px; right: 0px; border-radius: 0 0 3px 3px; background:#333; background:rgba(0,0,0,.7); z-index: 10;text-shadow:none;padding: 10px; }
#front-slide .slides_container img {width: 100%;display:block;border-radius: 3px;box-shadow: 0 0 5px rgba(0,0,0,.4);height: auto}

#front-slide .pagination {float:left; margin: 8px 0 0;}
#front-slide .pagination li {display:inline;} 
#front-slide .pagination a {display:inline-block; width: 45px; line-height:32px; background:#3D4144; margin-right: 4px;border-radius: 2px;text-align:center; color:#fff; text-shadow:none; }
#front-slide .pagination a:hover,
#front-slide .pagination a:active,
#front-slide .pagination .current a {background:#E72D25; }
#front-slide .next,
#front-slide .prev {width:15px;height: 22px; background-position:-600px 0px; margin: 8px 4px; text-align:left;position:absolute; bottom: -40px;right: 25px;}
#front-slide .next {background-position:-620px 0px;right: 0px;}

/* Containers */
.introduction {background:#fff url(images/shadow-medium.png) no-repeat 50% 100%;height: 1%; 
overflow:hidden; padding: 16px 16px 22px; text-shadow: 0 1px 0 #fff; border-radius: 4px 4px 0 0; }
.introduction p {font-size: 1.1em; font-family:Merriweather, serif;  }
.img img {box-shadow: 0 0 6px rgba(0,0,0,.6);float:left; margin: 0 14px 0 0;max-width: 50%; height: auto;}
/* Generic holder */
.holder:after,
.holder:before { display: table;line-height: 0;content: "";}
.holder:after {
clear: both;
}

/* Article list */
.list {height: 1%; overflow:hidden; border-top: 1px solid #ccc; padding: 14px 16px; clear:both;  }
.listing .list  {padding-left: 3px; padding-right: 3px;}
.edit-link {float:right;}
.list:first-of-type {padding-top: 20px;}
.more-link { font-size: .9em;}
.comments-link {position:relative; padding-left: 24px;margin-left: 10px;display:inline-block; text-decoration:none !important; font-weight:bold !important; }
.comments-link:before {content:""; position:absolute; width: 19px; height: 20px; background-position:-380px 0px;left: 0px;top: 50%; margin-top: -10px;}
.taxonomy {width: 20px; height: 20px; background-position:-350px 0px;margin: 0 0 0 10px;}

/* Lesetips */
.caroufredsel_wrapper {margin: 0 !important;}
.book-gallery {background:#ECEDE6; position:relative; height: 1%; overflow:hidden; border-top: 1px solid #ccc;clear:both; }
.book-gallery .holder {padding: 14px 16px;}
.book-gallery .slides_container {padding: 0 40px; }
.book-gallery h2 {float:left;}
.book-gallery .more {float:right; color:#808080; font-size: 16px; margin: 5px 0;}
.book-gallery .more:after {content:" \00bb"}
/*
.book-gallery .slides_container { height:160px; margin: 0 40px; clear:both;}
.book-gallery ul { clear:both; padding: 14px 0; height:160px;}
.book-gallery li {list-style:none; float:left; width: 20%;text-align:center; }
.book-gallery li a {display:block; }
.book-gallery li img {box-shadow: 0 0 6px rgba(0,0,0,.6);}
.book-gallery a:hover img {opacity: .7;}
.book-gallery .prev,.book-gallery .next {height: 26px; width: 26px; background-color:#2e3192; position:absolute; top: 50%;background-position: -253px 6px; 
margin-top: -13px; border-radius: 13px; box-shadow: 0 0 6px rgba(0,0,0,.6);left: 14px;}
.book-gallery .next {background-position: -280px 6px;left:auto; right: 14px;}
.book-gallery .prev:hover,.book-gallery .next:hover {background-color:#3D4144;}
*/
.book-gallery ul {margin: 0 40px;}
.book-gallery li {
	width: 80px;
	margin: 6px;
	display: block;
	float: left;
}
.book-gallery li a {display:block; }
.book-gallery li img {box-shadow: 0 0 6px rgba(0,0,0,.6);}
.book-gallery a:hover img {opacity: .7;}
.book-gallery .prev,.book-gallery .next {height: 26px; width: 26px; background-color:#2e3192; position:absolute; top: 50%;background-position: -253px 6px; 
margin-top: -13px; border-radius: 13px; box-shadow: 0 0 6px rgba(0,0,0,.6);left: 14px;}
.book-gallery .next {background-position: -280px 6px;left:auto; right: 14px;}
.book-gallery .prev:hover,.book-gallery .next:hover {background-color:#3D4144;}

/* Reviews */
.reviews {border: 1px solid #ccc; padding: 1em; background:#f2f2f2; border-radius:2px;}
.block {height: 1%; overflow:hidden;bdorder: 1px solid #ccc;margin-bottom: .5em;padding: .1em 0 .1em .4em;}
.block label {float:left; width: 30%;; font-weight: bold; padding-top: .3em }
.block-error {border-left: 2px solid #E72D25; margin-left: -2px;}
.block input,
.block select,
.block textarea {margin-bottom: .5em; width: 40%;}
.block textarea {width: 68%;height: 10em}
.block input[type=submit] {width: auto;margin-left: 30%; padding: 0 3em;}
.block p {margin-left: 30%;}
.error {color: #E72D25; font-weight:bold;  }
.success {font-weight:bold; font-size: 1.2em; padding: 1em; border: 1px solid #009245; background: #FFFFD4;}

/* Pagina */
.pagina {height: 1%; overflow:hidden; margin-bottom: 20px; padding-top: 15px;border-top: 1px solid #ccc;clear:both;}
.nav-next:before,
.nav-previous:before {content:""; height: 19px; width: 19px; position:absolute; top:0px; }
.nav-next,.nav-previous {display:inline-block; line-height: 36px; background:#2e3192;float:left; position:relative;padding: 0 30px 0 10px;}
.pagina a {display:inline-block; line-height: 36px; color:#fff; font-family:Merriweather; font-size: 18px; }
.nav-previous {float:right; padding-left: 30px; padding-right: 10px;}
.nav-previous:before {left: 0px; background-position:-310px 0;}
.nav-next:before {right: 0px; background-position:-310px -20px;}

/* Full */
.article .holder { margin-bottom: 20px;}
.text p {margin-bottom: 1.1em;clear:both;}
.text ul, .text ol {margin-bottom: 1em;}
.text ul li,
.text ol li {margin: 0 0 .1em 1.5em;}
.text .gform_body {max-width:400px;}

#comments {padding: 16px 16px;border-top: 1px solid #ccc;background:#f2f2f2;border-radius: 0 0 4px 4px;}
#comments h3 {font-size: 24px;}
#comments input[type=text] {width: 250px;}
#comments label {display:inline-block;}
#comments textarea {width: 80%;}
.commentlist {list-style: none;margin: 0 0 1em 100px;}
.content .commentlist,
.commentlist > li.comment {position: relative;margin-bottom: 30px;}
.commentlist .children {list-style:none;}
.commentlist .children li.comment {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 3px;
	margin: 20px 0;
	padding: 20px;
	position: relative;
}

.commentlist .children li.comment .comment-meta {
	margin-left: 50px;
}
.commentlist .children li.comment .comment-content {
	margin: 25px 0 0;
}
.commentlist .avatar {
	-moz-border-radius: 3px;
	border-radius: 3px;
	-webkit-box-shadow: 0 1px 2px #ccc;
	-moz-box-shadow: 0 1px 2px #ccc;
	box-shadow: 0 1px 2px #ccc;
	left: -90px;
	position: absolute;
	top: 4px;
}

.commentlist .children .avatar {
	left: 20px;
	top: 20px;
}
a.comment-reply-link {
	background: #E72D25;;
	-moz-border-radius: 3px;
	border-radius: 3px;
	color: #fff;
	display: inline-block;
	padding: 0 8px;
	text-decoration: none;
}
a.comment-reply-link:hover,
a.comment-reply-link:focus,
a.comment-reply-link:active {
	background: #888;
}
a.comment-reply-link > span {
	display: inline-block;
	position: relative;
	top: -1px;
}

/* Post */
.space {padding: 18px 16px 32px; height: 1%; overflow:hidden;}
.holder .main-img {float:right;margin-left: 30px; padding-top: 8px; width: 200px; text-align:center; }
.main-img img {display:block;margin: 0 auto 15px; box-shadow: 0 0 8px rgba(0,0,0,.5);;}
.holder .text-column {overflow:hidden;}

/* Images */
.entry-content img,
.text img,
.comment-content img,
.widget img {
	max-width: 97.5%; /* Fluid images for posts, comments, and widgets */
}
img[class*="align"],
img[class*="wp-image-"],
img[class*="attachment-"] {
	height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
}
img.size-full,
img.size-large {
	max-width: 97.5%;
	width: auto; /* Prevent stretching of full-size and large-size images with height and width attributes in IE8 */
	height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
}
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.625em;
	clear:left;
}
.alignright {
	display: inline;
	float: right;
	margin-left: 1.625em;
	clear:right;
}
.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
img.alignleft,
img.alignright,
img.aligncenter {
	margin-bottom: 1.625em;
	
}
p img,
.wp-caption {
	margin-top: 0.4em;
}
.wp-caption {
	margin-bottom: 1.625em;
	max-width: 96%;
}
.wp-caption img {
	display: block;
	margin: 0 auto;
	max-width: 98%;
}
.wp-caption .wp-caption-text,
.gallery-caption {
	font-size: 13px;
}
.wp-caption .wp-caption-text {
	margin-bottom: 0.6em;
	padding: 10px 5px 5px;
	position: relative;
}

/* Responsive Structure */

@media screen and (max-width: 980px) {
	#content {float:none; margin-right: 0px;}
	#aside-secondary {clear:right;}
	#header form:hover {position:relative; z-index:1000;}
	#header form:hover input[type=text] {width: 180px;}
	#header input[type=text] {width: 80px;}
	.subpage {margin-right: 250px;}
	.subpage:after { width: 33%;}
.subpage .aside {margin-right: -33%;width: 30%;}
.subpage .article {margin-left: 34%;}
}

@media screen and (max-width: 800px) {
    body {font-size: 13px;line-height: 20px;}
    .main-menu {position:static; clear:both;bottom:auto; left:auto;margin: 0 10px;height:1%; overflow:hidden;}
	.main-menu a {line-height: 32px; font-size: 1.1em;}
    #logo {margin-left: 10px;}
	footer .widget ul li {margin-bottom: 2px;}
	#main {padding-left: 10px;padding-right: 10px;}
}

@media screen and (max-width: 700px) {
	div.page  {margin-right: 0px; float:none; }
	.subpage {float:none; height: 1%; overflow:hidden;margin: 0 0 1em;box-shadow:None; background:none; padding: 0;overflow:visible;}
	.subpage .aside {margin: 0; float:none; width:auto;}
	.subpage:after {display:none;}
	.subpage .article {margin-left: 0;float:none;padding: 10px; background:#fff; margin-bottom: 15px;border-radius: 4px; box-shadow: 0 0 5px rgba(0,0,0,.4);}
	.aside {width: 48%; }
	#aside-primary {float:left; margin: 0; }
	#aside-secondary {float:right; margin: 0; }
	#footer-inner.four .widget-area {width: 50%;}
	#footer {height: 2%; overflow:hidden; padding-bottom: 40px; position:relative;;margin: 0;  }
	html, body {height: auto;}
	#main {padding-bottom: 20px;}
}
@media screen and (max-width: 450px) {
    #logo {float:none; margin:0;}
    #logo strong {float:none; margin: 8px 10px 10px; display:block; width: 113px; height: 66px; background-position:0px 0px; }

    .img img {max-width: 80px; height: auto;}
    .introduction .img img {display:none;}
    #footer-inner .widget-area {float:none; width: auto !important;}
    .aside {width: auto; float:none !important;}
    .main-menu a { float:none;display:block;box-shadow:none;border-bottom: 1px solid #ddd; border-radius:0px;margin:0;}
    .main-menu { text-align:center;margin: 0; padding:0px;border-top: 1px solid #ddd;}
    .features li {float:none; width: auto; margin-bottom: 15px;}
    #header input[type=text] {width: 140px;}
    .corporate-menu  {float:none;text-align:center;margin:0;padding: 4px;background:#f2f2f2;border-bottom: 1px solid #ccc;}
    .corporate-menu a {float:none;}
    #header form {padding-top: 10px;}
}

/* Hightres screens */

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min--moz-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 240dpi) {
.main-menu a:after,
#logo strong,
#logo span:before,
#header input[type=submit],
.nav-next:before,
.nav-previous:before,
.taxonomy,
.comments-link:before,
.ico-facebook,
.ico-twitter,
.prev,
.next,
#crumbs a:after,
.flexipages_widget h3:after,
.flexipages_widget li:after,
.widget_links li:after,
.les_users_online span {
        background-image: url(images/sprite2x.png);
        -moz-background-size: 800px 500px;
        -o-background-size: 800px 500px;
        -webkit-background-size: 800px 500px;
        background-size: 800px 500px;
    }
}


.no-boxshadow .les_posts_image li img,
.no-boxshadow div.page,
.no-boxshadow .subpage,
.no-boxshadow .les_posts_image li img,
.no-boxshadow .img img,
.no-boxshadow .book-gallery li img,
.no-boxshadow .main-img img,
.no-boxshadow aside .widget,
.no-boxshadow .features a,
.no-boxshadow input[type=text],.no-boxshadow input[type=email],.no-boxshadow input[type=password], textarea {border: 1px solid #ccc;}

/* Global toppmelding */

.widget-area-top .widget {
	background: #fff;
height: 1%;
overflow: hidden;
padding: 16px 16px 10px;
text-shadow: 0 1px 0 #fff;
border-radius: 4px;
box-shadow: 0 0 6px rgba(0,0,0,.6);
}  

[data-norwegian-libraries] {
	border:1px solid #ccc;
	background:#efefef;
	font-size: 12px;
	padding: 5px;
	text-align:center;
}
[data-norwegian-libraries] label {
	font-size: 16px;
	font-weight:bold;
}
[data-norwegian-libraries] select,
[data-norwegian-libraries] input {
	width:100%;
	margin:5px 0;
}
[data-norwegian-libraries] a {
	color:#666;
	font-weight:normal;
}

/* book-listing */
.book-listing {
  display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	border: 1px solid white;
	margin-bottom: 2rem;
}
.book-listing-item {
	width: 8rem;
}
.book-listing-image {
	position: relative;
	margin-bottom: 0.6rem;
	display:flex;
	flex-direction: column;
	justify-content: flex-end;
	
}
.book-listing-badge {
	position: absolute;
	bottom: 2rem; right: -0.6rem;
	width: 3rem;
	height: 3rem;
	font-size: 10px;
	line-height: 1.25;
	text-align: center;
	
	border-radius: 9999px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight:bold;
	border: 1px solid white;
	box-shadow: 0 0 5px rgba(0,0,0,.5);
}
.book-listing-image img {
	width: 100%;
	height: fit-content;
	aspect-ratio: 3/5;
	object-fit: contain;
	object-position: center bottom;
}
.book-listing strong {
	display:block;
	text-align: center;
	font-family: 'Merriweather', serif;
	font-size: 14px;
	line-height: 1.25;
}
