﻿/*
Theme Name: KS Byg
Theme URI: http://ksbyg.dk/
Description: A theme developed for KS Byg
Version: 2.0
Author: Lars S. Sørensen
Author URI: http://swsolutions.dk/
*/

/* ----- CSS ----- */

* {
  margin: 0;
  padding: 0;
  }

* :focus {
  outline: 0;
  }  
  
/* ----- IDS ----- */

body {
  background: url('images/bg.jpg') repeat left top;
  color: #555;
  font-family: Verdana, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.4em;
  text-align: center;
  }

#container {
  text-align: left;
  margin: 40px auto 20px auto;
  width: 855px;
  }
#container:after {
  clear: both;
  visibility: hidden;
  content: ".";
  display: block;
  height: 0px;
  }
  
#header {
  background: url('images/header.png') no-repeat right top;
  width: 855px;
  height: 42px;
  text-align: left;
  margin-bottom: 5px;
  }
#header:after {
  clear: both;
  visibility: hidden;
  content: ".";
  display: block;
  height: 0px;
  }

#wrapper {
  background: url('images/wrapper.png') repeat-y right top;
  text-align: left;
  margin: 0 auto;
  width: 855px;
  }
#wrapper:after {
  clear: both;
  visibility: hidden;
  content: ".";
  display: block;
  height: 0px;
  }
  
#content {
  float: left;
  padding: 15px 0 40px 40px;
  width: 560px;
  position: relative;
  }
#content:after {
  clear: both;
  visibility: hidden;
  content: ".";
  display: block;
  height: 0px;
  }

#image {
  margin: 30px 10px 0 10px;
  }
#image:after {
  clear: both;
  visibility: hidden;
  content: ".";
  display: block;
  height: 0px;
  }  

#sidebar {
  float: right;
  width: 210px;
  padding-bottom: 20px;
  margin-left: 2px;
  }

#wrap {
  margin: 0 auto;
  background: url('images/bg.jpg') repeat left top;
  min-height: 1px;
  }
#wrap:after {
  clear: both;
  visibility: hidden;
  content: ".";
  display: block;
  height: 0px;
  }
  
#footer {
  margin: 0 auto;
  width: 855px;
  height: 23px;
  clear: both;
  background: #eee;
  margin-top: 5px; 
  }

/* ----- NAVIGATION ----- */

#nav {
  text-align: center;
  }
  
#nav li { 
  display:inline;
  }

#nav li a {
  border:none; 
  display: block; 
  float: left; 
  height:32px;
  width: 210px;
  line-height:30px;
  font-size: 24px;
  font-family: forte, Arial, sans-serif;
  padding: 5px 0px 5px 0px;
  text-decoration:none; 
  text-transform: none;
  color: #fff;
  margin-right: 5px;
  background: #6284C2 url(./images/nav.png) top left repeat-x;
  }

#nav li a:hover {
  color: #00529c;
  background: #fff url(./images/nav_current.png) top left repeat-x;
  }

#nav li.current_page_item a, #nav li.current_page_parent a, #nav li.current_page_ancestor a {
  color: #6284C2;
  background: #fff url(./images/nav_current.png) top left repeat-x;
  }
  
#nav li.current_page_item a:hover, #nav li.current_page_parent a:hover, #nav li.current_page_ancestor a:hover {
  color: #00529c;
  background: #fff url(./images/nav_current.png) top left repeat-x;
  }

#subnav {
  margin-bottom: 4px;
  background: url('images/bg.jpg') repeat left top;
  min-height: 1px;  
  }
#subnav:after {
  clear: both;
  visibility: hidden;
  content: ".";
  display: block;
  height: 0px;
  }  

#subnav ul {
  list-style:none;
  }

#subnav ul li {
  display:inline;
  }

#subnav ul li a {
  display: block;
  color: #6284C2;
  font-size:12px;
  font-weight: normal;
  text-decoration: none;
  padding: 6px 20px;
  background: #e0e8f5;
  margin-bottom: 1px;
  }

#subnav ul li a:hover {
  color: #00529c;
  background: #fff;
  }

#subnav ul li.current_page_item a, #subnav ul li.current_page_post a {
  color: #6284C2;
  background: #fff;
  }

#subnav ul li.current_page_item a:hover, #subnav ul li.current_page_post a:hover {
  color: #00529c;
  }

#subnav ul ul {
  border-top: none;
  border-bottom:0px solid #ddd;
  padding: 0px 0px;
  margin-bottom: 0;
  }

#subnav ul li ul {
  display: none;
  }
  
#subnav ul li.current_page_item ul, #subnav ul li.current_page_ancestor ul {
  display: block;
  } 
  
#subnav ul ul li.page_item a {
  color: #6284C2;
  font-size: 12px;
  font-weight: normal;
  padding: 2px 0 2px 35px;
  border-bottom: none;
  background: #e0e8f5 url(./images/arrow.gif) no-repeat 20px 7px;
  }
  
#subnav ul ul li.current_page_item a {
  color: #6284C2;
  background-color: #fff;
  }

#subnav ul ul li.page_item a:hover  {
  color: #00529c;
  background-color: #fff;
  }

/* ----- CLASSES ----- */

.right {
  float: right;
  }

.left {
  float: left;
  }
  
.aligncenter, div.aligncenter, .alignnone, div.alignnone {
  display: block;
  margin: 10px auto;
  }
  
.thumbnail {
  float: left;
  margin-right: 5px;
  }

.section {
  padding: 20px 10px 0 10px;
  width: 540px;
  }
.section:after {
  clear: both;
  visibility: hidden;
  content: ".";
  display: block;
  height: 0px;
  }
  
.section div div {
  padding: 2px 0 5px 10px;
  background: #f4f4f4;
  border-bottom: 1px solid #ccc;
  }

#sidebar .box {
  padding: 5px 20px 20px 20px;
  }

#content .box {
  padding: 0 10px;
  }

.center {
  text-align: center;
  }
  
.post {
  margin-top: 20px;
  }
.post:after {
  clear: both;
  visibility: hidden;
  content: ".";
  display: block;
  height: 0px;
  }  
  
.date {
  padding-left: 10px;
  font-size: 10px;
  color: #aaa;
  }

.edit {
  padding: 10px 0 0 10px;
  }
  
/* ----- LINKS ----- */

a, h2 a:hover, h3 a:hover {
  color: #6284C2;
  text-decoration: none;
  }

a:hover {
  color: #00529c;
  text-decoration: underline;
  }

#footer a {
  color: #777;
  text-decoration: none;
  }

#footer a:hover {
  color: #555;
  text-decoration: underline;
  }

/* ----- PARAGRAPHS ----- */

p {
  padding: 10px 10px 0 10px;
  }  

#sidebar p {
  padding: 10px 0 0px 0;
  color: #666;
  font-size: 11px;
  line-height: 1.2em;
  }

#footer p {
  padding: 5px 20px;
  color: #777;
  text-align: center;
  font-size: 10px;
  line-height: 1.2em;
  }

/* ----- HEADINGS ----- */

h1 {
  padding: 30px 10px 20px 10px;
  color: #7F9AC9;
  font-size: 20px;
  font-weight: bold;
  text-transform: none;
  }

h2 {
  padding: 20px 0 0 10px;
  color: #7F9AC9;
  font-size: 14px;
  font-weight: bold;
  text-transform: none;
  }

.post h2 {
  margin: 0 10px;
  padding: 20px 0 0 0;
  border-top: 1px solid #ccc;
  }


h3 {
  padding: 20px 0 0 10px;
  color: #aaa;
  font-size: 13px;
  font-weight: bold;
  text-transform: none;
  }

h4 {
  padding-top: 20px;
  padding-bottom: 0px;
  color: #333;
  font-size: 13px;
  font-weight: bold;
  text-transform: none;
  }

#sidebar h2 {
  padding: 10px 0 0px 0;
  margin-bottom: 5px;
  color: #555;
  font-size: 11px;
  font-weight: bold;
  text-transform: none;
  }
  
/* ----- IMAGES ----- */
 
.gallery img {
  border: 1px solid #6284C2;
  padding: 9px;
  line-height: 0px;
  display: block;
  width: 240px;
  height: 180px;  
  }
 
.gallery a:hover img  {
  border-color: #00529c;
  }

.section div img {
  border: 1px solid #ccc;
  padding: 9px;
  line-height: 0px;
  display: block;
  width: 240px;
  height: 180px;
  }

.post img {
  border: 1px solid #ccc;
  padding: 9px;
  line-height: 0px;
  display: block;
  }
  
#image img {
  border: 1px solid #ccc;
  padding: 9px;
  line-height: 0px;
  display: block;
  width: 520px;
  height: 280px;  
  }
  
.post img.wp-smiley {
  margin-bottom: -3px;
  border: none;
  padding: 0;
  display: inline;
}

#sidebar img {
  margin-left: auto;
  margin-right: auto;
  border: none;
  padding: 0;
  line-height: 0px;
  display: block;
  }
  
/* ----- LIST ----- */


dl {
  padding-top: 10px;
  }

dt {
  padding-top: 0px;
  margin: 0 10px;
  }

dd.gallery-caption {
  padding-bottom: 5px;
  padding-top: 2px;
  padding-left: 10px;
  margin: 0 10px;
  background: #F8F8FF;
  text-align: left;
  border-bottom: 1px solid #6284C2;
  }
  
dd.gallery-caption a {
  font-weight: bold;
  text-decoration: none;  
  }
  
#content ul {
  padding-top: 5px;
  }

#content li {
  margin-left: 20px;
  padding: 5px 0 0 10px;
  }

.box ul {
  padding-top: 0px;
  border-top: 1px solid #ccc;
  list-style-type: none;
  }

.box li {
  margin-left: 0px;
  padding: 1px 0 1px 10px;
  border-bottom: 1px solid #ccc;
  background: #eee;
  }
  
/* ----- TABLES ----- */

table {
  margin-top: 20px;
  width: 100%;
  border-collapse: collapse;
  border-top: 1px #ccc solid;
  border-right: none;
  border-left: none;
  }

table td {
  background: #f4f4f4;
  padding: 2px 10px;
  border-bottom: 1px #ccc solid;
  text-align: right;
  vertical-align: top;
  }
table tr.alt td {
  background: #eee;
  }

table th {
  padding: 1px 0 1px 10px;
  background: #f4f4f4;
  font-weight: normal;
  border-bottom: 1px #ccc solid;
  text-align: left;
  vertical-align: top;
  }
table tr.alt th {
  background: #eee;
  }

/* ----- MISC ----- */

.wp-caption {
  float: left;
  margin-top: 20px;
  background: #6284C2;
  margin: 20px 10px 0 10px;  
}
.wp-caption p {
  margin: 0 0 0 10px;
}
.wp-caption a {
  border: 0;
}
.wp-caption img {
  border: none;
  padding: 5px;
  background: #FFF;
  margin: 5px;
}
.wp-caption:hover {
  background: #aaa;
}

/* ----- Pagebar ----- */

.pagebar {
  margin: 20px 10px 0 10px;
  border-top: 1px solid #ccc;
  padding-top: 30px;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  }

.pagebar a, .pageList .this-page {
  border: 1px solid #ccc;
  text-decoration: none;
  padding: 0.2em 0.5em;
  color: #6284C2;
  background: #eee;
  }

.pagebar a:visited {
  border: 1px solid #ccc;
  text-decoration: none;
  padding: 0.2em 0.5em;
  }

.pagebar .break {
  padding: 2px 6px;
  border: none;
  background: #fff;
  text-decoration: none;
  }

.pagebar .this-page {
  border: 1px solid #ccc;
  padding: 0.2em 0.5em;
  font-weight: bold;
  background: #fff;
  color: #000;
  }

.pagebar a:hover {
  background: #fff;
  color: #00529c;
  }
  
 .pagebar .this-page:hover {
  color: #00529c;
  } 
 
 /* ----- Cleaner Gallery ----- */
 
.gallery {
  display: block;
  clear: both;
  overflow: hidden;
  margin: 0 auto;
  }
.gallery .gallery-row {
  display: block;
  clear: both;
  overflow: hidden;
  margin: 0;
  }
.gallery .gallery-item {
  overflow: hidden;
  float: left;
  margin: 0;
  text-align: center;
  list-style: none;
  padding: 20px 0 0 0;
  }
.gallery .gallery-item img, .gallery .gallery-item img.thumbnail {
  max-width: 100%;
  height: auto;
  padding: 9px;
  margin: 0 auto;
  }
.gallery-caption {
  margin-left: 0;
  }

/* Image sizes depending on the number of columns */
.col-0 { width: 100%; }
.col-1 { width: 100%; }
.col-2 { width: 50%; }
.col-3 { width: 33%; }
.col-4 { width: 25%; }
.col-5 { width: 20%; }
.col-6 { width: 16.5%; }
.col-7 { width: 14%; }
.col-8 { width: 12.4%; }
.col-9 { width: 11%; }
.col-10 { width: 10%; }
.col-11 { width: 9%; }
.col-12 { width: 8.33%; }
.col-13 { width: 7.6%; }
.col-14 { width: 7.1%; }
.col-15 { width: 6.66%; }
.col-16 { width: 6.25%; }
.col-17 { width: 5.83%; }
.col-18 { width: 5.55%; }
.col-19 { width: 5.25%; }
.col-20 { width: 4.95%; }
  
