/*
 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
*/

/* Open primary nav dropdown to left to avoid running off screen */

.main-navigation:not(.toggled) ul li:last-child ul {
    left: auto;
    right: 0;
}

.dropdown-hover .main-navigation:not(.toggled) ul li:last-child ul li:hover>ul {
    left: auto;
    right: 100%;
}

.main-navigation .main-nav ul li:last-child ul li.menu-item-has-children > a {
    padding-left: 0;
    padding-right: 20px;
}

.main-navigation ul li:last-child ul .menu-item-has-children .dropdown-menu-toggle {
    float: left;
    padding-left: 20px;
    padding-right: 15px;
}

.main-navigation .children .dropdown-menu-toggle:before, 
.main-navigation .sub-menu .dropdown-menu-toggle:before {
    content: "\f104";
}

/* End primary nav dropdown opening to left */

.main-navigation {
    border-bottom: 3px solid rgb(240, 97, 12);
}

.home .main-navigation {
    border-bottom: none;
}

.home .main-navigation.is_stuck {
    border-bottom: 3px solid rgb(240, 97, 12);
}

.main-navigation .inside-navigation:not(.grid-container) .navigation-logo {
	margin-right: auto;
}

.secondary-navigation {
    padding-top: 30px;
}

.main-navigation .main-nav ul li a,
.secondary-navigation .main-nav ul li a {
    letter-spacing: 0.5px;
}

.home-page-header .center {
    width: 740px;
    text-align: left;
    margin: 0 auto 2em;
    display: block;
    overflow: auto;
}

.home-page-header h1,
.inner-pages-header h1 {
	font-size: 48px;
    text-shadow: 0px 0px 4px rgba(0,0,0,0.7);
	/*font-weight: 700;*/
} 

.home-page-header h1 {
    padding-top: 50px;
}

.home-page-header img {
    margin: 0 40px 0 0;
}

body:not(.page-our-supporters) .gb-grid-wrapper .wp-block-image {
	margin-bottom: 20px !important;
}

.home-services .gb-grid-column:nth-child(even) .home-service .gb-grid-column:first-child,
.home-other .gb-grid-column:nth-child(even) .home-other-item .gb-grid-column:first-child {
	order: 1;
}

.excerpt-icon p {
	margin-bottom: 0;
}

.page-hero a {
    text-shadow: 0px 0px 4px rgba(0,0,0,0.7);
}

button.menu-toggle {
    text-align: right;
}

strong {
    font-weight: 600;
}

.large {
    font-size: 20px;
}

ol, ul {
    margin: 0 0 1.5em 2em;
}

.nobullet {
    margin-left: 0;
    list-style: none;
}

.site-content li,
.site-footer li {
    margin-bottom: 10px;
}

.button,
button, 
html input[type="button"], 
input[type="reset"], 
input[type="submit"] {
    border: 2px solid #f0610c;
	line-height: 1;
}

.home-page-header .button {
    border-color: #fff;
}

.button:hover,
button:hover, 
html input[type="button"]:hover, 
input[type="reset"]:hover, 
input[type="submit"]:hover {
	border-color: #f0610c;
}

.testimonial_rotator_wrap {
    margin: 0 10px 20px;
    padding: 0;
}

.testimonial_rotator.format-list .slide {
    margin: 0 0 40px;
}

/* News */

.separate-containers .inside-right-sidebar {
    margin-top: 60px;
}

a.wp-show-posts-read-more {
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
}

.site-main .post-navigation {
    margin-top: 1.5em;
    padding-top: 1.5em;
    border-top: 1px solid #ccc;
}

/* To ensure Home services grid items display contained grid at full width (for some reason Walk & Talk is not) */
.home-services .home-service {
	width: 100%;
}

.nav-previous,
.nav-next {
    width: 49%;
}

.nav-previous {
    float: left;
}

.nav-next {
    float: right;
    text-align: right;
}

/* Events */

.wp-show-posts-single.category-events .size-full {
    max-width: 300px;
}

/* All posts */

.wp-show-posts-posted-on .published:before,
.posted-on .published:before {
    content: "Published: ";
}

/* Sidebar */

.sidebar h2 {
    font-size: 20px;
}

/* Footer & footer widgets */

.site-footer nav li {
	padding: 0 10px;
}

.footer-widgets {
    padding-top: 40px;
    border-top: 1px solid #090909;
}

.footer-widget-2 {
    text-align: center;
}

.testimonial_rotator.template-longform .testimonial_rotator_quote {
    font-weight: 400;
}

.testimonial_rotator.template-longform hr.longform_hr {
    height: 1px;
    background-color: rgba(170,170,170,0.33);
}

.footer-widget-3 {
    text-align: right;
}

.footer-bar .widget_nav_menu > div > ul {
    font-size: 14px;
    text-transform: uppercase;
}

.footer-widgets .fa { 
    margin: 0 0 0 10px;
}

.generate-back-to-top, 
.generate-back-to-top:visited {
    border-radius: 50%;
    border-radius: 0;
}

.site-info {
    line-height: 2;
}

.site-info span {
    opacity: 0.6;
}

.site-info span:hover,
.site-info span:focus {
    opacity: 1;
}

/********************** MEDIA QUERIES **********************/

@media only screen and (max-width: 1024px) {
    
    .footer-widget-3 {
        text-align: center;
    }

    .footer-widgets .fa { 
        margin-left: 5px;
        margin-right: 5px;
    }
    
}

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

	/* Initiate mobile menu at 960px */
    
	.main-navigation .menu-toggle,
	.main-navigation .mobile-bar-items,
	.sidebar-nav-mobile:not(#sticky-placeholder) {
		display: block;
	}
    
    .main-navigation .menu-toggle {
        display: inline-block;
        width: auto;
    }

	.main-navigation ul,
    .secondary-navigation,
	.gen-sidebar-nav {
		display: none;
	}

	[class*="nav-float-"] .site-header .inside-header > * {
		float: none;
		clear: both;
	}
    
    /* End initiate mobile menu at 960px */
    
    .home-page-header .center {
    	width: 560px;
    }
    
    .home-page-header img {
        width: 160px;
    }
    
    .home-page-header h1 {
        font-size: 35px;
        font-weight: 400;
        padding-top: 40px;
    } 
    
}


@media only screen and (min-width: 769px) {
	
	/* 2 column lists */
	.twocol {
		column-count: 2;
  		column-gap: 40px;
  		-moz-column-count: 2;
  		-moz-column-gap: 40px;
  		-webkit-column-count: 2;
  		-webkit-column-gap: 40px;
	}
	
}


@media only screen and (max-width: 768px) {
    
    .home-page-header .center {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }

    .home-page-header img {
        width: 150px;
        height: auto;
        float: none;
        margin: 0 auto;
    }
    
    .home-page-header h1,
    .inner-pages-header h1 {
        font-size: 35px;
    } 

    .home-page-header h1 {
        padding-top: 20px;
    }
    
    .nobullet.top {
        margin-bottom: 0;
    }
    
    td {
        font-size: 14px;
    }
    
    /* Events */

    .wp-show-posts-single.category-events .size-full {
        max-width: 100%;
    }
    
    /* Footer widgets / footer */
    
    .footer-widget-3 {
        text-align: center;
    }

    .footer-widgets .fa { 
        margin: 0 5px;
    }
    
}


@media only screen and (max-width: 480px) {
	
	.gb-grid-wrapper:not(.gb-grid-wrapper.no480) .gb-grid-column {
		width: 100% !important;
	}
	
}