/*!
Theme Name: Diverse
Theme URI: https://tylerjohnsondesign.com
Author: Tyler Johnson
Author URI: https://tylerjohnsondesign.com
Description: A custom theme for Diverse Media.
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
*/

/**
Global.
**/
body {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    overflow-x: hidden;
    margin-bottom: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
}

.container {
    max-width: 1260px;
    padding: 0 30px;
    width: 100%;
    margin: 0 auto;
}

main#primary {
    padding: 30px 0 120px;
}

ul {
    margin: 0;
    padding: 0 0 0 20px;
}

a, a:visited, a:focus, a:hover {
    text-decoration: none;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
}

a:focus, a:hover {
    color: #232323 !important;
}

img {
    max-width: 100%;
}

/**
Top Menu.
**/
.display-flex {
    display: flex;
}

.display-flex > div {
    flex: 1;
}

.topbar-menu, .topbar-search {
    display: flex;
    align-items: center;
    padding: 10px 0px;
}

.topbar-search {
    justify-content: flex-end;
}

ul#top-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

div#topbar {
    background: #eee;
    margin-bottom: 15px;
}

ul#top-menu li a {
    color: #000;
    font-size: 14px;
    padding: 10px;
}

ul#top-menu li:first-child a {
    padding-left: 0;
}

/**
Branding.
**/
.site-branding {
    display: flex;
    justify-content: center;
}

/**
Main menu.
**/
nav#site-navigation {
    border-top: 1px solid #eee;
    border-bottom: 2px solid #eee;
}

.main-site-social {
    justify-content: flex-end;
}

nav#site-navigation a {
    color: #232323;
    padding: 15px;
    display: flex;
    align-items: center;
}

ul#main-menu li a:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 0;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
}

ul#main-menu li a {
    position: relative;
}

ul#main-menu li a:hover:after {
    width: 100%;
}

.main-site-social a svg path {
    fill: #232323;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
}

.main-site-social a:hover svg path {
    fill: #ffffff;
}

.main-site-social a:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0%;
    top: 0;
    left: 0;
    z-index: -1;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
}

.main-site-social a.social-icon-parler:after {
    background: #c63240;
}

.main-site-social a.social-icon-twitter:after {
    background: #1da1f2;
}

.main-site-social a.social-icon-facebook:after {
    background: #3b5998;
}

.main-site-social a.social-icon-email:after {
    background: #262626;
}

.main-site-social a:hover:after {
    height: 100%;
}

nav#site-navigation a {
    position: relative;
}

/**
Recent posts.
**/
div#recent-posts {
    margin-top: 5px;
    margin-bottom: 30px;
}

.recent-post-single-text {
    position: absolute;
    bottom: 10px;
    z-index: 1;
    padding: 30px;
    color: #fff;
}

.recent-post-single {
    position: relative;
}

.recent-post-single-image img {
    display: block;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
}

.recent-post-single a:hover .recent-post-single-image img, .recent-post-single a:hover .recent-post-single-image:after {
    transform: scale(1.02);
    z-index: 2;
    position: relative;
}

.recent-post-single a:hover .recent-post-single-text {
    z-index: 3;
}

.recent-post-single a:hover .recent-post-single-image:after {
    z-index: 3;
    position: absolute;
}

.recent-post-single-text h2 {
    margin-bottom: 0;
}

.recent-post-single-image:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0,0,0);
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(255,255,255,0) 80%);
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
}

.recent-post-single {
    min-height: 400px;
}

.recent-post-single-image {
    height: 100%;
}

.recent-post-single-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/**
Post grid.
**/
div#post-grid {
    display: grid;
    grid: auto-flow dense / 1fr 1fr 1fr;
    grid-gap: 30px;
    padding: 0px;
}

.post-grid-image img {
    display: block;
    width: 100%;
}

.post-grid-title h4 {
    margin: 15px 0;
}

.post-grid-meta {
    font-size: 12px;
    display: flex;
    text-transform: uppercase;
    margin-bottom: 15px;
    align-items: center;
}

.post-grid-meta > div {
    margin-right: 10px;
}

.post-grid-author a, .post-grid-categories a {
    color: #232323 !important;
    font-weight: bold;
    text-transform: uppercase;
}

.post-grid-author {
    display: flex;
    align-items: center;
}

.post-grid-author-image {
    max-width: 50px;
    width: 50px;
    margin-right: 15px;
}

.post-grid-author-image img {
    display: block;
    border-radius: 100%;
    border: 2px solid #e8e8e8;
}

.post header.entry-header {
    text-align: center;
}

.post-grid-categories, .post-grid-meta, .sharenow-buttons {
    justify-content: center;
}

.entry-content {
    max-width: 85%;
    margin: 0 auto;
}

.post-grid-subtitle {
    font-style: italic;
    opacity: 0.6;
    font-size: 18px;
}

.twitter-tweet {
    margin: 0 auto;
}

.diverse-subscribe-inner {
    display: flex;
    align-items: center;
    padding: 30px;
}

.diverse-subscribe {
    margin: 0 0 30px;
    background: #eeeeee;
}

.diverse-subscribe-logo {
    max-width: 250px;
}

.diverse-subscribe-inner > div {
    flex: 1;
}

.diverse-subscribe-content p {
    margin: 0 0 10px 0;
}

.diverse-subscribe-form .ifklicked-subscribe {
    display: flex;
}

.diverse-subscribe-form .ifklicked-subscribe > input, .diverse-subscribe-form .ifklicked-subscribe > button {
    flex: 1;
}

.diverse-subscribe-form .ifklicked-subscribe > button {
    color: #fff;
    max-width: 150px;
    border-radius: 0;
    border: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
}

.diverse-subscribe-form .ifklicked-subscribe > button:hover {
    background: #232323;
}

.diverse-subscribe-form .ifklicked-subscribe > input {
    border-radius: 0;
    padding: 8px;
}

/**
Archive.
**/
.post-grid-archive-single {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.post-grid-archive-single h4 {
    font-size: 22px;
}

.post-grid-readmore a {
    color: #fff !important;
    display: inline-block;
    padding: 4px 30px;
}

.post-grid-readmore a:hover {
    background: rgb(255 255 255 / 0%);
    color: #232323 !important;
}

.post-grid-readmore {
    display: flex;
    justify-content: flex-end;
    padding: 30px 0;
}

div#diverse-pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.nav-links {
    display: flex;
}

.nav-links > div {
    flex: 1;
}

.nav-previous {
    display: flex;
    justify-content: flex-end;
}

.nav-next {
    display: flex;
    justify-content: flex-start;
}

div#pagination {
    margin-top: 60px;
}

.nav-previous a, .nav-next a {
    text-transform: capitalize;
    font-size: 18px;
    color: #232323 !important;
}

.nav-previous a:after {
    content: "\f105";
    font-family: 'FontAwesome';
    border-radius: 100%;
    border: 1px solid #232323;
    display: inline-block;
    width: 30px;
    text-align: center;
    margin-left: 10px;
    color: #232323
}

.nav-next a:before {
    content: "\f104";
    font-family: 'FontAwesome';
    border-radius: 100%;
    border: 1px solid #232323;
    display: inline-block;
    width: 30px;
    text-align: center;
    margin-right: 10px;
    color: #232323
}

/**
Article.
**/
.article-grid {
    display: flex;
    grid-template-columns: auto 300px;
    grid-gap: 30px;
    padding: 0px;
}

.entry-image img {
    width: 100%;
}

.article-grid .entry-content {
    font-size: 18px;
}

.article-single {
    max-width: calc(100% - 330px);
}

span.nav-subtitle {
    font-weight: bold;
}

nav.navigation.post-navigation .nav-links {
    background: #eee;
    padding: 30px;
}

.post-grid-categories > div {
    flex: 0;
}

.post-grid-categories > div, .post-grid-categories > a {
    margin-right: 10px;
}

.category-separator {
    font-size: 8px;
}

.post-grid-categories > a {
    font-size: 12px;
    color: #232323;
}

.post-grid-categories {
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

h1.entry-title {
    margin: 10px 0;
    line-height: 1.2;
}

div#authorbox {
    border: 2px solid #eee;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

div#authorbox > div {
    flex: 1;
}

.authorbox-image {
    max-width: 96px;
    margin-right: 30px;
}

.authorbox-info h4 {
    margin: 0 0 15px 0;
}

.authorbox-bio {
    font-size: 14px;
    line-height: 22px;
}

.authorbox-socials {
    display: flex;
    margin-top: 15px;
}

a.user-social {
    display: flex;
    padding: 10px;
    margin-right: 10px;
}

.user-social-parler {
    background: #c63240;
}

.user-social-twitter {
    background: #1da1f2;
}

.user-social-facebook {
    background: #3b5998;
}

.entry-content p {
    font-weight: normal !important;
}
.entry-content a, .entry-content a:visited {
    font-weight: bold;
    color:#0000ff !important;
}
.entry-content a:hover {
    font-weight: bold !important;
    color:#404040 !important;
}

.entry-content p, .entry-content p span {
    font-size: 18px !important;
}

.entry-content p strong {
    font-weight: 800;
}

.diverse-prevnext-image {
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    height: 100%;
    width: 100%;
}

.diverse-prevnext-post {
    position: relative;
    display: flex;
    overflow: hidden;
}

div#diverse-prevnext-posts {
    display: flex;
    margin: 0 0 30px;
}

div#diverse-prevnext-posts > div {
    flex: 1;
    min-height: 200px;
    background: rgb(0 0 0 / 0.5);
}

.diverse-prevnext-icon {
    font-size: 40px;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(255 255 255 / 0.5);
}

.diverse-prevnext-title h4 {
    margin: 0;
    color: #fff;
}

.diverse-prevnext-title {
    padding: 30px;
    display: flex;
    align-items: center;
}

.diverse-prevnext-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.diverse-prevnext-image a {
    display: block;
    height: 100%;
}

.diverse-previous-title {
    text-align: right;
}

/**
Sidebar.
**/
#secondary h2.widget-title {
    font-size: 18px;
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding: 12px 0 6px;
}

.widget_recent_entries ul {
    list-style: none;
    padding: 0;
}

.widget_recent_entries ul li a {
    display: block;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.sidebar-recent {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    position: relative;
}

.sidebar-recent-image {
    max-width: 65px;
    min-width: 65px;
    width: 100%;
    margin-right: 15px;
}

.sidebar-recent-content h4 {
    margin: 0;
    color: #232323;
    line-height: 1.3;
}

.sidebar-recent:after {
    content: "";
    width: 100%;
    height: 0px;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
}

.sidebar-recent:hover:after {
    height: 4px;
}

/**
Search form.
**/
span#trigger-search {
    cursor: pointer;
}

div#search-overlay {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgb(255 255 255 / 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
}

div#search-overlay input.search-field {
    border: none;
    border-bottom: 2px solid #232323;
    border-radius: 0;
    background: none;
    font-size: 24px;
    max-width: 100%;
    width: 100%;
    outline: none !important;
    padding: 10px;
}

.search-inner {
    max-width: 1260px;
    width: 100%;
    padding: 30px;
}

form.search-form > label, form.search-form > input {
    flex: 1;
}

input.search-submit {
    max-width: 100px;
}

form.search-form {
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
}

input.search-submit {
    border-radius: 0;
    border: 2px solid #232323;
    background: #232323;
    color: #fff;
    cursor: pointer;
    padding: 10px 25px;
}

input.search-submit:hover {
    background: rgb(255 255 255 / 0%);
    border-color: #232323;
    color: #232323;
}

span#search-close {
    display: block;
    width: 100%;
    text-align: right;
    cursor: pointer;
}

span#search-close i {
    font-size: 24px;
    padding: 0 0 30px;
}

span#search-close:hover i {
    color: red;
}

/**
Footer.
**/
.site-widgets {
    padding: 60px 0;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    max-width: 90%;
}

.footer-widgets {
    padding-right: 30px;
}

.footer-widgets ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widgets h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
}

.footer-widgets ul li a {
    font-size: 14px;
}

.footer-widgets ul li a:hover {
    opacity: 0.6;
}

.site-info {
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
    padding: 30px 0;
}

/**
Media queries.
**/
@media screen and (max-width: 991px) {

    button.menu-toggle {
        outline: none !important;
        background: #eee;
        border: none;
        border-radius: 0;
        padding: 15px 25px;
        cursor: pointer;
    }

    .main-site-nav {
        display: none;
    }

    button.menu-toggle {
        display: block;
    }

    button.menu-toggle.active {
        background: #262626;
        color: #ffff;
    }

    .main-site-nav.active {
        position: absolute;
        top: 55px;
        z-index: 10;
    }

    .main-site-nav.active, ul#main-menu {
        display: block;
        width: 100%;
        background: #fff;
        border-top: 2px solid #232323;
    }

    nav#site-navigation {
        position: relative;
    }

    ul#main-menu li a {
        border-bottom: 1px solid #eee;
    }

    nav#site-navigation {
        flex-direction: row-reverse;
    }

    div#recent-posts {
        flex-wrap: wrap;
    }

    div#recent-posts > div {
        flex: 1 50%;
    }

    .recent-post-single {
        max-height: 300px;
    }

    .recent-post-single-text h2 {
        font-size: 24px;
    }

    div#post-grid {
        grid: auto-flow dense / 1fr 1fr;
    }

    div#post-grid :first-child {
        grid-column: 1 / -1
    }

    .site-widgets {
        flex-wrap: wrap;
    }

    .site-widgets > div {
        flex: 1 50%;
    }

    .article-single {
        max-width: 100%;
    }

    .article-grid {
        flex-direction: column;
    }

}

@media screen and (max-width: 900px) {

    .article-grid {
        grid-template-columns: 100%;
    }

}

@media screen and (max-width: 767px) {

    div#recent-posts > div {
        flex: 1 100%;
    }

    .recent-post-single {
        max-height: 400px;
        min-height: auto;
    }

    .recent-post-single-text h2 {
        font-size: 18px;
    }

    div#post-grid {
        grid: auto-flow dense / 1fr;
    }

    .post-grid-excerpt {
        font-size: 14px;
    }

    .site-widgets > div {
        flex: 1 100%;
    }

    div#diverse-prevnext-posts {
        flex-direction: column;
    }

}

@media screen and (max-width: 600px) {

    form.search-form {
        flex-direction: column;
    }

    input.search-submit {
        max-width: 100%;
        margin-top: 15px;
    }

    div#authorbox {
        flex-direction: column;
    }

    .diverse-subscribe-inner {
        flex-direction: column;
    }

}

@media screen and (max-width:400px) {

    .diverse-subscribe-inner {
        flex-direction: column;
    }

    .diverse-subscribe-form .ifklicked-subscribe {
        flex-direction: column;
    }

    .diverse-subscribe-form .ifklicked-subscribe > button {
        max-width: 100%;
        margin: 10px 0 0 0;
        padding: 12px;
    }

}
