/* -------------------------------------------- */
/* The Virtual Brain: Website */
/* Version: 20 */
/* -------------------------------------------- */
/* Created by @twotribes, Germany */
/* -------------------------------------------- */
/* Browser Scope: ALL */
/* StyleSheet Scope: BLOG PAGES */
/* !-------------------------------------------- */

/* !-------------------------------------------- */
/* !LAYOUT: General layout */
/* !-------------------------------------------- */

/* --- Outer container */
#zwei_content .zwei-ui-container {
    padding-top: 162px; /* make room for TVB header element */
    position: relative;
}

/* --- Hashtags and latest posts */
#zwei_content .zwei-ui-blognav {
    float: right;
    width: 295px;
    margin-right: 85px;
    padding-top: 20px;
}

.zwei-blog-entry #zwei_content .zwei-ui-blognav {
    margin-top: 0;
}

#zwei_content.expression-educase .zwei-ui-blognav {
    padding-top: 130px;
}

/* Repurposed notice as TVB bloglist header */
#zwei_content .blognav-notice {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 162px;
    background: #aaa center center no-repeat;
    background-size: cover;
}

.zwei-blog-entry #zwei_content .blognav-notice .substance-stripehead {
    display: none;
}

#zwei_content .blognav-notice:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 285px;
    height: 162px;
    background: transparent url("./img/back_nav_triangle_newswire.svg") 0 0 no-repeat;
    z-index: 2;
}

#zwei_content .blognav-notice:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent url("./img/back_header_lines.svg") 0 0 no-repeat;
    z-index: 1;
}

/* --- List of posts */
#zwei_content .zwei-ui-bloglist {
    width: 610px;
    margin-left: 20px;
    padding-top: 20px;
}

/* --- Auxiliary controls */
#zwei_content .zwei-ui-blogcontrol {
}

/* RSS subscription */
#zwei_content .blogcontrol-subscription {
    position: absolute;
    top: 90px;
    left: 650px;
    width: 295px;
    height: 55px;
    z-index: 50;
}

/* Twitter widget container (used to be an iframe, now it's a link button) */
#zwei_content .blogcontrol-external {
    position: absolute;
    top: 20px;
    left: 650px;
    width: 295px;
    height: 55px;
    z-index: 50;
}

.zwei-blog-entry #zwei_content .blogcontrol-external {
}

/* Blogroll */
#zwei_content .blogcontrol-internal {
    display: none;
}

/* EduCase sign */
#zwei_content.expression-educase .blogcontrol-educase {
    position: absolute;
    top: 100px;
    left: 650px;
    width: 295px;
    height: 175px;
    z-index: 50;
    background: transparent url("../style/img/logo_tvb_edupack.svg") center no-repeat;
    background-size: 200px;
}

.zwei-blog-entry #zwei_content.expression-educase .blogcontrol-educase {
    background-image: url("../style/img/logo_tvb_educase.svg");
}

/* --- Built-in pagination */
#zwei_content .zwei-ui-paginator {
    display: none;
}

/* !-------------------------------------------- */
/* !COMPONENT: Header elements */
/* !-------------------------------------------- */

/* --- Bloglist headline */
#zwei_content .blognav-notice {
    background-image: url('../style/img/opener/back_header_beamer_1573@2x.jpg');
}

.zwei-blog-entry #zwei_content .blognav-notice {
    background-image: url('../style/img/opener/back_header_beamer2_2301@2x.jpg');
}

#zwei_content .blognav-notice h2 {
    position: absolute;
    font-size: 28px;
    left: 20px;
    bottom: 20px;
    z-index: 5;
}

.zwei-blog-entry #zwei_content .blognav-notice h2 {
    display: none;
}

/* EduCase header photos */
#zwei_content.expression-educase .blognav-notice {
    background-image: url('../style/img/opener/back_header_tvbgroup_9057@2x.jpg');
}

.zwei-blog-entry #zwei_content.expression-educase .blognav-notice {
    background-image: url('../style/img/opener/back_header_tvbconf_2101@2x.jpg');
}


/* --- Twitter widget container (used to be an iframe, now it's a link button) */
#zwei_content .blogcontrol-external .action-twitter {
    height: 100%;
    width: 100%;
    line-height: 55px;
    text-align: left;
    padding-left: 60px;
}

#zwei_content .blogcontrol-external .action-twitter:after {
    background-color: #211b11;
}

/* --- RSS subscription */
#zwei_content .blogcontrol-subscription .action-subscribe {
    height: 100%;
    width: 100%;
    line-height: 55px;
    text-align: left;
    padding-left: 60px;
}

#zwei_content .blogcontrol-subscription .action-subscribe:after {
    background-color: #211b11;
}

/* !-------------------------------------------- */
/* !COMPONENT: Navigation controls */
/* !-------------------------------------------- */

/* --- Control headlines and blocks */
#zwei_content .zwei-ui-blognav h4 {
    font-family: "aktiv-grotesk";
    font-size: 16px;
    margin-top: 1.4em;
    margin-bottom: 0.7em;
    padding-bottom: 0.2em;
    color: #e48120;
    border-bottom: 2px solid #e48120;
}

#zwei_content .zwei-ui-blognav h4:first-child {
    margin-top: 0;
}

/* --- Keyword navigation */
#zwei_content .blognav-keyword li {
    font-family: "aktiv-grotesk";
    position: relative;
    overflow: hidden;
}

#zwei_content .blognav-keyword li:before {
    content: "";
    display: block;
    position: absolute;
    left: -20px;
    top: 50%;
    margin-top: -10px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-left-color: #624426;
    -webkit-transition: left 0.5s ease, border-color 0.5s ease;
}

#zwei_content .blognav-keyword li .action {
    padding: 5px 0 5px 0;
    -webkit-transition: padding 0.5s ease;
}

#zwei_content .blognav-keyword li .action:hover {
    padding-left: 15px;
    -webkit-transition: padding 0.5s ease;
}

#zwei_content .blognav-keyword li:hover:before {
    left: 0;
    -webkit-transition: left 0.5s ease, border-color 0.5s ease;
}

#zwei_content .blognav-keyword li .action:before {
    content: "#";
}

#zwei_content .blognav-keyword .keyword-count {
    font-size: 11px;
}

#zwei_content .blognav-keyword .keyword-count:before {
    content: " [";
}

#zwei_content .blognav-keyword .keyword-count:after {
    content: "]";
}

/* Active filtering keyword */
#zwei_content .blognav-keyword .item-active:before {
    left: 0;
    border-left-color: #e48120;
}

#zwei_content .blognav-keyword .item-active .action {
    padding-left: 15px;
    color: #e48120;
    -webkit-transition: padding 1s ease;
}

/* --- Latest posts */
#zwei_content .blognav-latest li {
    font-family: "aktiv-grotesk";
    margin-bottom: 0.7em;
    position: relative;
}

#zwei_content .blognav-latest .action {
    padding-left: 20px;
}

#zwei_content .blognav-latest .action:before {
    content: "\2192 \00a0";
    position: absolute;
    top: -1px;
    left: 0;
    font-family: "miller-text", "Georgia", "Times", serif;
    font-weight: bold;
    color: inherit;
    white-space: nowrap;
}

#zwei_content .blognav-latest .item-active .action {
    color: #e48120;
}

/* !-------------------------------------------- */
/* !COMPONENT: Blog list and basic entries */
/* !-------------------------------------------- */

/* --- List container */
#zwei_content .zwei-ui-bloglist {
    padding-left: 85px;
}

#zwei_content.expression-educase .zwei-ui-bloglist {
    padding-left: 120px;
    width: 600px;
}

/* --- Entry container */
#zwei_content .bloglist-entry {
    margin-bottom: 2.1em;
    position: relative;
    min-height: 70px;
}

#zwei_content.expression-educase .bloglist-entry {
    min-height: 70px;
}

/* --- Publication date */
#zwei_content .bloglist-entry .entry-date {
    position: absolute;
    left: -85px;
    top: 0;
}

/* --- Blogpost title */
#zwei_content .bloglist-entry h1 {
    font-family: "aktiv-grotesk";
    font-size: 20px;
    margin-bottom: 0.3em;
    line-height: 1.2;
}

#zwei_content.expression-educase .bloglist-entry h1 {
    font-size: 18px;
    margin-top: 5px;
    font-weight: normal;
}

#zwei_content .bloglist-entry h1 .action-outlink:before {
    content: "→\00a0";
    color: inherit;
}

/* --- Associated keywords */
#zwei_content .bloglist-entry .entry-keyword {
    font-family: "aktiv-grotesk";
    clear: left;
    margin-bottom: 0.7em;
}

#zwei_content.expression-educase .bloglist-entry .entry-keyword {
    margin-bottom: 0;
    margin-top: -5px;
}

#zwei_content .bloglist-entry .entry-keyword li {
    display: inline-block;
}

#zwei_content .bloglist-entry .entry-keyword .item-active {
    color: #e48120;
}

#zwei_content .bloglist-entry .entry-keyword li:before {
    content: "#";
}

#zwei_content .bloglist-entry .entry-keyword li:after {
    content: " ";
}

/* --- Permanent link */
#zwei_content .bloglist-entry .action-permalink {
    clear: left;
    margin-bottom: 0.7em;
}

#zwei_content .bloglist-entry .action-permalink:before {
    content: "→\00a0";
    color: inherit;
}

/* --- Blogpost content */
#zwei_content .bloglist-entry .entry-content {
    position: relative;
    clear: left;
    max-height: 3.9em;
    overflow: hidden;
    margin-bottom: 0.3em;
}

#zwei_content .bloglist-entry .entry-content:after {
    content: "";
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 1.3em;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, #ffffff 100%);
}

/* --- Blogpost author */
#zwei_content .bloglist-entry .entry-author {
    line-height: 1.3em;
    margin-bottom: 0.7em;
    font-style: italic;
}

#zwei_content.expression-educase .bloglist-entry .entry-author {
    font-style: normal;
}

#zwei_content .bloglist-entry .entry-author .author-name {
    font-weight: bold;
}

/* --- Blogpost image list */
#zwei_content .bloglist-entry .entry-attachment {
    margin-bottom: 0.7em;
}

#zwei_content .bloglist-entry .entry-attachment img {
    max-width: 100%;
}

#zwei_content .bloglist-entry .entry-attachment .image-caption, 
#zwei_content .bloglist-entry .entry-attachment .attachment-caption {
    display: none;
}

/* Special treatment for single attachment in EduCase list */
.zwei-blog-list #zwei_content.expression-educase .bloglist-entry .entry-attachment {
    position: absolute;
    top: 0;
    left: -120px;
    width: 100px;
    height: 80px;
    background: transparent url("../style/img/logo_tvb_educase.svg") left top no-repeat;
    background-size: 100%;
    margin-bottom: 0;
}

.zwei-blog-list #zwei_content.expression-educase .bloglist-entry .entry-attachment a {
    position: absolute;
    display: block;
    top: 5px;
    left: 5px;
    width: calc(100% - 10px);
    height: 50px;
    overflow: hidden;
}

.zwei-blog-list #zwei_content.expression-educase .bloglist-entry .entry-attachment a:hover img {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.zwei-blog-list #zwei_content.expression-educase .bloglist-entry .entry-attachment a:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("./img/button_play.svg") center center no-repeat;
    background-size: 35%;
}

/* !-------------------------------------------- */
/* !LAYOUT: Single blog entries */
/* !-------------------------------------------- */

/* --- List container */
.zwei-blog-entry #zwei_content .zwei-ui-bloglist {
    padding-left: 0;
}

/* --- Entry container */
.zwei-blog-entry #zwei_content .bloglist-entry {
    font-size: 16px;
    position: static;
}

/* --- Publication date */
.zwei-blog-entry #zwei_content .bloglist-entry .entry-date {
    top: 30px;
    left: 20px;
    z-index: 10;
}

/* --- Blogpost title */
.zwei-blog-entry #zwei_content .bloglist-entry h1 {
    font-size: 28px;
}

.zwei-blog-entry #zwei_content.expression-educase .bloglist-entry h1 {
    font-size: 24px;
}

/* --- Associated keywords */
.zwei-blog-entry #zwei_content .bloglist-entry .entry-keyword {
    font-size: 14px;
    margin-bottom: 1.4em;
}

.zwei-blog-entry #zwei_content.expression-educase .bloglist-entry .entry-keyword {
    margin-top: 0;
}

/* --- Permanent link */
.zwei-blog-entry #zwei_content .bloglist-entry .action-permalink {
}

/* --- Blogpost content */
.zwei-blog-entry #zwei_content .bloglist-entry .entry-content {
    max-height: none;
}

/* --- Blogpost author */
.zwei-blog-entry #zwei_content .bloglist-entry .entry-author {
    border-top: 1px solid #e48120;
    padding-top: 10px;
    font-size: 14px;
}

/* --- Blogpost image list */
.zwei-blog-entry #zwei_content .bloglist-entry .entry-attachment li {
    margin-bottom: 1.4em;
}

.zwei-blog-entry #zwei_content .bloglist-entry .entry-attachment .image-caption, 
.zwei-blog-entry #zwei_content .bloglist-entry .entry-attachment .attachment-caption {
    background: #d9dcde;
    padding: 10px;
    display: block;
    font-size: 14px;
}

.zwei-blog-entry #zwei_content .bloglist-entry .entry-attachment .image-caption > *:last-child, 
.zwei-blog-entry #zwei_content .bloglist-entry .entry-attachment .attachment-caption > *:last-child {
    margin-bottom: 0;
}



