/*
 * Tiptopweb C1 (#35): the article CSS, moved out of 4.50's Venture styles.css, 1200.css and 768.css
 * (diffed against stock Venture 4.50). Loaded after the theme's CSS (StylesheetViewComponent, head_html_tag),
 * so equal-specificity rules here win. Venture's own files stay untouched.
 */

/* styles.css: list items' day, and the article body's padding (Venture: margin -19px, padding 0 30px 50px) */

.news-item .news-head .day,
.blog-posts .post-date .day {
    margin: 0 10px -10px 0;
}

.news-item-page .news-body,
.blogpost-page .post-body {
    padding: 0 30px 0 50px;
}

/* 768.css (Venture: 0 50px 50px) */

@media all and (min-width: 768px) {
    .news-item-page .news-body,
    .blogpost-page .post-body {
        padding: 0 50px 0 50px;
    }
}

/* 1200.css (Venture: 0 68px 68px) */

@media all and (min-width: 1201px) {
    .news-item-page .news-body,
    .blogpost-page .post-body {
        padding: 0 68px 0 68px;
    }
}

/* styles.css: the feature cars list, a grid of 4 (ArticleCarsList) */

.blog-posts-grid4 .post {
    background: #fff;
    margin: 0 0 10px 10px;
    box-shadow: 0 0 14px rgba(0,0,0,0.06);
}

@media all and (min-width: 657px) and (max-width: 988px) {

    .blog-posts-grid4 {
        width: 600px;
        margin: 0 auto 0 auto;
    }

    .blog-posts-grid4 .post {
        max-width: 290px;
        float: left;
    }

    .blog-posts-grid4 .post:nth-child(2n+1) {
        margin-left: 0;
        clear: both;
    }

    .blog-posts-grid4 .rich-blog-image {
        overflow: hidden;
        max-height: 192px;
    }
}

@media all and (min-width: 989px) and (max-width: 1199px) {

    .blog-posts-grid4 {
        width: 900px;
        margin: 0 auto 0 auto;
    }

    .blog-posts-grid4 .post {
        max-width: 290px;
        float: left;
    }

    .blog-posts-grid4 .post:nth-child(3n+1) {
        margin-left: 0;
        clear: both;
    }

    .blog-posts-grid4 .rich-blog-image {
        overflow: hidden;
        max-height: 192px;
    }
}

@media all and (min-width: 1200px) {
    .blog-posts-grid4 .post {
        max-width: 290px;
        float: left;
    }

    .blog-posts-grid4 .post:nth-child(4n+1) {
        margin-left: 0;
        clear: both;
    }

    .blog-posts-grid4 .rich-blog-image {
        overflow: hidden;
        max-height: 192px;
    }
}

.blog-posts-grid4 .rich-blog-image:hover img {
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.blog-posts-grid4 .rich-blog-image:hover img {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -moz-transform: scale(1.05);
    transform: scale(1.05);
}

.blog-posts-grid4 .post-head {
    background: #2c2c2c;
    overflow: hidden;
    padding: 5px;
    position: relative;
}

.blog-posts-grid4 .post-date {
    display: block;
    float: left;
    color: #f3cc2e;
    position: absolute;
    left: 0px;
    bottom: 0px;
    font-size: 0;
}

.blog-posts-grid4 .post-date span {
    display: inline-block;
    vertical-align: bottom;
    line-height: 20px;
    font-size: 20px;
}

.blog-posts-grid4 .post-date .day {
    font-size: 18px;
    margin: 0 0 3px 5px;
    line-height: 20px;
    color: #fff !important;
}

.blog-posts-grid4 .post-date .month {
    margin-right: 5px;
}

.blog-posts-grid4 .post .buttons {
    margin: 0;
    float: right;
}

.blog-posts-grid4 .post .buttons {
    font-size: 0;
}

.blog-posts-grid4 .post .buttons a {
    display: inline-block;
    color: #909090;
    background: #1f1f1f;
    font-size: 13px;
    position: relative;
}

.blog-posts-grid4 .post .buttons a:hover {
    background: #111;
}

.blog-posts-grid4 .post .buttons a + a {
    margin: 0 0 0 2px;
}

.blog-posts-grid4 .post a.read-comments {
    display: block;
    padding: 0 40px 40px;
    text-transform: none;
    color: #f3cc2e;
}

.blog-posts-grid4 .post .buttons a:before {
    font-family: "venture-font";
    text-transform: none;
    content: "q";
    font-size: 8px;
    width: 9px;
    height: 8px;
    color: #f3cc2e;
    position: absolute;
    top: 0;
    right: 8px;
    bottom: 0;
    margin: auto;
}

.blog-posts-grid4 .post-body {
    padding: 35px 40px;
    text-transform: none;
    text-align: left;
}

.blog-posts-grid4 .post-title {
    display: block;
    font-size: 24px;
    margin: 0 0 10px;
}

.blog-posts-grid4 .post-text {
    color: #909090;
    line-height: 25px;
    font-family: 'Lato', sans-serif;
}

/* styles.css "TIPTOPWEB" block: videos in the text (#youtubeid=…#), tables, profiles (ArticlePage), links */

.flex-video {
    position: relative;
    padding-bottom: 67.5%;
    height: 0;
    overflow: hidden;
}

.flex-video.widescreen {
    padding-bottom: 57.25%;
}

.flex-video.vimeo {
    padding-top: 0;
}

.flex-video iframe,
.flex-video object,
.flex-video embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.table td {
    padding: 1px 1px 1px 8px;
    border: solid 3px white;
    background: #f0f0f0;
}

.profile-separator {
    border-bottom: 1px solid #d4d4d4;
    margin: 40px 20px 40px 20px;
}

.profile-person {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 20px;
}

@media all and (min-width: 769px) {
    .profile-person {
        width: 40%;
        float: right;
        padding-left: 10px;
    }
}

.profile-title {
    line-height: 40px;
}

.profile-description {
    padding-bottom: 20px;
}

/* put back the link colour and bold */

.blogpost-page a {
    color: #ddb40d;
    font-weight: bold;
}

.blogpost-page strong {
    font-weight: bold;
}
