/**
 * This file adds style to home and archive pages
 */
#content .header {
    margin-bottom: 30px;
    padding: 10px;
    text-align: center;
}

.cps-fore #content .header {
    background: #fff;
}

/* Post Grid */
#content.post-grid {
    display: grid;
}

/* Post List */
.post-list article {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.post-list .archive-cat a {
    display: inline-block;
    margin: 1.5px;
    padding: 3px 8px;
    border-radius: 2.5px;
    background: var(--cps--primary);
    color: var(--cps--primary--font);
}

.post-list .archive-cat a:hover {
    background: var(--cps--secondary);
    color: var(--cps--secondary--font);
}

.entry-image img {
    width: 100%;
}

article header {
    align-items: flex-start;
    margin-bottom: 20px;
}

.entry-summary {
    width: 100%;
    padding: 25px;
}

.entry-summary p{
   text-transform: lowercase;
}

.entry-summary p:first-letter {
    text-transform: capitalize;
}

.cat-links {
    margin: 0;
}

/* Sticky Styles  */
#content .sticky {
    padding: 25px 20px;
    border: 2px solid #000;
}

.cps-fore #content .sticky {
    border-color: var(--cps--secondary);
}

#content.post-grid .sticky {
    grid-column: 1/-1;
}

#content.post-parity .sticky, #content.post-mansory .sticky {
    background: var(--cps--accent);
    color: var(--cps--accent--font);
}

#content.post-mansory .sticky a, #content.post-parity .sticky a {
    color: inherit;
}

#content.post-list .sticky {
    display: block;
}

.post-list .sticky .entry-image, .post-list .sticky .entry-summary {
    width: 100%;
    margin: 0;
    text-align: center;
}

#content.post-list .sticky .entry-header {
    align-items: center;
}

#content.post-list .sticky a.more-link {
    margin: 20px auto 0;
}

/* Blog summary Styles  */
#content.post-grid header.entry-header, #content.post-parity header.entry-header, #content.post-mansory header.entry-header {
    align-items: center;
    text-align: center;
}

#content.post-grid .summary-area, #content.post-parity .summary-area, #content.post-mansory .summary-area {
    display: flex;
    flex-direction: column;
}

#content.post-grid .entry-summary p, #content.post-parity .entry-summary p, #content.post-mansory .entry-summary p {
    text-align: justify;
}

#content.post-grid a.more-link, #content.post-parity a.more-link, #content.post-mansory a.more-link {
    margin: 20px auto;
}

/* Pagination
------------------------------------------ */
.navigation {
    clear: both;
    min-height: 65px;
    text-align: center;
    font-size: 15px;
    margin-top: 50px;
    letter-spacing: 2px;
    text-transform: capitalize;
}

#nav-above.navigation {
    margin-top: 5px;
    display: flex;
    min-height: auto;
    font-size: 20px;
    width: 50%;
    padding: 0 10px;
    justify-content: space-between;
    font-weight: bold;
    background: 0;
    box-shadow: none;
}

ul.page-numbers {
    display: flex;
    clear: both;
    text-align: center;
    padding: 15px 0;
    row-gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.post-grid .page-numbers {
    grid-column: 1/-1;
}

.page-numbers li {
    display: inline-block;
    margin-right: 5px;
}

.page-numbers li:last-child {
    margin-right: 0;
}

.page-numbers li * {
    display: flex;
    width: auto;
    height: 35px;
    padding: 10px;
    font-size: 14px;
    line-height: normal;
    letter-spacing: normal;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.page-numbers li .current {
    background: var(--cps--primary);
    color: var(--cps--primary--font);
}

.page-numbers li a.prev.page-numbers, .page-numbers li a.next.page-numbers {
    width: auto;
}

.page-numbers li a:hover, .page-numbers li a:focus, .page-numbers li a:active {
    background: var(--cps--primary);
    color: var(--cps--primary--font);
}

@media only screen and (min-width: 1000px) {
    /* post list */ .post-list .entry-image {
        width: 28%;
        margin-right: 3%;
    }

    .post-list .entry-summary {
        width: 69%;
    }

    .post-list .entry-header {
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .post-list .entry-header h2 {
        font-size: 30px;
    }

    .post-list a.more-link {
        margin: 10px 0 0;
    }

    /* post mansory */
    #content.post-mansory {
        -moz-column-count: 2;
        -webkit-column-count: 2;
        column-count: 2;
        -moz-column-gap: 1.5em;
        -webkit-column-gap: 1.5em;
        column-gap: 1.5em;
    }

    #content.post-mansory article {
        display: inline-block;
        margin-bottom: 1.5em;
        width: 100%;
    }

    #content.post-mansory article .entry-title a {
        -ms-word-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }

    .post-mansory .page-numbers {
        display: inline-block;
        width: 100%;
    }

    /* others */
    .entry-meta {
        font-size: 10px;
    }
}

@media only screen and (max-width: 999px) {
    .post-list .entry-header, .post-list .entry-image img {
        margin-bottom: 15px;
    }
}

@media only screen and (min-width: 700px) {
    /* Post Grid */ #content.post-grid {
        grid-template-columns: 1fr 1fr;
        grid-gap: 2em;
    }

    #content.post-grid article {
        margin: 0;
    }

    /* Post Parity */
    #content.post-parity article {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    #content.post-parity article .entry-image, #content.post-parity article .entry-summary {
        width: 48.5%;
    }

    #content.post-parity header.entry-header h2 {
        font-size: 27px;
    }

    #content.post-parity article .entry-image img {
        margin: 0;
        width: 100%;
    }

    #content.post-parity article.even {
        flex-flow: row-reverse;
    }

    #content.post-parity article.odd .entry-summary, #content.post-parity article.even .entry-image {
        margin-left: 3%;
    }
}

#content .header, ul.page-numbers, .page-numbers li .current, .page-numbers li a {
    border: 1px solid #222;
}
