/*!
Theme Name: Aperture Portfolio Custom Child Theme
Theme URI: https://aperturewp.com/downloads/aperture/'
Author: Michael Peto
Author URI:https://aperturewp.com
Description: Child theme based on Aperture Portfolio theme.
Version: 1.0.8
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: aperture-portfolio-child
Template: aperture-portfolio
Tags: one-column, grid-layout, custom-background, custom-logo, custom-menu, featured-images, footer-widgets, threaded-comments, translation-ready, blog

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

aperture-portfolio is based on Underscores https://underscores.me/, (C) 2012-2017 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/**** FONT ****/
body {
	font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
}

/**** LOGO ****/
#masthead > div > a > .custom-logo {
    max-width: 200px;
}

#cssmenu a {
	font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
}

/**** NAVBAR *****/

.site-title {
    margin-top: 5px;
    margin-bottom: 0;
    
}

#primary {
	padding-top: 10vh;
	max-width: 75.5%;
}

#cssmenu > ul > li:hover {
	/*background-color:rgba(142, 142, 142, 0.2);*/
	background-color: #333;
}

#cssmenu > ul > li:hover > a {
	color: white !important;
}

#cssmenu > ul > li:hover > ul {
	background-color:inherit;
}

#cssmenu > ul > li:hover > ul > li {
	/*background-color: rgba(237, 237, 237, 1);*/
	background-color: #333;
}

#cssmenu ul li a:after {
	background-color: rgba(237, 237, 237, 0) !important;
}

#cssmenu ul li a:after {
	margin: 0;
}

#cssmenu ul li ul li a {
	color: white;
}


#cssmenu ul li ul li.active {
	background-color: #4a4a4a !important;
}

#cssmenu ul li ul li:hover {
    background-color: #4a4a4a !important;
}

#cssmenu ul li ul li.active > a,
#cssmenu ul li ul li:hover > a {
    color: white !important;
}

#toggle-nav {
	display: none !important;
	text-decoration: none;
	color: black;
	font-size: 40px;
}

@media handheld, only screen and (max-width: 767px) {
	div .site-branding {
		width: 80%;
		display: inline-block;
	}
	
	#toggle-nav {
		vertical-align: top;
		margin-top: 12px;
		margin-right: 4px;
		display: inline-block !important;
	}
	
	.main-navigation {
		margin: 0;
	}
	
	#cssmenu ul {
		padding-top: 0;
	}		
}

/*adjust menu on mobile */
@media handheld, only screen and (max-width: 767px) {
	#cssmenu ul li ul {
		padding: 0;
		border-top: 1px solid grey;
		border-bottom: 1px solid grey;
	}
	
	#cssmenu ul li ul li a {
		color: black;
		text-align: center;
		font-style: italic;
	}
	
	#cssmenu >ul > li.has-sub > a {
		padding-left: 42px;
	}
}

/**** FRONT PAGE SLIDER ****/
.n2-section-smartslider {
	margin-top:-1.15em;
}
@media handheld, only screen and (max-width: 767px) {
	/*adjust main page slider on mobile */
	div#n2-ss-2 .n2-ss-slider-1 {
		height: 40vh !important;
	}
	
	.n2-ss-slider [data-mode=fill] .n2-ss-slide-background-image {
		background-size: contain !important;	}
}

/**** TEXT LAYOUT ****/
.entry-content > .p1 {
	padding-bottom: 4em !important;
}

@media handheld, only screen and (max-width: 767px) {
	/* adjust text content alignment on mobile  */
	#primary {
		padding-top: 0;
		max-width: 100%;
	}
	
	#primary .grid {
		margin-left: 40px;	
	}
}

/**** NEWS PAGE ****/
.blog-post-entry > .listing-item {
	padding: 20px;
}

.blog-post-entry > .listing-item > .title {
	font-size: 26px;
	text-transform: uppercase;
	color: #333;
}

/**** REMOVE TITLE FROM PAGE TEMPLATE ****/
.type-page > .entry-header > .entry-title {
	display: none;
} 