/*
    Theme Name: myTheme
    Theme URI: https://www.hamiltrowebsitedesign.com
    Description: Simon Josephs THEME
    Version: 1.
    Author: hamiltro
*/

/* Breakpoints: 600 - 768/769 - 992 - 1200 w side-pad 4% */

/* HTML / FONTS
------------------------------------------------------------------------------------*/
html, body	{
	width: 100%;
}
html {
  font-size: 30px;
}
@media (max-width: 2560px) {
  html { font-size: 24px;}
}

@media (max-width: 2048px) {
  html { font-size: 17px;}
}

@media (max-width: 900px) {
  html { font-size: 15px; }
}
@media (max-width: 400px) {
  html { font-size: 13px; }
}
/* From here on, use rems (or % or vh) for divs and ems for font-sizes within divs) */

html .clamp {font-size: 16px;}

.slick-initialized .slick-slide {
	 text-align: center;
}
/* PALETTE / VARIABLES
*****************************************/
:root {
	--color: #666;
	--color-a: #18345e;;
	--color-a-button: BLACK;
	--color-a-button-background: WHITE;
	--color-a-button-border: BLACK;
	--color-a-button-hover: WHITE;
	--color-a-button-background-hover: BLACK; 
	--color-a-button-border-hover: BLACK;
	--color-a-hover: #3271ce; /*BLUE*/
	--color-accent1: #3271ce; /*BLUE*/
	--color-accent2: #18345e; /*dark blue */
	--color-background: WHITE;
	--color-banner-background:#3271ce; /*BLUE*/
	--color-border: #999;
	--color-border-subtle: #eee;
	--color-currentPageLink: BLACK;
	--color-editLink: #000000;
	--color-footer: #FFF;
	--color-footer-a: #DDD;
	--color-footer-a-hover:#FFF;
	--color-footer-background: #18345e; /*dark blue */
	--color-footer-border: #888;
	--color-footer-credit: #BBB;
	--color-footer-credit-a:#DDD;
	--color-footer-credit-a-hover:#FFF;
	--color-form-input-border: TRANSPARENT;
	--color-form-button-background: TRANSPARENT;
	--color-form-button-text: TRANSPARENT;
	--color-form-button-bg-hover: TRANSPARENT;
	--color-hero-span-line1: grey;
	--color-hero-span-line2: #3271ce; /*BLUE*/
	--color-mainNav-text-link: #3271ce; /*BLUE*/
	--color-mainNav-text-link-hover: #111;
	--color-mob-menu-li-background-color:rgba(0,0,0,.7);
	--color-mob-menu-li-current-background-color:rgba(0,0,0,1);
	--color-mob-menu-li-border: TRANSPARENT;
	--color-navbar-wrapper-background: TRANSPARENT;
	--color-outline: #DDD; /* tabbing */
	--color-overBanner: #FFFFFF;
	--color-pageRowHeader: BLACK;
	--color-pageTitle: BLACK; 
	--color-readMore-a: #666666; - in case it needs to be different from other buttons
	--color-readMore-a-background: #DBE9F3;
	--color-readMore-a-border: #DBE9F3;
	--color-readMore-a-hover: #616161!important;
	--color-readMore-a-hover-background: #CDDBE5;
	--color-readMore-a-hover-border: #CDDBE5;
	--color-row-border: #EEE;
	--color-siteSlogan: #666;
	--color-siteTitle: #18345e; 
	--color-siteTitle-hover: #3271ce; /*BLUE*/
	--color-siteTitle-shadow-hover: TRANSPARENT;
	--color-icon-style: #744b37;
	--color-icon-style-hover: rgba(116,56,27, 1.0); /* #74381b */
	--color-sub-menu-li-background: rgba(238,238,238,0.98);
	--color-sub-menu-li-background-hover: rgba(243,243,243,0.98);
	--color-sub-menu-li-border: rgba(209, 209,209,0.25);
	--color-wpcf7-sent: GREY; /* GREY */

	--font-body: 'Open Sans', sans-serif; 
	--font-nav:   'Barlow Condensed','Open Sans', sans-serif;
	--font-quote: 'Times New Roman', 'Playfair Display', Baskerville, serif;
	--font-readMore:  'Open Sans', sans-serif;
	--font-siteTitle:  'Open Sans', sans-serif;
	--font-siteSubTitle: 'Open Sans', sans-serif;
}




/* SCREENSIZE TESTER (for: template-parts/screensize.php; change breakpoints as needed)
*****************************************/
p.screensize {display: none;} /* BLOCK FOR TESTING; NONE FOR LIVE */
p.screensize	{font-size: .5em; padding: 4px 10px;margin:0;max-width: 100%;text-align: right; background-color: #fff;}
@media (max-width: 768px) {p.screensize	{color: red;}}
@media (max-width: 992px) {p.screensize	{color: orange;}}
@media (min-width: 993px) {p.screensize	{color: green;}}


/* BREAKPOINTS: 600 - 768/769 - 991/992 - 1200 w side-pad 4%
****************************************/

@media (min-width:769px) {
	.flexContainer {flex-direction: row;}
	.mobileOnly {display:none;}
	.desktop-only {display:block;}
	.mobile-only {display:none;}
	.desktopOnly {display:block;}
	.flex-col-12 {width: 100%;padding: 0 1%;}
	.flex-col-11 {width: 91.7%;padding: 0 1%;}
	.flex-col-10 {width: 83.3%;padding: 0 1%;}
	.flex-col-9 {width: 75%;padding: 0 1%;}
	.flex-col-8 {width: 66.7%;padding: 0 1%;}	
	.flex-col-7 {width: 58.3%;padding: 0 1%;}
	.flex-col-6 {width: 50%;padding: 0 1%;}
	.flex-col-5 {width: 41.7%;padding: 0 1%;}
	.flex-col-4 {width: 33.3%;padding: 0 1%;}
	.flex-col-3 {width: 25%;padding: 0 1%;}
	.flex-col-2 {width: 16.7%;padding: 0 1%;}
	.flex-col-1 {width: 8.3%;padding: 0 1%;}
	
	.thumb.flex-col-3,
	.thumb.flex-col-4	{padding-left: 0;}
	.excerpt.flex-col-8,
	.excerpt.flex-col-9	{padding-right: 0;}
}

/* LAYOUT (site specific)
***********************************************/
section.subpageBannerImage .sectionInner	{
	padding: 0;
}

section.footer {min-height: 120px;}
section.footer .sectionInner { padding: 3rem 4% 1rem 4%; }

.mainContent	{min-height: calc(100% - 80px);}

.row.nothingHere	{ /*404*/
	width: 700px;
	max-width: 100%;
	margin: 10% auto 0;
	text-align: center;
}

.one-col, .two-col,.row	{
	margin: 0 auto;
	width: 65rem;
	max-width: 100%;
}
.two-col, .row {width: 70rem;}

.row	{
	margin: 0 auto 6vh;
	padding-bottom: 6vh;
	border-bottom: 1px solid var(--color-row-border);
}

.row:last-child	{
	border-bottom: 1px solid transparent;
	padding-bottom: 1vh;
}

blockquote {
	width: 90%;
	max-width: 52em;
	/*border-left: 1px solid var(--color-accent1);
	border-left: 2px solid #8a9cb6;
	padding: 0 0 1px 20px;*/
	padding: 50px 0 0;
	margin: 0 auto 6vh;
	color: #555;
	font-family: var(--font-quote);
}

img.smaller90	{
	width: 90%;
	height: auto;
	max-width: 52em;
}
div.center	{
	text-align: center;
}
.wp-block-quote	{
	max-width: 52em;
}

blockquote p	{
	/*background-color: rgba(255,238,0,0.2);*/
		font-size: 1.1em !important;
		max-width: 40em;
}

cite	{
	font-size: .9em;
	width: 90%;
	max-width: 52em;
	margin: 0 auto;	
	text-align: right;
	color: #666;
	font-family: var(--font-body);
	font-style: normal;
}

.prevNext	{
	margin-top: 50px;
}

.left, .right	{
	width: 50%;
}

.right	{
	text-align: right;
}
/* NAVBAR / Wrapper
------------------------------------------------------ */
.navbar-wrapper { 
	min-height: 110px;
	padding: .5vh 0 3vh 0;  
}

@media (min-width: 601px)	{
	.navbar-wrapper { 
		min-height: 100px;
	}
}
@media (min-width: 992px)	{
	.navbar-wrapper { 
		min-height: 150px;
		padding: .5vh 0 3vh 0;  
	}
}

.navbar-wrapper .container	{
	max-width: 92%;
}

/*
@media (min-width: 1900px) {
	.navbar-wrapper .container	{ width: 65vw; }
}
*/

#navbar{}
.navbar{}
.navbar.flexContainer {}


/* NAVBAR / Site Title 
------------------------------------------------------ */
.siteTitle.flexItem {
	width: 85%;
}
	
@media (min-width: 992px)	{
	/*.siteTitle.flexItem { width: 38%; }
	.mainNavigation.flexItem { width: 62%;}*/
	.siteTitle.flexItem { width: 100%; }
	.mainNavigation.flexItem { width: 100%;}
	.mainNavigation {padding-top: 2vh;}
	
}

.siteTitle .mainSiteTitle	{
	font-size: 2.2em;
	font-weight: bold;
	line-height: 1.5em;
}

.siteTitle h2, .siteTitle h3	{
	margin: 0 0;
		line-height: 1.2rem;
}
  
.siteTitle .siteSlogan{
	color: var(--color-siteSlogan);
	font-size: 1.2rem;
	text-transform: uppercase;

}
.flex_cent{
	justify-content: center;
    align-items: center;
}
.cent_col{
	text-align: center;
}


/* NAVBAR / Main Navigation
------------------------------------------------------ */
ul#menu-main-navigation	{
	font-size: .9em;
}	

@media (max-width: 991px)	{
	ul#menu-main-navigation	{
		background-color:rgba(0,0,0,0.6);
		font-size: 1em;
	}
}

.mainNavigation {}
.mainNavigation.flexItem {}

.navbar-icon {}
.navbar-toggle {}
span.icon-bar {}


.navbar-collapse {}
.menu-main-navigation-container ul.nav.navbar-nav>li.menu-item>a{
    font-size: 1.1em;
    letter-spacing: 0.09em;
    padding: 0 10px 0 0.4em;
    text-transform: uppercase;
}

.sub-menu {
	font-size: 1em;	
	text-transform: uppercase;
	width: 180px;
}

.navbar-nav > li {
	padding: 0 0 0 1rem;
}

.navbar-nav > li:first-child { padding: 0 0 0 0rem;}

@media (max-width: 992px)	{
	.sub-menu	{width: 100%;}
	.navbar-nav > li:first-child { padding: 20px 0rem;}
}

/* HTML / headers in general
------------------------------------------------------ */
h1,h2,h3,h4,h5,h6,p,figure,.wp-block-image,.wp-block-columns{
	line-height: 1.4em;
	max-width: 52rem;
}
.wp-block-columns {
	margin: 4vh auto;
}

.wp-block-image.size-full { /* to allow wider images than text in main body */
	max-width: 100%;
}

.siteTitle h2,.siteTitle h3	{max-width: 100%;}
/*.single-books h2 { max-width: 52rem;}*/

h2.catTitle	{
	font-size: 1.6em;
	color: var(--color-siteTitle);
	font-weight: bold;
}

.right {
	float:right;
}
.noImage p,
p.readMore	{
	max-width: 100%;
}

p.readMore	{
	padding-right: 10px;
	text-align: right;
}

.pageTitle,
.sectionHeader,
.sectionTitle h2,
.rowHeader {
	font-size: 2.2em;
	font-weight: normal;
	padding: 0 0 1.5em;	
	font-family: var(--font-siteTitle);
	text-transform: none;
}

.pageTitle	{
	margin: 0 auto;
	padding-top: 1.2em;
}

.sectionInner,
.sectionInner .sectionHeader	{
	padding-top: 0;
}

.postTitle	{
	font-size: 1.8em;
	font-weight: normal;
	margin-top: -.3em;
	max-width: 100%;
}


.pageTitle,
.sectionHeader {text-align: center; }

a.button     {
	padding: 8px 20px;
	border-radius: 2px;
}
  
.wp-block-image figcaption 	{
	font-size: .8em;
	margin-top: .1em !important;
	text-align: center;
}

.mainContent ul,
.mainContent ol {
	/*margin: 1.8rem auto;
	max-width: 44rem;
	padding-left: 1.4rem;
	width: 90%;*/
	line-height: 1.4em;
	max-width: 52rem;
	margin: 0 auto;
}

.mainContent ul li,
.mainContent ol li {
	margin-bottom: 1.5rem;
}

.mainContent p a:not(.button,.film,.book,.foundation,.photography,.article)	{
	text-decoration: underline;
}

p.entry-date	{
	font-size: .9em;
	margin-top: -16px;	
}

h3.catName,
h3	{
	font-weight: normal;
	font-size:1.6em;
	margin: 3vw auto 1vw;
	color: BLACK;
}

.readMore p {
    text-align: right;
    width: 100%;
    max-width: 100%;
    padding-right: 4vw;
    padding-top: 30px;
	margin-bottom: 10vh;
}
p.editLink	{
	text-align: right;
}

p.wp-caption-text	{
	font-size: .7em;
	margin: -24px 0 30px;
	font-weight: normal !important;
}

.flush-top	{
	margin-top: 0;
}

/* full cover background images
------------------------------------------------------------------------------------*/
	
section.bannerImage {
	width: 100%;
    height: 50vh;
    background-image: url('');
    background-repeat: no-repeat;
    background-position: top center;
    -o-background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    overflow-x: hidden;
}

.post-type-archive-books div.book img{
	height: 556px;
}

.subpageBannerImage	{
	
	background: linear-gradient(to top, rgba(32,70,128,0.6), #FFF);
	background: linear-gradient(to bottom, rgba(32,70,128,0.6), rgba(24,52,95,0.02));
	background: linear-gradient(to bottom, rgba(32,70,128,0.6), #FFF);
	/*border-bottom: 0.5px solid #a2b9dd;*/
	margin-bottom: 50px;
}
.slick-next{
	right: -50px;
}
.slick-prev{
	left: -50px;
}
/* FOOTER
------------------------------------------------------------------------------------*/

section.footer	{
	line-height: 1.2rem;
	padding: 30px 15px 0px;
	text-align: center;
}

@media (max-width: 1560px){
	.post-type-archive-books div.book img{
		height: 480px;
	}
}
@media (max-width: 1366px){
	.post-type-archive-books div.book img{
		height: 450px;
	}
}
@media (max-width: 1280px){
	.post-type-archive-books div.book img{
		height: 428px;
	}
}
@media (max-width: 1200px){
	.post-type-archive-books div.book img{
		height: 400px;
	}
}
@media (max-width: 1112px){
	.post-type-archive-books div.book img{
		height: 370px;
	}
}
@media (max-width: 1040px){
	.post-type-archive-books div.book img{
		height: 346px;
	}
}
@media (max-width: 995px){
	.post-type-archive-books div.book img{
		height: 330px;
	}
}
@media (max-width: 959px){
	.post-type-archive-books div.book img{
		height: auto;
		max-height: none;
	}
}
@media (max-width: 600px){
	.footer .flexContainer {flex-direction: column;}
	.footer .flexContainer .flexItem1 {order: 1; text-align: center;  width: 98%; }
	.footer .flexContainer .flexItem2 {order: 3; text-align: center; width: 98%; }
	.footer .flexContainer .flexItem3 {order: 2; text-align: center; width: 98%; }
}

p.copyright,
p.credit	{
	text-align: center;
	font-size: .8rem;
	margin-bottom: 20px;
}

p.credit a:hover	{
	text-shadow: .1px .1px  #fff;
	text-decoration: underline;
}

/*---------- */


.flexWrap{
	flex-wrap: wrap;
}

.bot_to_top{
	display: none;
	background-color: #333;
    border: 1px solid #fff;
    padding: 15px;
    border-radius: 50%;
    color: #fff;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
	cursor: pointer;
}


.page-template-page-single-php .container{
	max-width: 52rem;
}
@media (max-width: 768px)	{
	.page-child .flex-direction-nav{
		display: flex;
	}
	.page-child .flex-nav-prev, .page-child .flex-nav-next{
		width: 50%;
	}
	.page-child .flex-prev{
		float: right;
		margin-right: 15px;
	}
	.page-child .flex-next{
		float: left;
		margin-left: 15px;
	}
	.page-child .flex-direction-nav a{
		position: initial;
		width: 120px;
	}
	.page-child .flex-direction-nav a svg{
		display: none;
	}
	.page-child .flex-direction-nav a.flex-prev:before{
		content: '« Previous Image';
	}
	.page-child .flex-direction-nav a.flex-next:before{
		content: 'Next Image »';
	}
}