/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 1em;
}

h1 {
    font-size: 36px;
    font-weight: bolder;
}

h2 {
    font-size: 29px;
    font-weight: 700;
}

h3 {
    font-size: 24px;
    font-weight: 700;
}

p {
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 1.6em;
}

a {
    color: #337ab7;
    text-decoration: none;
    transition: all .2s ease;
}

a:hover {
    color: #245681;
    text-decoration: underline;
}

article {
    color: #333;
}

/**/

div:not(.wp-block-group__inner-container) ~ a.wp-block-latest-posts__post-title,
h2.entry-title a {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    color: #333;
    display: block;
    margin-bottom: 1em;
}

div:not(.wp-block-group__inner-container) ~ a.wp-block-latest-posts__post-title:hover,
h2.entry-title a:hover {
    text-decoration: none;
}

.inside-header {
    height: 70px;
    padding: 0;
}

.site-logo {
    width: 180px;
}

.single-post .entry-title {
    text-align: center;
}

.single-post .entry-content {
    margin-right: auto;
    margin-left: auto;
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
    max-width: 710px;
}

.inside-site-info.grid-container {
    display: block;
    padding: 0;
}

.main-navigation .main-nav ul li a {
    font-size: 16px;
    text-decoration: none;
    line-height: 70px;
}

.main-navigation .main-nav ul li:hover a {
    transition: all .3s;
    color: #1d7d5a !important;
    background: #f2f2f2;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: unset;
}

.main-navigation .main-nav ul li:not([class*="current-menu-"]) > a {
    font-size: 16px;
    /*padding: 14px 12px;*/
}

.main-navigation .main-nav ul ul li:not([class*="current-menu-"]):hover > a {
    background: #fff;
}

/*.wp-block-latest-posts__featured-image {*/
/*    height: 197px;*/
/*}*/

.wp-block-latest-posts.wp-block-latest-posts__list {
    margin-left: 0;
}

.wp-block-latest-posts__featured-image img,
.post-image img {
    width: 350px;
    max-height: 197px;
    object-fit: cover;
}

.wp-block-latest-posts.wp-block-latest-posts__list li > div:first-of-type {
    margin: 0 auto 60px;
}

.wp-block-latest-posts.wp-block-latest-posts__list li div a {
    width: 350px;
    /*max-width: 100%;*/
    /*position: relative;*/
    /*overflow: hidden;*/
    /*display: block;*/
    /*float: left;*/
    margin: 0 60px 0 0;
}

.wp-block-latest-posts__post-author {
    font-size: 18px;
}

.wp-block-latest-posts__post-date {
    color: #999;
    font-size: 18px;
}

article#hubpage h1 {
    text-align: center;
    padding-top: 1em;
}

.header-bg {
    position: relative;
    padding-bottom: 5px;
}

.header-bg:before {
    background: #dedede;
    background: -moz-linear-gradient(-45deg, #dedede 0, #fff 100%);
    background: -webkit-linear-gradient(-45deg, #dedede, #fff);
    background: linear-gradient(135deg, #dedede, #fff);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#dedede",endColorstr="#ffffff",GradientType=1);
    position: absolute;
    content: "";
    display: block;
    z-index: -1;
    width: 100%;
    height: calc(100% - 65px);
    top: 65px;
    bottom: 0;
    left: 0;
    right: 0;
}

/*.post-image {*/
/*    float: left;*/
/*    height: 380px;*/
/*    margin: 0 60px 0 0;*/
/*}*/

/**/

.copyright-bar {
    margin: 1rem 0;
    font-size: 16px;
    color: #777;
}

.wp-block-image figcaption, figcaption.wp-caption-text {
    padding: 8px 4px 5px;
    line-height: 1.6;
    color: #999;
    font-size: 16px;
}

/*@media (min-width: 768px) {*/
/*    #main-nav-wrap .nav-items .nav-item-container a.nav-item-wrap {*/
/*        padding: 8px 6px;*/
/*    }*/
/*}*/

@media (min-width: 1200px) {
    .header-bg:before {
        width: calc(100% + 150px);
        height: calc(100% - 65px);
        top: 65px;
        bottom: 0;
        left: -65px;
        right: 85px;
    }
    
    .wp-block-image .alignleft {
        margin: 20px 50px 20px -140px;
    }
    
    .wp-block-image .alignright {
        margin: 20px -140px 20px 50px;
    }
}

@media screen and (max-width: 768px) {
    .wp-block-latest-posts.wp-block-latest-posts__list li > div:first-of-type {
    	width: 100%;
    	margin-bottom: 0;
    }
    
    .wp-block-latest-posts.wp-block-latest-posts__list li {
        margin-bottom: 40px;
    }
    
    .wp-block-latest-posts.wp-block-latest-posts__list li div a,
    .wp-block-latest-posts.wp-block-latest-posts__list li div a img {
        width: 100%;
    }
    
    .wp-block-latest-posts.wp-block-latest-posts__list li div a {
        margin: 0;
    }
    
    .wp-block-latest-posts__featured-image img,
    .post-image img {
        max-height: 300px;
    }
    
    div:not(.wp-block-group__inner-container) ~ a.wp-block-latest-posts__post-title,
    h2.entry-title a {
        font-size: 19px;
    }
}