/*
Theme Name: KSE Lab Theme
Author: the KSE Lab members
Description: Patches to the 2011 theme
Version: 1.0
Template: twentyeleven
*/
@import url("../twentyeleven/style.css");

.clear {
  clear: both;
}

#content {
  width: 63.6%;
  margin-left: 6%;
}

#secondary {
  margin-right: 5%;
}

article.page {
    border-bottom: none;
    padding-bottom: 0pt;
}

footer #supplementary {
    background-color: #efefef;
}

.entry-title {
  font-size: 22px;
}

p {
  text-align: justify;
}

dt {
  float: left;
  clear: left;
  font-weight: bold;
  padding-right: 0.5em;
}

dt:after {
  content: ":";
}

dd {
  margin-left: 1em;
  margin-bottom: inherit;
}

dl.people {
  font-size: 13px;
  margin-left: 1.625em;
}

h3.people {
  font-size: smaller;
  line-height: 2em;
  margin-left: 1.8em;
  clear: left;
}

h2.projects {
  clear: right;
}

p.projects {
  font-size: 13px;
}

img.noborder {
  border: 0px none;
  padding: 0px;
  margin-top: 0pt;
}

.breadcrumb {
  font-size: 13px;
  margin-bottom: 1em;
}

#nav-single .nav-next {
	padding:0px;
        width: auto;
}

.singular .wiki {
  padding: 2em 0pt 0pt;
}

.wiki .entry-header, .wiki .entry-content, .wiki footer.entry-meta, .wiki #comments-title {
  width: 85%;
}

.single-wiki .entry-meta .edit-link a {
  left: 0px;
  top: 55px;
}

.single-wiki #content, .left-sidebar.singular #content {
  margin: 0pt 6%;
}

#wikinav {
  margin-left: 1.625em;
}

span.bracket:before {
  content: '[';
}

span.bracket:after {
  content: ']';
}

/* Remove exatra bottom margin from the last paragraph of a div */ 
.kse-news-summary-item > p:last-child, .kse-news-summary-item > ul:last-child {
  margin-bottom: 0px;
}

.kse-news-summary-item > ul {
  margin-left: 2.5ex;
}

.kse-news-summary {
  width: 100%;
}
.kse-news-summary:after {
  clear: both;
  content: '';
  display: block;
}

/*
.kse-news-summary-item:nth-child(3n+0) {
  padding-right: 0px;
}

.kse-news-summary-item:nth-child(3n+1) {
  padding-left: 0px;
  border-left: none;
  clear: left;
}
*/

/*
.kse-news-summary-separator:nth-child(2n+0) {
    float: left;
    border-left: solid 1px silver;
    margin-left: 1em;
    padding-left: 1em;
    padding-top: 100%;
}
*/

.kse-news-summary-separator:nth-child(2n+0) {
    float: left;
    border-left: solid 1px silver;
    margin-left: 1em;
    padding-left: 1em;
    /*padding-top: 100%;*/
    margin-top: 1ex;
    margin-bottom: 1ex;
}

/*
.kse-news-summary-separator:nth-child(6n+0) {
    float: none;
    border-left: none;
    padding-left: 0px;
    clear: both;
    width: 90%;
    padding-top: 1ex;
    border-bottom: solid 1px silver;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1ex;
}
*/

.kse-news-summary-row {
    /*clear: both;
    border-bottom: solid 1px silver;
    float: left;*/
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.kse-news-summary-item {
      float: left;
      max-width: calc(33% - 1.333em - 3px);
      min-width: 11em;
      /*padding-left: 1em;
      padding-right: 1em;*/
      padding-top: 1ex;
      padding-bottom: 1ex;
      font-size: smaller;
      /*margin-bottom: 2em;*/
      /*border-left: solid 1px silver;*/
    }

@media screen 
    and (min-width: 596px) {
    
    .kse-news-summary-item {
      max-width: calc(33% - 1.333em - 3px);
    }
    
    /*.kse-news-summary-separator:last-child {*/ /* when using individual rows */
    .kse-news-summary-separator:nth-child(3n+0) {
        /*display: none;*/
        width: 100%;
        border-top: solid 1px silver;
        margin-right: 1em;
        border-left: none;
        margin-top: 1ex;
        margin-bottom: 1ex;
    }

}

@media screen
    and (min-width: 321px)
    and (max-width: 595px) {

    .kse-news-summary-item {
        max-width: calc(50% - 2em);
    }
    
    .kse-news-summary-separator:nth-child(4n+0) {
        width: 100%;
        border-top: solid 1px silver;
        margin-right: 1em;
        border-left: none;
        margin-top: 1ex;
        margin-bottom: 1ex;
    }
    
    /*
    .kse-news-summary-separator:last-child {
        border-left: solid 1px silver;
        margin-left: 1em;
        padding-left: 1em;
        margin-top: 1ex;
        margin-bottom: 1ex;
        
        width: unset;
        border-top: none;
        margin-right: 0em;
    }
    */
    
}

@media screen
    and (max-width: 320px) {

    .kse-news-summary-item {
        max-width: 100%;
    }
    
    .kse-news-summary-separator:nth-child(2n+0) {
        width: 100%;
        border-top: solid 1px silver;
        margin-right: 1em;
        border-left: none;
        margin-top: 1ex;
        margin-bottom: 1ex;
    }
    
    /*
    .kse-news-summary-separator:last-child {
        border-left: solid 1px silver;
        margin-left: 1em;
        padding-left: 1em;
        margin-top: 1ex;
        margin-bottom: 1ex;
        
        width: unset;
        border-top: none;
        margin-right: 0em;
    }
    */
    
}