/*
Theme Name: Skorstensbolaget
Theme URI: http://mediacad.se/
Author: Johanna Sewring - Mediacad cgi AB
Author URI: http://mediacad.se/
Description: Temamall för skorstensbolaget
Version: 1.0.0
License: GNU General Public License
License URI: https://www.gnu.org/licenses/gpl.html
Tags: 
Text Domain: skorstensbolaget
*/

@import url('https://fonts.googleapis.com/css?family=Titillium+Web:300,400,600');

html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{font-size:100%;font:inherit;padding:0;border:0;margin:0;vertical-align:baseline}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}.clear{clear:both}
.sticky{}.bypostauthor{}.wp-caption{}.wp-caption-text{}.gallery-caption{}.alignright{}.alignleft{}.aligncenter{}.screen-reader-text{clip:rect(1px, 1px, 1px, 1px);position:absolute !important}

* { 
    -moz-box-sizing: border-box; 
    -webkit-box-sizing: border-box; 
     box-sizing: border-box; 
}

#wrapper { 
	width: 100%; 
	max-width: 1300px;
	margin: 0 auto;
	font-family: 'Titillium Web', Arial, Helvetica, sans-serif;
	font-weight: 400;
	font-size: 1rem;
	color: #6f6f6e;
}

#container { width: 100%; }

.hide {
	display: none;
}

strong {
	font-weight: bold;
}

em {
	font-style: italic;
}

/***********************************/
/* Header */
/***********************************/
#header {
	padding: 35px 0;
	display: flex;
}

/* Logo */
#branding {
	flex-grow: 1;
	margin-left: 3rem;
}

#site-logo img {
	max-width: 100%;
	height: auto;
}

/* Main menu */
#main-menu {
	flex-grow: 1;
	padding-top: 1rem;
	margin-left: 1rem;
	z-index: 7;
}

#main-menu div {
	height: 100%;
}

#main-menu li {
	float: left;
	padding: 10px;
}

#main-menu a {
	text-decoration: none;
	text-transform: uppercase;
	color: #6f6f6e;
	font-weight: bold;
}

#main-menu a:hover {
	color: #f39000;
}

#main-menu .current-menu-item a,
#main-menu .current-page-ancestor a,
#main-menu .current-post-ancestor a,
#main-menu .current-category-ancestor a {
	color: #f39000;
}

#display-menu-button {
	display: none;
}

/***********************************/
/* Content */
/***********************************/
#content {
	margin: 0 3rem;
}

.div-content {
	width: 62%;
	float: left;
}

.entry-content {
	width: 100%;
	margin-top: 4rem;
}

.page-content p {
	margin-top: 1rem;
	line-height: 1.4rem;
}

.page-content p:first-child {
	margin-top: 0;
}

.page-content ul {
	list-style-type: square;
	margin: 0.2rem 0 0 1.1rem;
}

.page-content ol {
	list-style-type: decimal;
	margin: 0.2rem 0 0 1.1rem;
}

.page-content li {
	padding-left: 1rem;
	line-height: 1.6rem;
}

.page-content blockquote {
	font-size: 1.8rem;
	margin: 2.5rem 0 2rem 0;
	font-style: italic;
	font-weight: 300;
}

.page-content blockquote:first-child {
	margin-top: 0;
}

.page-content blockquote:last-child {
	margin-bottom: 0;
}

.page-content blockquote p {
	line-height: 2.3rem;
}

.page-content a {
	color: #6f6f6e;
	text-decoration: none;
}

.page-content a:hover {
	text-decoration: underline;
}

/* Slider */
.size-slider-img {
	max-width: 100%;
	height: auto;
}

.slider {
	position: relative;
}

.slider img { 
	width: 100%; 
	height: auto;
}

section.slider .n2-ow {
	font-size: 2.8rem !important;
}

.pum-theme-502 .pum-container, .pum-theme-lightbox .pum-container {
	padding: 0 !important;
	border: 0 !important;
}

/* Puffer */
#puff-container {
	display: flex;
}

.puff {
	width: 26.5%;
	margin: 0 auto;
}

.puff img {
	max-width: 100%;
	height: auto;
}

.puff h2 {
	color: #f39000;
	font-size: 1.5rem;
	font-weight: bold;
	line-height: 0.9;
	margin-top: 0.8rem;
}

.puff-url {
	text-decoration: none;
	color: #f39000; 
}

.small {
	font-size: 1.1rem;
}

.puff p {
	margin-top: 0.4rem;
	line-height: 1.3rem;
}

/* Headings */
.entry-title {
	position: absolute;
	bottom: 1.2rem;
	width: 100%;
	padding: 1rem 3rem;
	background-color: rgba(255,255,255,0.9);
	color: #f39000;
	font-size: 2.5rem;
	font-weight: bold;
}

.page-content h1 {
	font-size: 2rem;
	margin: 2rem 0 1rem 0;
	color: #f39000;
	font-weight: 600;
	line-height: 2.5rem;
}

.page-content h2 {
	font-size: 1.9rem;
	margin: 1.9rem 0 1rem 0;
	font-weight: 300;
	line-height: 2.4rem;
}

.page-content h3 {
	font-size: 1.5rem;
	margin: 1.5rem 0 1rem 0;
	font-weight: 300;
}

.page-content h4 {
	font-size: 1.2rem;
	margin: 1.2rem 0 1rem 0;
}

.page-content h5 {
	font-size: 1.7rem;
	margin: 1rem 0;
}

.page-content h6 {
	font-size: 1rem;
	margin: 1rem 0;
	font-weight: bold;
}

/* Bredcrumbs */
#breadcrumbs {
	margin-top: 0.5rem;
	font-size: 0.9rem;
}

#breadcrumbs a {
	text-decoration: none;
	color: #6f6f6e;
}

.breadcrumb_last,
#breadcrumbs a:hover {
	color: #f39000;
}

/* Sidebar */
#sidebar {
	width: 27%;
	float: right;
	padding-top: 4.5rem;
}

#sidebar .widget-container {
	margin-top: 2rem;
}

#sidebar .widget-container:first-child {
	margin-top: 0;
}

.widget-title {
	text-transform: uppercase;
	color: #f39000;
	font-size: 1.2rem;
}

.widget-container ul {
	margin-left: 0.6rem;
	line-height: 1.1rem;
}

.widget-container ul li {
	margin: 0.25rem 0;
}

.widget-container a {
	text-decoration: none;
	color: #6f6f6e;
}

.widget-container a:hover {
	color: #f39000;
}

.current-menu-item a {
	color: #f39000;
}

.contact-page a:hover { text-decoration: underline; }

.widget-container img {
	margin-top: 0.5rem;
}

/***********************************/
/* Category */
/***********************************/
#category-referens {
	position: absolute;
	top: 1.2rem;
	width: 45%;
	padding: 1rem 0 0 3rem;
	color: #fff;
	font-size: 1.4rem;
	font-style: italic;
	line-height: 1.6rem;
}

.ref-author {
	font-style: normal;
	font-size: 1.2rem;
	font-weight: bold;
	display: block;
	margin-top: 0.6rem;
}

#entry-wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
}

.category-heading {
	margin: 2rem 0 1.5rem 0;
	font-size: 1.75rem;
	color: #f39000;
	font-weight: bold;
}

.entry-summary {
	width: calc(50% - 1rem);
	max-width: 360px;
	margin: 3rem 1rem 0 0;
	line-height: 1.4rem;
}

.entry-summary:first-child,
.entry-summary:nth-child(2),
.entry-summary:nth-child(3),
.entry-summary:nth-child(4) {
	margin-top: 0;
}

.entry-summary img {
	max-width: 100%;
	height: auto;
}

.excerpt-title {
	margin-top: 1rem;
	display: inline-block;
	font-weight: bold;
}

.excerpt-title a {
	color: #6f6f6e;
	text-decoration: none;
}

.entry-summary p {
	margin-top: 0;
	display: inline;
}

.read-more { display: block; }
.read-more,
#nav-below a {
	color: #3b99cd;
	text-decoration: underline;
}

.gallery-item { max-width: 150px; min-width: 100px; margin: auto 0.5rem; }
.gallery { overflow: hidden; }
.gallery br { display: none; }

#nav-below { margin-top: 3rem; }

/***********************************/
/* Posts */
/***********************************/
.size-small-post-img {
	margin: 1.5rem 1rem 0 0;
}

.wp-caption-text {
	font-size: 0.9rem;
	margin-top: 0.2rem !important;
	margin-right: 0.3rem;
}

.wp-caption {
	display: inline-block;
}

/***********************************/
/* Form and contact */
/***********************************/
form {
	background-color: #f39000;
	border-radius: 20px;
	padding: 1.5rem 2rem;
	max-width: 400px;
	margin-left: 2rem;
}

#contact-heading {
	font-size: 2rem;
	margin-left: 1rem;
	margin-bottom: 1rem;
	font-weight: bold;
	color: #fff;
}

.contact-input,
.contact-text {
	-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: border-box;    /* Firefox, other Gecko */
	box-sizing: border-box;         /* Opera/IE 8+ */
	width: 100%;
	border-radius: 5px;
	border: none;
	font-weight: bold;
	font-family: 'Titillium Web', Arial, Helvetica, sans-serif;
	font-size: 1rem;
}

.contact-input {
	height: 2rem;
	margin-bottom: 1.5rem;
	padding: 0 1rem;
	color: #6f6f6e;
}

.contact-input::placeholder,
.contact-text::placeholder {
	color: #f39000;
}

.contact-text {
	padding: 0.3rem 1rem; 
	height: 100px;
	color: #6f6f6e;
}

.contact-send {
	border-radius: 5px;
	margin-top: 1.5rem;
	background-color: #fff;
	border: none;
	padding: 0.25rem 2rem;
	font-weight: bold;
	font-family: 'Titillium Web', Arial, Helvetica, sans-serif;
	font-size: 1.5rem;
	color: #f39000;
	text-transform: uppercase;
}

.contact-send:hover {
	cursor: pointer;
}

.contact-info h1 {
	font-size: 1.25rem;
	color: #f39000;
	margin-bottom: 0.2rem;
	font-weight: bold;
}

.contact-info p {
	margin-bottom: 2rem;
	line-height: 1.4rem;
}

.contact-info a {
	color: #f39000;
	text-decoration: none;
	font-weight: bold;
}

/***********************************/
/* Footer */
/***********************************/
#footer {
	background-color: #d9d9d9;
	display: flex;
	padding: 1.2rem 2.2rem;
	margin-top: 8rem;
	position: relative;
	min-height: 150px;
	width: 100%;
}

/* Widget area */
#footer-sidebar {
	flex: 2;
	display: flex;
	z-index: 7;
}

#footer .widget-container {
	flex: 1;
}

.widget-container {
	font-weight: 600;
	color: #666665;
	font-size: 0.9rem;
	line-height: 1.2;
}

/* Footer menu */
#footer-menu {
	flex: 1;
	font-size: 0.9rem;
	z-index: 7;
}

#footer-menu a {
	text-decoration: none;
	text-transform: uppercase;
	color: #6f6f6e;
	font-weight: bold;
}

#footer-menu a:hover {
	color: #f39000;
}

#footer-menu .current-menu-item a,
#footer-menu .current-page-ancestor a,
#footer-menu .current-post-ancestor a,
#footer-menu .current-category-ancestor a {
	color: #f39000;
}

#footer-menu li {
	margin-bottom: 5px;
}

#footer-menu li:last-child {
	margin-bottom: 0;
}

/* Footer img */
#footer-img-container {
	flex: 1;
}

#footer-img {
	position: absolute;
	bottom: 0;
	right: 0;
	height: auto;
	max-width: 392px;
	z-index: 5;
}

/***********************************/
/* Lightbox */
/***********************************/
#lightbox {
	position: relative; overflow-y: hidden;
}

#lightbox .background {
	position: absolute; width: 1300px; height: 800px; top: 0px; left: 0px;
}

#lightbox h1 {
	font-size: 72px; color: #db8f1b; margin: 0px; line-height: 72px; font-family: 'Titillium Web', Arial, Helvetica, sans-serif; font-weight: bold;
}

#lightbox h2 {
	font-size: 35px; color: #db8f1b; margin-top: 0px; line-height: 45px; font-family: 'Titillium Web', Arial, Helvetica, sans-serif; font-weight: bold;
}

#lightbox p {
	font-size: 29px; color: #db8f1b; margin-top: 7px; line-height: 35px; font-family: 'Titillium Web', Arial, Helvetica, sans-serif;
}

#lightbox .lightboxLink { color: #db8f1b; text-decoration: none; }
#lightbox .lightboxLink:hover { text-decoration: underline; }

#lightbox .read {
	margin-top: 36px; margin-bottom: 24px;	
}

.fancybox-slide>* {
	padding: 0px !important;	
}

#lightbox .lightbox_content {
	position: absolute; left: 180px; top: 87px; width: 880px;
}


#lightbox img[align="left"]{
	float: left; margin-right: 1%; width: 49%;
}

#lightbox img[align="right"]{
	float: right; margin-left: 1%; width: 49%;
}


.fancybox-bg, .fancybox-inner, .fancybox-outer, .fancybox-stage {
	position: relative !important;	
}

body .fancybox-bg, body .fancybox-inner, body .fancybox-outer, body .fancybox-stage {
	position: absolute !important;	
}

#lightbox .lightboxFloat { float: left; margin-top: 30px; margin-left: 70px;}
#lightbox .lightboxFloatLeft {float: left;}
#lightbox .clearfix { clear: both; }




/******************************************************/
/**************** MOBILANPASSNING ********************/
/****************************************************/

@media screen and (max-width: 980px){
	#main-menu {
		padding-top: 0;
	}
	#footer-img {
		display: none;
	}
	#footer-img-container {
		flex: 0;
	} 

	/* Puffer */
	.puff {
		width: 100%;
		max-width: 344px;
	}

	#sidebar {
		width: 100%;
		float: none;
		padding: 3rem;
	}

	.widget-area {
		width: 100%;
		display: flex;
		flex-wrap: wrap;
	}

	#sidebar .widget-container {
		width: 280px;
		margin-top: 0;
		margin-bottom: 2rem;
	}

	.div-content {
		width: 100%;
		float: none;
	}

	/* Headings */
	.entry-title {
		font-size: 2rem;
	}

	#category-referens {
		width: 65%;
		padding: 1rem 0 0 2rem;
		font-size: 1.2rem;
		line-height: 1.4rem;
	}

	.entry-summary {
		width: 260px;
		margin-bottom: 2.5rem;
	}
}

@media screen and (max-width: 750px){
	#header {
		display: block;
		padding-top: 1rem;
		padding-bottom: 0.5rem;
	}
	#branding {
		margin-left: 1.5rem;
	}
	#site-logo {
		float: left;
		width: 70%;
		margin-top: 0.5rem;
	}
	#site-logo img {
		height: auto;
		width: 100%;
		max-width: 325px;
		margin: 0 auto;
	}
	#display-menu-button {
		display: block;
		float: right;
		background-image: url('img/menu.png');
		background-size: 70%;
		background-repeat: no-repeat;
		background-position: center;
		width: 50px;
		height: 50px;
		margin-right: 1.5rem;
	}
	#display-menu-button:hover {
		cursor: pointer;
	}
	#main-menu {
		clear: both;
		padding-top: 1rem;
	}
	#menu-huvudmeny li {
		display: none;
		padding: 1rem 0;
	}
	#menu-huvudmeny .display-menu-item {
		display: block !important;
		float: none;
	}
	section.slider .n2-ow {
		font-size: 1.5rem !important;
	}

	/* Puffer */
	#puff-container {
		display: block;
	}

	.puff {
		margin: 0 auto 2rem auto;
		width: 95%;
		max-width: none;
	}

	.puff img { max-width: none; width: 100%; }

	.puff h2 {
		font-size: 1.3rem;
		line-height: 1.2rem;
		margin-top: 0.8rem;
	}

	/* Headings */
	.entry-title {
		padding: 0.75rem 3rem;
		font-size: 1.8rem;
	}

	.page-content h1 {
		font-size: 1.7rem;
		margin: 1.7rem 0 1rem 0;
		line-height: 1.7rem;
	}

	.page-content h2 {
		font-size: 1.5rem;
		margin: 1.5rem 0 1rem 0;
		line-height: 1.5rem;
	}

	.page-content h3 {
		font-size: 1.3rem;
		margin: 1.3rem 0 1rem 0;
	}

	.page-content h4 {
		font-size: 1.2rem;
		margin: 1.2rem 0 1rem 0;
	}

	.page-content h5 {
		font-size: 1.5rem;
	}

	#category-referens {
		width: 80%;
		padding: 1rem 0 0 3rem;
		font-size: 1rem;
		line-height: 1.1rem;
		top: 0.5rem;
	}

	.ref-author {
		font-size: 1.1rem;
		margin-top: 0.6rem;
	}

	.gallery .gallery-item {
		max-width: none;
		width: 95% !important;
		margin: 0 auto 1rem auto;
	}

	.gallery .gallery-item img {
		max-width: none;
		width: 100%;
		height: auto;
	}

	form {
		margin-left: 0;
	}

	/***********************************/
	/* Footer */
	/***********************************/
	#footer {
		display: block;
		margin-top: 4rem;
	}

	/* Widget area */
	#footer-sidebar {
		width: 100%;
	}

	/* Footer menu */
	#footer-menu {
		width: 100%;
		font-size: 1.2rem;
		margin-top: 3rem;
	}

	#footer-menu li {
		margin-bottom: 0.75rem;
	}

	div[id^="attachment_"] { width: 100%; }
	img { 
		max-width: 100%; 
		height: auto;
	}
}

@media screen and (max-width: 640px){

	section.slider .n2-ow {
		font-size: 1rem !important;
	}

	#content {
		margin: 0 1rem;
	}

	#sidebar {
		padding: 3rem 1rem;
	}

	form { margin-left: 0; }

	.entry-title {
		padding: 0.5rem 1rem;
		font-size: 1.3rem;
	}

	.page-content h1 {
		font-size: 1.3rem;
		margin: 1.3rem 0 1rem 0;
		line-height: 1.3rem;
	}

	.page-content h2 {
		font-size: 1.2rem;
		margin: 1.2rem 0 1rem 0;
		line-height: 1.2rem;
	}

	.page-content h3 {
		font-size: 1.1rem;
		margin: 1.1rem 0 1rem 0;
	}

	.page-content h4 {
		font-size: 1rem;
		margin: 1rem 0 1rem 0;
	}

	.page-content h5 {
		font-size: 1.3rem;
	}

	#category-referens {
		display: none;
	}

	.entry-summary {
		width: 100%;
		max-width: none;
		margin-bottom: 2.5rem;
		margin-right: 0;
	}

	.entry-summary img {
		width: 100% !important;
	}

	/***********************************/
	/* Footer */
	/***********************************/
	/* Widget area */
	#footer-sidebar {
		width: 100%;
		display: block;
	}

	/* Footer menu */
	#footer-menu {
		width: 100%;
		font-size: 1.2rem;
		margin-top: 3rem;
	}

	#footer-menu li {
		margin-bottom: 0.75rem;
	}

	#footer .widget-container {
		width: 100%;
		margin-bottom: 1.5rem;
		text-align: center;
	}
}