/*
Theme Name: Twenty Seventeen Child X2
Theme URI: http://www.x2labs.com/
Description: Twenty Seventeen X2 Child Theme
Author: Britton Scritchfield
Author URI: http://www.x2labs.com/
Template: twentyseventeen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: twentyseventeen-child
*/

/* Reset Start */
/* Fill Page */
html, body
{
	min-height: 100%;
	height: 100%;
}
#page
{
	min-height: 100%;
}
#page .site-content-contain, #content
{
	min-height: 100%;
	height: 100%;
}
/* Header items on same level */
.site-branding
{
	vertical-align: middle;
}
.navigation-top .wrap, .site-branding .wrap
{
	padding-left: 0;
	padding-right: 0;
}
a, span, h1, h2, h3, h4, #main .edit-link, #main .post-edit-link
{
	text-decoration: none !important;
	border: none !important;
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
}
#main .edit-link, #main .post-edit-link
{
	position: relative;
}
/* Force sticky navigation into position */
#page-header 
{
  margin-bottom: 0 !important;
}
/* Allows application of custom colors */
#content, #main, .panel-content, .page, #main .page
{
	background-color: transparent !important;
}
/* Reset End */



html, body
{
	font-family: 'Lato', sans-serif;
}


#page .site-content-contain
{
	
}

/* Logo */
.custom-logo-link, .custom-logo-link img
{
	float: left;
	vertical-align: middle;
	height: 53px;
}
.site-branding-text
{
	margin:0;
	padding:0;
	display: block !important;
	vertical-align: middle;
}
.site-title, .site-description
{
	font-variant: normal !important;
	text-transform: none !important;
	font-weight: normal !important;
	vertical-align: middle;
	margin:0;
	padding:0;
}

/* Header Title Description */
.site-title
{
	font-size: 23px;
	opacity: 0.2;
}
.site-description
{
	font-size: 17px;
	opacity: 1;
}

/* Force header image to full height */
#custom-header-media 
{
  height: 100vh;
  max-height: 100%;
  overflow: hidden;
  position: relative;
}

/* Content Width */
#primary #main .page .panel-content .wrap, #primary #main .page, #primary, site-main, #main .page, #content .content-area, article
{
	max-width: 100% !important;
	width: 100%;
}
#primary
{
	padding-top: 25px;
	padding-bottom: 10px;
}

/* Remove post page header and the gap */
.page .entry-header 
{
	display: none !important;
}
.page #content 
{
	padding-top: 13px !important;
}

/* Fill the content */
.size-auto, 
.size-full,
.size-large,
.size-medium,
.size-thumbnail {
	max-width: 100%;
	height: auto;
}

/* ToDo */
/* Narow the contact and center */
.twentyseventeen-front-page #primary #main .contact-form
{
	max-width: 40%;
	margin-left: auto;
	margin-right: auto;
}

.panel-image
{
	height: 500px;
}

footer, .colophon, .site-footer
{
	text-align: center;
}
footer p, #colophon p, .site-footer p
{
	padding-top: 10px;
	margin: 0;
	margin-bottom: 5px;
}
footer .additionalFooterText, #colophon .additionalFooterText, .site-footer .additionalFooterText
{
	padding: 0;
	margin: 0;
	margin-bottom: 15px;
}

/* Front Page Tile Widgets Start */
#x2-fptw
{
	display: flex;
	display: -webkit-flex; /* Safari 8 */
	flex-wrap: wrap;
	-webkit-flex-wrap: wrap;         /* Safari 8 */
	justify-content: center;
	-webkit-justify-content: center;
	text-align: center;
	vertical-align: top;
}
#x2-fptw ul, #x2-fptw ul li
{
	list-style-type: none;
}
#x2-fptw .fptw-widget
{
	margin: 10px;
	min-height: 300px;
	width: 300px;
}
#x2-fptw .fptw-widget, #x2-fptw .fptw-widget .wp-caption, #x2-fptw .fptw-widget figure, #x2-fptw .fptw-widget .wp-caption
{
	text-align: center !important;
	vertical-align: top;
}
#x2-fptw .fptw-widget figure, #x2-fptw .fptw-widget figure figcaption
{
	margin: 0;
	width: auto !important;
}
#x2-fptw .fptw-widget figure img  
{
	padding: 0;
	display: block;
    margin: auto;
}
/* Front Page Tile Widgets End */

/* Footer Widgets Start */
#x2-ftrw 
{
	margin-top: 20px;
}
#x2-ftrw .ftrw-widget
{
	width: 100%;
	text-align: center;
}

/* Footer Widgets End */
.menu-toggle
{
	float: left;
}
#x2design_credits
{
	position: absolute;
	display: block;
	right: 20px;
	margin-bottom: 20px;
	font-family: Lucida Sans Unicode,Lucida Grande,sans-serif;
	font-size: 100%;
	font-weight: 900;
	text-decoration: underline;
}
@media screen and (max-device-width: 360px), (max-device-width: 375px), (max-device-width: 414px)
{
	#masthead .site-branding
	{
		margin-left: 10px;
		margin-right: 10px;
	}
	#masthead .site-branding-text
	{
		width: 300px;
	}
	#x2design_credits
	{
		right: initial;
		clear: both;
		margin: 0;
		padding: 0;
		margin-top: 30px;
		margin-right: auto;
		margin-left: auto;
		position: relative;
	}
}

@media screen and (max-device-width: 480px) 
{
	#page, #page .site-content-contain, #content
	{
		height: auto;
		height: auto;
	}
	
	/* Float Nav Hamburger to Left */
	#site-navigation .menu-toggle, .site-branding .wrap 
	{
		margin: 0;
		/*width: 100%;*/		
	}
	header, #masthead
	{
		/*min-width: 1053px;*/
	}
	
	.panel-image
	{
		display: none;
	}
	
	.has-header-image.twentyseventeen-front-page .site-branding,
	.has-header-video.twentyseventeen-front-page .site-branding,
	.has-header-image.home.blog .site-branding,
	.has-header-video.home.blog .site-branding 
	{
		bottom: 0;
		display: block;
		left: 0;
		height: auto;
		padding-top: 0;
		position: absolute;
		width: 100%;
	}
	
	/* Adjust width of forms for mobile */
	.twentyseventeen-front-page #primary #main .contact-form
	{
		width: 100%;
		max-width: 100%;
		margin-left: auto;
		margin-right: auto;
	}
	#primary #main .page .panel-content .wrap, #content .wrap
	{
		width: 100% !important;
		max-width: 100% !important;
	}
	/* #content .wrap */
	
	/* Adjust width of front page tile widgets */
	#x2-fptw .fptw-widget
	{
		width: 90%;
	}
	
	footer, #colophon, .site-footer
	{
		font-size: 14px;
		font-size: 0.875rem;
		line-height: 1.6;
		margin-top: 0 !important;
		vertical-align: middle;
	}
	#x2design_credits
	{
		right: initial;
		clear: both;
		margin: 0;
		padding: 0;
		margin-top: 30px;
		margin-right: auto;
		margin-left: auto;
		position: relative;
	}
}
@media screen and (min-width: 30em)
{
	.panel-content .wrap
	{
		padding-top: 25px;
		padding-bottom: 10px;
		margin-bottom: 10px;
	}
}

/* Error Page */
#main .error-404, #main .error-404 .page-content, #main .error-404 .page-header
{
	float: none !important;
	width: 100% !important;
	position: relative !important;
	display: block !important;
}
body.error404 .site-content-contain, body.error404 #content, body.error404 #page
{
	background: transparent;
}
body.error404 #page
{
/*
	background-image: url("./images/error.png");
	background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center; 
	background-size: cover;
*/
}
.error404 .page-content p, .error404 .page-header h1
{
	background-color: #333;
	padding: 2px;
	border: 1px solid #bbb;
    -webkit-border-radius: 3px;
    border-radius: 3px;
}

/* Anchor Links on Same Page Fix */
.anchor
{
	display:block;
	height:93px; /* this is the height of your header */
	margin-top:-93px; /* this is again negative value of the height of your header */
	visibility:hidden;
}
@media screen and (min-width: 48em) 
{
  .background-fixed .panel-image
   {
       background-attachment: fixed;
   }
}
@media screen and (max-device-width: 480px)
{
   .panel-image 
   {
    display: block !important; 
    width: 100%;
    max-height: 200px !important;
    background-size: cover;
    background-size: contain;
    background-position: center center;
    background-attachment: fixed;
    overflow-x: hidden;
    background-repeat: no-repeat;
   }
}
