/*
* Nice image headers
*/
.site-header-title-navigation {
	width: 100%;
}

.site-header-cover {
	padding-left: var(--wp--custom--gap--horizontal);
	padding-right: var(--wp--custom--gap--horizontal);
}

/* Shrink cover image */
.wp-block-cover.site-header-cover, .site-header-cover .wp-block-cover-image {
	min-height: 375px;
}

/* Fixups for cover image */
.wp-block-cover.alignfull.site-image-header-cover {
	align-items: unset;
	padding: 0;
}

.site-image-header-vertical-stack {
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	justify-content: space-between;
	padding-left: var(--wp--custom--gap--horizontal);
	padding-right: var(--wp--custom--gap--horizontal);
	padding-top: 1em;	
	padding-bottom: 1em;
}

.wp-block-cover.site-image-header-cover img {
	object-position: right;
}

.site-header-title-social-icon img {
	vertical-align: text-top
}

/* Use same title padding as for image header */
header > .wp-block-group.site-plain-header-vertical-stack {
	padding-top: 1em;
	padding-bottom: 1em;
}

/* Dark background when title overlaps hero */
.site-header-title-row {
	position: absolute;
	width: 100%;
	max-width: unset;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: flex-end;
	flex-direction: column;
}

.site-header-title-row h2 {
	width: 100%;
	padding-left: var(--wp--custom--gap--horizontal);
	padding-right: var(--wp--custom--gap--horizontal);
	padding-bottom: .5em;
	padding-top: .5em;
	text-shadow: 0 0 2px #444;
}

@media (max-width: 650px) {
	.site-header-title-row h2 {
		background-color: #0006;
	}
}

/* Fix wordpress theme bug */
.wp-block-site-title{font-size: var(--wp--custom--font-sizes--normal);font-weight: 700;text-decoration: none;}

.wp-block-site-title a {
	text-decoration: none;
}

.wp-block-site-title a:hover {
	text-decoration: underline;
}

/* No margins around galleries */
/*figure.wp-block-gallery {
	margin-left: 0;
	margin-right: 0;
}*/

/* 3 column gallery layout */
.mgl-gallery-container .mgl-gallery.mgl-justified.gallery-3-column {
	display: grid!important;
	grid-template-columns: 1fr 1fr 1fr;
}

/* Larger post title font */
header h2.wp-block-post-title {
	font-size: calc(1.2*var(--wp--preset--font-size--x-large));
	line-height: calc(1.20*var(--wp--custom--heading--typography--line-height));
}

/* Fix menu color issue */
.wp-block-navigation a.wp-block-navigation-item__content {
	color: inherit;
}

/* Aspect ratio for location list images */
ul.location-list li figure.wp-block-post-featured-image {
	padding-bottom: 33%;
	position: relative;
}

ul.location-list li figure.wp-block-post-featured-image a {
	position: absolute;
	height: 100%;
	width: 100%;
	overflow: hidden;
}

ul.location-list li figure.wp-block-post-featured-image a img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	object-position: right;
}

/* Put title on top of location list image */
ul.location-list div {
	position: relative;
}

ul.location-list h2 {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	margin: 0;
	display:flex;justify-content:center;align-items:center;
	pointer-events: none;
	padding-left: 23%;
	padding-right: 23%;
	font-size: calc(var(--wp--preset--font-size--medium));
	background-color: rgb(0, 0, 0, 15%);
	color: white;
}

ul.location-list h2 a {
	color: white;
}

/* No underline on title */
ul.location-list li a:link {
	text-decoration-line: none;
}

/* Underline on hovered title */
ul.location-list li:hover a {
	text-decoration-line: underline;
}

ul.location-list li a {
	font-size: calc(var(--wp--preset--font-size--small)*1.4);
}

/* Darken thumbnail on hover */
ul.location-list li:hover figure.wp-block-post-featured-image a img {
	-webkit-filter: brightness(90%);
	filter: brightness(90%);
	transform: scale(1.1);
	transition: all .5s ease;
}

/* Breadcrumbs */

.aioseo-breadcrumbs {
  font-size: var(--wp--custom--font-sizes--x-small);
  margin-block-start: calc(1 * var(--wp--custom--gap--baseline));
}

/* Skip breadcrumbs on home page */
.page-id-54 .aioseo-breadcrumbs {
  display: none;
}

/* Blog posts lists should be lists */

.wp-block-query.blog-post-list ul {
	list-style: revert;
	padding: revert;
}

.wp-block-query.blog-post-list ul li {
	margin-block-start: 0;
	margin-block-end: 0;
}

.wp-block-query.blog-post-list ul h3.blog-post-list-title {
  font-size: var(--wp--preset--font-size--normal);
	display: inline
}

.wp-block-query.blog-post-list h3.blog-post-list-title::after {
			content: " \2014 ";
}

.wp-block-query.blog-post-list ul div.blog-post-list-date {
	display: inline
}

/*
 * Post grid on front page
 */
.front-page-post-list .wp-block-post-featured-image {
	margin-block-end: 0;
}

.front-page-photo-list .front-page-photo-list-items {
	display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
}

/*.front-page-photo-list .is-flex-container.front-page-photo-list-items.wp-block-post-template {
    gap: 5px;
}*/

.front-page-post-list .wp-block-post-title {
	margin-top: 0.5em;
	font-size: font-size: var(--wp--preset--font-size--medium);
}

/* Recent image grid on front page */
.jf-img-wrapper {
	display: contents;
}

.front-page-photo-list .wp-block-post-featured-image {
	display: contents;
}

.front-page-photo-list .wp-block-post-featured-image a {
	display: contents;
}

.front-page-photo-list li {
	display: contents;
}

.front-page-photo-list .jf-img-wrapper {
	display: block;
	--ratio: calc(var(--iw) / var(--ih));
	--rh: 250px;
	flex-basis: calc(var(--ratio) * var(--rh));
	flex-grow: calc(var(--ratio) * 100);
	/*height: var(--rh);*/
}

.front-page-photo-list .jf-img-wrapper img {
	width: 100%;
	height: auto;
}

.front-page-photo-list .front-page-photo-list-items::after {
	display: block;
	content: '';
	flex-grow: 100000;
	flex-basis: 750px;
}

@media(max-width: 500px) {
	
/* keep the last item in photo lists full-width on mobile */
  .front-page-photo-list .front-page-photo-list-items::after {
	  flex-grow: 0;
	  display: none;
  }

	/* full bleed images on mobile */
	
	.front-page-photo-list {
		margin-left: calc(-1 * var(--wp--custom--gap--horizontal));
	 	margin-right: calc(-1 * var(--wp--custom--gap--horizontal));
	}
	
/* full bleed images on mobile */
	body .wp-site-blocks .entry-content > figure.wp-block-gallery,
	body .wp-site-blocks .entry-content > div.mgl-root,
	body .wp-site-blocks .entry-content > .ajax-load-more-wrap
	{
		overflow-x: clip;
    max-width: unset;
    margin-left: calc(-1 * var(--wp--custom--gap--horizontal)) !important;
    margin-right: calc(-1 * var(--wp--custom--gap--horizontal)) !important;
  }
}

/* Bug with header font on some pages */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--wp--preset--font-family--libre-baskerville);
}

/* Bug with navigation in mobile mode */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item .wp-block-navigation-item__content {
	color: black;
}

/* photos autoscroll page */
.photos-list-item {
	margin-bottom: 5px;
	position: relative;
}

.photos-list-item img {
	max-width: 100%;
	height: auto;
	display: block;
}

.exif-hover {
	display: none;
}

.exif-hover p {
	display: none;
}

// Disable displaying EXIF on photos scroll page
/*.exif-hover:hover p {
	display: block;
}*/

/* hover EXIF details */
.photos-list-item .exif-hover {
	display: block;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}

.exif-hover p {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin-bottom: 0;
	padding: 0.25em 0.5em;
	color: white;
	background-color: black;
	opacity: 50%;
}

/* Instagram landing page */

.ig-landing h2 {
  background-color: lightgray;
  width: 100%;
  text-align: center;
  border-radius: 8px;
	margin: 0;
}

.ig-landing h2 a {
  text-decoration: none;
	width: 100%;
  padding: 10px 5px;
	display: inline-block;
}

.ig-landing .ig-landing-items, .ig-landing ul, .ig-landing ul li {
	display: contents;
}