/*
Theme Name: SimpleMag Child Theme
Theme URI: http://themesindep.com/
Author: ThemesIndep
Author URI: http://themesindep.com/
Description: Magazine theme for creative things
Template: simplemag
*/


/* Your CSS code goes here
-------------------------------------- */

a { outline: none; }


/* corrects display of embedded instagram posts */
iframe.instagram-media {
    width: 100% !important;
    min-width: 100% !important;
}


/* adjusts content grid width to match old site */
.wrapper,.wp-image-wrap { /* Grid 1200px */
    width:1050px;
}
@media only screen and (min-width: 960px) and (max-width: 1199px) { /* Grid 960px */
    .wrapper,.wp-image-wrap{width:930px}
}
@media only screen and (min-width: 750px) and (max-width: 959px) {
    .wrapper,.wp-image-wrap{width:700px}
}
@media only screen and (max-width: 749px) {
    .wrapper{
        width:92%;
    }
}


/* adjusts indents on lists that appear in posts */
.page-content ol, .page-content ul, .entry-content ol, .entry-content ul {
    padding-left: 20px;
}


/* removes extraneous horizontal spacing between title and double lines */
.title-with-sep .title {
    padding: 0 1em;
    margin: 0;
}


/* about page title separation */
.page-id-24354 .title-with-sep {
    margin-top: 2em;
}

/* pagination formatting */
.pagination {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 20px 0;
}
.pagination .page-numbers {
    width: 30px;
    height: 30px;
    line-height: 30px;
}
.pagination .current {
    border: 0;
    background: #ffcc0d;
}
.pagination .page-more-posts {
    width: auto;
    padding: .5em 1em;
    background: #ffcc0d;
    text-decoration: none;
    font-family: Lato;
    text-transform: uppercase;
    border: 2px solid #ffcc0d;
}
.pagination .page-more-posts:hover {
    border-color: #000;
}


/* removes random extra spacing at bottom of home page from code blocks without visible content */
.home-section.advertising {
    margin-top: 0;
}


/* ad placement tweaks */
.advads-widget p {
    margin-top: 1em;
    margin-bottom: 1em;
}
.top-banner-ad {
    display: block;
    height: auto;
    width: 100%;
}


/* header/masthead tweaks */
#branding {
    margin-top: 15px;
    padding-top: 0;
}
.tagline {
 display: none;
}


/* home page post feed layout */
.classic-layout .post-item .entry-details {
    margin-top: 0;
    width: 100%;
    padding-top: 0;
}
.entry-meta {
    text-transform: uppercase;
}
.written-by, .author {
    text-transform: uppercase;
    font-size: 12px;
    font-family: Lato;
    color: #000;
}
.written-by {
    font-style: normal;
}
.author {
    text-decoration: underline;
}
.entry-footer {
    margin-top: .5em;
}
.classic-layout .post-item .entry-image+.entry-details {
    margin-top: 0;
}
.entries .post-item .entry-footer a.read-more-link {
    text-transform: uppercase;
    font-family: Lato;
    color: #000;
    margin-top: .5em;
    background: #fff;
    padding: .5em;
    border: 2px solid #000;
}
.entries .post-item .entry-footer a.read-more-link:hover {
    border: 2px solid #000;
    color: #fff;
    background: #000;
}
@media only screen and (max-width:750px) {
    .home-section .classic-layout .entry-image{
        width: 100%;
        margin-right: 0;
    }
    .home-section [class*=-layout].entries .entry-meta {
        display: block;
        margin-bottom: .8em;
    }
    .home-section [class*=-layout].entries .post-item-inner {
        display: block;
    }
    .home-section [class*=-layout].entries .entry-details {
        margin-top: 0;
    }
    .home-section [class*=-layout].entries .entry-details .entry-header {
        text-align: center;
    }
    .home-section [class*=-layout].entries .entry-details .entry-header .entry-title a {
        font-size: 1.6em;
        line-height: 1.2em;
    }
    .home-section [class*=-layout].entries .post-item:not(.format-quote) .entry-summary {
        display: block;
        text-align: center;
    }
    .home-section [class*=-layout].entries .read-more-link {
        display: block;
        width: 40%;
        text-align: center;
        margin: .5em auto 0 auto;
    } 
}


/* homepage slider area tweaks */
.content-over-image-white .entry-frame {
    background: transparent;
}
.content-over-image-white .entry-header .title {
    color: #fff;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px #000000;
}
.slider-latest .entries .content-over-image .entry-title {
    font-size: 18px;
    line-height: 1.2em;
}
.slider-latest .grid-8.column-1 .entry-header {
    font-size: 120%;
}
.slider-latest .grid-4 article {
   margin-bottom:  18px;
}
@media screen and (max-width:960px) {
    .slider-latest .grid-4.column-2 .entry-title {
        font-size: 16px;
    }
    .content-over-image [class*="-header"] {
        width: 90%;
        left: 5%;
    }
    .slider-latest {
      margin-bottom: 0;  
    }
}
@media only screen and (max-width: 750px) {
    html li.content-over-image .entry-title {
        font-size: 18px !important;
    }
    .slider-latest .grid-4.column-2 .entry-title {
        font-size: 15px !important;
    }
    .slider-latest .grid-4 article {
        width: 48.5%;
        margin-top: 1em;
        display: inline-block;
    }
    .slider-latest .grid-4 article:first-child {
        float: left;
    }
    .slider-latest .grid-4 article:nth-child(2) {
        float: right;
    }
    .slider-latest .content-over-image .entry-header {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 3;
        background-color: transparent;
    }
    .slider-latest .content-over-image .entry-header a {
        color: #fff;
    }
    .home-section .section-header {
        margin-bottom: 50px;
    }
}
@media screen and (max-width:480px) {
    .slider-latest .grid-8.column-1 .entry-header {
        letter-spacing: 0.1em;
    }
    .slider-latest .grid-4.column-2 .entry-title {
        line-height: 1em;
        font-size: 10px !important;
        font-weight: bold;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}
.slider-latest h2.entry-title { /* drop shadow on home page featured articles*/
    text-shadow: 1px 1px 5px #000;
}
/* Added below code to fix yellow lines on slider on the footer. By Ankit Chhatbar. 26th May 2016 */
/* Had to disable Ankit's fix which was breaking thumbnail display after updates. Simma Park 31 March 2017
figure.entry-image.inview{
	height: auto !important;
} */


/* bottom widgets thumbnail formatting */
.widget_ti_latest_cat_posts .widget-post-item:not(:nth-child(1)) .entry-image,
.widget_ti_latest_cat_posts .widget-post-item .entry-image {
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
}
.widget_ti_latest_cat_posts .widget-posts-entries .widget-post-item:nth-child(1) img {
    filter: none;
}
.widget_ti_latest_cat_posts .widget-posts-entries .widget-post-item:nth-child(1) img,
.widget_ti_latest_cat_posts .widget-posts-entries .widget-post-item:not(:nth-child(1)) img {
    width: 100% !important;
}
.widget_ti_latest_cat_posts .widget-post-item:nth-child(1) .widget-post-details,
.widget_ti_latest_cat_posts .widget-posts-entries .widget-post-item:not(:nth-child(1)) .widget-post-details {
    position: relative;
    display: inline-block;
    margin: 0;
    text-transform: uppercase;
    background: transparent;
    left: 0;
    top: 0;;
    right: auto;
    bottom: auto; 
    transform: none;
    line-height: 1.2em;
    text-align: center;
    width: 100%;
}
.widget_ti_latest_cat_posts widget-post-item:nth-child(1) .widget-post-title,
.widget_ti_latest_cat_posts .widget-post-item .widget-post-title {
    margin: 0;
    padding: 0;
    font-size: 16px;
    background: transparent;
}
.widget-posts-entries .widget-post-item:nth-child(1) .widget-post-title {
    font-size: 16px;
}
.widget_ti_latest_cat_posts .widget-posts-entries .widget-post-item:nth-child(1) .widget-post-details a {
   color: #8c919b; 
   text-align: center;
}
.widget_ti_latest_cat_posts .widget-posts-entries .widget-post-item:nth-child(1) .widget-post-details a:hover {
    color: #ffcc0d;
}
@media only screen and (max-width: 750px) {
    .widget_ti_latest_cat_posts .widget-posts-entries .widget-post-item .widget-post-details a {
        text-align: center;
    }
}

/* bottom widgets recent comments formatting */
#better-recent-comments.recent-comments-list .comment-wrap span {
	font-size: small;
}

/* POSTS FROM PAGE 2 ON */

@media only screen and (max-width: 750px) {
    .title-with-sep .title, .title-with-sep .entry-title {
        width: auto;
        margin: 0 auto;
        padding: 0 .5em;
        display: inline-block;
    }
}
@media only screen and (max-width: 750px) {
    [class*=-layout].entries .post-item {
        text-align: center;
    }
    [class*=-layout].entries .post-item .post-item-inner {
        display: block;
    }
    
    [class*=-layout].entries .entry-image {
        width: 100%;
        margin-right: 0px;
        display: block;
        position: relative;
        float: none;
    }
    
    [class*=-layout].entries .entry-details {
        width: 100%;
        margin: 0;
        display: block;
        position: relative;
        float: none;
        text-align: center;
    }
    [class*=-layout].entries .entry-details .entry-header {
        text-align: center;
    }
    [class*=-layout].entries .entry-details .entry-header .entry-meta {
        display: block;
        margin-top: .4em;
        margin-bottom: .8em;
    }
    [class*=-layout].entries .entry-details .entry-header .entry-title a {
        font-size: 1.6em;
        line-height: 1.2em;
    }
    [class*=-layout].entries .post-item:not(.format-quote) .entry-summary {
        display: block;
        line-height: 22px;
        font-size: 16px;
    }
    [class*=-layout].entries .read-more-link {
        display: block;
        width: 40%;
        text-align: center;
        margin: .5em auto 0 auto;
    }
}
