/* 
Theme Name: hayobethlehem2020
Theme URI: https://hayobethlehem.nl/
Author: Hayo Bethlehem
Requires at least: WordPress 6
Version: 2.6
Text Domain: hayobethlehem2020
*/
@font-face {
	font-family: 'HBGaramond';
	src: url('assets/font/EBGaramondRegular.woff2') format('woff2');
	unicode-range: U+0020-00FE;
	font-display: swap;
}
* {
	margin: 0; 
	padding: 0;
}
body {	
	font-size: 24px;
	line-height: 1.6em;
	font-family: 'HBGaramond', sans-serif;
	text-rendering: optimizeSpeed;
	color: #111; 
	scroll-behavior: smooth;
}
a, figcaption, 
.wp-block-image:hover figcaption {transition: all .2s ease-in-out;}

header {
	background: #08293a;
	text-align: center;
	padding-top: 0.5em;
}
header div a {
	width: 23em;
	display: block;
	margin: 0 auto -1em auto;	
}
nav {
	width: 100%;
	background: rgba(0,0,0,0.2);
}
nav li {
	display: inline-block;
	line-height: 1.6em;
	font-size: 80%;
}
nav a {
	color: #bda46a;
	text-decoration: none;
	margin-right: 0.8em;
	text-shadow: 1px 1px 0px rgba(0,0,0,0.7);
	font-size: 130%;
	padding: 0.2em 0;
	display: block;
}
nav a:hover {text-decoration: underline;}
nav ul + ul {background: rgba(0,0,0,0.4);}
nav ul + ul a {
	opacity: 0.8;
	font-size: 100%;
}
h2 {
	text-align: center;
	font-size: 200%;
	font-weight: normal;
	color: #08293a;
	width: 100%;
	padding-top: 40px;
}
h2 a {
	color: #08293a !important;
	font-weight: normal;
	text-decoration: none;
}
h2::after {
    border-bottom: 2px solid #bda46a;
    content: '';    
    display: block;
    margin: 24px auto 48px;
    width: 100px;
}
/* Homepage */
#eyecatcher {
    padding-top: 0;
	background-color: #010d15;
    position: relative;	
}
#eyecatcher div {
	background: #010d15 url(/wp-content/uploads/site/hayofrontpage-optimized.webp) no-repeat;
    min-height: 25em;
    background-size: contain;
	position: relative;
	width: 100%;
	max-width: 60em;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: right;
}
#eyecatcher p {
    display: table-cell;
	width: 50%;
	float: right;
    vertical-align: middle;
    text-align: center;
}
#eyecatcher nav {
	position: absolute;	
	bottom: 0;
	padding: 10px 0;
	vertical-align: bottom;	
}
#eyecatcher nav a {
	font-size: 170%;
	padding: 0 10px;
}
#eyecatcher nav li:first-child {
	margin-left: 0px;
}
#eyecatcher img {
	height: auto;
    margin: 20px 0 100px 0;
}
#eyecatcher span {
	display: none;
}
.ankeiler {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}
.ankeiler p,
.ankeiler h3 {
	padding: 0 10px;
}
.ankeiler a {
	width: calc(33.33% - 40px);
	max-width: 350px;
	margin: 0 20px 20px 20px;
	color: black;
	text-decoration: none;
	font-size: 95%;
	position: relative;
}
.ankeiler img {
	width: 100%;
	border-bottom: 6px solid #08293a;
	transition: all .2s ease-in-out;
	height: 8em;
	object-fit: cover;
}
.ankeiler h3 {
	color: #08293a;
	transition: all .2s ease-in-out;
}
.ankeiler p {
	padding: 10px 10px;
}
.ankeiler a:hover h3{
	color: #bda46a;
	text-decoration: underline;
}
.ankeiler a:hover img {
	border-bottom: 6px solid #bda46a;
}
.albums {
	background: #f3ede4;
	padding-top: 40px;
	padding-bottom: 40px;
}
.wp-block-table {
	overflow-x: auto;
}
table {
	padding-bottom: 40px;
	max-width: 60rem;
	font-size: 95%;
	margin: 0 auto;
	border-collapse: collapse;
	border: 1px solid #888;
}
td, th {
    border-bottom: 1px solid #888;
    margin: 0;
    border-left: 1px solid #888;
    padding: 0.2em 0.5em;
	vertical-align: top;
}
footer {
	text-align: center;
	background-color: #1c1e20;
	padding: 30px 0;
}
footer p {
	color: #888; 
	font-size: 75%;
}
footer p a  {
	color: #888;
	padding: 0 20px;
	text-decoration: none;	
}
footer p a:hover {
	color: white;
	text-decoration: underline;
}
footer img {
	display: inline-block;
}
.social {
	padding-bottom: 20px;
	border-bottom :1px solid #888;
}
.social svg, .seal {fill: #888; }
.social svg:hover  {
	fill: white;
	transition: all .2s ease-in-out 
}
.social a {
	display: inline-block; width: 1em;
	height: 1em;
	padding: 0.3em;
	 overflow: hidden;
}
footer .seal {
	width: 4em;
	margin-top: 40px;
}

.wp-block-video {
	max-width: 60rem;
	margin: 0 auto;
}
.wp-block-video video {
	width: 100%;
    height: auto;
}

.columns, .wp-block-columns {
	display: flex;
	justify-content: center;
}

.col, .wp-block-column {width: 100%; margin-bottom: 5em; overflow: hidden;}
.col.half, .wp-block-column {width: 50%; max-width: 30rem;}

#fotoblog a {

	border-radius: 20px;
	overflow: hidden;
	position: relative;
	margin-right: 5px;
	display: flex;
	justify-content: center;
	text-align: center;
	border: 2px solid #fff;
}
#fotoblog a .fotoblogcaption {visibility: hidden;transition: all .2s ease-in-out;}
#fotoblog a:hover .fotoblogcaption {visibility: visible;transition: all .2s ease-in-out;}

.fotoblogcaption {
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 70%;
    line-height: 1.3;
    padding: 0.5em 0.3em;
    bottom: 0;
	position: absolute;
    width: calc(100% - 0.6em);	
}
.fotoblogcaption .greyed {opacity: 0.5;}
.fotoblogcaption .pages {
	float: right;
}
#fotoblog img {
	object-fit: cover;
	height: 15em;
	display: block;;
}
.reading, #fotoblog {
	padding: 40px 10%;
	background: #bda46a;
}
.reading, #fotoblog div {
	display: flex;
	align-items: stretch;
}
#fotoblog .published-date {
	position: absolute;
	color: white;
	font-size: 60%;
	opacity: 0;
	text-shadow: 1px 1px 3px black;
}
#fotoblog a:hover .published-date {
	opacity: 0.8;
}
#fotoblog {
	padding: 40px 10% 4em 10%;
	background: #bda46a ;
}
#fotoblog.fullpage {
	background: white;
}
#fotoblog.fullpage a {
	margin-right:0;
}
.reading h2::after, #fotoblog h2::after {
	border-bottom-color: white;
}
.reading a img {
	display: block;
	height: 350px;
	border: none ;
}
.reading a {margin: 5px; width: auto; }
.reading a:hover img {border: none;}


.wp-block-gallery { 
	margin: 0 10%;
	display: flex;
	flex-wrap: wrap;
}
  
.wp-block-gallery figure {
	margin: 0;
	flex-grow: 1;
	
}
.wp-block-gallery figure a img {
	height: 10em;
	opacity: 1;
	transition: all .2s ease-in-out;
	object-fit: cover;
}
.wp-block-gallery figure a:hover img {
	opacity: 0.6;
}

.postmeta {
	background: #bda46a;
	padding-top: 40px;
	margin-top: 60px;
}
.postmeta h4 {
	color:#08293a;
}
.postmeta li {
	display: inline-block;
	margin-right: 4px;
}
.postmeta a {
	color: white;
}

/* article section */

main {
	position: relative;
	display: block;
	z-index: 1;
}
.contentImage {
	z-index: 2;
	max-height: 500px;
	margin-bottom: -100px;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
}
.default {
	max-height: 5em;
}
.contentImage img {
	user-select: none;
	object-fit: cover;	
}
.contentImage:after {
  display: block;
  position: absolute;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.6) 100%);
  bottom: 0;
  height: 25%;
  width: 100%;
  content: '';
}
article {
	position: relative;
	z-index: 3;
}
h1 {
	font-size: 230%;
	text-shadow: 1px 1px 3px black;
	color: white;
	white-space: nowrap;
	font-weight: normal;
	line-height: 1.14;
	max-width: 60rem;
	margin: -6rem auto 0 auto;
}
article a {
	color: #bda46a;
}

article p {
	padding-bottom: 40px;
	text-align: justify;
	max-width: 60rem;
	position: relative;
	margin: 0 auto;
}
article h4, article h3 {
	margin: 0 auto;
	max-width: 60rem;
}
.intro, 
article p:nth-child(3) {
	font-size: 130%;
	line-height: 1.4em;
	padding-top: 5rem;
	padding-bottom: 4rem;
}
.intro:first-letter, 
article p:nth-child(3):first-letter {
	color: #bda46a;
	padding: 0.15em 0.1em 0em 0;
	float: left;
	font-size: 310%;
	text-shadow: 1px 1px 0px black;
	display: block;
}
.byline {
	color: rgba(255,255,255,0.6);
	line-height: 1;
	padding: 5px ;
	display: block;
	font-size: 70%;
}
time {
	color: rgba(0, 0, 0, 0.7);
	font-size: 70%;
	padding: 0 10px;
	margin: 0;
}
em {font-weight: bold;}
article ul {
		list-style: square;
}
article ul,
article ol {
	margin-left: 40px;
	padding-bottom: 30px;
	max-width: calc(60rem - 4em);
	margin: 0 auto;
}
article li {padding-bottom: 10px;}
article ol li {padding-bottom: 30px;}

ol {
	list-style: none;
	counter-reset: my-awesome-counter;
  }
  ol li {
	counter-increment: my-awesome-counter;
	position: relative;
  }
  ol li::before {
    content: counter(my-awesome-counter);
    display: block;
    position: absolute;
    top: 0.4em;
    left: -2em;
    text-align: center;
    line-height: 1.5em;
    width: 1.5em;
    border-radius: 1.5em;
    background: #bda46a;
    color: white;
    height: 1.5em;
  }

.wp-block-image {
    max-width: 60rem;
    margin: 0 auto;
}

article img {
	display: block;
}
article .size-full img {
    width: 100%;
    height: auto;
}
article img.noborder {
	border: none;
	padding: 0;
}
article .wp-block-image img {
	margin-bottom: 0;
} 
figure {
	position: relative;
}
.aligncenter {
	width: 100%;
}
.alignleft {
	float: left;
	margin-right: 20px;
}
.alignright {
	float: right;
	margin-left: 20px;
}
blockquote {padding-bottom: 30px;
	max-width: 60rem;
	margin: 0 auto;}
blockquote p {
	margin: 0 10%;
	color: #08293a;
	padding-bottom: 0;
	font-size: 120%
}
blockquote p::before {
    border-bottom: 2px solid #bda46a;
    content: '';
    display: block;
    margin: 20px auto;
    width: 25%;
}
cite {
	text-align: center;
	display: block;
	font-size: 90%;
}
blockquote p::after {
    border-bottom: 2px solid #bda46a;
    content: '';
    display: block;
    margin: 20px auto;
    width: 25%;
}
.caption, .wp-block-image {
	position:relative; 
	display:block;
	text-decoration: none;
}
.caption img, .wp-block-image img { 
	margin-bottom: 0;
	height: auto;
	width: calc(100% - 1px);
	border: 1px solid white;
 }
.caption span, .wp-block-image figcaption {
    text-decoration: none;
    display: block;
    color: #fff;
    position: absolute;
    bottom: 0;
    font-size: 75%;
    border-radius: 1em;
    box-shadow: 2px 2px 3px rgba(0,0,0, 0.5);
    line-height: 1.2em;
    margin: 0.6em;
    padding: 0.4em 0.5em 0.4em 1.8em;
	background: rgba(189,164,106,.9) url("assets/info.svg") no-repeat 0.4em 0.5em;
    background-size: 17px;
}
.wp-block-image:hover .caption span, 
.wp-block-image:hover figcaption {
	display: none;
}
.wp-caption {
	display: block;
	overflow: hidden;
}
.wp-caption img {
	margin: 0;
}
.unblock li {
	display: block;
}
.textcenter {
	text-align: center;
}
pre {
    max-width: calc(60rem - 20px);
    margin: 0 auto;
    color: #222;
    margin-bottom: 40px;
    font-size: 60%;
    background: #bbb;
    border-radius: 10px;
	box-shadow: inset 1px 1px 3px rgba(0,0,0,0.4);
    padding: 10px 15px;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* review section specific styles */
.review {
	display: flex;
	flex-wrap: wrap;
	max-width: 60rem;
	margin: 20px auto;
	background: #f3ede4;
	border-radius: 1em;

	font-size: 95%;
	line-height: 1.5em;
	transition: transform 0.3s ease-in-out;
}
.review h2 {
	flex: 1 1 100%;
}
.review .reviewMeta {
	flex: 1 1 40%;
	font-size: 90%;
	text-align: center;
}
.review .review-body {
	flex: 1 1 60%;
}
.review-body p {
	width: calc(100% - 1em);
	margin: 0 1em 0 0;

}
.reviewMeta img {
	width: calc(100% - 2em);
  height: auto;
  box-shadow: 1px 1px 1px #bda46a;
  border-radius: 1em;
  margin: 0 1em;
  cursor: zoom-in;
}
.rating { display: block;}
.rating span {display: none;}
.rating.stars1::after { content: "🟊";}
.rating.stars2::after { content: "🟊🟊";}
.rating.stars3::after { content: "🟊🟊🟊";}
.rating.stars4::after { content: "🟊🟊🟊🟊";}
.rating.stars5::after { content: "🟊🟊🟊🟊";}


/* form */
section#contact {
	text-align: center;
  max-width: 60rem;
  position: relative;
  margin: 0 auto;
}
label {
	display: block;
	margin: 0;
	padding: 0;
}
input, textarea {
	padding: 1em;
  border: 1px solid #08293a;
  border-radius: 1em;
  width: 30em;

}
input[type=checkbox] {width: auto;}
.honeypot {display: none;}
.error {background: #bda46a;}
form div {
	padding-bottom: 1em;
}
textarea {
	height: 15em;
}
button {
	width: 10em;
	background-color: #08293a;
	color: white;
	font-size: 120%;
	font-weight: bold;
	padding: 0.2em;
	border: 1px solid #08293a;
	border-radius: 1em;
	font-family: 'HBGaramond', sans-serif;
	font-size: 24px;
}




@media all and (max-width: 800px) {
	.wp-block-gallery {
		margin: 0;
	}
	.wp-block-gallery figure {
		flex: 1 0 50%;
	 }
		
	#fotoblog div {
		flex-wrap: wrap;
	}
	#fotoblog a {
		margin-bottom: 5px;
	}
	#fotoblog div a:nth-child(4),
	#fotoblog div a:nth-child(5) {
		display: none;
	}
	#fotoblog a .fotoblogcaption {
		visibility: visible;
		font-size: 85%;
	}
	.intro, article p::nth-child(2) {
		font-size: 110%;
		line-height: 1.3em;
	}
	.intro::first-letter, article p:nth-child(3)::first-letter {
		padding: 0;
		font-size:205%;
	}
}

@media all and (max-width: 520px) {
	#eyecatcher img {
		width:95%;
	}
	#eyecatcher div {
		background-size: 70%;
		height: 14.2em;
		min-height: auto;
	}
	.wp-block-image figcaption {
		margin: 0 1px 0 1px;
	}
	
	.wp-block-image img {
		width: calc(100% - 2px);
		height: auto;
	}
	body {
		font-size: 19px;
	}
	header img {
		width: 330px;
		margin-top : 0px;
	}
	.contentImage {
		margin-bottom: -7em;
	}
	.contentImage img {
		height: 7em;
	}
	h1 {
		font-size: 200%;
		padding: 10px 10px 0 10px;
		height: 2.3em;
		white-space: break-spaces;
	}
	.byline {
		padding: 0 10px 0 10px;
		margin-top: 5px;
		font-size: 75%;
	}
	nav li:first-child {
		margin-left: 35px;
	}
	article p {
		padding: 0 20px 20px 20px;
		text-align: justify;
	}
	article h3, article h4 {
		padding: 20px 20px 0 20px;
	}	

	h2 {
		font-size: 160%;
		padding-top: 20px;
		width: 100%;
	}
	h2::after {
		margin: 16px auto 34px;
		width: 80px;
	}
	.ankeiler a {
		width: calc(50% - 20px);
		margin: 0 10px 10px 10px;
	}
	.reading a img  {height: 200px; width: 100%;}
	.reading a:nth-of-type(1n+5) {display: none;} 

	pre {
		margin: 0 20px;
	}


	article ul, article ol {
    margin-left: 40px;
    padding: 0 20px 20px 0;
    max-width: calc(100% - 60px);
	}
	article li {
		padding-bottom: 5px;
	}
	.postmeta {
		display: block;
		padding-top: 20px;
		text-align: center;
	}
	.col {
		margin-bottom: 0;
		padding-bottom: 20px;
	}
	.col.half {
		width: 100%;
	}
	article img {
		margin: 0;
	}
	 .alignleft,
	 .alignright  {
		float: none;
		width: 100%;
		margin: 0;
	}
	.ankeiler.bloglist img {
		width: 70px;
  	 	height: 70px;
    	margin-left: -70px;
    	margin-top: 10px;
    	border-bottom: none;
    	float: left;
 	  	border-radius: 15px;
    	object-fit: cover
	}
	.ankeiler.bloglist a {
	    width: 100%;
    	padding-left: 80px;
    	margin: 0;
    }
    .ankeiler.bloglist a:nth-child(even){
    	background: #f3ede4;
    }

    .albums {padding-bottom:  60px;}
	footer .contentinfo a {
		display: block;
	} 
}