
/********************************
	INDEX 
*********************************

1. COLOR

2. BORDER RADIUS

3. DEFAULT BLOCKS
	## TEXT
	## MEDIA
	## DESIGN
	## WIDGETS

4. CUSTOM BLOCKS
	## BLOG POSTS Block
	## PAGE HEADER Block
	## SECTION HEADER Block
	## LINK BOXES Block
	## CONTENT BOXES Block
	## NEWSLETTER SIGNUP Block
	## LOGOS Block
	## SUBTITLE Block
	## SOCIAL ICONS Block

5. RESPONSIVE LAYOUT
	## Large Devices and Wider Screens 	- max-width: 1200px
	## Tablet Portrait 					- max-width: 959px
	## Mobile Landscape					- max-width: 767px
	## Mobile Portrait					- max-width: 479px
	## Bigger Screens					- min-width: 960px
	## Bigger Screens					- min-width: 1400px

**********************************/



/********************************
1. COLOR
/********************************/
.has-text-color h1,
.has-text-color h2,
.has-text-color h3,
.has-text-color h4,
.has-text-color h5,
.has-text-color h6,
.has-text-color p {
	color: inherit;
	}

.wp-block-file .wp-block-file__button {
	background-color: #000;
	color: #fff;
	}

.entry-content button, 
.entry-content .button, 
.entry-content a.button, 
.entry-content a.button:link, 
.entry-content a.button:visited, 
.entry-content a.button:active, 
.entry-content a.button:hover, 
.entry-content input[type="button"], 
.entry-content input[type="reset"], 
.entry-content input[type="submit"] {
	color: #fff;
	}

/* link underline */
.entry-content ol.wp-block-list a, 
.entry-content p:not(sup) a, 
.entry-content ul.wp-block-list a,
.widgets-wrap ol.wp-block-list a, 
.widgets-wrap p:not(sup) a, 
.widgets-wrap ul.wp-block-list a,
.wp-block-post-content p :not(sup) a, 
.wp-block-post-content ul.block-editor-block-list__block a,
.wp-block-post-content ol.block-editor-block-list__block a,
.wp-block-details summary, 
.wp-block-details a, 
.comment-reply-link, 
.show-comments,
a#cancel-comment-reply-link,
.woocommerce-MyAccount-content a.edit,
.logged-in-as a,
.must-log-in a,
.editor-styles-wrapper p:not(sup) a,
#ez-toc-container a.ez-toc-link .makai-toc-text,
.wp-block-post-navigation-link a,
.wp-block-read-more,
.wp-block-loginout a,
.wp-block-file a:not(.wp-block-file__button) {
	background-size: 100% 0.3em, 0 0.3em;
	background-position: 100% 90%, 0 90%;
	background-repeat: no-repeat;
	transition: background-size 0.2s ease;
	transition: background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	}

.entry-content ol.wp-block-list a:hover,
.entry-content ul.wp-block-list a:hover,
.widgets-wrap ol.wp-block-list a:hover,
.entry-content p:not(sup) a:hover,
.widgets-wrap p:not(sup) a:hover,
.widgets-wrap ul.wp-block-list a:hover,
.wp-block-post-content p :not(sup) a:hover,
.wp-block-post-content ul.block-editor-block-list__block a:hover,
.wp-block-details summary:hover,
.wp-block-details a:hover,
.comment-reply-link:hover,
.show-comments:hover,
.woocommerce-MyAccount-content a.edit:hover,
.logged-in-as a:hover,
.must-log-in a:hover,
.wp-block-post-navigation-link a:hover,
.wp-block-read-more:hover,
.wp-block-loginout a:hover,
.wp-block-file a:not(.wp-block-file__button):hover {
	background-size: 0 0.3em, 100% 0.3em;


	}

/* core makes Read More a block, so its background box is a full line-height tall and the
   underline would sit lower than on an inline link. line-height: normal shrinks the box to
   the same height as an inline link's, which puts the underline at the same spot. */
.wp-block-read-more {
	font-size: 0.9em; /* the size of the Blog Posts block's Read More */
	font-weight: 500;
	line-height: normal;
	}

.entry-content ol.wp-block-list a, 
.entry-content ul.wp-block-list a,
.widgets-wrap ol.wp-block-list a, 
.entry-content p:not(sup) a:not(.tag-cloud-link), 
.widgets-wrap p:not(sup) a:not(.tag-cloud-link), 
.widgets-wrap ul.wp-block-list a,
.wp-block-post-content p :not(sup) a, 
.wp-block-post-content ul.block-editor-block-list__block a,
.wp-block-details summary, .wp-block-details a, .comment-reply-link, .logged-in-as a, .must-log-in a,
.show-comments,
.wp-block-post-navigation-link a,
.wp-block-read-more,
.wp-block-loginout a,
.wp-block-file a:not(.wp-block-file__button),
.wp-block-button.is-style-makai-text-link .wp-block-button__link {
	//text-shadow: 0 0 #fff, 0.04em 0 0 rgba(255,255,255,.6), 0 0.03em 0 rgba(255,255,255,.6), -0.04em 0 0 rgba(255,255,255,.6);
	text-shadow: 0 0 #fff, 0.054em 0 0 rgba(255,255,255,.66), 0 0.045em 0 rgba(255,255,255,.66), -0.054em 0 0 rgba(255,255,255,.66);
	}

/* The shadow above is white on purpose: it knocks the faux underline out from behind
   descenders, which only works when the text sits on a light background. Inside a cover
   block the text is over an image, so the white halo reads as a blur around the link.
   Selectors mirror the ones above with .wp-block-cover inserted, to outrank them. */
.entry-content .wp-block-cover ol.wp-block-list a,
.entry-content .wp-block-cover ul.wp-block-list a,
.entry-content .wp-block-cover p:not(sup) a:not(.tag-cloud-link),
.wp-block-post-content .wp-block-cover p :not(sup) a,
.wp-block-cover .wp-block-post-navigation-link a,
.wp-block-cover .wp-block-read-more,
.wp-block-cover .wp-block-loginout a,
.wp-block-cover .wp-block-file a:not(.wp-block-file__button),
.wp-block-cover .wp-block-button.is-style-makai-text-link .wp-block-button__link {
	text-shadow: none;
	}

/* headline link underline */
.entry-content h1.wp-block-heading a,
.entry-content h2.wp-block-heading a,
.entry-content h3.wp-block-heading a,
.entry-content h4.wp-block-heading a,
.entry-content h5.wp-block-heading a,
.entry-content h6.wp-block-heading a,
.widgets-wrap h1.wp-block-heading a,
.widgets-wrap h2.wp-block-heading a,
.widgets-wrap h3.wp-block-heading a,
.widgets-wrap h4.wp-block-heading a,
.widgets-wrap h5.wp-block-heading a,
.widgets-wrap h6.wp-block-heading a,
.editor-styles-wrapper h1.wp-block-heading a,
.editor-styles-wrapper h2.wp-block-heading a,
.editor-styles-wrapper h3.wp-block-heading a,
.editor-styles-wrapper h4.wp-block-heading a,
.editor-styles-wrapper h5.wp-block-heading a,
.editor-styles-wrapper h6.wp-block-heading a,
.wp-block-post-template .wp-block-post-title a,
.wp-block-site-title a {
	background-size: 100% 0.3em, 0 0.3em;
	background-position: 100% 90%, 0 90%;
	background-repeat: no-repeat;
	transition: background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	}

.entry-content h1.wp-block-heading a:hover,
.entry-content h2.wp-block-heading a:hover,
.entry-content h3.wp-block-heading a:hover,
.entry-content h4.wp-block-heading a:hover,
.entry-content h5.wp-block-heading a:hover,
.entry-content h6.wp-block-heading a:hover,
.widgets-wrap h1.wp-block-heading a:hover,
.widgets-wrap h2.wp-block-heading a:hover,
.widgets-wrap h3.wp-block-heading a:hover,
.widgets-wrap h4.wp-block-heading a:hover,
.widgets-wrap h5.wp-block-heading a:hover,
.widgets-wrap h6.wp-block-heading a:hover,
.editor-styles-wrapper h1.wp-block-heading a:hover,
.editor-styles-wrapper h2.wp-block-heading a:hover,
.editor-styles-wrapper h3.wp-block-heading a:hover,
.editor-styles-wrapper h4.wp-block-heading a:hover,
.editor-styles-wrapper h5.wp-block-heading a:hover,
.editor-styles-wrapper h6.wp-block-heading a:hover,
.wp-block-post-template .wp-block-post-title a:hover,
.wp-block-site-title a:hover {
	background-size: 0 0.3em, 100% 0.3em;
	}

/* core makes a post title link inline-block, which paints the underline once under the
   whole box - a title that wraps would only be underlined below its last line. */
.wp-block-post-title a {
	display: inline;
	}

/* widgets */
.wp-block-archives-list li,
.wp-block-page-list li,
.wp-block-latest-posts__list li {
	border-top: 1px solid rgba(200,200,210,0.3);
	}

/* Only the very first item of the outer list - a descendant selector here would also match
   the first item of every nested submenu and drop its separator. */
.wp-block-archives-list > li:first-child,
.wp-block-page-list > li:first-child,
.wp-block-latest-posts__list > li:first-child {
	border-top: 0;
	}

/* A Navigation block in post/page content lays its page list out as a menu, so no separators there;
   sidebars sit outside .entry-content and keep them. The editor canvas has no .entry-content, so the
   admin post-type-* class stands in (the widgets editor has none, so its previews keep them too). */
.entry-content .wp-block-navigation .wp-block-page-list li,
.post-type-post .wp-block-navigation .wp-block-page-list li,
.post-type-page .wp-block-navigation .wp-block-page-list li {
	border-top: 0;
	}

.right-sidebar .wp-block-archives-list,
.right-sidebar .widget.widget_block.widget_calendar,
.right-sidebar .wp-block-page-list,
a.tag-cloud-link {
	//padding: 24px;
	//background: #fff;
	}

.wp-block-calendar th{
	background: #e9e9ea;
	}
.wp-block-calendar td {
	background: #f9f9fa;
	}

/*
.wp-block-table th {
	background: #e9e9ea;
	background: rgba(0,0,10,0.03);
	//background: rgba(255,255,255,0.03);
	}

.wp-block-table td {
	background: #f9f9fa;
	background: rgba(0,0,10,0.03);
	background: rgba(255,255,255,0.06);
	}

*/


#primary .wp-block-calendar,
#primary .wp-block-categories-list,
#primary .wp-block-rss {
	margin: 24px 0 48px 0;
}













/********************************
2. BORDER RADIUS
/*********************************/




.has-rounded-corners .section-blog:not(.padding-none) .tnail img,
.has-rounded-corners .section-blog:not(.padding-none) article,
.has-rounded-corners.section-blog:not(.padding-none) .tnail img,
.has-rounded-corners.section-blog:not(.padding-none) article,
.has-rounded-corners .layout-belowimage .tnail,
.has-rounded-corners .wp-block-image:not(.alignfull) img,
/* pre-5.9 gallery items carry no .wp-block-image, so the line above misses them. No alignfull
   exclusion here: in a modern gallery the align class sits on the wrapper and the inner figures
   round anyway, so a legacy alignfull gallery should round to match. */
.has-rounded-corners .blocks-gallery-image img,
.has-rounded-corners .blocks-gallery-item img,
.has-rounded-corners .show-sidebar.active-sidebar .wp-block-image.alignfull img,
.has-rounded-corners .wp-block-media-text img,
.has-rounded-corners .wp-block-video video,
audio::-webkit-media-controls-enclosure,
/* core's "Squared" button style must stay square even when rounded corners are on.
   The is-style-* class sits on the .wp-block-button wrapper, not on the link, so the
   exclusion has to be written there. */
.has-rounded-corners .wp-block-button:not(.is-style-squared),
.has-rounded-corners .wp-block-button:not(.is-style-squared) .wp-block-button__link,
.has-rounded-corners .wp-block-file .wp-block-file__button,
.has-rounded-corners .wp-block-file__button.wp-element-button,
.wp-core-ui .has-rounded-corners a.button,
.has-rounded-corners .wp-block-latest-posts__featured-image img,
.has-rounded-corners .wp-block-post-featured-image:not(.alignfull),
.has-rounded-corners .wp-block-post-terms a,
.has-rounded-corners .wp-block-navigation__submenu-container,
.has-rounded-corners .wp-block-cover:not(.alignfull),
.has-rounded-corners .wp-block-group,
.has-rounded-corners .has-background,
.has-rounded-corners .contentboxes-button,
.has-rounded-corners .wp-block-buttons .wp-block-button:not(.is-style-squared) .wp-block-button__link,
.has-rounded-corners pre,
.has-rounded-corners .viewall,
.has-rounded-corners .destinations-image-wrap-inner,
.has-rounded-corners .linkboxes-image-wrap-inner,
.has-rounded-corners .section-blog:not(.padding-none).layout-overimage .article-overlay.article-has-gradient,
.has-rounded-corners .destinations-wrap:not(.round) .destinations-item.below-image .destinations-image-wrap:not(.has-content) .destinationsbgimage,
.has-rounded-corners .linkboxes-wrap:not(.round) .linkboxes-item.below-image .linkboxes-image-wrap:not(.has-content) .linkboxesbgimage,
.has-rounded-corners .linkboxes-text,
.has-rounded-corners .widgets-wrap .subscriptionbgimage,
.has-rounded-corners .widgets-wrap .subscription-content-wrap,
.has-rounded-corners .wp-block-widget-area .subscriptionbgimage,
.has-rounded-corners .wp-block-widget-area .subscription-content-wrap,
.has-rounded-corners .categories a, 
.has-rounded-corners .categories a:link, 
.has-rounded-corners .categories a:focus, 
.has-rounded-corners .categories a:active, 
.has-rounded-corners .postnavcat,
.has-rounded-corners .widget,
.has-rounded-corners .widget ul,
.has-rounded-corners .wp-block-categories-list .cat-item,
.has-rounded-corners .wp-block-calendar td, 
.has-rounded-corners .wp-block-calendar th,
.has-rounded-corners .wp-block-table td, 
.has-rounded-corners .wp-block-table th,
.has-rounded-corners .wp-block-tag-cloud a,
.has-rounded-corners .wp-block-latest-comments .avatar,
.has-rounded-corners .wp-block-latest-comments__comment-avatar {
	border-radius: 6px;
	}

.wp-block-table:not(.is-style-stripes) td,
.wp-block-table:not(.is-style-stripes) th {
	border: 6px;
	border-radius: 6px;
	}

/* The featured image rounds on the figure rather than the img, so the optional dim overlay
   (absolutely positioned over the picture) is clipped to the same corners. */
.has-rounded-corners .wp-block-post-featured-image:not(.alignfull) {
	overflow: hidden;
	}

/* A full width group runs to the edges of the screen, so rounded corners would only show as notches
   there. The extra class outranks the .wp-block-group and .has-background entries in the list above. */
.has-rounded-corners .wp-block-group.alignfull {
	border-radius: 0;
	}

/* content boxes border radius */
.contentboxes-wrap.has-rounded-corners .contentboxes-image-wrap-inner .contentboxes-zoom-wrap,
.contentboxes-wrap.has-rounded-corners .contentboxbgimage,
.contentboxes-wrap.has-rounded-corners .contentboxes-content-wrap,
.contentboxes-wrap.has-rounded-corners .contentboxes-image-wrap {
	border-radius: 6px;
	}

/* Space between posts: none. The cards touch, so they have square corners. The image wrapper has to be
   square as well, since it clips the image and style.css rounds it. */
.section-blog.padding-none .tnail,
.section-blog.padding-none .tnail img  {
	border-radius: 0 !important;
	}

.has-rounded-corners .alignfull .wp-block-image img {
	//border-radius: 0 6px 6px 0;
	}

.has-rounded-corners .section-blog:not(.padding-none).layout-overimage .articlecontentwrap,
.has-rounded-corners .wp-block-image figcaption,
.has-rounded-corners .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	//border-radius: 0 0 6px 6px;	
	border-radius: 6px;
	}





/********************************
3. DEFAULT BLOCKS
/********************************
	## TEXT
	## 
********************************/

/* block width */
.block-editor-block-list__block[data-align="full"] {
	margin-left: -34px;
	margin-right: -34px;
	}

/*remove text underline from all links */
a {
	text-decoration: auto !important;
	}


/** *****************************************************************************************
** ## TEXT  ******************************************************************************
*********************************************************************************************/

/* Paragraph */
.has-drop-cap:not(:focus):first-letter {
	font-size: 3.5em;
	font-weight: 300;
	margin: 0.15em 0.1em 0 0;
	}

p.has-background {
	padding: 24px 36px;
	box-sizing: border-box;
	}

.widget-area p.has-background ,
.wp-block-widget-area .p.has-background {
	padding: 24px;
	}

/* Heading */
.wp-block-group .wp-block-heading:first-of-type {
	margin-top: 0;
	}

/* List */
ol.wp-block-list {
	margin-left: 24px !important;
	}

.entry-content ul.wp-block-list,
.right-sidebar ul.wp-block-list {
	margin-left: 24px !important;
	}

/* Direct items only (>): a list from a plugin, or a numbered list, nested inside a List block
   keeps its own markers instead of picking up the dash. Nested List blocks carry the class themselves. */
ul.wp-block-list > li,
ol.wp-block-list > li  {
	list-style: none;
	position: relative;
	}

.entry-content ul.wp-block-list > li:before,
.right-sidebar ul.wp-block-list > li:before {
	content: "";
	background: 0 0;
	position: absolute;
	top: 0.8em;
	left: -24px;
	width: 8px;
	height: 1px;
	border-top: 3px solid;
	color: #b9b9bc;
	}

ol.wp-block-list  {
	counter-reset: counter;
	}

ol.wp-block-list > li:before  {
	content: counter(counter);
	counter-increment: counter;
	position: absolute;
	top: 0;
	left: -24px;
	font-size: 1.1em;
	font-weight: 500;
	color: #b9b9bc;
	}

.entry-content ol.wp-block-list[start="2"] li:first-of-type::before {counter-set: counter 2;}
.entry-content ol.wp-block-list[start="3"] li:first-of-type::before {counter-set: counter 3;}
.entry-content ol.wp-block-list[start="4"] li:first-of-type::before {counter-set: counter 4;}
.entry-content ol.wp-block-list[start="5"] li:first-of-type::before {counter-set: counter 5;}
.entry-content ol.wp-block-list[start="6"] li:first-of-type::before {counter-set: counter 6;}
.entry-content ol.wp-block-list[start="7"] li:first-of-type::before {counter-set: counter 7;}
.entry-content ol.wp-block-list[start="8"] li:first-of-type::before {counter-set: counter 8;}
.entry-content ol.wp-block-list[start="9"] li:first-of-type::before {counter-set: counter 9;}
.entry-content ol.wp-block-list[start="10"] li:first-of-type::before {counter-set: counter 10;}
.entry-content ol.wp-block-list[start="11"] li:first-of-type::before {counter-set: counter 11;}
.entry-content ol.wp-block-list[start="12"] li:first-of-type::before {counter-set: counter 12;}
.entry-content ol.wp-block-list[start="13"] li:first-of-type::before {counter-set: counter 13;}
.entry-content ol.wp-block-list[start="14"] li:first-of-type::before {counter-set: counter 14;}
.entry-content ol.wp-block-list[start="15"] li:first-of-type::before {counter-set: counter 15;}
.entry-content ol.wp-block-list[start="16"] li:first-of-type::before {counter-set: counter 16;}
.entry-content ol.wp-block-list[start="17"] li:first-of-type::before {counter-set: counter 17;}
.entry-content ol.wp-block-list[start="18"] li:first-of-type::before {counter-set: counter 18;}
.entry-content ol.wp-block-list[start="19"] li:first-of-type::before {counter-set: counter 19;}
.entry-content ol.wp-block-list[start="20"] li:first-of-type::before {counter-set: counter 20;}

/* List (Editor)
   Only the core List block (.wp-block-list): every other block that is a <ul> in the canvas
   (Latest Posts, RSS, Social Icons, Query Loop, icon lists from plugins) used to get the 24px
   indent and the dash marker as well, which the front end never gives them. */
ul.block-editor-block-list__block.wp-block-list,
ol.block-editor-block-list__block.wp-block-list {
	padding-left: 24px;
	}

ul.block-editor-block-list__block li,
ol.block-editor-block-list__block li  {
	list-style: none;
	}

ul.block-editor-block-list__block.wp-block-list > li.block-editor-block-list__block:before {
	content: "";
	background: 0 0;
	position: absolute;
	top: 16px;
	left: -24px;
	width: 10px;
	height: 1px;
	border-top: 3px solid;
	color: #b9b9bc;
	}

ol.block-editor-block-list__block  {
	counter-reset: counter;
	}

ol.block-editor-block-list__block.wp-block-list > li:before  {
	content: counter(counter);
	counter-increment: counter;
	position: absolute;
	top: -1px;
	left: -24px;
	font-size: 1.2em;
	color: #b9b9bc;
	}

ol.block-editor-block-list__block[start="2"] li:first-of-type::before {counter-set: counter 2;}
ol.block-editor-block-list__block[start="3"] li:first-of-type::before {counter-set: counter 3;}
ol.block-editor-block-list__block[start="4"] li:first-of-type::before {counter-set: counter 4;}
ol.block-editor-block-list__block[start="5"] li:first-of-type::before {counter-set: counter 5;}
ol.block-editor-block-list__block[start="6"] li:first-of-type::before {counter-set: counter 6;}
ol.block-editor-block-list__block[start="7"] li:first-of-type::before {counter-set: counter 7;}
ol.block-editor-block-list__block[start="8"] li:first-of-type::before {counter-set: counter 8;}
ol.block-editor-block-list__block[start="9"] li:first-of-type::before {counter-set: counter 9;}
ol.block-editor-block-list__block[start="10"] li:first-of-type::before {counter-set: counter 10;}
ol.block-editor-block-list__block[start="11"] li:first-of-type::before {counter-set: counter 11;}
ol.block-editor-block-list__block[start="12"] li:first-of-type::before {counter-set: counter 12;}
ol.block-editor-block-list__block[start="13"] li:first-of-type::before {counter-set: counter 13;}
ol.block-editor-block-list__block[start="14"] li:first-of-type::before {counter-set: counter 14;}
ol.block-editor-block-list__block[start="15"] li:first-of-type::before {counter-set: counter 15;}
ol.block-editor-block-list__block[start="16"] li:first-of-type::before {counter-set: counter 16;}
ol.block-editor-block-list__block[start="17"] li:first-of-type::before {counter-set: counter 17;}
ol.block-editor-block-list__block[start="18"] li:first-of-type::before {counter-set: counter 18;}
ol.block-editor-block-list__block[start="19"] li:first-of-type::before {counter-set: counter 19;}
ol.block-editor-block-list__block[start="20"] li:first-of-type::before {counter-set: counter 20;}

/* Table of Contents (Easy TOC Plugin) */
#ez-toc-container a.ez-toc-link {
	display: block !important;
	position: relative;
	}

/* the underline sits on an inline span around the text (makai_eztoc_wrap_link_text()),
   so a title that wraps is underlined on every line, not only below the last one */
#ez-toc-container a.ez-toc-link .makai-toc-text {
	background-image: linear-gradient(#c4d3db, #c4d3db), linear-gradient(#c4d3db, #c4d3db) !important;
	background-size: 0 0.3em, 0 0.3em;
	}

#ez-toc-container.counter-flat a.ez-toc-link,
#ez-toc-container .ez-toc-heading-level-1 a.ez-toc-link {
	padding-left: 1.4em;             /* reserves space for the number */
	}
#ez-toc-container .ez-toc-heading-level-2 a.ez-toc-link {
	padding-left: 1.6em;             /* reserves space for the number */
	}
#ez-toc-container .ez-toc-heading-level-3 a.ez-toc-link {
	padding-left: 2.2em;             /* reserves space for the number */
	}
#ez-toc-container .ez-toc-heading-level-4 a.ez-toc-link {
	padding-left: 2.8em;             /* reserves space for the number */
	}
#ez-toc-container .ez-toc-heading-level-5 a.ez-toc-link {
	padding-left: 3.8em;             /* reserves space for the number */
	}

#ez-toc-container a.ez-toc-link::before {
	content: counters(item, '.', decimal) !important;
	font-size: 1.1em;
	font-weight: 500;
	position: absolute;
	left: 0;
	top: -2px;
	}

#ez-toc-container a.ez-toc-link:hover .makai-toc-text {
	background-size: 0 0.3em, 100% 0.3em;
	}

div#ez-toc-container nav ul ul li {
	font-size: 100%;
	}

.wp-block-group div#ez-toc-container {
	padding: 0;
	}

#ez-toc-container .ez-toc-title {
	z-index: 9;
	}

.ez-toc-list.ez-toc-columns-optimized>li {
	display: flex !important;
	}






/* Quote - block quotes, pullquotes and classic (non-block) blockquotes share one
   look. The global reset strips the classic indent, so they get it too.
   Font family, weight and italic come from Customizer > Typography > Elements > Quote. */
.wp-block-quote,
.entry-content > blockquote,
.comment-text > blockquote {
	border: none;
	quotes: "" "";
	font-style: normal;
	margin: 6em 0 48px 0;
	padding: 0;
	position: relative;
	}

/* Beats the flow-layout block gap (editor, Group blocks), which would pull the quote mark over the block above */
.wp-block-quote:not(.is-style-plain) {
	margin-top: 6em;
	margin-bottom: 48px;
	}

/* Quote mark sits flush with the start of the text; the offsets cancel the glyph's side bearings.
   The bearings belong to the glyph's physical sides (0.035em on its left, 0.045em on its right), so RTL,
   where the mark starts on the right, takes the right one (rtlcss swaps in the raw declaration) */
.wp-block-quote:not(.is-style-plain)::before,
.entry-content > blockquote::before,
.comment-text > blockquote::before {
	font-family: Georgia, serif;
	content: "\201C";
	font-size: 8em;
	position: absolute;
	/*rtl:remove*/
	left: -0.035em;
	/*rtl:raw:
	right: -0.045em;
	*/
	top: -0.46em;
	line-height: 1em;
	}

.wp-block-quote.has-text-align-center::before,
.wp-block-quote:has(> p.has-text-align-center:first-of-type)::before {
	left: 50%;
	transform: translateX(-50%);
	}

/* A quote aligned to the other side moves its mark there. The alignment classes are physical, so these two
   rules are left as they are in RTL: there the left one moves the mark, the right one matches the default */
/*rtl:begin:ignore*/
.wp-block-quote.has-text-align-right::before,
.wp-block-quote:has(> p.has-text-align-right:first-of-type)::before {
	left: auto;
	right: -0.045em;
	}

.wp-block-quote.has-text-align-left::before,
.wp-block-quote:has(> p.has-text-align-left:first-of-type)::before {
	right: auto;
	left: -0.035em;
	}
/*rtl:end:ignore*/

.wp-block-quote p,
.wp-block-pullquote p,
.entry-content > blockquote p,
.comment-text > blockquote p {
	font-size: 1.4em;
	font-style: inherit;
	font-weight: 500;
	line-height: 1.5;
	margin-bottom: 0;
	}

.wp-block-quote cite,
.wp-block-pullquote cite,
.entry-content > blockquote cite,
.comment-text > blockquote cite {
	display: block;
	font-size: 0.7em;
	font-style: normal;
	font-weight: 500;
	letter-spacing: 4px;
	line-height: 1.5;
	text-transform: uppercase;
	margin: 18px 0 0 0;
	}

/* Cancel the trailing letter-spacing so citations aligned to the end side end flush with the text:
   right-aligned ones here, left-aligned ones in RTL (rtlcss swaps in the raw rule below) */
/*rtl:remove*/
.wp-block-quote.has-text-align-right cite,
.wp-block-pullquote.has-text-align-right cite {
	margin-right: -4px;
	}

/*rtl:raw:
.wp-block-quote.has-text-align-left cite,
.wp-block-pullquote.has-text-align-left cite {
	margin-left: -4px;
	}
*/

/* Large style: core adds side padding, italics and a bigger right-aligned citation */
.wp-block-quote.is-style-large:not(.is-style-plain),
.wp-block-quote.is-large:not(.is-style-plain) {
	margin-bottom: 48px;
	padding: 0;
	}

.wp-block-quote.is-style-large:not(.is-style-plain) p,
.wp-block-quote.is-large:not(.is-style-plain) p {
	font-size: 1.75em;
	font-style: inherit;
	line-height: 1.5;
	}

.wp-block-quote.is-style-large:not(.is-style-plain) cite,
.wp-block-quote.is-large:not(.is-style-plain) cite {
	font-size: 0.7em;
	text-align: inherit;
	}

.wp-block-quote.is-style-plain {
	text-align: center;
	margin-left: calc(25% - 25vw);
	margin-right: calc(25% - 25vw);
	margin-top: 48px;
	}



/* Quote (Editor) */
.block-editor-block-list__layout .wp-block-quote.is-style-plain {
	margin-left: auto;
	margin-right: auto;
    	max-width: 100%;
	}

.block-editor-block-list__layout .wp-block-quote.is-style-plain p {
	margin-left: auto;
	margin-right: auto;
	width: 80%;
    	max-width: 100%;
	}

/* Code */
.wp-block-code {
	border: none;
	border-radius: 6px;
	font-family: Courier, monospace;
	padding: 24px 36px;
	line-height: 2em;
	font-size: 0.9em;
	}

/* Details */
.wp-block-details {
	margin: 0.5rem 0;
	}

.wp-block-details:last-of-type {
	margin-bottom: 1.25rem;
	}

.wp-block-details summary {
	cursor: pointer;
	position: relative;
	display: inline-block;
    	margin: 0;
	font-weight: 500;
	line-height: initial;
	text-shadow: 0 0 #fff, 0.04em 0 0 rgba(255,255,255,.4), 0 0.03em 0 rgba(255,255,255,.4), -0.04em 0 0 rgba(255,255,255,.4);
	}

/* inline-block drops the browser's disclosure triangle, so the summary read as a plain link.
   A small chevron after it shows that it opens; it sits outside the summary box, so the
   underline stops at the text. */
.wp-block-details summary::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 100%;
	width: 7px;
	height: 7px;
	margin: -6px 0 0 12px;
	border-right: 2px solid;
	border-bottom: 2px solid;
	transform: rotate(45deg);
	transition: transform 0.2s ease-in-out, margin 0.2s ease-in-out;
	opacity: 0.6;
	}

.wp-block-details[open] > summary::after {
	margin-top: -2px;
	transform: rotate(-135deg);
	}

.wp-block-details p {
	padding-top: 6px;
	}

/* Preformatted, Code and Poetry sit on a light panel. The colours live in style.css for the
   front end, which the editor canvas does not load, so there the text only looked indented. */
.wp-block-code,
.wp-block-preformatted,
.wp-block-verse {
	background-color: #f9f9fa;
	color: #222;
	}

/* Preformatted */
pre {
	display: block;
	overflow: auto;
	margin: 24px 0;
	padding: 24px 36px;
	font-weight: 100;
	line-height: 2em;
	font-size: 0.9em;
	white-space: pre-wrap;
	word-wrap: break-word; 
	font-family: Courier, monospace;
	}

/* Pullquote */
figure.wp-block-pullquote  {
	margin: 48px 0;
	padding: 36px 24px;
	font-size: 1em;
	}

/* Pullquote text and citation are styled with the Quote block above */

/* Table - the space below sits on the figure, so it comes after the caption */
.wp-block-table {
	margin-bottom: 24px;
	}

.wp-block-table table {
	table-layout: fixed;
	border-collapse: initial;
	border-spacing: 2px;
	margin: 0;
	width: 100%;
	}

.wp-block-table table.has-link-color {
  border-collapse: separate !important;
  border-spacing: 2px !important;
  background: transparent !important; /* default: transparent gaps */
}

.wp-block-table table th,
.wp-block-table table tfoot td  {
	font-weight: 600;
	}

.wp-block-table table tr,
.wp-block-table table th,
.wp-block-table table td {
	padding: 18px 24px;
	text-align: left;
	}

.wp-block-table:not(.is-style-stripes) td,
.wp-block-table:not(.is-style-stripes) th {
	background: #f9f9fa;
	overflow: hidden;
	}

/* Header and footer rows are a shade darker, like the calendar's weekday row.
   A background color picked in the editor still wins (.has-background below). */
.wp-block-table table:not(.has-background) thead th,
.wp-block-table table:not(.has-background) thead td,
.wp-block-table table:not(.has-background) tfoot th,
.wp-block-table table:not(.has-background) tfoot td {
	background: #e9e9ea;
	}

/* Classic (non-block) tables - the global reset strips their padding and borders,
   so give them the same tile treatment as .wp-block-table above. Scoped to a direct
   child so a block table, which always sits inside figure.wp-block-table, is untouched. */
.entry-content > table,
.comment-text > table {
	table-layout: fixed;
	border-collapse: initial;
	border-spacing: 2px;
	width: 100%;
	margin: 0 0 24px 0;
	}

.entry-content > table th,
.entry-content > table tfoot td,
.comment-text > table th,
.comment-text > table tfoot td {
	font-weight: 600;
	}

.entry-content > table th,
.entry-content > table td,
.comment-text > table th,
.comment-text > table td {
	background: #f9f9fa;
	padding: 18px 24px;
	text-align: left;
	overflow: hidden;
	}

.entry-content > table thead th,
.entry-content > table thead td,
.entry-content > table tfoot th,
.entry-content > table tfoot td,
.comment-text > table thead th,
.comment-text > table thead td,
.comment-text > table tfoot th,
.comment-text > table tfoot td {
	background: #e9e9ea;
	}

.has-rounded-corners .entry-content > table th,
.has-rounded-corners .entry-content > table td,
.has-rounded-corners .comment-text > table th,
.has-rounded-corners .comment-text > table td {
	border-radius: 6px;
	}

.wp-block-table table.has-background td,
.wp-block-table table.has-background th {
	background-color: var(--tile-bg, #f9f9fa) !important;
	}

.wp-block-table table.has-black-background-color { --tile-bg: var(--wp--preset--color--black); }
.wp-block-table table.has-almostblack-background-color { --tile-bg: var(--wp--preset--color--almostblack); }
.wp-block-table table.has-seasalt-background-color { --tile-bg: var(--wp--preset--color--seasalt); }
.wp-block-table table.has-white-background-color { --tile-bg: var(--wp--preset--color--white); }
.wp-block-table table.has-tearose-background-color { --tile-bg: var(--wp--preset--color--tearose); }
.wp-block-table table.has-sunglow-background-color { --tile-bg: var(--wp--preset--color--sunglow); }
.wp-block-table table.has-tiffanyblue-background-color { --tile-bg: var(--wp--preset--color--tiffanyblue); }
.wp-block-table table.has-azure-background-color { --tile-bg: var(--wp--preset--color--azure); }
.wp-block-table table.has-sage-background-color  { --tile-bg: var(--wp--preset--color--sage); }

.wp-block-table.is-style-stripes {
	border-bottom: 0;
	}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) td,
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) th {
	background-color: var(--tile-bg, #f9f9fa) !important;
	}

.wp-block-table table.has-background[style*="background-color"] {
	border-radius: 6px;            
	border-spacing: 0 !important;  
	overflow: hidden;
	}

.wp-block-table table.has-background[style*="background-color"] td,
.wp-block-table table.has-background[style*="background-color"] th {

	border-radius: 0;
	border: 1px solid white;
	}


.wp-block-table table:not(.has-link-color).has-background[style*="background-color"] td,
.wp-block-table table:not(.has-link-color).has-background[style*="background-color"] th {
	background: transparent !important;
	}














/* Verse */




/** *****************************************************************************************
** ## MEDIA  ******************************************************************************
*********************************************************************************************/

.wp-block-image,
.wp-block-gallery,
.wp-block-cover,
.wp-block-file,
.wp-block-media-text,
.wp-block-post-featured-image {
	margin: 24px 0;
	}

.wp-block-audio {
	margin-bottom: 36px;
	}

/* Captions below a table, video, audio or embed (image and gallery captions sit over the picture, see below,
   and so do those of a video without playback controls).
   Letter-spacing, uppercase and weight come from the Image Caption settings; the size is set here only. */
.wp-block-table figcaption,
.wp-block-video figcaption,
.wp-block-audio figcaption,
.wp-block-embed figcaption {
	font-size: 0.7em;
	text-align: center;
	margin-top: 0;
	padding-left: 24px;
	padding-right: 24px;
	}

/* Galleries are left out of these two groups on purpose - they carry their own 36px below,
   and a 60px here would win over it and make the spacing depend on what happens to sit
   next to the gallery. */
p + .wp-block-image,
p + .wp-block-cover,
p + .wp-block-file,
p + .wp-block-media-text,
p + .wp-block-post-featured-image {
	margin-top: 60px;
	}

.wp-block-image + p,
.wp-block-cover + p,
.wp-block-file + p,
.wp-block-media-text + p,
.wp-block-post-featured-image + p {
	margin-top: 60px;
	}

/* 36px of air on every side of a gallery. The :not(.has-nested-images) twin is what carries
   this for pre-5.9 markup: core styles that exact selector with margin: 0 at (0,2,0), which
   outweighs a plain .wp-block-gallery. Matching its weight is enough, since this sheet loads
   after core's and the tie resolves on source order. */
.wp-block-gallery,
.wp-block-gallery:not(.has-nested-images) {
	margin-top: 36px;
	margin-bottom: 36px;
	}

/* The gap between two stacked galleries is one gallery's worth of space, not both. Has to
   stay below the rule above to outrank its second selector. */
.wp-block-gallery:has(+ .wp-block-gallery) {
	margin-bottom: 0;
	}

/* alignfull breaks out to the viewport edges, so its 36px has to be padding inside the block -
   a margin would just shrink the break-out. box-sizing is border-box theme-wide, so this eats
   into the width rather than pushing past it. */
.wp-block-gallery.alignfull {
	padding-left: 36px;
	padding-right: 36px;
	}

/* A floated gallery needs to hold the wrapping text off it, the way .alignleft/.alignright do
   for every other floated block. Their 24px is only (0,1,0), so core's margin: 0 wipes it on
   pre-5.9 markup and the text ends up flush against the images - these are (0,2,0) to match
   core's weight. 36px rather than the 24px used for floated images, to stay in step with the
   gallery's other sides.
   The top margin is dropped, though: a floated gallery should start on the same line as the
   text beside it, and 36px would push it below that line for no reason. */
.wp-block-gallery.alignleft {
	margin-top: 0;
	margin-right: 36px;
	}

.wp-block-gallery.alignright {
	margin-top: 0;
	margin-left: 36px;
	}

/* Classic [gallery] shortcode. add_theme_support('html5', 'gallery') opts the theme
   out of core's default gallery styles, so the column widths have to come from here.
   scripts.js lays these out with Masonry using `gutter: 12, percentPosition: true`,
   which derives its column count from the item width we set below - so the 12px in
   these calc()s must stay in step with that gutter value. The flex rules are the
   no-JS fallback; Masonry absolutely positions the items once it runs.
   Note .gallery-item is a <figure>, which is not in the reset, so its UA margin has
   to be cleared explicitly. */
.gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 24px 0;
	}

p + .gallery {
	margin-top: 60px;
	}

.gallery + p {
	margin-top: 60px;
	}

.gallery-item {
	width: 100%;
	margin: 0;
	box-sizing: border-box;
	text-align: center;
	}

.gallery-columns-2 .gallery-item { width: calc((100% - 12px) / 2); }
.gallery-columns-3 .gallery-item { width: calc((100% - 24px) / 3); }
.gallery-columns-4 .gallery-item { width: calc((100% - 36px) / 4); }
.gallery-columns-5 .gallery-item { width: calc((100% - 48px) / 5); }
.gallery-columns-6 .gallery-item { width: calc((100% - 60px) / 6); }
.gallery-columns-7 .gallery-item { width: calc((100% - 72px) / 7); }
.gallery-columns-8 .gallery-item { width: calc((100% - 84px) / 8); }
.gallery-columns-9 .gallery-item { width: calc((100% - 96px) / 9); }

.gallery-icon {
	line-height: 0;
	}

.gallery-icon img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	}

.has-rounded-corners .gallery-icon img {
	border-radius: 6px;
	}

.gallery .gallery-caption {
	margin-bottom: 0;
	}

@media only screen and (max-width: 767px) {

	.gallery-columns-4 .gallery-item,
	.gallery-columns-5 .gallery-item,
	.gallery-columns-6 .gallery-item,
	.gallery-columns-7 .gallery-item,
	.gallery-columns-8 .gallery-item,
	.gallery-columns-9 .gallery-item {
		width: calc((100% - 24px) / 3);
		}
	}

@media only screen and (max-width: 479px) {

	.gallery-columns-3 .gallery-item,
	.gallery-columns-4 .gallery-item,
	.gallery-columns-5 .gallery-item,
	.gallery-columns-6 .gallery-item,
	.gallery-columns-7 .gallery-item,
	.gallery-columns-8 .gallery-item,
	.gallery-columns-9 .gallery-item {
		width: calc((100% - 12px) / 2);
		}
	}

.widgets-wrap .wp-block-image,
.widgets-wrap .wp-block-gallery,
.widgets-wrap .wp-block-cover,
.widgets-wrap .wp-block-file,
.widgets-wrap .wp-block-media-text {
	margin: 0;
	}

/* Image */
.wp-block-image img {
	width: 100%;
	}

.widgets-wrap .wp-block-image {
	transform: translateZ(0) !important;
	}



/* Gallery */
.wp-block-gallery,
.wp-block-gallery.is-cropped {
	gap: 24px !important;
	}

.wp-block-gallery.is-cropped .wp-block-image {
	width: calc(33.333% - 16px) !important; /* Default 3 columns */
	}

.wp-block-gallery.is-cropped.columns-1 .wp-block-image {
	width: calc(100% - 0px) !important;
	}

.wp-block-gallery.is-cropped.columns-2 .wp-block-image {
	width: calc(50% - 12px) !important;
	}

.wp-block-gallery.is-cropped.columns-3 .wp-block-image {
	width: calc(33.333% - 16px) !important;
	}

.wp-block-gallery.is-cropped.columns-4 .wp-block-image {
	width: calc(25% - 18px) !important;
	}

.wp-block-gallery.is-cropped.columns-5 .wp-block-image {
	width: calc(20% - 19.2px) !important;
	}

.wp-block-gallery.is-cropped.columns-6 .wp-block-image {
	width: calc(16.666% - 20px) !important;
	}

/* On a phone every gallery is a single column. Core's own fallback below 600px is two columns,
   and the !important widths above replace even that - a cropped gallery would keep its full
   three, four or six columns, down to 46px a picture. Core sizes the nested images behind
   :not(#individual-image), which no class selector outweighs, so this has to be !important as
   well; the extra classes on the first selector outrank the column rules above. Galleries saved
   before WP 5.9 get what core gives .columns-1. */
@media only screen and (max-width: 599px) {

	.wp-block-gallery.has-nested-images figure.wp-block-image,
	.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image {
		width: 100% !important;
		}

	.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image,
	.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item,
	.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image,
	.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item {
		width: 100%;
		margin-right: 0;
		}
	}

/* Uncropped galleries are left to core's own flex layout. They used to be laid out with
   Masonry, which needed the negative gutter margins, the 12px item padding and a hard width
   per column count that all had to be kept in step with the script - and it positioned the
   items absolutely, so any item core sized differently landed on top of its neighbours. */


/*
@media (min-width: 600px) {
	.wp-block-gallery.has-nested-images.columns-7 figure.wp-block-image:not(#individual-image) {
        //width: calc(100%/7);
    }
	.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image) {
        //width: calc(100%/6);
    }
	.wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image) {
        //width: calc(100%/5);
    }
	.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) {
        //width: calc(100%/4);
    }
    .wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image) {
        //width: calc(100%/3);
    }
    .wp-block-gallery.has-nested-images.columns-2 figure.wp-block-image:not(#individual-image) {
        //width: calc(100%/2);
    }
    .wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image) {
        //width: 100%;
    }
}

.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
    //width: 50%;
}
*/



/* Image + Gallery Caption */

/* The caption below is absolutely positioned, so the figure holding the image has to be
   its containing block. An aligned image is nested as div.wp-block-image > figure.align*,
   while an unaligned one is figure.wp-block-image itself - both levels need positioning,
   or the caption sizes itself against the full-width content column and spills past the
   image (visible as a gradient band wider than the picture). */
.wp-block-image,
.wp-block-image figure,
.wp-block-gallery.has-nested-images figure.wp-block-image {
	position: relative;
	}

/* Clip the caption overlay to the picture. Its 120px top padding is taller than a small
   image, so on a 150x150 thumbnail the gradient spills out above the image.
   Only the figures are clipped - putting overflow on the div.wp-block-image wrapper would
   make it a block formatting context and stop text wrapping around alignleft/alignright
   images. The caption text is anchored to the bottom, so only the transparent top of the
   gradient gets cut. */
figure.wp-block-image,
.wp-block-image figure,
.wp-block-gallery.has-nested-images figure.wp-block-image {
	overflow: hidden;
	}

.wp-block-image figcaption,
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	position: absolute;
	color: #fff !important;
	box-sizing: border-box;
	//background-image: linear-gradient(to top, rgba(16,18,19,0.4) 0%,rgba(16,18,19,0) 100%);
	background-image: linear-gradient(to top, rgba(16,18,19,0.5) 0%,rgba(16,18,19,0) 100%);
	padding: 120px 24px 18px;
	margin-bottom: 0;
	text-align: center;
	line-height: 1.5em;
	//margin: 12px;
	//bottom: 12px;
  //width: calc(100% - 24px);
  //width: calc(100% - 12px);
	bottom: 0;
	width: 100%;

	}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	text-shadow: 0 0 0.5px #000;
	}

/* Galleries saved before WP 5.9 keep the old .blocks-gallery-item markup, which core dresses
   with an overlay of its own - a different gradient and padding, and none of the caption
   typography. Repeat the treatment above for it so both gallery formats read the same. Core's
   selectors weigh (0,3,1), so these have to match that to win on source order; the type itself
   comes from the Image Caption customizer setting, which now lists these selectors too. */
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption,
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption,
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption,
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption {
	background-image: linear-gradient(to top, rgba(16,18,19,0.5) 0%,rgba(16,18,19,0) 100%);
	padding: 120px 24px 18px;
	line-height: 1.5em;
	text-shadow: 0 0 0.5px #000;

	/* Core caps the caption at the height of its tile and scrolls the rest. The taller padding
	   would push the text past that cap and park it out of sight, so let it overflow and clip
	   at the item instead - the same way the figure clips the overlay on a block image. */
	max-height: none;
	overflow: visible;
	}

.blocks-gallery-image,
.blocks-gallery-item {
	overflow: hidden;
	}

/* A link inside a caption has to read as caption text - the body link colour is near black and
   sinks into the gradient. inherit covers both states of a caption: white over the image, and
   the body colour once .caption-outside drops it below. The :link variants are what actually
   carry it, since the link colour is set on a:link and would otherwise outweigh a bare
   descendant selector; :link stays matched while hovered, focused or active, so those follow. */
.wp-block-image figcaption a,
.wp-block-image figcaption a:link,
.blocks-gallery-image figcaption a,
.blocks-gallery-image figcaption a:link,
.blocks-gallery-item figcaption a,
.blocks-gallery-item figcaption a:link {
	color: inherit;
	}

/* A video caption over the video. Without playback controls a video is an animated picture
   (the GIF variation, or Playback controls switched off), so its caption sits over it like
   an image caption. With controls it stays below, where it cannot cover the control bar.
   These are their own rules, not part of the image lists above, on purpose: :has() is not
   forgiving, so a browser without it would drop a whole comma list - image captions included.
   :not(.caption-outside) hands a caption that does not fit over to the generic rules below;
   makaiCaptionFit() in scripts.js adds that class, as it does for images. The type comes from
   the Image Caption customizer setting, through its own output in customizer.php. */
.wp-block-video:not(.caption-outside):has(video:not([controls])) {
	position: relative;
	overflow: hidden;
	}

/* Inline by default, which leaves a line-height gap under the video for the caption to sit in. */
.wp-block-video:not(.caption-outside):has(video:not([controls])) video {
	display: block;
	}

/* The caption below the video is what used to space it from the next block. Over the video it
   takes up no room, so the figure carries that space itself - and only when there is a caption,
   to leave a video without one as flush as it was. */
.wp-block-video:not(.caption-outside):has(video:not([controls])):has(figcaption:not(:empty)) {
	margin-bottom: 24px;
	}

.wp-block-video:not(.caption-outside):has(video:not([controls])) figcaption {
	position: absolute;
	color: #fff !important;
	box-sizing: border-box;
	background-image: linear-gradient(to top, rgba(16,18,19,0.5) 0%,rgba(16,18,19,0) 100%);
	padding: 120px 24px 18px;
	margin-bottom: 0;
	text-align: center;
	line-height: 1.5em;
	bottom: 0;
	width: 100%;
	}

.wp-block-video:not(.caption-outside):has(video:not([controls])) figcaption a,
.wp-block-video:not(.caption-outside):has(video:not([controls])) figcaption a:link {
	color: inherit;
	}

.has-rounded-corners .wp-block-video:not(.caption-outside):has(video:not([controls])) figcaption {
	border-radius: 6px;
	}

/* A caption whose text is taller than its image cannot work as an overlay - the figure's
   overflow would cut it off. makaiCaptionFit() in scripts.js measures each one and adds
   .caption-outside when the text does not fit, which drops it below the image as normal
   text. On a gallery the class goes on the gallery itself rather than the figure, because one
   caption that does not fit moves all of them - a row with some captions over the images and
   some under them looks like a mistake. Without JS everything stays an overlay, as before.
   Below the image the type drops the overlay's letter-spacing, uppercase and weight: those
   carry a short line over a picture, but read as shouting in a block of body text. */
/* These have to outweigh the Image Caption customizer output as well as the overlay rules,
   and Kirki prints its CSS after this sheet - hence the extra class on the nested-images
   selector and the child combinators on the older ones, which is what wins those ties. */
figure.caption-outside figcaption,
.wp-block-gallery.caption-outside.has-nested-images figure.wp-block-image figcaption,
.wp-block-gallery.caption-outside figure.blocks-gallery-image > figcaption,
.wp-block-gallery.caption-outside .blocks-gallery-item > figure > figcaption,
.blocks-gallery-grid.caption-outside figure.blocks-gallery-image > figcaption,
.blocks-gallery-grid.caption-outside .blocks-gallery-item > figure > figcaption {
	position: static;
	width: auto;
	max-height: none;

	/* The nested-images caption is given flex-basis: 100%, which costs nothing while it is an
	   overlay but claims the figure's entire height once it is back in the flow - leaving the
	   picture, whose basis is 0, with nothing to grow into at all. Only the basis is reset:
	   core's flex-grow shares the leftover height between caption and picture, which is what
	   keeps the pictures in a row close to the same height. */
	flex-basis: auto;

	color: inherit !important;
	background-image: none;
	text-shadow: none;
	text-align: center;
	font-size: 0.8em;
	font-weight: normal;
	letter-spacing: normal;
	text-transform: none;
	margin-top: 12px;
	margin-bottom: 36px;
	padding: 0;
	}

/* The pre-5.9 markup lays each item out as a flex row with the caption absolutely positioned
   over it, so a caption made static would land beside the image instead of under it. Turning
   the figure into a column puts it back in reading order, and the item has to stop clipping
   or the caption it now makes room for would be cut off. */
.wp-block-gallery.caption-outside .blocks-gallery-image,
.wp-block-gallery.caption-outside .blocks-gallery-item figure,
.blocks-gallery-grid.caption-outside .blocks-gallery-image,
.blocks-gallery-grid.caption-outside .blocks-gallery-item figure {
	display: flex;
	flex-direction: column;
	}

.wp-block-gallery.caption-outside .blocks-gallery-image,
.wp-block-gallery.caption-outside .blocks-gallery-item,
.blocks-gallery-grid.caption-outside .blocks-gallery-image,
.blocks-gallery-grid.caption-outside .blocks-gallery-item {
	overflow: visible;
	}

/* Nothing here resizes the pictures themselves: a cropped gallery sizes them from
   .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image),
   whose :not(#id) carries ID weight on purpose, so no class selector can reach them. They keep
   flexing into whatever the caption leaves - which is fine now that the caption only takes the
   room its text needs. */

figure.wp-block-image a div {
	display: contents;
	}



/* Audio */



/* Cover */
.wp-block-cover, 
.wp-block-cover-image {
	min-height: 480px;
	}

.wp-block-cover__inner-container .wp-block,
.editor-styles-wrapper .wp-block-cover__inner-container .wp-block {
	max-width: 100%;
	}

.wp-block-cover h1:not(.has-text-color),
.wp-block-cover h2:not(.has-text-color),
.wp-block-cover h3:not(.has-text-color),
.wp-block-cover h4:not(.has-text-color),
.wp-block-cover h5:not(.has-text-color),
.wp-block-cover h6:not(.has-text-color),
.wp-block-cover-text,
.wp-block-cover p:not(.has-text-color),
.wp-block-cover p a:not(.button):not(.wp-block-button__link):not(.wc-block-grid__product-link),
.wp-block-cover p a:not(.button):not(.wp-block-button__link):not(.wc-block-grid__product-link):link,
.wp-block-cover p a:not(.button):not(.wp-block-button__link):not(.wc-block-grid__product-link):hover,
.wp-block-cover p a:not(.button):not(.wp-block-button__link):not(.wc-block-grid__product-link):active,
.wp-block-cover p a:not(.button):not(.wp-block-button__link):not(.wc-block-grid__product-link):visited
.wp-block-cover-image h1:not(.has-text-color),
.wp-block-cover-image h2:not(.has-text-color),
.wp-block-cover-image h3:not(.has-text-color),
.wp-block-cover-image h4:not(.has-text-color),
.wp-block-cover-image h5:not(.has-text-color),
.wp-block-cover-image h6:not(.has-text-color),
.wp-block-cover-image p:not(.has-text-color) {
	color: #fff;
	}

.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover h3,
.wp-block-cover h4,
.wp-block-cover h5,
.wp-block-cover h6 {
	margin-top: 24px;
	}

/* File */
.wp-block-file .wp-block-file__button{
	border-radius: 0;
	border-radius: var(--button--border-radius);
	padding: 4px 24px;
	}

/* Media & Text */


/* Video */
.wp-block-video {
	margin-top: 36px;
	}

.site-content.thumbnail-none .entry-content > .wp-block-video:first-child {
	margin-top: -48px;
	}


/** *****************************************************************************************
** ## DESIGN  ******************************************************************************
*********************************************************************************************/

/* Buttons */
.wp-block-button i {
	padding-left: 2px;
	}

.wp-block-button,
.wp-block-buttons .wp-block-button  {
	position: relative;
	margin-bottom: 24px;
	margin-bottom: 6px;
	}

/* Buttons that wrap onto a second line: the 24px gap of the global block layout plus the 6px margin of each
   button left 30px between the lines. The margin stays (it is also the space under the buttons), so a row
   gap of 6px makes 12px. The gap between buttons on one line is not touched. */
.wp-block-buttons.is-layout-flex {
	row-gap: 6px;
	}

/* The label may wrap. With white-space: nowrap a long one made the button wider than its column
   and, on a phone, wider than the screen - a button still stays on one line while its label fits.
   Balancing keeps the lines of a wrapped label even, and stops an icon at the end of it from
   being left alone on a line of its own. */
.wp-block-button .wp-block-button__link,
.wp-block-button .wp-block-button__link.wp-element-button,
.wp-core-ui a.button  {
	cursor: pointer;         
	overflow: visible;
	display: inline-block;
	text-align: center;  
	text-decoration: none;
	-webkit-appearance: none;
	word-break: initial;
	text-wrap: balance;
	line-height: inherit;  
	border: none;
	padding: 7px 38px;
	}

a.button.button-outline,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	padding: 5px 38px;
	border-width: 2px;
	border-style: solid;
	}

/* core's default .wp-block-button__link is a 9999px pill. The theme's baseline is square,
   with the rounded-corners setting layering 6px back on top (see the .has-rounded-corners
   lists), so neutralise the pill here rather than letting it show through in sharp mode. */
.wp-block-button__link {
	border-radius: 0;
	}

/* core's "Squared" button style ships no border-radius rule of its own, so keep it square
   explicitly - it must stay square whichever way the rounded-corners setting is switched. */
.wp-block-button.is-style-squared .wp-block-button__link {
	border-radius: 0;
	}




.wp-block-button {
  transition: background-color 0.3s ease, color 0.3s ease;
}









/* Columns */
.wp-block-columns {
	margin-bottom: 1.25rem;
	}

.wp-block-columns.has-background {
	margin: 24px 0 0;
	}

.wp-block-columns.has-background,
.wp-block-column.has-background {
	padding: 24px;
	}

.wp-block-column > :first-child {
	margin-top: 0;
	}

.wp-block-columns .wp-block-heading,
.wp-block-columns p {
	//padding-left: 24px;
	//padding-right: 24px;
	}

.wp-block-column:first-child .wp-block-heading,
.wp-block-column:first-child p {
	//padding-left: 48px;
	}

.wp-block-column:last-child .wp-block-heading,
.wp-block-column:last-child p {
	//padding-right: 48px;
	}

.wp-block-column .wp-block-image {
	margin: 0;
	}

/* Editor: blocks are spaced by a top margin on the next block, which the rule above removes, so an
   image sat right under the paragraph before it. The front end has the paragraph's bottom margin there. */
.editor-styles-wrapper .wp-block-column > * + .wp-block-image {
	margin-top: 1.25rem;
	}



/* Group */
.wp-block-group__inner-container > :first-child {
	margin-top: 0;
	}

.wp-block-group.has-background {
	//padding: 36px 36px 12px;
	//padding: 36px 36px 24px;
	padding: 36px;
	//margin-top: 48px;
	}

/* A full width group lines up with the header and the full width blocks: 48px on every side. Narrower
   screens take their own padding further down. */
.wp-block-group.alignfull.has-background {
	padding: 48px;
	}

.widget-area .wp-block-group.has-background,
.wp-block-widget-area .wp-block-group.has-background {
	padding: 24px;
	}

.wp-block-group {
    margin: 0;
}

.right-sidebar .wp-block-group__inner-container {
	padding-bottom: 24px;
	}

/* Row */

/* Stack */

/* More */

/* Spacer */

/** *****************************************************************************************
** ## WIDGETS  ******************************************************************************
*********************************************************************************************/


/* widget area */
.widget-area ul,
.widget-area ol {
	//margin: 0;
	}

.widget-area ul li {
	list-style-type: none;
	}

.widget-area section,
.wp-block-widget-area section {
	margin-top: 24px;
	}

section:has(:is(h1, h2, h3, h4, h5, h6):only-child) + section.widget_block,
section:has(:is(h1, h2, h3, h4, h5, h6):only-child) + .wp-block-widget-area section {
	margin-top: 0;
	}

.widget-area h1, 
.widget-area h2, 
.widget-area h3, 
.widget-area h4, 
.widget-area h5, 
.widget-area h6,
.wp-block-widget-area h1, 
.wp-block-widget-area h2, 
.wp-block-widget-area h3, 
.wp-block-widget-area h4, 
.wp-block-widget-area h5, 
.wp-block-widget-area h6 {
	//margin: 29px 0 18px 0;
	margin: 38px 0 8px 0;
	}






.widget select {
	width: 100%;
	max-width: 100%;
	font-weight: 500;
	}



.site-footer .widget-area ul li {
	list-style-type: none;
	margin: 0;
	padding: 0;
	}





/* 
widgets with border separator 
- Archives
- Terms List
- Page List
*/



ul.wp-block-archives-list,
ul.wp-block-page-list {
	margin: 0 0 24px 0;
	padding-left: 0;
	}

.wp-block-archives-list li,
.wp-block-page-list li  {
	list-style: none;
	//text-transform: uppercase;
	//letter-spacing: 2px;
	//font-size: 0.8em;
	font-weight: 500;
	padding: 3px 0;
	margin: 0;
	}

.wp-block-archives-list a,
.wp-block-page-list a {
	line-height: 2em;
	background-image: none !important;
	}








/* Archives */

/* Calendar */
.wp-block-calendar caption {
	font-weight: 500;
	text-align: left;
	}

.wp-block-calendar table {
	border-collapse: initial;
	}

.wp-block-calendar td, 
.wp-block-calendar th {
	border: none;
	margin: 3px;
	}

nav.wp-calendar-nav {
	text-align: left;
	font-weight: 500;
	padding-left: 6px;
	}


/* Terms List + Categories List */
ul.block-editor-block-list__block.wp-block-categories-list {
	padding-left: 0;
	margin-left: 0;
	}

li.cat-item.cat-item-1 {
	margin-top: 0;
	}

.wp-block-categories-list .cat-item {
	display: inline-block;
	margin: 8px 4px 0 0;
	padding: 4px 18px;
	font-size: 0.8em;
	font-weight: 500;
	vertical-align: bottom;
	line-height: 2em;
	background: #f9f9fa;
	}


/* Custom HTML*/

/* Latest Comments */
.wp-block-latest-comments {
	margin: 0;
	}

.wp-block-latest-comments__comment,
ol li.wp-block-latest-comments__comment {
	font-size: 1em;
	margin-bottom: 24px;
	line-height: 1.5em;
	}

ol.has-excerpts li.wp-block-latest-comments__comment {
	margin-bottom: 48px;
	margin-top: 24px;
	}

.wp-block-latest-comments__comment-author {
	font-size: 1em;
	letter-spacing: 0;
	text-transform: none;
	font-weight: 700;
	}

.wp-block-latest-comments__comment-link {
	font-size: 1em;
	letter-spacing: 0;
	text-transform: none;
	font-weight: 700;
	}

.wp-block-latest-comments__comment-date {
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	line-height: 0.6em;
	padding: 15px 0;
	}

.wp-block-latest-comments.has-avatars .wp-block-latest-comments__comment article {
	margin-left: 12px;
	}

.wp-block-latest-comments__comment-excerpt p {
	font-size: 1em;
	font-weight: 400;
	margin-top: 0;
	}

.wp-block-latest-comments .avatar, 
.wp-block-latest-comments__comment-avatar {
	height: auto;
	width: auto;
	}

/* recent comments widget 2 */
.widget_recent_comments {
	font-size: 0.9em;	
	}

.widget_recent_comments ul li {
	font-style: normal;	
	}

.widget_recent_comments ul li,
.widget_recent_comments .comment-author-link,
.widget_recent_comments .recentcomments a  {
	font-style: normal;
	}

.widget_recent_comments ul li { 
	margin-bottom: 12px;
	}

.widget_recent_comments .comment-author-link,
.widget_recent_comments a {
	font-weight: bold;
	}

.widget_recent_comments .recentcomments {
	font-size: 0.73rem;
	}

.widget_recent_comments .recentcomments a {
	padding: 0 6px;
	}

.widget_recent_comments .recentcomments a:first-child {
	padding-left: 0;
	}




/* Latest Posts */
.wp-block-latest-posts.alignwide,
.wp-block-latest-posts.alignfull {
	padding: 24px 48px;
	}

.wp-block-latest-posts {
	margin: 24px 0 60px;
	}

.wp-block-latest-posts li {
	list-style: none;
	margin-top: 0; /* core's :root :where(.is-layout-flow) > * would otherwise add 24px here */
	margin-bottom: 0.5em;
	padding-top: 0.5em;
	}

/* the separator sits between items, so the first one needs neither line nor the gap above it */
.wp-block-latest-posts__list > li:first-child {
	padding-top: 0;
	}

.wp-block-latest-posts li a {
	text-decoration: none;
	font-size: 1.2em;
	font-weight: 700;
	display: block;
	}

.wp-block-latest-posts__post-date, 
.wp-block-latest-posts__post-author {
	display: block;
	font-size: 0.7em;
	text-transform: uppercase;
	letter-spacing: 2px;
	display: inline-block;
	margin-right: 24px;
	}

.wp-block-latest-posts__post-excerpt {
	margin-top: 24px;
	margin-bottom: 24px;
	margin-right: 24px;
	font-weight: 400;
	}

/* recent entries widget 2 */
.widget_recent_entries ul li {
	display: flex;
	margin-top: 0;
	margin-bottom: 0.5em; /* match the padding-top above, so the separator stays centred */
	}

.wp-block-latest-posts__featured-image {
	width: 33%;
	min-width: 33%;
	padding-right: 12px;
	}

.wp-block-latest-posts__featured-image img {
	display: block;
	}

.widget_recent_entries span {
	display: block;
	padding: 0;
	}

.widget_recent_entries a {
	font-size: 1.2em;
	}


/* Theme blocks (post meta, login/out, comments form, navigation)
   None of these carry a margin of their own, so whatever follows them sat right on top of them.
   They get the paragraph's bottom margin. Inside a Group, Row or Stack core's layout spacing
   takes over again, and inside a Query Loop post the rules below do. */
.wp-block-post-date,
.wp-block-post-terms,
.wp-block-post-author,
.wp-block-post-comments-count,
.wp-block-post-comments-link,
.wp-block-post-time-to-read,
.wp-block-post-excerpt,
.wp-block-avatar,
.wp-block-read-more,
.wp-block-post-navigation-link,
.wp-block-loginout,
.wp-block-navigation {
	margin-bottom: 1.25rem;
	}

/* The comments form always carries id="respond", and ".single #respond" in style.css zeroes
   its margin; the id and element are what outweigh that. */
div#respond.wp-block-post-comments-form {
	margin-bottom: 1.25rem;
	}

/* Post Terms
   Categories (and any other taxonomy) show as the theme's category pills, tags as its #tag chips.
   Colours, size and weight below are fallbacks - the customizer's Categories and Post Tags
   settings output the real values. The pills are spaced by their margin, so the comma goes. */
.wp-block-post-terms a {
	display: inline-block;
	margin: 0 6px 6px 0;
	transition: background-color 0.3s ease-in-out, color 0s linear 0.15s; /* text swaps halfway through the fade, so it never sits black-on-black or white-on-pink */
	}

.wp-block-post-terms:not(.taxonomy-post_tag) a {
	padding: 4px 12px;
	font-size: 0.58rem;
	font-weight: 500;
	line-height: 1.6em;
	letter-spacing: 2px;
	text-transform: uppercase;
	background-color: #000;
	color: #fff;
	}

.wp-block-post-terms:not(.taxonomy-post_tag) a:hover {
	background-color: #e6bcb4;
	color: #000;
	}

.wp-block-post-terms.taxonomy-post_tag a {
	padding: 4px 18px;
	font-size: 0.8em;
	font-weight: 400;
	line-height: 19px;
	background-color: #101020;
	color: #fff;
	}

.wp-block-post-terms.taxonomy-post_tag a:hover {
	background-color: #e6bcb4;
	}

.wp-block-post-terms.taxonomy-post_tag a::before {
	content: "#";
	}

.wp-block-post-terms__separator {
	display: none;
	}

/* Post Date, Post Author and Next/Previous read as the theme's post meta: small, uppercase and
   spaced out, 0.8rem like the single post header and 0.7rem inside a Query Loop like the
   Blog Posts block. Transform and letter-spacing follow the customizer's Post Meta setting. */
.wp-block-post-date,
.wp-block-post-author__name,
.wp-block-post-author-name,
.wp-block-post-comments-count,
.wp-block-post-comments-link,
.wp-block-post-time-to-read,
.wp-block-post-navigation-link {
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 1.6em;
	letter-spacing: 2px;
	text-transform: uppercase;
	}

.wp-block-post-template .wp-block-post-date,
.wp-block-post-template .wp-block-post-author__name,
.wp-block-post-template .wp-block-post-author-name,
.wp-block-post-template .wp-block-post-comments-count,
.wp-block-post-template .wp-block-post-comments-link,
.wp-block-post-template .wp-block-post-time-to-read {
	font-size: 0.7rem;
	}

/* the "Written by" line, like the lowercase "by" in the post header */
.wp-block-post-author__byline {
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 1px;
	opacity: 0.7;
	}

/* Without a bio the name is one short line, so centre it on the avatar. With a bio the text
   runs long and the avatar stays at the top. */
.wp-block-post-author:not(:has(.wp-block-post-author__bio)) {
	align-items: center;
	}

/* The author name sits in a <p>, so it picked up the paragraph link underline; post header
   bylines have none. Two classes are what outweigh ".entry-content p:not(sup) a:not(...)". */
.wp-block-post-author .wp-block-post-author__name a:not(.tag-cloud-link) {
	background-image: none;
	text-shadow: none;
	}

/* With "Show post title" on, only the label stays uppercase */
.wp-block-post-navigation-link .post-navigation-link__title {
	text-transform: none;
	letter-spacing: 0;
	}

/* Avatars are round, like the Comments block's default avatar. A radius set on the block
   itself is an inline style and still wins. */
.wp-block-avatar img,
.wp-block-post-author__avatar img {
	border-radius: 50%;
	}

/* Comments */
/* Same size as the theme's comments title; the "Post Titles Medium" customizer setting overrides it. */
.wp-block-comments-title {
	font-size: 1.4em;
	line-height: 1.3em;
	}

/* The default comment template puts the avatar in a 40px column. Core stacks every column
   full width below 782px with flex-basis: 100% !important, which leaves the avatar alone on a
   row above the name - so the override has to be !important too. */
@media only screen and (max-width: 781px) {

	.wp-block-comment-template .wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-wrap: nowrap !important;
		}

	.wp-block-comment-template .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 0 !important;
		flex-grow: 1;
		}

	.wp-block-comment-template .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column[style*="flex-basis"] {
		flex-basis: auto !important;
		flex-grow: 0;
		}

}

/* Comments Form: "Leave a Reply" centred at the "Post Titles Medium" size, as on a single post.
   On the site #reply-title gets that size from the Customizer; the editor never saw it, so the
   title stayed a 36px H3 aligned left. */
.wp-block-post-comments-form .comment-reply-title {
	margin-top: 0;
	margin-bottom: 24px;
	font-size: 1.4em;
	line-height: 1.3em;
	text-align: center;
	}

/* Comment Author Name, Date, Edit and Reply links: without a size of their own they were body text.
   A font size picked in the block (a preset class or an inline style) still wins. */
.wp-block-comment-author-name {
	font-weight: 500;
	}

.wp-block-comment-date,
.wp-block-comment-edit-link,
.wp-block-comment-reply-link {
	font-size: 0.8rem;
	}

/* Query Loop */
.wp-block-query {
	margin-bottom: 48px;
	}

/* Inside a post the blocks sit close together, so date, terms and excerpt read as belonging
   to the title above them. Without this a title's 48px top margin pulled each date away
   from its own post and next to the previous one. */
.wp-block-post-template > li > * {
	margin-top: 0;
	margin-bottom: 0;
	}

.wp-block-post-template > li > * + * {
	margin-top: 12px;
	}

/* Editor: every post after the first is a live preview whose <li> starts with a <style> and an <svg>,
   so its title counted as a "next" block and sat 12px lower than the first post's title. */
.editor-styles-wrapper .wp-block-post-template > li > :is(style, svg) + :not(style, svg) {
	margin-top: 0;
	}

/* Same size as related post titles; the "Post Titles Medium" customizer setting overrides it. */
.wp-block-post-template .wp-block-post-title {
	font-size: 1.4em;
	line-height: 1.3em;
	}

/* List layout: a separator between posts, like the Latest Posts list. Grid layouts are left
   out - a line above every item would only look right in the first column. flow-root keeps
   a floated featured image inside its own post. */
.wp-block-post-template:not(.is-layout-grid):not(.is-flex-container) > li {
	display: flow-root;
	margin-top: 0; /* core's :root :where(.is-layout-flow) > * would otherwise add 24px here */
	padding-top: 36px;
	padding-bottom: 36px;
	border-top: 1px solid rgba(200,200,210,0.3);
	}

.wp-block-post-template:not(.is-layout-grid):not(.is-flex-container) > li:first-child {
	padding-top: 0;
	border-top: 0;
	}

.wp-block-post-template:not(.is-layout-grid):not(.is-flex-container) > li:last-child {
	padding-bottom: 0;
	}

/* Query Pagination */
/* no bottom padding - the Query Loop's own 48px margin already sits below it */
.wp-block-query-pagination {
	padding-top: 48px;
	padding-bottom: 0;
	}

/* Next/Previous page links of the Query Loop, Comments and product Reviews pagination read as the
   theme's post meta, like the Post Navigation Link block: small, uppercase and spaced out. Transform
   and letter-spacing follow the Customizer's Post Meta setting. They sit level with the number tiles. */
.wp-block-query-pagination-next,
.wp-block-query-pagination-previous,
.wp-block-comments-pagination-next,
.wp-block-comments-pagination-previous,
.wp-block-woocommerce-product-reviews-pagination-next,
.wp-block-woocommerce-product-reviews-pagination-previous {
	align-self: center;
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 1.6em;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	}

/* Page numbers of the Query Loop, Comments and product Reviews pagination: the theme's 48px tiles.
   On the site style.css floats them, which let the next block slide up beside them; in the editor,
   which does not load style.css, they ran together as "12345...8". A flex row does both jobs. */
.wp-block-query-pagination-numbers,
.wp-block-comments-pagination-numbers,
.wp-block-woocommerce-product-reviews-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	}

.wp-block-query-pagination-numbers .page-numbers,
.wp-block-comments-pagination-numbers .page-numbers,
.wp-block-woocommerce-product-reviews-pagination-numbers .page-numbers {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	float: none;
	min-width: 48px;
	width: auto;
	height: 48px;
	margin: 0;
	padding: 0 12px;
	font-weight: 500;
	text-decoration: none;
	background: #eeeeef;
	}

.wp-block-query-pagination-numbers .page-numbers.current,
.wp-block-query-pagination-numbers a.page-numbers:hover,
.wp-block-comments-pagination-numbers .page-numbers.current,
.wp-block-comments-pagination-numbers a.page-numbers:hover,
.wp-block-woocommerce-product-reviews-pagination-numbers .page-numbers.current,
.wp-block-woocommerce-product-reviews-pagination-numbers a.page-numbers:hover {
	background-color: #2a282b;
	color: #fff;
	}

.has-rounded-corners .wp-block-query-pagination-numbers .page-numbers,
.has-rounded-corners .wp-block-comments-pagination-numbers .page-numbers,
.has-rounded-corners .wp-block-woocommerce-product-reviews-pagination-numbers .page-numbers {
	border-radius: 6px;
	}

/* Navigation */
/* core pads the mobile overlay with clamp(1rem, var(--wp--style--root--padding-*), 20rem).
   theme.json sets no root padding, so the variable is undefined, the whole declaration is
   dropped and the menu touches the screen edges. */
.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
	padding: 24px;
	}

/* The menu toggles and click-to-open submenu items are <button>s, so they picked up the
   theme's dark button background from style.css. */
.wp-block-navigation button.wp-block-navigation__responsive-container-open,
.wp-block-navigation button.wp-block-navigation__responsive-container-close {
	padding: 0;
	}

.wp-block-navigation button.wp-block-navigation__responsive-container-open,
.wp-block-navigation button.wp-block-navigation__responsive-container-close,
.wp-block-navigation button.wp-block-navigation-item__content {
	background: transparent;
	color: inherit;
	border-radius: 0;
	}

/* Submenus drop down like the header's: colours are fallbacks for the customizer's Subnavigation
   setting, and a background or text colour picked on the block itself still wins. Inside the
   open mobile overlay core forces submenus transparent with !important, so none of this shows there. */
.wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	background-color: #000;
	border: 0;
	}

.wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container {
	color: #fff;
	}

.wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	color: #83c5be;
	}

.wp-block-navigation .wp-block-navigation__submenu-container {
	padding-top: 12px;
	padding-bottom: 12px;
	}






/* Page List */


/* sub menu intendation for pages / nav menu / categories */
.widget-area:not(.center):not(.right) .widget_pages ul.children li a,
.widget-area:not(.center):not(.right) .widget_nav_menu ul.sub-menu li a,
.widget-area:not(.center):not(.right) .widget_categories ul.children li a {
	margin-left: 12px;
	}

.widget-area:not(.center):not(.right) .widget_pages ul.children ul li a,
.widget-area:not(.center):not(.right) .widget_nav_menu ul.sub-menu ul li a,
.widget-area:not(.center):not(.right) .widget_categories ul.children ul li a {
	margin-left: 24px;
	}

.widget-area:not(.center):not(.right) .widget_pages ul.children ul ul li a,
.widget-area:not(.center):not(.right) .widget_nav_menu ul.sub-menu ul ul li a,
.widget-area:not(.center):not(.right) .widget_categories ul.children ul ul li a {
	margin-left: 36px;
	}

.widget-area:not(.center):not(.right) .widget_pages ul.children ul ul ul li a,
.widget-area:not(.center):not(.right) .widget_nav_menu ul.sub-menu ul ul ul li a,
.widget-area:not(.center):not(.right) .widget_categories ul.children ul ul ul li a {
	margin-left: 48px;
	}

.widget-area:not(.center):not(.right) .widget_pages ul.children ul ul ul ul li a,
.widget-area:not(.center):not(.right) .widget_nav_menu ul.sub-menu ul ul ul ul li a,
.widget-area:not(.center):not(.right) .widget_categories ul.children ul ul ul ul li a {
	margin-left: 60px;
	}

.widget-area:not(.center):not(.right) .widget_pages ul.children ul ul ul ul ul li a,
.widget-area:not(.center):not(.right) .widget_nav_menu ul.sub-menu ul ul ul ul ul li a,
.widget-area:not(.center):not(.right) .widget_categories ul.children ul ul ul ul ul li a {
	margin-left: 72px;
	}

.widget-area:not(.center):not(.right) .widget_pages ul.children ul ul ul ul ul ul li a,
.widget-area:not(.center):not(.right) .widget_nav_menu ul.sub-menu ul ul ul ul ul ul li a,
.widget-area:not(.center):not(.right) .widget_categories ul.children ul ul ul ul ul ul li a {
	margin-left: 84px;
	}

.widget-area:not(.center):not(.right) .widget_pages ul.children ul ul ul ul ul ul ul li a,
.widget-area:not(.center):not(.right) .widget_nav_menu ul.sub-menu ul ul ul ul ul ul ul li a,
.widget-area:not(.center):not(.right) .widget_categories ul.children ul ul ul ul ul ul ul li a {
	margin-left: 96px;
	}

.widget-area:not(.center):not(.right) .widget_pages ul.children ul ul ul ul ul ul ul ul li a,
.widget-area:not(.center):not(.right) .widget_nav_menu ul.sub-menu ul ul ul ul ul ul ul ul li a,
.widget-area:not(.center):not(.right) .widget_categories ul.children ul ul ul ul ul ul ul ul li a {
	margin-left: 108px;
	}

.widget-area:not(.center):not(.right) .widget_pages ul.children ul ul ul ul ul ul ul ul ul li a,
.widget-area:not(.center):not(.right) .widget_nav_menu ul.sub-menu ul ul ul ul ul ul ul ul ul li a,
.widget-area:not(.center):not(.right) .widget_categories ul.children ul ul ul ul ul ul ul ul ul li a {
	margin-left: 120px;
	}



/* search block */
.wp-block-search {
	margin-bottom: 48px;
	}

.wp-block-search__button {
	padding: 0px 24px !important;
	}

/* The search button is a regular theme button: the size and weight of the others here, the colours
   from Customizer > Colors > Regular Buttons (inc/customizer.php adds it to those outputs). */
.wp-block-search .wp-block-search__button {
	font-size: 0.9rem;
	font-weight: 600;
	background-color: #83c5be;
	color: #fff;
	border: 0;
	}

.wp-block-search .wp-block-search__button:hover {
	background-color: #ffd138;
	color: #000;
	}

/* Tabs
   Core styles its tab buttons with :where(), which weighs nothing, so the theme's button look
   (dark fill, 38px side padding, no wrapping) won on the site and every tab was a black button.
   This gives the tabs back their plain look: text with a line under the open tab. */
.wp-block-tabs {
	margin-bottom: 1.25rem;
	}

.wp-block-tabs .wp-block-tab-list {
	gap: 0;
	border-bottom: 1px solid rgba(200,200,210,0.5);
	}

.wp-block-tabs .wp-block-tab-list button {
	margin: 0 0 -1px;
	padding: 12px 24px;
	font-family: inherit;
	font-size: inherit;
	font-weight: 500;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	white-space: normal;
	color: inherit;
	background: none;
	border: 0;
	border-radius: 0;
	opacity: 0.6;
	transition: opacity 0.3s ease-in-out;
	}

.wp-block-tabs .wp-block-tab-list button:hover,
.wp-block-tabs .wp-block-tab-list button[aria-selected="true"] {
	color: inherit;
	background: none;
	opacity: 1;
	}

.wp-block-tabs .wp-block-tab-panel {
	padding-top: 24px;
	}

/* Accordion
   Same story as the tabs: the heading is a <button>, so on the site it was a dark bar with white text.
   A fine line between the items, like the theme's lists. */
.wp-block-accordion {
	margin-bottom: 1.25rem;
	}

.wp-block-accordion .wp-block-accordion-item {
	margin-top: 0; /* core's :root :where(.is-layout-flow) > * would otherwise add 24px here */
	border-top: 1px solid rgba(200,200,210,0.5);
	}

.wp-block-accordion .wp-block-accordion-item:last-child {
	border-bottom: 1px solid rgba(200,200,210,0.5);
	}

/* The heading is an H3 by default, which made every question 36px. Same size as the Query Loop
   and comments titles. A font size picked in the block (preset class or inline style) still wins. */
.wp-block-accordion .wp-block-accordion-heading {
	margin: 0;
	font-size: 1.4em;
	line-height: 1.3em;
	}

.wp-block-accordion .wp-block-accordion-heading__toggle {
	padding: 18px 0;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	text-align: inherit;
	white-space: normal;
	color: inherit;
	background: none;
	border: 0;
	border-radius: 0;
	}

.wp-block-accordion .wp-block-accordion-heading__toggle:hover {
	color: inherit;
	background: none;
	}

.wp-block-accordion .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
	text-decoration: none;
	}

.wp-block-accordion .wp-block-accordion-heading__toggle-icon {
	flex-shrink: 0;
	margin-left: 24px;
	}

.wp-block-accordion .wp-block-accordion-panel {
	padding-bottom: 24px;
	}

.wp-block-accordion .wp-block-accordion-panel > :first-child {
	margin-top: 0;
	}

.wp-block-accordion .wp-block-accordion-panel > :last-child {
	margin-bottom: 0;
	}

/* search widget 2 */
.searchform {
	justify-content: space-between;
	align-items: center;
	display: flex;
	padding: 4px 18px;
	}

.search .search-field-label,
.search .search-field {
	width: 100%;
	padding: 0 8px;
	}

input.search-field,
input.search-field[type="search"] {
	border: none;
	background: transparent;
	padding: 0;
	font-weight: 600;
	}

.button.button-searchform {
	width: auto;
	padding: 0;
	height: auto;
	background-color: transparent !important;
	border: none !important;
	}

.button.button-searchform:focus {
	outline: none;
	}

.searchform label {
	padding-bottom: 0;
	}

.searchform i {
	font-size: 16px;
	}

/* social links */
.wp-block-social-links {
	padding: 36px 0;
	}

/* tag cloud */
.tagcloud,
.wp-block-tag-cloud {
	font-weight: 500;
	}

.tagcloud a,
.wp-block-tag-cloud a {
	padding: 12px 24px;
	margin: 0 4px 8px 0;
	display: inline-block;
	line-height: 1.3em;
	vertical-align: middle;
	background: #f9f9fa;
	}

/* One size for every tag: WordPress scales each tag by how often it is used (an inline font-size),
   which made the pills anything from tiny to huge. */
.wp-block-tag-cloud a {
	font-size: 0.8em !important;
	}

/* Same pill as the Terms List block next to it (37px tall instead of 44px). The classic tag cloud
   widget (.tagcloud) keeps its larger pill. */
.wp-block-tag-cloud a {
	margin: 0 4px 8px 0;
	padding: 4px 18px;
	line-height: 2em;
	vertical-align: bottom;
	}

.tagcloud a::before {
	content: '#';
	}



/* mailchimp */
.mc4wp-form {
	text-align: center;
	}

.widget-area .mc4wp-form {
	padding: 24px;
	}

.contentboxes-content .mc4wp-form {
	background: transparent;
	padding: 0;
	}

.mc4wp-form h1,
.mc4wp-form h2,
.mc4wp-form h3,
.mc4wp-form h4,
.mc4wp-form h5,
.mc4wp-form h6 {
	margin-top: 12px;
	}

.mc4wp-form input[type="email"] {
	width: 300px;
	max-width: 100%;	
	}

.mc4wp-form .subscribe-text,
.mc4wp-form input[type="text"] {
	display: block;
	}

.mc4wp-form input[type="email"], 
.mc4wp-form input[type="submit"] {
	display: inline-block;
	margin-left: 6px;
	margin-right: 6px;
	border: none;
	}

.mc4wp-form input[type="submit"] {
	backgrund-color: #000;
	color: #fff;
	}

.mc4wp-form .subscribe-text {
	margin-bottom: 24px;
	}

.mc4wp-form input[type="email"],
.mc4wp-form input[type="text"] {
	text-align: center;
	margin-top: 12px;
	height: auto;
	line-height: inherit;
	padding-top: 7px;
	padding-bottom: 7px;
	}

.mc4wp-form input[type="submit"] {
	margin-top: 12px;
	vertical-align: bottom;
	}

.widget_mc4wp_form_widget .mc4wp-form {
	background: transparent;
	padding: 0;
	text-align: center;
	}

.widget_mc4wp_form_widget .subscribe-text {
	text-align: center;
	}

.widget_mc4wp_form_widget input[type="text"],
.widget_mc4wp_form_widget input[type="email"],
.widget_mc4wp_form_widget input[type="submit"] {
	width: 100%;
	}

.mc4wp-response {
	margin-top: 24px;
	}

.widget_mc4wp_form_widget {
	padding: 24px;
	}

.widget_mc4wp_form_widget {
	padding: 40px 24px 24px;
	background: #f6f6f7;
	height: fit-content;
	}


/* Embeds ****************/
.wp-block-embed {
	margin-bottom: 24px;
	}

.wp-block-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	}

.wp-block-embed-youtube.wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper:before {
	padding-top: 0;
	}

.wp-block-embed iframe {
	width: 100%;
	margin: 0 auto;
	}




/********************************
CUSTOM BLOCKS
/********************************
	## BLOG POSTS Block
	## PAGE HEADER Block
	## SECTION HEADER Block
	## LINK BOXES Block
	## CONTENT BOXES Block
	## NEWSLETTER SIGNUP Block
	## LOGOS Block
	## SUBTITLE Block
	## SOCIAL ICONS Block
**********************************/



/* links in backend unclickable */
.editor-styles-wrapper .postsectionheadline-wrap a,
.editor-styles-wrapper .contentboxes-wrap a,
.editor-styles-wrapper .blog-block-content-wrap a {
    pointer-events: none !important;
    cursor: default !important;
}


/** *****************************************************************************************
** ## BLOG POSTS Block **********************************************************************
*********************************************************************************************/

.section.section-blog.layout-overimage.alignfull:not(.padding-none):not(.bgtype-image):not(.bgtype-video) {
	padding-left: 48px;
	padding-right: 48px;
	}

.bgtype-color .blog-block-header,
.bgtype-image .blog-block-header,
.bgtype-video .blog-block-header {
	//padding-bottom: 37px;
	}

.blog-block-section-headline {
	margin: 0;
	padding: 0;
	}

.blog-block-section-content {
	display: block;
	//max-width: 720px;
	max-width: 600px;
	//margin: 24px auto 39px;
	margin: 24px auto 0;
	}

.section.section-blog.headerlayout-justified .blog-block-section-content {
	margin-left: 0;
	}

.section.section-blog .blog-block-header {
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	}

.blog-block-section-button.viewall {
	align-self: center;
	margin-top: 20px;
	}

.section.section-blog.headerlayout-justified .blog-block-header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	text-align: left;
	}

.section.section-blog.headerlayout-justified .blog-block-section-button.viewall {
	align-self: flex-end;
	}


.section-blog .articles-wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	padding: 0;
	}

article.article-empty {
	visibility: hidden;
	}

.single .article-content.overimage .entry-header {
	background: transparent;
	}

.section-blog .post-grid,
.section-blog.padding-fourtyeight .post-grid {
	flex-basis: calc(33.33% - 32px);
	width: calc(33.33% - 32px);
	}

.section-blog .post-grid.masonry-item,
.section-blog.padding-fourtyeight .post-grid.masonry-item,
.section-blog.layout-listfirstlarge.first-post-large article.firstlargeitem {
	flex-basis: calc(33.33%);
	width: calc(33.33%);
	}

.section-blog.padding-twentyfour .post-grid {
	margin-top: 24px;
	}

.section-blog.perrow-two.layout-listfirstlarge.first-post-large article.firstlargeitem {
	flex-basis: calc(50% - 24px);
	width: calc(50% - 24px);
	}

.section-blog.perrow-two .listfirst-wrap-right {
	flex-basis: calc(50% - 24px);
	width: calc(50% - 24px);
	}

/* fix in editor */
.section-blog.perrow-two .listfirst-wrap-right .listfirst-wrap-right{
	flex-basis: 100%;
	width: 100%;
	}

.section-blog.padding-fourtyeight .post-grid {
	//margin-top: 30px;
	//margin-top: 0;
	margin-top: 48px;
	}



.section-blog:not(.layout-listfirstlarge).padding-fourtyeight.perrow-one .post-grid:nth-child(-n+1),
.section-blog:not(.layout-listfirstlarge).padding-fourtyeight.perrow-two .post-grid:nth-child(-n+2),
.section-blog:not(.layout-listfirstlarge).padding-fourtyeight.perrow-three .post-grid:nth-child(-n+3),
.section-blog:not(.layout-listfirstlarge).padding-fourtyeight.perrow-four .post-grid:nth-child(-n+4),
.section-blog.layout-listfirstlarge.first-post-large.padding-fourtyeight.perrow-two .post-grid:nth-child(-n+1),
.section-blog.layout-listfirstlarge.first-post-large.padding-fourtyeight.perrow-three .post-grid:nth-child(-n+2),
.section-blog.layout-listfirstlarge.padding-fourtyeight.perrow-three .post-grid:nth-child(-n+3) {
	//margin-top: 0;
	}


.section-blog:not(.layout-listfirstlarge).perrow-one .post-grid:nth-child(-n+1),
.section-blog:not(.layout-listfirstlarge).perrow-two .post-grid:nth-child(-n+2),
.section-blog:not(.layout-listfirstlarge).perrow-three .post-grid:nth-child(-n+3),
.section-blog:not(.layout-listfirstlarge).perrow-four .post-grid:nth-child(-n+4),
.section-blog.layout-listfirstlarge.first-post-large.perrow-two .post-grid:nth-child(-n+1),
.section-blog.layout-listfirstlarge.first-post-large.perrow-three .post-grid:nth-child(-n+2),
.section-blog.layout-listfirstlarge.perrow-three .post-grid:nth-child(-n+3) {
	margin-top: 0;
	}

.has-bg-image .articles-wrap {
	margin-top: 0px;
	}

.bgtype-color .articles-wrap,
.bgtype-image .articles-wrap,
.bgtype-video .articles-wrap {
	//margin-top: 24px;
	margin-top: 42px;
	}



/* one */
.perrow-one.section-blog .post-grid,
.perrow-one.section-blog.padding-fourtyeight .post-grid {
	width: 100%;
	flex-basis:  100%;
	}


/* two */
.perrow-two.section-blog .post-grid,
.perrow-two.section-blog.padding-fourtyeight .post-grid {
	width: calc(50% - 24px);
	flex-basis: calc(50% - 24px);
	}

.perrow-two.section-blog.padding-none .post-grid {
	flex-basis: calc(50%);
	width: calc(50%);
	}

.perrow-two.section-blog.padding-twentyfour .post-grid {
	flex-basis: calc(50% - 12px);
	width: calc(50% - 12px);
	}

.perrow-two.section-blog.first-post-large .post-grid,
.perrow-two.section-blog.first-post-large .post-grid {
	width: 100%;
	flex-basis: 100%;
	}

/* three: the default width leaves a 48px gap, so the other settings need their own. Masonry items
   get their gap from padding and keep their width. Only above the tablet breakpoint, where the posts
   sit side by side. */
@media only screen and (min-width: 960px) {
	.perrow-three.section-blog.padding-none .post-grid:not(.masonry-item) {
		flex-basis: calc(100% / 3);
		width: calc(100% / 3);
		}

	.perrow-three.section-blog.padding-twentyfour .post-grid:not(.masonry-item) {
		flex-basis: calc(100% / 3 - 16px);
		width: calc(100% / 3 - 16px);
		}
}

/* three, with a background, up to 1200px: a block with a background image, video or color keeps 120px of room
   at both sides, so three posts per row end up about 200px wide. From the tablet breakpoint to 1200px it
   shows two per row instead, with the widths and spacing of the two per row setting (below 960px the posts
   stack). The empty posts that fill the last row of three are not needed. The first post large list layout
   has its own columns and is left alone.
   Switched off: background sections now keep 48px at the sides up to 1200px (see Large Devices), so three
   per row fit. The whole block stays inside this comment, its margin and article-empty rules only belong
   to the two per row layout (outside the media query they pushed the third post down 48px and stretched
   the first two).
@media only screen and (min-width: 960px) and (max-width: 1200px) {
	.section-blog.perrow-three:is(.has-bg-image, .has-bg-video, .has-bg-color):not(.first-post-large).padding-fourtyeight .post-grid {
		flex-basis: calc(50% - 24px);
		width: calc(50% - 24px);
		}

	.section-blog.perrow-three:is(.has-bg-image, .has-bg-video, .has-bg-color):not(.first-post-large).padding-twentyfour .post-grid {
		flex-basis: calc(50% - 12px);
		width: calc(50% - 12px);
		}

	.section-blog.perrow-three:is(.has-bg-image, .has-bg-video, .has-bg-color):not(.first-post-large).padding-none .post-grid {
		flex-basis: 50%;
		width: 50%;
		}

	- the first three posts have no top margin when they share the first row, the third one starts the second -
	.section-blog.perrow-three:is(.has-bg-image, .has-bg-video, .has-bg-color):not(.first-post-large).padding-fourtyeight .post-grid:nth-child(3) {
		margin-top: 48px;
		}

	.section-blog.perrow-three:is(.has-bg-image, .has-bg-video, .has-bg-color):not(.first-post-large).padding-twentyfour .post-grid:nth-child(3) {
		margin-top: 24px;
		}

	.section-blog.perrow-three:is(.has-bg-image, .has-bg-video, .has-bg-color):not(.first-post-large) .article-empty {
		display: none;
		}
}
*/

/* three, list layout, on tablets (768px to 1200px): three list posts per row leave the titles a few words wide,
   so it shows two per row, like the two per row setting (the list layout always has 48px between posts). Below
   768px the posts stack. The empty posts that fill the last row of three are not needed. The first post large
   list layout has its own columns and is left alone. */
@media only screen and (min-width: 768px) and (max-width: 1200px) {
	.section-blog.layout-listfirstlarge.perrow-three:not(.first-post-large) .post-grid {
		flex-basis: calc(50% - 24px);
		width: calc(50% - 24px);
		margin-top: 48px;
		margin-bottom: 0;
		}

	.section-blog.layout-listfirstlarge.perrow-three:not(.first-post-large) .post-grid:nth-child(-n+2) {
		margin-top: 0;
		}

	.section-blog.layout-listfirstlarge.perrow-three:not(.first-post-large) .article-empty {
		display: none;
		}

	/* With the first post large (a Masonry grid) three columns left the list titles one word wide, so it gets two:
	   the first post on the left, the others in the right column (ranked: the first post is the stamp, the
	   padding keeps its column free). The 48px before each image stays as the gap between the columns. */
	section.section-blog.perrow-three.has-ranking-number.layout-listfirstlarge.first-post-large .articles-wrap.masonry {
		padding-left: 50%;
		}

	section.section-blog.perrow-three.layout-listfirstlarge.first-post-large .articles-wrap.masonry > article {
		flex-basis: 50%;
		width: 50%;
		margin-bottom: 0;
		}

	section.section-blog.perrow-three.layout-listfirstlarge.first-post-large .articles-wrap.masonry > .article-empty {
		display: none;
		}
}

/* Ranked, from 768px to 959px (an iPad in portrait): two columns still left the titles 100 to 150px wide next
   to the number, so the posts stack as on a phone. Masonry still writes positions and heights into the markup,
   so these win with !important. 48px between the posts, as in the other tablet lists. */
@media only screen and (min-width: 768px) and (max-width: 959px) {
	section.section-blog.perrow-three.has-ranking-number.layout-listfirstlarge.first-post-large .articles-wrap.masonry {
		height: auto !important;
		min-height: 0 !important;
		padding-left: 0;
		}

	section.section-blog.perrow-three.has-ranking-number.layout-listfirstlarge.first-post-large .articles-wrap.masonry > article {
		position: relative !important;
		left: auto !important;
		right: auto !important; /* Masonry may write either side (RTL origin in scripts.js, LTR in blocks.js) */
		top: auto !important;
		transform: none !important;
		flex-basis: 100%;
		width: 100%;
		margin-top: 48px;
		}

	section.section-blog.perrow-three.has-ranking-number.layout-listfirstlarge.first-post-large .articles-wrap.masonry > article:first-child {
		margin-top: 0;
		}

	.section-blog.perrow-three.has-ranking-number.layout-listfirstlarge.first-post-large .tnail {
		margin-left: 0;
		}
}

/* four */
.perrow-four.section-blog .post-grid,
.perrow-four.section-blog.padding-fourtyeight .post-grid {
	flex-basis: calc(25% - 36px);
	width: calc(25% - 36px);
	width: 25%;
	}
.perrow-four.section-blog.padding-none .post-grid {
	flex-basis: calc(25%);
	width: calc(25%);
	}

.perrow-four.section-blog.padding-twentyfour .post-grid {
	flex-basis: calc(25% - 18px);
	width: calc(25% - 18px);
	}

/* masonry */
.section-blog:not(.layout-listfirstlarge).padding-fourtyeight .articles-wrap.masonry {
	margin-left: -24px;
	width: calc(100% + 48px);	
	}

.section-blog:not(.layout-listfirstlarge).padding-fourtyeight .post-grid.masonry-item {
	padding: 0 24px;
	}

.section-blog:not(.layout-listfirstlarge).padding-twentyfour .articles-wrap.masonry {
	margin-left: -12px;
	width: calc(100% + 24px);	
	}

.section-blog:not(.layout-listfirstlarge).padding-twentyfour .post-grid.masonry-item {
	padding: 0 12px;
	}





.section-blog .article-content {
	padding: 36px 0;
	}

.section-blog.layout-belowimage .article-content {
	padding: 0 0 36px;
	//margin-top: -18px;
	//z-index: 999;
	//position: relative;
	}

.wp-block-group.has-background .section-blog.layout-belowimage .article-content {
	padding: 0px 24px 30px 24px
	}

.layout-belowimage .entry-header.has-meta.has-meta-category {
	margin-top: -15px;
	z-index: 999;
	position: relative;
	}

.section-blog.layout-belowimage .article-content.no-meta-category.no-meta-location {
	margin-top: 24px;
	}

.section-blog .entry-meta{
	font-weight: 500;
	}

.entry-meta,
.post-info-small .post-info {
	font-size: 0.65rem;
	font-size: 14px;
	line-height: 1.26em;
	font-style: normal;
	display: inline-block;
	}

.section-blog .entry-meta-inner-wrap .post-info {
	line-height: 1em;
	}

.section-blog .post-info {
	display: inline-block;
	text-transform: uppercase;
	font-style: normal;
	padding: 0;
	}

.section-blog .post-grid .categories {
	margin-top: 0;
	}

.section-blog h2 a,
.section-blog h2 a:link,
.section-blog h2 a:focus,
.section-blog h2 a:active {
	color: #101020; 
	outline: 0;
	text-decoration: none;
	background-color: transparent;
	}

.has-ranking-number .entry-meta-wrap {
	//margin-bottom: 9px;
	}

.article-content.overimage .entry-meta-wrap {
	//margin-bottom: 0;
	}

/* Text over the image: the pills and the box around them are inline-blocks, and the line boxes they sit in
   add about 9px of empty space under the pills (the strut of the body line height). Aligned to the top of
   the line they take up no more room than they are high, so the title's own margin is the whole gap. */
.article-content.overimage .entry-meta-catloc,
.article-content.overimage .entry-header > .entry-meta,
.article-content.overimage .categories a {
	vertical-align: top;
	}

.article-content.belowimage .entry-meta-wrap {
	text-align: center;
	}

.article-content.listfirstlarge .entry-meta-wrap {
	display: grid;
	}

.article-content .no-meta-category.no-meta-location .entry-meta-wrap {
	display: none;
	}

.entry-meta:empty {
	display: none;
	}

.categories a {
	padding: 4px 12px;
	margin-top: 0;
	margin-bottom: 6px;
   	display: inline-block;
	}

.categories .location::before {
	content: '\f3c5';
  	font-family: "Font Awesome 6 free"; 
	font-weight: 900;
	padding-right: 2px;
	}

.entry-meta .entry-meta-inner-wrap {
	padding-top: 12px;
	}

.article-content.belowimage .entry-meta .entry-meta-inner-wrap {
	padding-top: 0;
	padding-top: 8px;
	}

.article-content.belowimage .entry-meta-title-wrap {
	width: 100%;
	}

.post-info .serif-italic {
	opacity: 0.5; 
	text-transform: none;
	}

.entry-meta-inner-wrap .post-info:not(:last-child):after {
	content: "\b7";
	}

.entry-title,
h2.entry-title,
.editor-styles-wrapper h2.entry-title {
	margin-top: 8px;
	margin-bottom: 0;
	}

.section-blog.perrow-one .entry-title,
.section-blog.perrow-one h2.entry-title,
.editor-styles-wrapper .section-blog.perrow-one h2.entry-title {
	margin-top: 20px;
	}

.entry-text {
	margin-top: 18px;
	max-width: 864px;
	margin: 0 auto;
	}

/* ranking number */
.article-content.belowimage .ranking-wrap1,
.article-content.listfirstlarge .ranking-wrap1 {
	display: flex;
	}

.overimage .ranking-wrap1 {
	padding-top: 12px;
	}

.ranking-number {
	font-weight: 900;
	font-size: 4em;
	line-height: 0.7em;
	color: #eeeeef;
	position: relative;
	//margin-top: -8px;
	margin-right: 18px;
	}

.wp-block-group.has-background .ranking-number {
	color: rgba(0, 0, 50, 0.07);
	}

.ranking-number.widget-ranking-number,
.widget-area .layout-listfirstlarge .ranking-number.standard-ranking-number,
.widgets-php .layout-listfirstlarge .ranking-number.standard-ranking-number {
	display: none;
	}

.widget-area .layout-listfirstlarge .ranking-number.widget-ranking-number,
.widgets-php .layout-listfirstlarge .ranking-number.widget-ranking-number {
	display: block;
	}


.section-blog.text-left .article-content.overimage.has-ranking-number .ranking-wrap1 {
	display: flex;
	}

.section-blog.text-left .article-content.overimage.has-ranking-number .entry-meta-title-wrap,
.section-blog.has-ranking-number.layout-listfirstlarge.first-post-large article:first-child .ranking-wrap1 .entry-meta-title-wrap {
	align-self: flex-end;
	}

.section-blog.text-center .article-content.overimage.has-ranking-number .ranking-number {
	position: absolute;
	bottom: 36px;
	}

.section-blog.text-left .article-content.overimage.has-ranking-number .ranking-number,
.section-blog.has-ranking-number.layout-listfirstlarge.first-post-large article:first-child .ranking-number {
	padding-bottom: 6px;
	}

.article-content.belowimage .ranking-number {
	//margin-top: -2px;
	margin-top: 12px;
	}

.article-content.listfirstlarge .ranking-number {
	//margin-top: 13px;
	}

.section-blog.text-center .article-content.overimage.has-ranking-number .entry-meta-title-wrap {
	padding-left: 48px;
	padding-right: 48px;
	}

.article-content.listfirstlarge.has-ranking-number .entry-meta-title-wrap,
.article-content.belowimage.has-ranking-number .entry-meta-title-wrap {
	margin-top: -6px;
	}

.article-content.listfirstlarge.has-ranking-number .entry-header.no-meta .entry-meta-title-wrap,
.article-content.belowimage.has-ranking-number .entry-header.no-meta .entry-meta-title-wrap {
	margin-top: -4px;
	}

.section-blog.layout-listfirstlarge.first-post-large article.firstlargeitem .ranking-number,
.section-blog.layout-overimage .article-content .ranking-number {
	align-self: flex-end;
	color: #fff;
	opacity: 0.44;
	}

.section-blog.ranking-large.layout-listfirstlarge.first-post-large article.firstlargeitem .ranking-number,
.section-blog.ranking-large.layout-overimage .article-content .ranking-number {
	position: absolute;
	font-weight: 700;
	font-size: 16em;
	opacity: 0.3;
	z-index: -1;
	}



.section-blog.bgtype-image.has-bg-image .ranking-number {
	opacity: 0.44;
	}

.has-ranking-number h2.entry-title {
	//margin-left: 54px;
	}


/* post layout  */
.section-blog.layout-overimage .post-grid,
.section-blog.layout-listfirstlarge.first-post-large article.firstlargeitem {
	position: relative;
	overflow: hidden;
    display: flex;
	}

.section-blog.layout-overimage .post-grid, {
	box-shadow: 0 26px 46px rgb(0, 0, 0, 0.4);
	}

.section-blog.layout-overimage .article-content,
.section-blog.layout-listfirstlarge.first-post-large article.firstlargeitem .article-content {
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 0;
	transition: all cubic-bezier(.4, 0, .2, 1) .4s;
	align-self: flex-end;
	z-index: 10;
	width: 100%;
	}

/* Text over the image: the image and the text share one grid cell, so the card is as tall as the image
   (its ratio) or as the text, whichever is taller. The image stretches to fill it, and the text never gets
   cut off. Cards in a row stay the same height. */
.section-blog.layout-overimage .post-grid {
	display: grid;
	}

.section-blog.layout-overimage .post-grid > .tnail,
.section-blog.layout-overimage .post-grid > .article-content {
	grid-area: 1 / 1;
	}

.section-blog.layout-overimage .post-grid > .tnail {
	align-self: stretch;
	}

/* The image has to fill a card that grew taller than its ratio. The front end gets the height of the zoom
   wrapper from style.css; the editor canvas does not load style.css, so without this the image stayed square
   with the shade and the text hanging below it. */
.section-blog.layout-overimage .post-grid > .tnail .tnail-zoom-wrap {
	height: 100%;
	}

.section-blog.layout-overimage .post-grid > .article-content {
	position: relative;
	bottom: auto;
	left: auto;
	align-self: end;
	}

/* Text in the middle of the card: 60% of the width (50% with one post per row), but never narrower than
   400px, so on a small card the column grows to the full width instead of squeezing the text. The shade
   behind it and the side padding follow the same width. */
.section-blog.layout-overimage.vertical-align-middle .article-content  {
	height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    width: clamp(60%, 400px, 100%);
	}

.section-blog.perrow-one.layout-overimage.vertical-align-middle .article-content  {
    width: clamp(50%, 400px, 100%);
	}


.section-blog.text-left .entry-text {
	margin-left: 0;
	}



/* The text now sits in the same cell as the image, inside the card padding of a masonry item,
   so it needs no offset of its own. */
.section-blog.layout-overimage .post.image-uncropped .article-content.overimage {
	width: 100%;
	left: auto;
	}


.section-blog.layout-listfirstlarge.first-post-large article.firstlargeitem .article-content {
	padding: 36px;
	//width: calc(100% - 120px);
	}

.section-blog.layout-overimage .articlecontentwrap {
	padding: 36px 24px 30px 35px;
	}

/* Side padding: 24px on a narrow column, growing to the usual 48px once the column is 400px wide.
   The percentage is the width of the column, not of the card. */
.section-blog.layout-overimage.vertical-align-middle .articlecontentwrap {
	padding: clamp(24px, calc(24px + (100% - 340px) * 0.4), 54px) clamp(24px, calc(24px + (100% - 340px) * 0.4), 48px);
	padding-top: 60px;
   padding-bottom: 60px;
	}


.section-blog.alignfull.layout-overimage.padding-none .articlecontentwrap {
	padding-bottom: 42px;
	}   


.section-blog.layout-listfirstlarge.first-post-large article.firstlargeitem .articlecontentwrap  {
	padding: 0;
	margin: 0;
	}

.section-blog.layout-overimage.vertical-align-middle .article-overlay.article-has-gradient  {
	background-image: linear-gradient(to right, rgba(16,18,19,0.6) 0%,rgba(16,18,19,0) 100%);
	width: clamp(60%, 400px, 100%);
	height: 100%;
	}


.section-blog.layout-overimage  .article-overlay.article-has-gradient,
.section-blog.layout-listfirstlarge.first-post-large article.firstlargeitem .article-overlay.article-has-gradient {
	//background-image: linear-gradient(to top, rgba(16,18,19,0.4) 0%,rgba(16,18,19,0) 100%);
	background-image: linear-gradient(to top, rgba(16,18,19,0.6) 0%,rgba(16,18,19,0) 100%);
	width: 100%;
	height: 50%;
	position: absolute;
	bottom: 0;
	}




/* Not in the list layout: there the shade is an empty flex item next to the text (the big first post sets its own),
   and this width made it 86px wide, which squeezed the titles of three per row with the first post large. */
.section-blog:not(.layout-listfirstlarge).padding-fourtyeight .articles-wrap.masonry .article-overlay.article-has-gradient {
	width: calc(100% - 48px);
	left: 24px;
	}

.section-blog:not(.layout-listfirstlarge).padding-twentyfour .articles-wrap.masonry .article-overlay.article-has-gradient {
	width: calc(100% - 24px);
	left: 12px;
	}


.section-blog.layout-listfirstlarge.first-post-large article.firstlargeitem h2 a,
.section-blog.layout-listfirstlarge.first-post-large article.firstlargeitem .post-info,
.section-blog.layout-listfirstlarge.first-post-large article.firstlargeitem .post-info a   {
	color: #fff;
	}


.section-blog.layout-listfirstlarge .tnail-zoom-wrap:hover {
	transform: none;
	}

.section-blog .tnail {
	overflow: hidden;
	position: relative;
	}

.section-blog .tnail.aspect-ratio-square{
	aspect-ratio: 1 / 1;
	}

.section-blog .tnail.aspect-ratio-portrait{
	aspect-ratio: 2 / 3;
	}

.section-blog .tnail.aspect-ratio-landscape,
.section-blog .tnail.aspect-ratio-landscape img {
	aspect-ratio: 4 / 3;
	}

.section-blog .tnail.aspect-ratio-landscape-narrow,
.section-blog .tnail.aspect-ratio-landscape-narrow img {
	aspect-ratio: 2.2 / 1;
	}



.section-blog .tnail img {
	height: 100%;
	object-fit: cover;
	display: block;
    max-width: 100%;
    width: 100%;
	}


.section-blog.layout-overimage .tnail {
	//display: contents;
	width: 100%;
	}



.article-content.overimage .categories a,
.article-content.overimage .categories a:link,
.article-content.overimage .categories a:focus,
.article-content.overimage .categories a:active {
	//background-color: #fff;
	//color: #000;
	}


.article-content.overimage .categories a {
	padding: 6px 12px;
	}


.section-blog.layout-listfirstlarge .categories a {
	margin-top: 0;
	margin-bottom: 6px;
	}

.layout-overimage.article-has-gradient {
	text-shadow: 0px 0px 16px rgba(0,0,0,0.25);
	}


.article-content.overimage h2 a,
.article-content.overimage h2 a:link,
.article-content.overimage h2 a:visited,
.article-content.overimage a,
.article-content.overimage a:link,
.article-content.overimage .serif-italic,
.article-content.overimage .entry-text,
.article-content.overimage .button-more.button-outline,
.article-content.overimage .button-outline:not(.content-black):not(.content-white):not(:hover),
.article-content.overimage .button.button-more.button-outline:hover,
.article-content.overimage .button-more i {
	color: #fff;
	}

/* In the editor Kirki prints the headline color with an .editor-styles-wrapper prefix. That ties with the
   :link rule above and wins on source order, so the title of a post that has not been visited came out
   dark. One more class on the editor rule settles it. */
.editor-styles-wrapper .article-content.overimage h2 a,
.editor-styles-wrapper .article-content.overimage h2 a:link,
.editor-styles-wrapper .article-content.overimage h2 a:visited {
	color: #fff;
	}



/*background */

section.section-blog.has-bg-image {
	width: 100%;
	height: auto;
	max-height: 100%;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	top: 0;
	background-position: center center;
	overflow: hidden;
	transition: all 0.6s ease;
	}


section.section-blog.bgtype-video .blog-block-bgvideo-wrap {
	position: absolute;
	overflow: hidden;
	height: 600px;
	}

section.section-blog.has-bg-video {
	background: #000;
	position: relative;
	}


section.section-blog.bgtype-video .blog-block-bgvideo-wrap {
	position: absolute;
	overflow: hidden;
	//max-height: 720px;
	width: 100%;
	height: 100%;
	}

video.blog-block-bgvideo {
	position: absolute;
	top: 0;
	//bottom: 0;
	right: 0;
	left: 0;
	margin: auto;
	width: 100%;
	}

.video-gradient-overlay {
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 1) 100%);
	position: absolute;
	width: 100%;
	height: 100%;
	}

.dark-overlay {
	position: relative;
	}




section.section-blog.text-white h3,
section.section-blog.text-white h2 a,
section.section-blog.text-white h2 a:link,
section.section-blog.text-white h2 a:active,
section.section-blog.text-white h2 a:visited,
section.section-blog.text-white .subtitle-above,
section.section-blog.text-white .subtitle-above:not(.content-white):not(.team-content-item):not(.subtitle-above-page-thumb),
section.section-blog.text-white .blog-block-section-content,
section.section-blog.text-white .blog-block-section-button a,
section.section-blog.text-white .blog-block-section-button i,
section.section-blog.text-white .post-info,
section.section-blog.text-white .post-info a {
	color: #fff;
	}

section.section-blog.has-bg-image.text-white h3,
section.section-blog.has-bg-image.text-white h2 a,
section.section-blog.has-bg-image.text-white h2 a:link,
section.section-blog.has-bg-image.text-white h2 a:active,
section.section-blog.has-bg-image.text-white h2 a:visited,
section.section-blog.has-bg-image.text-white .subtitle-above,
section.section-blog.has-bg-image.text-white .subtitle-above:not(.content-white):not(.team-content-item):not(.subtitle-above-page-thumb),
section.section-blog.has-bg-image.text-white .blog-block-section-content,
section.section-blog.has-bg-image.text-white .blog-block-section-button a,
section.section-blog.has-bg-image.text-white .blog-block-section-button i,
section.section-blog.has-bg-image.text-white .post-info,
section.section-blog.has-bg-image.text-white .post-info a {
	text-shadow: 0px 0px 16px rgb(0 0 0 / 25%);
	}

section.section-blog.has-bg-video.text-white h3,
section.section-blog.has-bg-video.text-white h2 a,
section.section-blog.has-bg-video.text-white h2 a:link,
section.section-blog.has-bg-video.text-white h2 a:active,
section.section-blog.has-bg-video.text-white h2 a:visited,
section.section-blog.has-bg-video.text-white .subtitle-above,
section.section-blog.has-bg-video.text-white .subtitle-above:not(.content-white):not(.team-content-item):not(.subtitle-above-page-thumb),
section.section-blog.has-bg-video.text-white .blog-block-section-content,
section.section-blog.has-bg-video.text-white .blog-block-section-button a,
section.section-blog.has-bg-video.text-white .blog-block-section-button i,
section.section-blog.has-bg-video.text-white .post-info,
section.section-blog.has-bg-video.text-white .post-info a {
	text-shadow: 0px 0px 16px rgb(0 0 0 / 25%);
	}

section.section-blog.has-bg-image .viewall:hover,
section.section-blog.has-bg-video .viewall:hover,
section.section-blog.has-bg-color .viewall:hover {
	background: rgba(0, 0, 0, 0.04);
	}

section.section-blog.has-bg-image.text-white .viewall:hover,
section.section-blog.has-bg-video.text-white .viewall:hover,
section.section-blog.has-bg-color.text-white .viewall:hover {
	background: rgba(255, 255, 255, 0.2);
	}

section.section-blog.layout-listfirstlarge.perrow-three.padding-fourtyeight .blog-block-content-wrap-inner,
section.section-blog.layout-listfirstlarge.perrow-three.padding-fourtyeight .articles-wrap  {
	//max-width: 1366px;
	//max-width: 1412px;
	//margin: 0 auto;
	//left: 21px;
	}

section.section-blog.layout-listfirstlarge .blog-block-content-wrap-inner,
section.section-blog.layout-listfirstlarge .articles-wrap {
	//max-width: 1328px;
	max-width: 1348px;
	margin-left: auto;
	margin-right: auto;
	}

section.section-blog.has-bg-video .blog-block-content-wrap-inner,
section.section-blog.has-bg-image .blog-block-content-wrap-inner,
section.section-blog.has-bg-color .articles-wrap,
section.section-blog.has-bg-video.layout-listfirstlarge .blog-block-content-wrap-inner,
section.section-blog.has-bg-image.layout-listfirstlarge .blog-block-content-wrap-inner,
section.section-blog.has-bg-color.layout-listfirstlarge .blog-block-content-wrap-inner,
section.section-blog.has-bg-video.layout-listfirstlarge .articles-wrap,
section.section-blog.has-bg-image.layout-listfirstlarge .articles-wrap,
section.section-blog.has-bg-color.layout-listfirstlarge .articles-wrap {
	//max-width: 1328px;
	max-width: 1348px;
	margin-left: auto;
	margin-right: auto;
	}

section.section-blog.width-fullwidth .articles-wrap,
section.section-blog.width-fullwidth.layout-listfirstlarge.perrow-three.padding-fourtyeight .articles-wrap  {
	max-width: initial !important;
	left: 0;
	}

section.section-blog.has-bg-image:not(.alignfull):not(.alignwide) .blog-block-content-wrap-inner,
section.section-blog.has-bg-video:not(.alignfull):not(.alignwide) .blog-block-content-wrap-inner {
	padding-left: 48px;
	padding-right: 48px;
	}

section.section-blog.layout-listfirstlarge article {
	background-color: transparent;
	display: flex;
	}


.section-blog.layout-listfirstlarge .tnail {
	//min-width: 120px;
	//width: 120px;
	min-width: 132px;
	width: 132px;
	}

.section-blog.layout-listfirstlarge .tnail img {
	height: auto;
	}

.section-blog.layout-listfirstlarge .firstlargeitem .tnail img {
	height: 450px;
	min-height: 100%;
	}

.section-blog.perrow-three.layout-listfirstlarge.first-post-large .tnail {
	margin-left: 48px;
	}

.section-blog.layout-listfirstlarge.first-post-large article.firstlargeitem .tnail {
	min-width: 100%;
	width: 100%;
	margin-left: 0;
	}

.section-blog.layout-listfirstlarge.first-post-large.has-bg-image .tnail,
.section-blog.layout-listfirstlarge.first-post-large.has-bg-image article.firstlargeitem .tnail {
	box-shadow: 0 5px 5px rgba(25,24,28,.1);
	}


.section-blog.layout-listfirstlarge .article-content {
	padding: 0 0 0 24px;
	}

.section-blog.layout-listfirstlarge .no-thumbnail .article-content {
    padding-left: 0;
}

.section-blog.layout-listfirstlarge .entry-title, 
.section-blog.layout-listfirstlarge h2.entry-title, 
.section-blog.layout-listfirstlarge .editor-styles-wrapper h2.entry-title {
	//margin-top: 0;
	margin-top: 4px;
	}

.section-blog.layout-listfirstlarge.first-post-large article.firstlargeitem h2.entry-title {
	margin-top: 3px;
	}

.section-blog.layout-listfirstlarge .entry-meta .entry-meta-inner-wrap {
	margin-top: 0;
	padding-top: 0;
	}

.section-blog.layout-listfirstlarge article.firstlargeitem .entry-meta .entry-meta-inner-wrap {
	margin-top: 6px;
	}


.section-blog.layout-listfirstlarge .blog-block-content-wrap {
	//padding: 112px 48px 120px;
	padding: 0;
	}


.section-blog.layout-listfirstlarge .post-grid .categories {
	margin-bottom: 0;
	}


.section-blog .masonry-item {
	flex-basis: 33.33%;
	width: 33.33%;
	padding: 0;
	}

.section-blog.has-bg-color .blog-block-content-wrap,
.section-blog.has-bg-image .blog-block-content-wrap,
.section-blog.has-bg-video .blog-block-content-wrap   {
	//padding: 120px 120px;
	//padding: 108px 120px;
	//padding: 91px 120px 96px;
	//padding: 115px 120px 120px;
	//padding: 115px 0 120px;
	padding: 108px 120px; /* bg color with title */
	}

/*
.section-blog .perrow-two .masonry-item {
	flex-basis: 50%;
	width: 50%;
	}

.section-blog .perrow-one .masonry-item {
	flex-basis: 100%;
	width: 100%;
	}
*/



section.section-blog.perrow-two.layout-listfirstlarge.first-post-large article.firstlargeitem .tnail-zoom-wrap {
	height: 100%;
	}


/* fix masonry ranking number */
section.section-blog.perrow-three.has-ranking-number.layout-listfirstlarge.first-post-large .articles-wrap {
	padding-left: 33.34%;
	}

section.section-blog.perrow-three.has-ranking-number.layout-listfirstlarge.first-post-large.perrow-two .articles-wrap {
	padding-left: 50%;
	//padding-left: calc(50% - 24px);
	}

section.section-blog.perrow-three.has-ranking-number.layout-listfirstlarge.first-post-large article.firstlargeitem {
	position: absolute;
	left: 0;
	}

section.section-blog.perrow-three.has-ranking-number.layout-listfirstlarge.first-post-large .section-blog .articles-wrap {
	position: relative;
	}



/* text align */
article .text-center,
.section-blog.text-center .entry-header,
.section-blog.text-center .entry-text,
.section-blog.text-center   a.more-link,
.section-blog.text-center  .button.button-more {
	text-align: center;
	} 

article .text-left,
.section-blog.text-left .entry-header,
.section-blog.text-left .entry-text,
.section-blog.text-left  a.more-link,
.section-blog.text-left .button.button-more {
	text-align: left;
	} 

.section-blog.layout-listfirstlarge .entry-header {
	text-align: left;
	}

/* title size */




/* more button */
.section-blog  a.more-link {
	display: block;
	border: 0 !important;
	margin-top: 12px;
	line-height: 33px;
	font-size: 0.9em;
	margin-bottom: 0;
	}

.section-blog.perrow-one  a.more-link {
	margin-top: 24px;
	}

.section-blog .button.button-more {
	padding: 0 36px;
	//font-size: 0.7rem;
	cursor: pointer;
	overflow: visible;
	display: inline-block;
	border-radius: 0;
	text-decoration: none;
	border-width: 2px;
	border-style: solid;
	-webkit-appearance: none;
	word-break: initial;
	white-space: nowrap;
	}

.more-link .button-outline,
.more-link .button.button-more.button-outline {
	border: none;
	border-color: inherit;
	padding: 0 0 6px;
	background: transparent;
	}

.editor-styles-wrapper .button.button-more {
	height: 24px;
	line-height: 24px;
	}

/* remove pointer events */
.mb-block-preview .section-blog .tnail a,
.mb-block-preview .section-blog h2 a,
.mb-block-preview .section-blog .entry-meta-inner-wrap a,
.mb-block-preview .section-blog a.more-link,
.mb-block-preview .section-blog .viewall a {
	pointer-events: none;
	cursor: pointer;
	}






/* widget area */

.widget-area .section-blog.layout-overimage .articlecontentwrap,
.wp-block-widget-area .section-blog.layout-overimage .articlecontentwrap {
	padding: 24px;
	}

.widget-area .section-blog.padding-fourtyeight .post-grid,
.wp-block-widget-area .section-blog.padding-fourtyeight .post-grid{
	//margin-top: 12px;
	}

.widget-area .section-blog .post-grid,
.widgets-php .section-blog .post-grid {
	width: 100% !important;
	flex-basis: 100% !important;
	margin-top: 24px !important;
	}

.widget-area .section-blog .post-grid:first-child {
	margin-top: 0 !important;
	}

.single .widget-area .section-blog .entry-header {
	background: transparent;
	}

.widget-area .section-blog .has-ranking-number .entry-meta-wrap {
	margin-bottom: 0;
	}

.widget-area .section-blog .tnail {
	height: max-content;
	}

.widget-area .ranking-number {
	font-size: 3.4em;
	min-width: 26px;
	}

/* A ranking number plus the 132px image left the title less room than its longest word on a 320px
   phone, so the text ran 27px out of the sidebar. The image now gives way, but only then: its tiny shrink
   factor keeps it at 132px until the title has wrapped as far as it can. */
.widget-area .section-blog.layout-listfirstlarge .tnail {
	min-width: 0;
	flex-shrink: 0.001;
	}

.widget-area .section-blog.layout-listfirstlarge .article-content {
	padding: 0 0 0 18px;
	}

.widget-area .section-blog.layout-listfirstlarge article:not(.has-post-thumbnail) .article-content {
    padding: 0 0 0 12px;
}

.widget-area .section-blog.layout-listfirstlarge .entry-title, 
.widget-area .section-blog.layout-listfirstlarge h2.entry-title, 
.widget-area .section-blog.layout-listfirstlarge .editor-styles-wrapper h2.entry-title {
	margin-top: 0;
	}

.widget-area .section-blog.layout-listfirstlarge.has-ranking-number {
	  margin-top: 18px;
	}


/** *****************************************************************************************
** ## PAGE HEADER Block *********************************************************************
*********************************************************************************************/

.block-editor-block-list__block[data-type="meta-box/categoryheader"] {
	min-height: 100px;
	max-width: inherit;
	}

.category-header.overlay h1,
.category-header.overlay h2,
.category-header.overlay h3,
.category-header.overlay p,
.category-header.overlay .category-description,
.category-header.overlay .vertical-text{
	color: #fff;
	text-shadow: 0px 0px 16px rgba(16,18,19,0.2);
	}

.category-title-wrap .subtitle-above,
a.categoryheader-button.button.button-outline {
	color: #fff !important;
	}


.categoryheader-button-wrap a.categoryheader-button.button:not(.button-outline) {
	background-color: #fff;
	color: #000 !important;
	}

.categoryheader-button-wrap a.categoryheader-button.button:not(.button-outline):hover {
	background-color: #000;
	color: #fff !important;
	}

a.categoryheader-button.button.button-outline,
a.categoryheader-button.button.button-outline:hover {
	border-color: #fff;
	}

a.categoryheader-button.button.button-outline:hover {
	background-color: #fff;
	color: #000 !important;
	}



.section-categoryheader {
	position: relative;
	overflow: hidden;
	}

/* The section after a category header starts 24px below it. That space is padding on the section itself,
   not a margin on the header, so it takes the section's own background: a black wave flowing into a black
   section stays black instead of showing a strip of the page between the two.
   !important because section padding rules are more specific */
.section-categoryheader + * {
	padding-top: 24px !important;
	}

/* With a wave the next section tucks 2px under the header. The header usually ends on a fraction of a
   device pixel and that last pixel row is only partly painted, so a hairline of the page background
   showed between the wave and a section of the same colour (tablet, 2x screens). */
.section-categoryheader.has-wave-shape {
	margin-bottom: -2px;
	}

.category-header.overlay {
	position: relative;
	margin: 0;
	padding: 0;
	display: flex;
	aspect-ratio: 2/1;
	width: 100%;
	max-height: 90vh;


    height: 80vh;
    min-height: 680px;


	}

.full-height .category-header.overlay {
	aspect-ratio: auto;
	max-height: 97vh;
	height: 97vh;
	}

.no-wave-shape .category-header.overlay {
	aspect-ratio: 2.4/1;
	}

body.archive .category-header.overlay {
	//margin: 0 0 48px 0;
	}

.category-header.overlay .category-image-fullbg {
	width: 100%;
	height: 100%;
	max-height: 100%;
	background-size: cover;
	box-sizing: border-box; 	 
	position: absolute !important;
	z-index: auto;
	background-position: center center;
	overflow: hidden;
	}	

.category-header.overlay img.category-image-fullbg {
	object-fit: cover;
	object-position: center center;
	}

/* object-fit for block images converted from CSS backgrounds (makai-features) */
img.contentboxbgimage,
img.linkboxesbgimage {
	object-fit: cover;
	object-position: center center;
	}

.category-header.overlay .category-image-fullbg.image-regular {
	display: block;
	}

.category-header.overlay .category-image-fullbg.image-mobile {
	display: none;
	}	


/* video */
.category-header-bgvideo-wrap {
	overflow: hidden;
	display: flex;
	width: auto;
	height: 100%;
	}

.category-header-bgvideo {
	position: absolute;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	min-height: 100%;
	width: 100%;
	width: auto;
    min-width: 100%;
	/* Until the poster or the first frame arrives the box is empty, and the overlay over the white page
	   behind it showed as grey under the white title. Cover: before the browser knows the video's size
	   the box has a guessed shape, and a poster would be letterboxed in it. */
	background-color: #101213;
	object-fit: cover;
	}



.category-header.overlay .category-image-overlay {
	width: 100%;
	height: 100%;
	position: absolute;
	//background-image: linear-gradient(to top, rgba(16,18,19,0.3) 0%,rgba(16,18,19,0) 100%);
	//background: rgba(0, 0, 0, 0.4);
	//background: rgba(0, 0, 0, 0.2);
	}

/* With a wave the image, video and overlay end 2px above the header edge, under the wave. The header
   usually ends on a fraction of a device pixel, and those layers are not cut off there the way the wave
   is, so a hairline of them showed below the wave (tablet, 2x screens). The video wrap is positioned to
   become the video's clip, the video's box is taller than the header. The page header block prints the
   wave only when it is on; archive headers always have it. */
.category-header.overlay:has(> svg.wave-svg) .category-image-fullbg,
.category-header.overlay:has(> svg.wave-svg) .category-header-bgvideo-wrap,
.category-header.overlay:has(> svg.wave-svg) .category-image-overlay {
	top: 0;
	height: calc(100% - 2px);
	max-height: calc(100% - 2px);
	}

.category-header.overlay:has(> svg.wave-svg) .category-header-bgvideo-wrap {
	position: absolute;
	left: 0;
	right: 0;
	}

.category-header.overlay .category-title-wrap {
	//padding: 24px 96px 144px;
	//padding: 24px 96px 60px;
	//padding: 120px 96px;
	//padding: 48px 96px 120px;
	padding: 48px 96px 180px;
    padding-bottom: 156px;;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	//width: 720px;
	width: 960px;
	max-width: 100%;
	text-align: center;
	z-index: 9;
	//align-self: center;
	align-self: flex-end;

	}


.category-header.overlay .category-title-wrap.header-content-bottom {
	align-self: flex-end;
	}

.category-header.overlay .category-title-wrap.header-content-middle {
	align-self: center;
    padding: 48px 96px;
	}


.category-header.overlay .subtitle-above,
.category-header.overlay h1,
.category-header.overlay .categoryheader-title-large,
.category-header.overlay p,
.category-header.overlay .vertical-text {
	text-shadow: 0px 0px 16px rgba(16,18,19,0.3);
	}

.category-header.overlay h1,
.category-header.overlay .categoryheader-title-large,
.category-header.overlay p {
	text-align: center;
	margin: 0 auto;
	max-width: 100%;
	z-index: 9;
	}

/* Page header block: the look follows Title Size, not the Heading Tag, so a Medium or Small title that is
   an h1 (the page's main heading) must not pick up the h1 rules above. Sizes and line-heights per size
   are in css/dynamic-blocks-css.php (Customizer H1-H3), phone sizes in the Customizer (Kirki). */
.category-header.overlay .categoryheader-title-medium,
.category-header.overlay .categoryheader-title-small {
	margin-left: 0;
	margin-right: 0;
	max-width: none;
	z-index: auto;
	text-shadow: 0px 0px 16px rgba(16,18,19,0.2);
	}

/* Only paragraphs stay 600px: a fixed width split Large header titles one word per line */
.category-header.overlay p {
	width: 600px;
	}

/* style-editor.css sets every editor paragraph to 19px with 0.4px letter spacing; on the site the header
   text takes the base font size (Customizer) and no extra spacing. */
.editor-styles-wrapper .category-header.overlay p {
	font-size: inherit;
	line-height: 1.75em;
	letter-spacing: normal;
	}

.category-header h1,
.category-header h2, 
.category-header h3 {
	margin-bottom: 0 !important;
	}

.category-header .categoryheader-title-medium {
	font-size: 3em;
	}

/* The site is border-box throughout (style.css), the editor is not: the 960px text column grew by its
   96px side padding, so headings and text ran wider than on the site. */
.editor-styles-wrapper .section-categoryheader,
.editor-styles-wrapper .section-categoryheader *,
.editor-styles-wrapper .section-categoryheader *::before,
.editor-styles-wrapper .section-categoryheader *::after {
	box-sizing: border-box;
	}

.category-header.overlay .page-title {
	//font-size: 6.5em;
	//opacity: 0.7;
	margin-top: 9px !important;
	}

.category-header.overlay .vertical-text {
	padding-left: 68px;
	}



.category-header .vertical-text {
	position: absolute;
	text-align: center;
	top: -16px;
	bottom: 0;
	//left: 40px;	
	left: 32px;
	height: 25px;
	margin: auto;
	padding-left: 12px;
	padding-right: 12px;
	/* rtlcss flips a px transform-origin only with useCalc, so it becomes calc(100% - 8px) 50% in RTL */
	/* rtl:begin:options:{"useCalc":true} */
	-webkit-transform-origin: 8px 50%;
	-moz-transform-origin: 8px 50%;
	-ms-transform-origin: 8px 50%;
	-o-transform-origin: 8px 50%;
	transform-origin: 8px 50%;
	/* rtl:end:options */
	-webkit-transform: rotate(-90deg) translate(-50%, 50%);
	-moz-transform: rotate(-90deg) translate(-50%, 50%);
	-ms-transform: rotate(-90deg) translate(-50%, 50%);
	-o-transform: rotate(-90deg) translate(-50%, 50%);
	transform: rotate(-90deg) translate(-50%, 50%);
	}

.category-header .vertical-text::before {
	left: -48px;
	}

.category-header .vertical-text::after {
	right: -48px;
	}









.category-header .category-description {
	padding-top: 16px;
	}

.archive-page-title {
	margin: 0;
	}

.category-title-wrap .subtitle-above {
	z-index: 9;
	margin-top: 48px;
	}

.categoryheader-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 32px;
	}

.categoryheader-button-wrap {
	margin-right: 24px;
	margin-left: 0;
	}

.categoryheader-button-wrap {
	margin-right: 12px;
	margin-left: 12px;
	}

.categoryheader-button {
	line-height: 1.7em;
	}

/* Editor: the base button box lives in style.css, which the editor does not load (the link showed as bare
   text), and the Kirki outline colour is one class stronger there than on the site, so it beat the white
   border above. Rounded corners come from makai_editor_button_corners(). */
.editor-styles-wrapper a.categoryheader-button.button {
	display: inline-block;
	text-align: center;
	white-space: nowrap;
	line-height: inherit;
	border: none;
	padding: 7px 38px;
	}

.editor-styles-wrapper a.categoryheader-button.button.button-outline {
	padding: 5px 38px;
	border-width: 2px;
	border-style: solid;
	border-color: #fff;
	}

/* Vertical text: the site gets its base look from style.css, the Customizer then overrides what it sets.
   Zero-specificity :where() so the Customizer's editor rules always win, as on the site. */
:where(.editor-styles-wrapper) .vertical-text {
	font-weight: 900;
	font-size: 0.7em;
	letter-spacing: 3px;
	text-transform: uppercase;
	}

/* wave svg*/
svg.wave-svg {
	position: absolute;
	bottom: 0;
	fill: #fff;
	max-width: 100%;
	height: auto;
	}

.no-wave-shape .wave-svg {
	display: none;
	}

/* animated search button */
.category-header .animated-search-button .search-box,
.editor-styles-wrapper .category-header .animated-search-button input.search-box[type="text"] {
	background-color: rgba(255,255,255, 0.6);
	}


.animated-search-button .searchform {
	background: white;
	width: 360px;
	}

.animated-search-button .search-box,
.editor-styles-wrapper .animated-search-button input.search-box[type="text"] {
	transition: width 0.6s, border-radius 0.6s, background 0.6s, box-shadow 0.6s;
	width: 60px;
	height: 60px;
	border-radius: 99px;
	border: none;
	cursor: pointer;
	background-color: rgba(255,255,255, 0.6);
	//margin-left: 80px;
	}

.animated-search-button .search-box + label .search-icon {
	color: black;
	}

.animated-search-button .search-box:hover {
	color: #000;
	background: #fff;
	box-shadow: 0 0 0 5px #3d4752;
	}

.animated-search-button .search-box:hover + label .search-icon {
	color: #000;
	}

.animated-search-button .search-box:focus {
	transition: width 0.6s cubic-bezier(0, 1.22, 0.66, 1.39), border-radius 0.6s, background 0.6s;
	border: none;
	outline: none;
	box-shadow: none;
	padding-left:20px;
	cursor: text;
	width: 300px;
	border-radius: auto;
	border-radius: 6px;
	background: #ebebeb;
	color: black;
	font-size: 1em;
	}

.animated-search-button .search-box:focus + label .search-icon {
	color: black;
	}

.animated-search-button .search-box:not(:focus){
	text-indent: -5000px;
	}

.animated-search-button #search-submit {
	display: none;
	}

.animated-search-button .search-icon {
	position: relative;
	left: -43px;
	color: white;
	cursor: pointer;
	font-size: 17px;
	}
 
 .categoryheader-search {
	margin-top: 22px;
	}

/* The round button sits in the middle of the header text. The label with the icon takes no room of its
   own (the icon is drawn over the button), otherwise the button is pushed off centre by the icon's width. */
.category-header .animated-search-button .search-container {
	display: flex;
	justify-content: center;
	align-items: center;
	}

.category-header .animated-search-button .search-box {
	margin-left: 0;
	}

.category-header .animated-search-button .search-container label {
	display: flex;
	align-items: center;
	width: 0;
	}

.category-header .animated-search-button .search-icon {
	left: -38.5px;
	}

/* The editor's own input rules made the round button 64x62 (content-box plus 1px 2px padding), so the
   icon sat off centre. Same box as the site's text inputs (style.css): border-box, 0 1rem padding. */
.editor-styles-wrapper .category-header .animated-search-button input.search-box[type="text"] {
	box-sizing: border-box;
	padding: 0 1rem;
	margin: 0;
	min-height: 0;
	}






/* ??? */

/*  white + theme color + dark */
.content-white .button,
.editor-styles-wrapper .content-white .button {
	color: #fff;
	}

.content-white .button-outline, 
.content-white a.button.button-outline,
.editor-styles-wrapper .content-white .button-outline, 
.editor-styles-wrapper .content-white a.button.button-outline  {
	color: #fff;
	border-color: #fff;
	}

.content-white .button-outline:hover, 
.content-white a.button.button-outline:hover,
.editor-styles-wrapper .content-white .button-outline:hover, 
.editor-styles-wrapper .content-white a.button.button-outline:hover {
	background-color: #fff;
	color: #101020;
	}

.content-white .button:not(.button-outline), 
.content-white a.button:not(.button-outline),
.editor-styles-wrapper .content-white .button:not(.button-outline), 
.editor-styles-wrapper .content-white a.button:not(.button-outline) {
    background-color: #fff;
    border-color: #fff;
    color: #666;
}

.content-white .button:not(.button-outline):hover, 
.content-white a.button:not(.button-outline):hover,
.editor-styles-wrapper .content-white .button:not(.button-outline):hover, 
.editor-styles-wrapper .content-white a.button:not(.button-outline):hover {
	background-color: #202030;
	border-color: #202030;
	}

.content-white-pluscolor .button:not(.button-outline):hover, 
.content-white-pluscolor a.button:not(.button-outline):hover,
.editor-styles-wrapper .content-white-pluscolor .button:not(.button-outline):hover, 
.editor-styles-wrapper .content-white-pluscolor a.button:not(.button-outline):hover {
	color: #fff;
	}

.editor-styles-wrapper .content-white-pluscolor .button-outline, 
.editor-styles-wrapper .content-white-pluscolor a.button.button-outline {
	color: #fff;
	}

.content-black .button,
.editor-styles-wrapper .content-black .button {
	color: #101010;
	}

.content-black .button-outline, 
.content-black a.button.button-outline,
.editor-styles-wrapper .content-black .button-outline, 
.editor-styles-wrapper .content-black a.button.button-outline  {
	color: #101010;
	border-color: #101010;
	}

.content-black .button-outline:hover, 
.content-black a.button.button-outline:hover,
.editor-styles-wrapper .content-black .button-outline:hover, 
.editor-styles-wrapper .content-black a.button.button-outline:hover {
	background-color: #101010;
	color: #fff;
	}

.content-black .button:not(.button-outline), 
.content-black a.button:not(.button-outline),
.editor-styles-wrapper .content-black .button:not(.button-outline), 
.editor-styles-wrapper .content-black a.button:not(.button-outline) {
	background-color: #101010;
	border-color: #101010;
	color: #eee;
	}

.content-black .button.button-outline:hover, 
.content-black a.button-outline:hover,
.editor-styles-wrapper .content-black .button.button-outline:hover, 
.editor-styles-wrapper .content-black a.button.button-outline:hover {
	background-color: #101010;
	border-color: #101010;
	color: #fff !important;
	}

.content-black .button:not(.button-outline):hover, 
.content-black a.button:not(.button-outline):hover,
.editor-styles-wrapper .content-black .button:not(.button-outline):hover, 
.editor-styles-wrapper .content-black a.button:not(.button-outline):hover {
	background-color: #404040;
	border-color: #404040;
	color: #fff !important;
	}







/** *****************************************************************************************
** ## SECTION HEADER Block ******************************************************************
*********************************************************************************************/
.postsectionheadline-wrap {
	//padding: 48px 0 36px;
	padding: 48px 0 24px;
	}

.postsectionheadline-wrap .subtitle-above {
	//padding-bottom: 6px;
	}

.postsectionheadline-bottom {
	display: flex;
	justify-content: space-between;
	}

.postsectionheadline-wrap .postsection-h {
	margin: 0;
	}

.postsection-h,
.viewall {
	display: inline-block;
	}

.viewall {
	font-weight: 600;
	font-size: 0.9em;
	line-height: 1em;
	align-self: flex-end;
	padding: 14px 18px;
	margin-bottom: -2px;
    	margin-right: -18px;
	}

.viewall i {
	padding-left: 2px;
	}

.viewall:hover {
	background: #f9f9f9;
	}

.wp-block-group.has-background .viewall:hover {
	background: rgba(0, 0, 0, 0.04);
	}









/** *****************************************************************************************
** ## CONTENT BOXES Block ********************************************************************
*********************************************************************************************/

.editor-styles-wrapper .contentboxes-wrap a:-webkit-any-link,
.editor-styles-wrapper .contentboxes-wrap a,
.block-editor .contentboxes-wrap a {
	text-decoration: none;
	pointer-events: none;
	}


/* background */
.contentboxbgimage,
.contentboxbgcolor,
.contentboxes-image-wrap-inner {  
	width: 100%;
	height: 100%;
        max-height: 100%;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	-webkit-box-sizing: border-box; 
	-moz-box-sizing: border-box;   
	box-sizing: border-box; 	 
	top: 0;
        background-position: center center;
        overflow: hidden;
  	transition: all 0.6s ease;
	}

.contentboxbgimage,
.contentboxbgcolor {  	 
	position: absolute !important;
	}

/*
.contentboxbgvideo {
	position: absolute;
	min-width: 100%;
	min-height: 100%;
	max-width: initial;
    	height: 100%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	//z-index: -9;
	}
*/

.contentboxbgvideo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	position: absolute;
	}


.half-height .contentboxbgvideo {
	min-height: 115%;
	}

.contentboxes-image-wrap-inner .contentboxes-zoom-wrap {
	overflow: hidden;
	position: relative;
	transition: all 0.6s ease-in-out;
	width: 100%;
	height: 100%;
	}

.contentboxes-image-wrap-inner .contentboxes-zoom-wrap.has-box-url:hover {
	//transform: scale(1.05);
	cursor: pointer;
	}

.contentboxes-image-wrap-inner .contentboxes-zoom-wrap.has-box-url:hover .contentboxbgimage {
	transform:  scale3d(1.03, 1.03, 1.03);
	}

.editor-styles-wrapper .contentboxes-wrap {
	margin-top: initial;
	}






.contentboxes-wrap .contentboxes-image-wrap-inner {
	margin-bottom: 0;
	}

/* padding 48 */
.section-contentboxes.alignfull .contentboxes-wrap.fourtyeight {
	margin: -24px 24px;
	}

.contentboxes-wrap.fourtyeight .contentboxes-masonry {
	margin-left: -24px;
	margin-right: -24px;
	}

.contentboxes-wrap.fourtyeight .contentboxes-image-wrap-inner {
	padding: 24px;
	}

/* padding 24 */
.section-contentboxes.alignfull .contentboxes-wrap.twentyfour {
	margin: -12px 36px;
	}

.contentboxes-wrap.twentyfour .contentboxes-masonry {
	margin-left: -12px;
	margin-right: -12px;
	}

.contentboxes-wrap.twentyfour .contentboxes-image-wrap-inner {
	padding: 12px;
	}

/* padding 12 */
.section-contentboxes.alignfull .contentboxes-wrap.twelve {
	margin: -6px 42px;
	}

.contentboxes-wrap.twelve .contentboxes-masonry {
	margin-left: -6px;
	margin-right: -6px;
	}

.contentboxes-wrap.twelve .contentboxes-image-wrap-inner {
	padding: 6px;
	}

/* padding 6 */
.section-contentboxes.alignfull .contentboxes-wrap.six {
	margin: -3px 45px;
	}

.contentboxes-wrap.six .contentboxes-masonry {
	margin-left: -3px;
	margin-right: -3px;
	}

.contentboxes-wrap.six .contentboxes-image-wrap-inner {
	padding: 3px;
	}


/* padding 0 */
.contentboxes-wrap.none.has-rounded-corners .contentboxes-image-wrap-inner .contentboxes-zoom-wrap, 
.contentboxes-wrap.none.has-rounded-corners .contentboxbgimage, 
.contentboxes-wrap.none.has-rounded-corners .contentboxes-content-wrap, 
.contentboxes-wrap.none.has-rounded-corners .contentboxes-image-wrap {
	border-radius: 0;
	}



.contentboxes-image-wrap { 
	overflow: hidden;
	position: relative;
        }

.block-editor-editor-skeleton__content .links_to_image {
	pointer-events: none;
	}

.editor-styles-wrapper a.links_to_image {
	text-decoration: none;
	pointer-events: none;
	}

.contentboxes-image:hover {
	transform: scale(1.05); 
	}

.grid-sizer-contentboxes {
	width: 8.33%;
	width: calc(100% / 12);
	float: left;
	}

/* width */
.contentboxes-image-wrap,
.contentboxes-image-wrap.half-width { 
	width: 50%;
	width: calc(100% / 2);
	}

.contentboxes-image-wrap.quarter-width { 
	width: 25%;
	width: calc(100% / 4);
	}

.contentboxes-image-wrap.one-third-width { 
	width: 33.33% !important;
	width: calc(100% / 3) !important;
	}

.contentboxes-image-wrap.two-third-width { 
	width: 66.66% !important;
	width: calc(100% / 3 * 2) !important;
	}

.contentboxes-image-wrap.full-width { 
	width: 100% !important;
	}


/* height for contentboxes with no content */
.contentboxes-image-wrap.no-content .contentboxes-image-wrap-inner,
.contentboxes-image-wrap.no-content .contentboxes-content-wrap  {
	position: absolute !important;
	}

.contentboxes-image-wrap.no-content {
	overflow: hidden;
	}

.contentboxes-image-wrap.no-content:before{
	content: "";
	display: block;
	}

.contentboxes-image-wrap.no-content:before,
.contentboxes-image-wrap.no-content.square:before {
	padding-top: 100%;
	}

.contentboxes-image-wrap.no-content.half-height:before{
	padding-top: 50%;
	}

.contentboxes-image-wrap.no-content.three-quarter-height:before{
	padding-top: 75%;
	}

.contentboxes-image-wrap.no-content.one-and-a-half-height:before{
	padding-top: 150%;
	}

.contentboxes-image-wrap.no-content.double-height:before{
	padding-top: 200%;
	}	


/* height for contentboxes with content */
.contentboxes-image-wrap.has-content.use-defined-height .contentboxes-image-wrap-inner,
.contentboxes-image-wrap.has-content.use-defined-height .contentboxes-content-wrap  {
	position: absolute !important;
	}

.contentboxes-image-wrap.has-content.use-defined-height {
	overflow: hidden;
	}

.contentboxes-image-wrap.has-content.use-defined-height:before{
	content: "";
	display: block;
	}

.contentboxes-image-wrap.has-content.use-defined-height:before,
.contentboxes-image-wrap.has-content.use-defined-height.square:before {
	padding-top: 100%;
	}

.contentboxes-image-wrap.has-content.use-defined-height.half-height:before{
	padding-top: 50%;
	}

.contentboxes-image-wrap.has-content.use-defined-height.three-quarter-height:before{
	padding-top: 75%;
	}

.contentboxes-image-wrap.has-content.use-defined-height.one-and-a-half-height:before{
	padding-top: 150%;
	}

.contentboxes-image-wrap.has-content.use-defined-height.double-height:before{
	padding-top: 200%;
	}	


/* dark overlay  */
.contentbox-overlay {
	height: 100%;
	width: 100%;
	position: relative;
	}

.bg-video .contentbox-overlay {
	z-index: 9;
	}

.contentbox-overlay.dark { 
    	background-color: rgba(32, 32, 33, 0.15);
    	background-color: rgba(42,42,43,0.18);
        }


/* gradient overlay */
.has-gradient.gradient-contentboxes-content-top {
	background-image: linear-gradient(to bottom, rgba(16,18,19,0.7) 0%,rgba(16,18,19,0) 60%);
	}

.content-dark .has-gradient.gradient-contentboxes-content-top {
	background-image: linear-gradient(to bottom,#090b09 0%,rgba(16,18,19,0) 60%);
	}

.has-gradient.gradient-contentboxes-content-bottom {
	//background-image: linear-gradient(to top, rgba(16,18,19,0.8) 0%,rgba(16,18,19,0) 60%);
	//background-image: linear-gradient(to top, rgba(16,18,19,0.5) 0%,rgba(16,18,19,0) 60%);
	background-image: linear-gradient(to top, rgba(6, 8, 9, 0.4) 0%, rgba(6, 8, 9, 0) 60%);
	}

.content-dark .has-gradient.gradient-contentboxes-content-bottom {
	background-image: linear-gradient(to top,#090b09 0%,rgba(16,18,19,0) 60%);
	}

.has-gradient.gradient-contentboxes-content-middle {
	//background-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 40%, rgba(36,36,36,0.3) 60%, rgba(0,0,0,0) 100%);
	//background-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%);
	background-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
	}

.content-dark .has-gradient.gradient-contentboxes-content-middle {
	//background-image: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(16,18,19,0.6) 45%, rgba(0,0,0,0) 100%);
	background-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(16,18,19,0.6) 40%, rgba(16,18,19,0.6) 60%, rgba(0,0,0,0) 100%);
	}



.contentboxes-image-wrap.full-width .has-gradient.gradient-contentboxes-content-middle.gradient-contentboxes-content-left {
    background-image: linear-gradient(to right, rgba(16, 18, 19, 0.4) 0%, rgba(16, 18, 19, 0) 100%);
    width: 50%; /* full width left middle */
    height: 100%;
	}
.contentboxes-image-wrap.full-width .has-gradient.gradient-contentboxes-content-middle.gradient-contentboxes-content-left .contentboxes-content.section-content {
	width: 100%; /* full width left middle */
	}


.has-gradient {
	//text-shadow: 0px 0px 16px rgba(0,0,0,0.5);
	text-shadow: 0px 0px 14px rgba(0,0,0,0.4);
	}


/* content  */
.contentboxes-content-wrap { 
	box-sizing: border-box;
	display: flex;
	align-items: center;
	top: 0; 
	left: 0; 
	min-height: 100%;
	width: 100%;
	}

.contentboxes-content-wrap.full-width-overlay { 
    	width: 100%;
	}

.contentboxes-content-wrap.contentboxes-content-right { 
	left: auto;
	right: 0; 
	}

.contentboxes-content-wrap.contentboxes-content-center { 
	width: 100%; 
	}

.contentboxes-content-wrap.contentboxes-content-top { 
	align-items: flex-start;
	}

.contentboxes-content-wrap.contentboxes-content-bottom { 
	align-items: flex-end;
	}

.contentboxes-content { 
	word-break: break-word;
	//width: 100%;
	width: 960px;
	max-width: 100%;
	min-height: 100%;
	//padding: 60px 120px;
	//padding: 60px 10%;	
	//padding: 36px 10%;		
	padding: 36px 5%;	
	container-type: inline-size;
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: flex-start;
	}

.contentboxes-wrap.twentyfour .contentboxes-content,
.contentboxes-wrap.twelve .contentboxes-content,
.contentboxes-wrap.six .contentboxes-content {
	width: 960px;
	max-width: 100%;
	}

.contentboxes-image-wrap.full-width .contentboxes-content.section-content {
	width: 50%;
	}

.one-third-width .contentboxes-content,
.quarter-width .contentboxes-content { 
	padding: 36px 60px;
	}

.half-width.no-vertical-text .contentboxes-content,
.one-third-width.no-vertical-text .contentboxes-content,
.two-third-width.no-vertical-text .contentboxes-content,
.quarter-width.no-vertical-text .contentboxes-content   { 
	padding: 36px 60px;
	}

.quarter-width.no-vertical-text .contentboxes-content   { 
	padding: 36px 24px;
	}

.no-vertical-text .contentboxes-content-wrap.contentboxes-content-left.contentboxes-content-bottom .contentboxes-content,
.no-vertical-text .contentboxes-content-wrap.contentboxes-content-right.contentboxes-content-bottom .contentboxes-content,
.no-vertical-text .contentboxes-content-wrap.contentboxes-content-left.contentboxes-content-top .contentboxes-content,
.no-vertical-text .contentboxes-content-wrap.contentboxes-content-right.contentboxes-content-top.contentboxes-content   {
	padding: 36px;
	}






.contentboxes-content-wrap.full-width-overlay .contentboxes-content { 
    	max-width: 50%;
	}

.contentboxes-content-center .contentboxes-content {
    	align-items: center;
    	margin: 0 auto;
	}

.contentboxes-content-right .contentboxes-content {
    	align-items: flex-end;
	}

.contentboxes-content-center  {
	text-align: center;
	}

.contentboxes-content-right {
	text-align: right;
	}

.contentboxes-content-wrap.full-width-overlay.contentboxes-content-right { 
    	justify-content: flex-end;
	}
    
.contentboxes-vertical,
.contentboxes-subtitle.subtitle-above,
.editor-styles-wrapper .contentboxes-title,
.contentboxes-text,
.contentboxes-button-wrap {
	margin-top: 12px;
	margin-bottom: 12px;
	}
.contentboxes-title{
	margin-top: 12px;
	margin-bottom: 0;
	}

.contentboxes-title i {
	display: block;
	margin-bottom: 36px;
	}

.contentboxes-title i {
	margin-bottom: 12px;
	}

.contentboxes-title.contentboxes-title-bodyfont i {
	margin-bottom: 14px;
    	font-size: 2.5em;
	}

.contentboxes-title.contentboxes-title-bodyfont {
	font-weight: bold;
	margin-bottom: 0;
	}

.contentboxes-subtitle.subtitle-above {
	margin-bottom: 6px;
	}

.contentboxes-subtitle i {
	//padding-bottom: 16px;
	}

.contentboxes-button,
.editor-styles-wrapper .contentboxes-button {
	margin-top: 16px;
	background: transparent;
	}

.editor-styles-wrapper .contentboxes-button {
	pointer-events: none;
	margin-top: 16px;
	}

.contentboxes-subtitle {
	margin-bottom: 0;
	}

.contentboxes-text {
	margin-top: 24px;
	margin-bottom: 0;
	}

.contentboxes-button-wrap {
	margin-top: 16px;
	}


/* backend video fix */
.editor-styles-wrapper .contentboxbgvideo {
	z-index: 0;
	}

.editor-styles-wrapper .contentboxes-image-wrap.bg-video .contentboxes-zoom-wrap {
	background-color: rgba(0,0,0,0.1);
	}


/* remove first contentboxes item top margin */
.contentboxes-content > .contentboxes-content-item {
	margin-top: 0;
	}

.contentboxes-content > .contentboxes-content-item ~ .contentboxes-content-item {
	margin-top: 12px;
	}

.contentboxes-content > .contentboxes-content-item ~ .contentboxes-content-item.contentboxes-divider {
	margin-top: 32px;
	}

.contentboxes-content > .contentboxes-content-item ~ .contentboxes-content-item.contentboxes-text {
	margin-top: 24px;
	}


/* remove last contentboxes item bottom margin */
.contentboxes-content-item:last-child {
	margin-bottom: 0;
	}


/*  white + theme color */
.content-white .contentboxes-vertical,
.content-white .contentboxes-subtitle.subtitle-above,
.content-white .contentboxes-title,
.content-white .contentboxes-content,
.content-white .contentboxes-content h1,
.content-white .contentboxes-content h2,
.content-white .contentboxes-content h3,
.content-white .contentboxes-content h4,
.content-white .contentboxes-content h5,
.content-white .contentboxes-content h6 {
	color: #fff !important;
	}

.content-white-pluscolor h1,
.content-white-pluscolor h2,
.content-white-pluscolorh3,
.content-white-pluscolor h4,
.content-white-pluscolor h5,
.content-white-pluscolor h6,
.content-white-pluscolor .contentboxes-title,
.content-white-pluscolor .contentboxes-text {
	color: #fff;
	}

.content-white .contentboxes-divider {
	background-color: #fff;
	border-color: #fff;
	color: #db9457;
	}

.content-white .button-outline, 
.content-white a.button.button-outline,
.content-white .button-outline:not(:hover), 
.content-white a.button.button-outline:not(:hover) {
	color: #fff;
	border-color: #fff;
	}

.content-white .button-outline:hover, 
.content-white a.button.button-outline:hover {
	background-color: #fff;
	border-color: #fff;
	color: #101020 !important;
	}

.content-white .button:not(.button-outline), 
.content-white a.button:not(.button-outline) {
	background-color: #fff;
	border-color: #fff;
	color: #000;
	}

.content-white .button:not(.button-outline):hover, 
.content-white a.button:not(.button-outline):hover {
	background-color: #000000;
	border-color: #000000;
	color: #fff;
	}

.content-white-pluscolor.ffffff.button:not(.button-outline):hover, 
a.content-white-pluscolor.ffffff.button:not(.button-outline):hover {
	//background-color: #000000;
	//border-color: #000000;
	//color: #fff;
	}

.content-white-pluscolor .button:not(.button-outline):hover, 
.content-white-pluscolor a.button:not(.button-outline):hover {
	//color: #fff !important;
	}

.content-white-pluscolor .contentboxes-vertical,
.content-white-pluscolor .contentboxes-title,
.content-white-pluscolor .contentboxes-content {
	color: #fff !important;
	}

.contentboxes-divider {
	height: 2px;
	width: 40px;
	margin-top: 14px;
	margin-bottom: 16px;
	}

.contentboxes-vertical {
	position: absolute;
	text-align: center;
	top: -16px;
	bottom: 0;
	//left: 4px;	
	//left: 18px;	
	left: 12px;
	height: 25px;
	margin: auto;
	padding-left: 12px;
	padding-right: 12px;
	/* rtlcss flips a px transform-origin only with useCalc, so it becomes calc(100% - 8px) 50% in RTL */
	/* rtl:begin:options:{"useCalc":true} */
	-webkit-transform-origin: 8px 50%;
	-moz-transform-origin: 8px 50%;
	-ms-transform-origin: 8px 50%;
	-o-transform-origin: 8px 50%;
	transform-origin: 8px 50%;
	/* rtl:end:options */
	-webkit-transform: rotate(-90deg) translate(-50%, 50%);
	-moz-transform: rotate(-90deg) translate(-50%, 50%);
	-ms-transform: rotate(-90deg) translate(-50%, 50%);
	-o-transform: rotate(-90deg) translate(-50%, 50%);
	transform: rotate(-90deg) translate(-50%, 50%);
	}

.contentboxes-content-right .contentboxes-vertical {
	left: auto;
	right: 60px;
	-webkit-transform-origin: 100% 100%;
	-moz-transform-origin: 100% 100%;
	-ms-transform-origin: 100% 100%;
	-o-transform-origin: 100% 100%;
	transform-origin: 100% 100%;
	-webkit-transform: rotate(-90deg) translate(50%, 50%);
	-moz-transform: rotate(-90deg) translate(50%, 50%);
	-ms-transform: rotate(-90deg) translate(50%, 50%);
	-o-transform: rotate(-90deg) translate(50%, 50%);
	transform: rotate(-90deg) translate(50%, 50%);
	}

.contentboxes-vertical::before {
	left: -48px;
	}

.contentboxes-vertical::after {
	right: -48px;
	}








body.has-first-block-contentboxes.has-transparent-header .section-contentboxes:first-child .contentboxes-header-shadow {
    background-image: linear-gradient(to bottom, rgba(0,0,10,0.4) 0%, rgba(0,0,10,0) 100%);
    padding-bottom: 60px;
    position: absolute;
    top: 0;
    left: 0;
    height: 120px;
    width: 100%;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    -webkit-animation: fading ease-in 0.5s;
    animation: fading ease-in 0.5s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s;
}

@-webkit-keyframes fading {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fading {
    from { opacity: 0; }
    to { opacity: 1; }
}




/** *****************************************************************************************
** ## LINK BOXES BLOCK ****************************************************************************
*********************************************************************************************/

.editor-styles-wrapper .linkboxes-wrap a:-webkit-any-link,
.editor-styles-wrapper .linkboxes-wrap a,
.block-editor .linkboxes-wrap a {
	text-decoration: none;
	pointer-events: none;
	}

.linkboxes-wrap {
	display: grid;
	//justify-content: space-between;
	}

.editor-styles-wrapper .linkboxes-wrap {
	margin-top: initial;
	}

.linkboxes-overlay .linkboxes-content-item.subtitle-above,
.linkboxes-overlay .linkboxes-content-item.linkboxes-name {
	color: #fff !important;
	}

.linkboxes-item.below-image .linkboxes-content-item.subtitle-above {
	margin-top: 12px;
	}



/* padding */
.linkboxes-wrap {
	--lb-gap: 12px;
	column-gap: var(--lb-gap);
	//margin-left: 24px;
	//margin-right: 24px;
	margin-bottom: 24px;
	row-gap: var(--lb-gap);
	}

.linkboxes-wrap.padding-twentyfour {
	--lb-gap: 24px;
	margin-bottom: 48px;
	}


/* width
   --lb-per-row is the number the block is set to, --lb-max the most that fit on the current screen
   (see the steps below) and --lb-min the narrowest a box may get. A row holds the smaller of the two
   numbers, or fewer boxes when the block itself is too narrow for that many, as in a column or a sidebar. */
.linkboxes-wrap {
	--lb-per-row: 4;
	--lb-max: 7;
	--lb-min: 120px;
	}

.linkboxes-wrap.one {
	--lb-per-row: 1;
	}

.linkboxes-wrap.two {
	--lb-per-row: 2;
	}

.linkboxes-wrap.three {
	--lb-per-row: 3;
	}

.linkboxes-wrap.four {
	--lb-per-row: 4;
	}

.linkboxes-wrap.five {
	--lb-per-row: 5;
	}

.linkboxes-wrap.six {
	--lb-per-row: 6;
	}

.linkboxes-wrap.seven {
	--lb-per-row: 7;
	}

/* Large text and Landscape Narrow boxes (half as tall as they are wide) need more room for a name,
   so they go down to fewer boxes per row, and to one, sooner. */
.linkboxes-wrap.textlarge {
	--lb-min: 190px;
	}

.linkboxes-wrap.landscapenarrow {
	--lb-min: 190px;
	}

.linkboxes-wrap.landscapenarrow.textmedium {
	--lb-min: 230px;
	}

.linkboxes-wrap.landscapenarrow.textlarge {
	--lb-min: 300px;
	}

/* A column is one row's width divided by the boxes per row, less the gaps, but at least --lb-min and at
   most the whole block; auto-fill makes as many columns as there is room for. The 0.1px keeps rounding
   from pushing the last box of a full row onto the next row. */
.linkboxes-wrap {
	--lb-count: min(var(--lb-per-row), var(--lb-max));
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--lb-min), (100% - (var(--lb-count) - 1) * var(--lb-gap)) / var(--lb-count) - 0.1px)), 1fr));
	}

/* Fewer boxes per row as the screen gets narrower, so a box never ends up too narrow for its name.
   Bigger text needs wider boxes, so Medium gives up a column sooner than Small, and Large sooner still. */
@media only screen and (max-width: 1200px) {
	.linkboxes-wrap {
		--lb-max: 6;
		}

	.linkboxes-wrap.textmedium {
		--lb-max: 5;
		}

	.linkboxes-wrap.textlarge {
		--lb-max: 4;
		}
	}

@media only screen and (max-width: 959px) {
	.linkboxes-wrap,
	.linkboxes-wrap.textmedium {
		--lb-max: 4;
		}

	.linkboxes-wrap.textlarge {
		--lb-max: 3;
		}
	}

@media only screen and (max-width: 767px) {
	.linkboxes-wrap,
	.linkboxes-wrap.textmedium {
		--lb-max: 3;
		}

	.linkboxes-wrap.textlarge {
		--lb-max: 2;
		}
	}

@media only screen and (max-width: 599px) {
	.linkboxes-wrap,
	.linkboxes-wrap.textmedium {
		--lb-max: 2;
		}

	.linkboxes-wrap.textlarge {
		--lb-max: 1;
		}
	}


/* height */
.linkboxes-wrap .linkboxes-item {
	aspect-ratio: 1 / 1;
	height: max-content;
	}

.linkboxes-wrap.landscape .linkboxes-item {
	aspect-ratio: 4 / 3.2;
	}

.linkboxes-wrap.landscapenarrow .linkboxes-item {
	aspect-ratio: 4 / 2;
	}

.linkboxes-wrap.portrait .linkboxes-item {
	aspect-ratio: 3 / 4;
	}

.linkboxes-image-wrap .linkboxes-image-wrap-inner,
.linkboxes-image-wrap .linkboxes-content-wrap  {
	position: absolute !important;
	}


/* background */
.linkboxesbgimage,
.linkboxes-image-wrap-inner {  
	width: 100%;
	height: 100%;
        max-height: 100%;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	-webkit-box-sizing: border-box; 
	-moz-box-sizing: border-box;   
	box-sizing: border-box; 	 
	top: 0;
        //background-position: top center;
        background-position: center center;
        overflow: hidden;
  	transition: all 0.6s ease;
	}

.linkboxesbgimage  {  	 
	position: absolute !important;
	}

.linkboxes-item.below-image .linkboxes-image-wrap:not(.has-content) .linkboxesbgimage {
	aspect-ratio: 1 / 1;
	height: auto;	
	}

.linkboxes-wrap.landscape .linkboxes-item.below-image .linkboxes-image-wrap:not(.has-content) .linkboxesbgimage {
	aspect-ratio: 4 / 3.2;
	}

.linkboxes-wrap.portrait .linkboxes-item.below-image .linkboxes-image-wrap:not(.has-content) .linkboxesbgimage {
	aspect-ratio: 3 / 4;
	}

.linkboxes-item.below-image .linkboxes-overlay {
	display: none;
	}


.linkboxes-item.below-image .linkboxesbgimage,
.linkboxes-item.below-image .linkboxes-content-wrap {
	position: relative !important;
	}

.linkboxes-item.below-image .linkboxes-image-wrap.has-content .linkboxes-image-wrap-inner {
	position: relative !important;
	}


.linkboxesbgvideo {
	position: absolute;
	min-width: 100%;
	min-height: 100%;
	max-width: initial;
    	width: 100%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: -9;
	}

.half-height .linkboxesbgvideo {
	min-height: 115%;
	}

.linkboxes-image-wrap-inner .linkboxes-zoom-wrap {
	overflow: hidden;
	transition: all 0.6s ease-in-out;
	width: 100%;
	height: 100%;
	}

.linkboxes-image-wrap-inner .linkboxes-zoom-wrap.has-box-url:hover .linkboxesbgimage {
	cursor: pointer;
	transform:  scale3d(1.06, 1.06, 1.06);
	}


/* A box is a size container: the text inside it adapts to the width of the box itself, whatever the
   screen (see the @container rules below the text styles). */
.linkboxes-item { 
	position: relative;
	container-type: inline-size;
	}

.linkboxes-image-wrap { 
	overflow: hidden;
	position: relative;
	display: contents;
	}

.round .linkboxes-image-wrap {
	//max-width: 260px;
	margin: 0 auto;
	}


.linkboxes-wrap.round .linkboxes-image-wrap-inner {
	border-radius: 48% 52% 59% 41% / 40% 52% 48% 60% ;
	}


/* height for linkboxes with no content */
.linkboxes-image-wrap.no-content .contentboxes-image-wrap-inner,
.linkboxes-image-wrap.no-content .contentboxes-content-wrap  {
	position: absolute !important;
	}

.linkboxes-image-wrap.no-content {
	overflow: hidden;
	}

.linkboxes-image-wrap.no-content:before{
	content: "";
	display: block;
	}

.linkboxes-image-wrap.no-content:before,
.linkboxes-image-wrap.no-content.square:before {
	padding-top: 100%;
	}

.linkboxes-image-wrap.no-content.half-height:before{
	padding-top: 50%;
	}

.linkboxes-image-wrap.no-content.one-and-a-half-height:before{
	padding-top: 150%;
	}

.linkboxes-image-wrap.no-content.double-height:before{
	padding-top: 200%;
	}	

/* text bg  */
.linkboxes-overlay {
	height: 100%;
	width: 100%;
	position: relative;
	background-color: rgba(42,42,43,0.1);
	}

.linkboxes-wrap.round .linkboxes-overlay {
	border-radius: 48% 52% 59% 41% / 40% 52% 48% 60% ;
	}

.linkboxes-overlay.dark { 
    	background-color: rgba(32, 32, 33, 0.15);
    	background-color: rgba(42,42,43,0.18);
        }

.linkboxes-overlay.whitetextbg .linkboxes-text {
	background: #fff;
	color: #000;
	}

.linkboxes-overlay.blacktextbg .linkboxes-text {
	background: #000;
	color: #fff;
	}


/* gradient overlay & text background */
.has-gradient.gradient-linkboxes-content-top {
	//background-image: linear-gradient(to bottom,#101213 0%,rgba(16,18,19,0) 50%);
	background-image: linear-gradient(to bottom,#090b09 0%,rgba(16,18,19,0) 50%);
	}

.has-gradient.gradient-linkboxes-content-bottom {
	//background-image: linear-gradient(to top,#101213 0%,rgba(16,18,19,0) 50%);
	//background-image: linear-gradient(to top,#090b09 0%,rgba(16,18,19,0) 50%);
	//background-image: linear-gradient(to top, rgba(16,18,19,0.4) 0%,rgba(16,18,19,0) 100%);
	}

.has-gradient.gradient-linkboxes-content-middle {
	background-image: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(16,18,19,0.6) 45%, rgba(0,0,0,0) 100%);
	}

.blacktextbg .linkboxes-text {
	background: #000;
	}


/* content over image */
.linkboxes-content-wrap { 
	box-sizing: border-box;
	display: flex;
    	align-items: center;
	top: 0; 
	left: 0; 
	min-height: 100%;
	width: 100%;
	align-items: flex-end;
	}

.linkboxes-content-wrap.full-width-overlay { 
    	width: 100%;
	}

.linkboxes-content { 
	word-break: break-word;
	width: 100%;
	max-width: 100%;
	min-height: 100%;
	padding: 24px 6px 20px;
	display: flex;
    	justify-content: center;
    	flex-direction: column;
    	align-items: flex-start;
	}

.linkboxes-wrap.textcenter .linkboxes-content { 
	align-items: center;
	align-self: center;
	text-align: center;
	}

.linkboxes-wrap.uppercase .linkboxes-text { 
	text-transform: uppercase !important;
	}


.linkboxes-wrap.lowercase .linkboxes-text { 
	text-transform: initial !important;
	}

.linkboxes-wrap.letterspacing .linkboxes-text { 
	letter-spacing: 4px !important;
	}

.linkboxes-wrap.noletterspacing .linkboxes-text { 
	letter-spacing: 0 !important;
	}


h4.linkboxes-name {
	margin-bottom: 0;
	}

.linkboxes-content-wrap-below .linkboxes-name {
	margin-bottom: 18px;
	}

.linkboxes-overlay .linkboxes-text {
	color: #fff;
	padding: 3px 12px;
	}

.linkboxes-wrap.textmedium .linkboxes-overlay .linkboxes-text {
	padding: 6px 18px;
	}

.linkboxes-wrap.textlarge .linkboxes-overlay .linkboxes-text {
	padding: 6px 18px;
	}

/* A narrow box gets tighter letters and a snugger label, so a name keeps together instead of breaking in
   the middle of a word. How narrow counts as narrow depends on the text size, and letter spacing is left
   alone where the block is set to No Letter Spacing. */
@container (max-width: 145px) {
	.linkboxes-wrap:not(.textmedium):not(.textlarge):not(.noletterspacing) .linkboxes-item .linkboxes-overlay .linkboxes-text {
		letter-spacing: 2px !important;
		}

	.linkboxes-wrap:not(.textmedium):not(.textlarge) .linkboxes-item .linkboxes-overlay .linkboxes-text {
		padding-left: 8px;
		padding-right: 8px;
		}
	}

@container (max-width: 190px) {
	.linkboxes-wrap.textmedium:not(.noletterspacing) .linkboxes-item .linkboxes-overlay .linkboxes-text {
		letter-spacing: 2px !important;
		}

	.linkboxes-wrap.textmedium .linkboxes-item .linkboxes-overlay .linkboxes-text {
		padding-left: 8px;
		padding-right: 8px;
		}
	}

@container (max-width: 150px) {
	.linkboxes-wrap.textmedium:not(.noletterspacing) .linkboxes-item .linkboxes-overlay .linkboxes-text {
		letter-spacing: 1px !important;
		}

	.linkboxes-wrap.textmedium .linkboxes-item .linkboxes-overlay .linkboxes-text {
		padding-left: 6px;
		padding-right: 6px;
		}
	}

@container (max-width: 250px) {
	.linkboxes-wrap.textlarge:not(.noletterspacing) .linkboxes-item .linkboxes-overlay .linkboxes-text {
		letter-spacing: 2px !important;
		}

	.linkboxes-wrap.textlarge .linkboxes-item .linkboxes-overlay .linkboxes-text {
		padding-left: 8px;
		padding-right: 8px;
		}
	}

/* content below image */
linkboxes-wrap three landscape textcenter textmedium.linkboxes-content-wrap-below { 
	padding: 12px 6px 0;
	}


.linkboxes-content-wrap-below h4.linkboxes-name {
	margin-top: 0;
	}

.linkboxes-wrap.textcenter .linkboxes-content-wrap-below { 
	text-align: center;
	}

/* linkboxes block in widget area */
.widget-area .linkboxes-wrap {
	margin-bottom: 0;
	}





/** *****************************************************************************************
** ## SUBTITLE BLOCK *******************************************************************************
*********************************************************************************************/

.subtitle-above {
	margin: 0;
	display: block;
	padding: 0;
	line-height: 1.5em;
	}

/* pull the element following a subtitle close to it;
   !important because headline margin rules are more specific */
.subtitle-above + * {
	margin-top: 6px !important;
	}

.subtitle-above.subtitle-center {
	text-align: center;
	}

.subtitle-above.subtitle-right {
	text-align: right;
	}



/** *****************************************************************************************
** ## NEWSLETTER SIGNUP BLOCK ********************************************************************
*********************************************************************************************/
.section-subscription input:not([type='submit']) {
	background-color: #fff;
	}


.wrap-has-bg-color.text-shortcode-wrap {
	padding: 23px 120px;
	margin-top: 24px;
	}

.mc4wp-form input[type="submit"] {
    margin-top: 12px;
}


.block-editor-block-list__block[data-type="meta-box/subscription"] {
	min-height: 100px;
	max-width: inherit;
	}

.section-subscription {
	position: relative;
	overflow: hidden;
	}

/* image */
.subscriptionbgimage,
.subscriptionbgcolor {  
	width: 100%;
	height: 100%;
	max-height: 100%;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	-webkit-box-sizing: border-box; 
	-moz-box-sizing: border-box;   
	box-sizing: border-box; 	 
	top: 0;
	background-position: center center;
	overflow: hidden;
	transition: all 0.6s ease; 	 
	position: absolute !important;
	}

/* content  */
.subscription-content-wrap {
	position: relative;
	}


.subscription-content { 
	word-break: break-word;
	min-height: 100%;
	//adding: 144px 120px;
	padding: 240px 120px;
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;
	max-width: 960px;
	margin: 0 auto;
	text-align: center;
	box-sizing: border-box;
	text-shadow: 0px 0px 16px rgb(0 0 0 / 25%);
	}

.subscription-content-wrap.third-width-overlay .subscription-content  { 
    	padding: 60px 120px 60px 60px;
	}

.has-transparent-header section.section-subscription:first-of-type .subscription-content { 
	padding-top: 120px;
	padding-bottom: 120px;
	}

/* colour background (no image): no text shadow, 120px top/bottom */
.section-subscription.subscription-bg-color .subscription-content {
	text-shadow: none;
	}

@media only screen and (min-width: 768px) {
	.section-subscription.subscription-bg-color .subscription-content {
		padding-top: 120px;
		padding-bottom: 120px;
		}
	}

.subscription-content-wrap.full-width-overlay .subscription-content { 
    	max-width: 50%;
	}

.subscription-content-wrap.subscription-content-center.full-width-overlay .subscription-content { 
    	max-width: 60%;
	}

.subscription-content-center .subscription-content {
	max-width: 960px;
	margin: 0 auto;
    	align-items: center;
	}

.subscription-content-right .subscription-content {
    	align-items: flex-end;
	}

.subscription-content-center  {
	text-align: center;
	}

.subscription-content-wrap.full-width-overlay.subscription-content-right { 
    	justify-content: flex-end;
	}
    
.subscription-vertical,
.subscription-subtitle.subtitle-above,
.subscription-title,
h1.subscription-title,
h2.subscription-title,
.widget-area h1.subscription-title,
.widget-area h2.subscription-title,
.editor-styles-wrapper h1.subscription-title,
.editor-styles-wrapper h2.subscription-title,
.subscription-title.page-title,
.editor-styles-wrapper .subscription-title,
.subscription-text {
	margin-top: 12px;
	margin-bottom: 12px;
	}

.subscription-subtitle.subtitle-above {
	margin-bottom: 2px;
	}

.subscription-subtitle {
	margin-bottom: 0;
	}

.subscription-text {
	margin-top: 24px;
	margin-bottom: 24px;
	}

.subscription-shortcode {
	margin: 0 auto;
	}



/* remove first subscription item top margin */
.subscription-content > .subscription-content-item {
	margin-top: 0;
	}

.subscription-content > .subscription-content-item ~ .subscription-content-item {
	margin-top: 12px;
	}

.subscription-content > .subscription-content-item ~ .subscription-content-item.subscription-divider {
	margin-top: 14px;
	}

.subscription-content > .subscription-content-item ~ .subscription-content-item.subscription-text {
	margin-top: 24px;
	}

.subscription-content > .subscription-content-item ~ .subscription-content-item.subscription-button-wrap {
	margin-top: 0;
	}

/* remove last subscription item bottom margin */
.subscription-content-item:last-child {
	margin-bottom: 0;
	}






.subscription-divider {
	height: 2px;
	width: 40px;
	margin-top: 14px;
	margin-bottom: 16px;
	}

.subscription-vertical {
	position: absolute;
	text-align: center;
	top: -16px;
	bottom: 0;
	left: 32px;	
	height: 25px;
	margin: auto;
	padding-left: 12px;
	padding-right: 12px;
	/* rtlcss flips a px transform-origin only with useCalc, so it becomes calc(100% - 8px) 50% in RTL */
	/* rtl:begin:options:{"useCalc":true} */
	-webkit-transform-origin: 8px 50%;
	-moz-transform-origin: 8px 50%;
	-ms-transform-origin: 8px 50%;
	-o-transform-origin: 8px 50%;
	transform-origin: 8px 50%;
	/* rtl:end:options */
	-webkit-transform: rotate(-90deg) translate(-50%, 50%);
	-moz-transform: rotate(-90deg) translate(-50%, 50%);
	-ms-transform: rotate(-90deg) translate(-50%, 50%);
	-o-transform: rotate(-90deg) translate(-50%, 50%);
	transform: rotate(-90deg) translate(-50%, 50%);
	}

.subscription-content-right .subscription-vertical {
	left: auto;
	right: 60px;
	transform: rotate(-90deg) translate(50%, 50%);
	transform-origin: 100% 100%;
	}

.subscription-vertical::before {
	left: -48px;
	}

.subscription-vertical::after {
	right: -48px;
	}


/* widget area */

.widgets-wrap .section-subscription {
    margin-bottom: 24px;
   }

.widgets-wrap .subscription-content { 
	padding: 42px 24px 24px;
	max-width: 100%;
	}

.widget-area .subscription-content .mc4wp-form {
	padding: 0;
	}

.widget-area .mc4wp-form input[type="email"],
.widget-area .mc4wp-form input[type="submit"] {
	width: 100%;
	max-width: 100%;
	}

.widget-area .mc4wp-form input[type="email"], 
.widget-area .mc4wp-form input[type="text"] {
	font-size: 0.9em;
	}

.widget-area .subscription-vertical {
	left: 10px;
	}

.widget-area .mc4wp-form input[type="email"], 
.widget-area .mc4wp-form input[type="submit"] {
	margin-left: 0;
	margin-right: 0;
	}


/** *****************************************************************************************
** ## LOGOS BLOCK ******************************************************************************
*********************************************************************************************/

.section-logos {
	margin: 0;
	position: relative;
	}

.section-logos.has-bg-image {
	//padding: 120px 0;
	//padding: 180px 0;
	padding: 240px 0;

	}

.press-logos-wrap {
	z-index: 99;
	position: relative;
	}

.press-logos {
        overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: center;
	align-items: center;  
        }

.contentbox-content .press-logos { 
	padding: 0;   
        }

.press-logos a {
	border: none !important;
	} 
        
.press-logo {	
        padding-top: 18px;
        padding-bottom: 18px;
        //margin: 0 0 -1px -4px;
        margin: 0 0 -1px -1px;
        border-left: 0;
        border-top: 0;
        line-height: 64px;
        text-align: center;
        display: inline-block;
        -webkit-box-sizing: border-box; 
	-moz-box-sizing: border-box;    
	box-sizing: border-box;    
	display: flex;
	justify-content: center;
	align-items: center;
	}    

.has-border .press-logo {
	//border: 1px solid rgba(204, 204, 204, 0.4);
	border: 1px solid #ececef;
	//border-left: 0;
	border-top: 0;
	}

.section-logos.has-bg-image .has-border .press-logo {
	border-color: rgba(255, 255, 255, 0.2);
	}

.has-border .press-logo:last-child {
        //border-right: none;
        }

.press-logo {
	min-width: calc(120px + 120px);
	}

.press-logo img {
	vertical-align: middle;
	width: auto;
	height: auto;
	max-height: 60px;
	max-width: 120px;
        }

/* image */
.logosbgimage {  
	width: 100%;
	height: 100%;
	max-height: 100%;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	-webkit-box-sizing: border-box; 
	-moz-box-sizing: border-box;   
	box-sizing: border-box; 	 
	top: 0;
	background-position: center center;
	overflow: hidden;
	transition: all 0.6s ease; 	 
	position: absolute !important;
	}


.logos-header,
.logos-text { 
	word-break: break-word;
	min-height: 100%;
	padding: 0 120px;
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;
	max-width: 960px;
	margin: 0 auto;
	text-align: center;
	box-sizing: border-box;
	z-index: 9;
    position: relative;
	}

.logos-header { 
    padding: 0 48px 48px;
	}

.logos-text { 
    padding: 48px 48px 0;
	}


.section-logos.has-bg-image  { 
	text-shadow: 0px 0px 16px rgb(0 0 0 / 25%);
	}


/** *****************************************************************************************
** ## SOCIAL BLOCK ****************************************************************************
*********************************************************************************************/

.socialicons-block .socialicons {
	margin: 0;
	position: relative;
	display: flex;
	}

.socialicons-block.center .socialicons {
	justify-content: center;
	}

.socialicons-block.right .socialicons {
	justify-content: flex-end;
	}


.footer-sidebar-wrap.center .socialicons-block .socialicons {
	justify-content: center;
	}


.site-footer .widget-area .socialicons-block .socialicons li,
.socialicons-block .socialicons li {
	padding: 0 0.5em;
	list-style-type: none;
	margin: 0;
	display: inline;
	position: relative;
	}

.socialicons-block .socialicons li {
	padding: 0 1em 0 0;
	}

.site-footer .widget-area .socialicons-block .socialicons li {
	padding: 0 0.75em 0 0;
	}


/* remove pointer events */
.mb-block-preview .socialicons a {
	pointer-events: none;
	}





/********************************
RESPONSIVE LAYOUT
/********************************
	## Large Devices and Wider Screens 	- max-width: 1200px
	## Tablet Portrait 					- max-width: 959px
	## Mobile Landscape					- max-width: 767px
	## Mobile Portrait					- max-width: 479px
	## Bigger Screens					- min-width: 960px
	## Bigger Screens					- min-width: 1400px
**********************************/









/* Large Devices and Wider Screens -------------------------------------------------*/
@media only screen and (max-width: 1200px) { 

	/** BLOG BLOCK **/
	/* Background sections: 48px at the sides like the other side gutters, instead of 120px (18px <=479) */
	.section-blog.has-bg-color .blog-block-content-wrap,
	.section-blog.has-bg-image .blog-block-content-wrap,
	.section-blog.has-bg-video .blog-block-content-wrap {
		padding-left: 48px;
		padding-right: 48px;
		}

	/** GROUP BLOCK **/
	/* Up to 1200px the default width blocks inside a full width group are no longer held to the 828px content
	   size, so they line up with the default width blocks outside the group. */
	.wp-block-group.alignfull.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide)) {
		max-width: 100%;
		}

	/** CONTENT BOXES BLOCK **/
	.contentboxes-image-wrap.quarter-width.double-height.has-content {
		width: 50% !important;
		}

	.contentboxes-image-wrap.quarter-width.double-height.has-content.use-defined-height:before {
		padding-top: 150%;
		}

}


/* Tablet Landscape: content boxes keep their desktop columns here, so the narrow boxes need tighter spacing */
@media only screen and (min-width: 960px) and (max-width: 1200px) {

	/** CONTENT BOXES BLOCK **/
	/* vertical text 12px from the box edge (the rotated label sits 8px right of its left value) */
	.contentboxes-vertical {
		left: 4px;
		}

	.contentboxes-content {
		padding: 36px 36px;
		}

	.quarter-width .contentboxes-content {
		padding: 24px 48px;
		}

	.quarter-width.no-vertical-text .contentboxes-content {
		padding: 24px 12px;
		}

	/* Tablet settings of each box. Order on Tablet is handled in blocks.js, masonry ignores CSS order */
	.contentboxes-image-wrap.hide-on-tablet {
		display: none;
		}

	.contentboxes-image-wrap.no-content.tablet-square:before,
	.contentboxes-image-wrap.has-content.tablet-square:before {
		padding-top: 100% !important;
		}

	.contentboxes-image-wrap.no-content.tablet-half-height:before,
	.contentboxes-image-wrap.has-content.tablet-half-height:before {
		padding-top: 50% !important;
		}

	.contentboxes-image-wrap.no-content.tablet-three-quarter-height:before,
	.contentboxes-image-wrap.has-content.tablet-three-quarter-height:before {
		padding-top: 75% !important;
		}

	.contentboxes-image-wrap.no-content.tablet-one-and-a-half-height:before,
	.contentboxes-image-wrap.has-content.tablet-one-and-a-half-height:before {
		padding-top: 150% !important;
		}

	.contentboxes-image-wrap.no-content.tablet-double-height:before,
	.contentboxes-image-wrap.has-content.tablet-double-height:before {
		padding-top: 200% !important;
		}

}


/* Tablet Portrait --------------------------------------------------------------------*/
@media only screen and (max-width: 959px) { 

	/** Media **/
	.wp-block-image,
	.wp-block-cover,
	.wp-block-file,
	.wp-block-media-text {
		margin: 48px 0;
		}

	/* No gallery overrides here any more - the 36px set above is deliberate at every width. */

	/** SECTION HEADER BLOCK + SECTION HEADER OF BLOCK BLOCK **/
	.postsectionheadline-bottom,
	.section.section-blog.headerlayout-justified .blog-block-header {
	flex-direction: column;
	}

	.postsectionheadline-wrap {
		flex-direction: column;
		text-align: center;
		}

	.viewall,
	.section.section-blog.headerlayout-justified .blog-block-section-button.viewall {
		align-self: center;
		margin-bottom: 0;
		margin-right: 0;
		//margin-left: -18px;
		}

	/** BLOG BLOCK **/

	.section-blog .post-grid,
	.section-blog.padding-none .post-grid,
	.section-blog .post-grid, 
	.section-blog.padding-fourtyeight .post-grid  {
		flex-basis: 100%;
		width: 100%;
	    	margin-bottom: 0;
		}

	.section-blog {
		padding-bottom: 0;
		}

	.section-blog .post-grid,
	.section-blog.padding-fourtyeight .post-grid,
	.section-blog.padding-twentyfour .post-grid,
	.section-blog.padding-none .post-grid  {
		flex-basis: 100%;
		width: 100%;
		margin-bottom: 24px;
		}

	/* Space between posts: none stays none when the posts stack */
	.section-blog.padding-none .post-grid {
		margin-top: 0;
		margin-bottom: 0;
		}

	/* Masonry (uncropped images) with 48px between posts: half the space sits on each side of a post and the
	   wrap reaches out by the same amount. 24px reached past the 18px page gutter here and made the page 6px
	   wider than the screen (it slid sideways on iPhones), so the halves follow the gutter: 18px. */
	.section-blog:not(.layout-listfirstlarge).padding-fourtyeight .articles-wrap.masonry {
		margin-left: -18px;
		width: calc(100% + 36px);
		}

	.section-blog:not(.layout-listfirstlarge).padding-fourtyeight .post-grid.masonry-item {
		padding: 0 18px;
		}

	.section-blog:not(.layout-listfirstlarge).padding-fourtyeight .articles-wrap.masonry .article-overlay.article-has-gradient {
		width: calc(100% - 36px);
		left: 18px;
		}

	.section-blog.has-bg-color .blog-block-content-wrap,
	.section-blog.has-bg-image .blog-block-content-wrap, 
	.section-blog.has-bg-video .blog-block-content-wrap {
		//padding: 24px;
		padding-top: 60px;
		padding-bottom: 60px;
		}

	/* Background video: the posts stack here and the section gets far taller than the video, so the video
	   is a band at the top (2:1) that fades into the black section below, instead of a gradient stretched
	   over the whole section. A fixed ratio and object-fit keep it the same for any video. */
	section.section-blog.bgtype-video .blog-block-bgvideo-wrap {
		top: 0;
		left: 0;
		height: auto;
		max-height: 100%;
		aspect-ratio: 2 / 1;
		}

	/* The overlay options can end in any color, this always ends in the black of the section. */
	section.section-blog.bgtype-video .blog-block-bgvideo-wrap::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		height: 40%;
		background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000);
		}

	video.blog-block-bgvideo {
		height: 100%;
		object-fit: cover;
		}

	/* A block with a background color gets its room from the inner wrap above. Without a background the
	   section gets the same 18px side space as the default width content, so everything lines up. */
	.section.section-blog.alignfull:not(.padding-none):not(.bgtype-image):not(.bgtype-video):not(.bgtype-none) {
		padding-left: 0;
		padding-right: 0;
		}

	.section.section-blog.alignfull.bgtype-none:not(.padding-none):not(.bgtype-image):not(.bgtype-video) {
		padding-left: 18px;
		padding-right: 18px;
		}

	/** GROUP BLOCK **/
	/* A full width group with a background: its content sits 18px from the screen edge, like the default
	   width content. */
	.wp-block-group.alignfull.has-background {
		padding-left: 18px;
		padding-right: 18px;
		}

	.section.section-blog.headerlayout-justified .blog-block-header {
		text-align: center;
		}

	/** CONTENT BOXES BLOCK **/

	/* content boxes border radius */
	.contentboxes-wrap.has-rounded-corners .contentboxes-image-wrap-inner .contentboxes-zoom-wrap,
	.contentboxes-wrap.has-rounded-corners .contentboxbgimage,
	.contentboxes-wrap.has-rounded-corners .contentboxes-content-wrap {
		//border-radius: 0;
		}

	.alignfull .contentboxes-wrap {
		padding-left: 0;
		padding-right: 0;
	}

	/* The boxes are one per row here. Half of the space between boxes sits on each side of a box and the
	   masonry reached out by the same amount, past the edge of the screen with 24px and 48px spacing (the
	   page slid sideways on iPhones). Without both the boxes stay where they were; the space between
	   stacked boxes (top and bottom) stays. */
	.contentboxes-wrap:is(.six, .twelve, .twentyfour, .fourtyeight) .contentboxes-masonry {
		margin-left: 0;
		margin-right: 0;
		}

	.contentboxes-wrap:is(.six, .twelve, .twentyfour, .fourtyeight) .contentboxes-image-wrap-inner {
		padding-left: 0;
		padding-right: 0;
		}

	.contentboxes-vertical {
		//display: none;
		left: 0px;
		}

	.contentboxes-image-wrap.has-vertical-text  .contentboxes-content {
		 padding-left: 42px;
		 padding-right: 42px;
		}




	.no-sidebar .entry-content .section-contentboxes.alignwide, 
	.inactive-sidebar .entry-content .section-contentboxes.alignwide {
		margin-left: 0;
		margin-right: 0;
		}

	.contentboxes-image-wrap, 
	.contentboxes-image-wrap.quarter-width,
	.contentboxes-image-wrap.quarter-width.double-height.has-content  { 
		width: 100% !important;
		}

	.contentboxes-image-wrap.quarter-width.double-height.has-content.use-defined-height:before {
		padding-top: 200%;
		}

	.contentboxes-image-wrap.one-third-width { 
		width: 100% !important;
		}

	.contentboxes-image-wrap, .contentboxes-image-wrap.two-third-width { 
		width: 100% !important;
		}

	.contentboxes-image-wrap.half-width { 
		width: 100% !important;
		}

	.contentboxes-image-wrap.half-width.cb-mobile-content-center .contentboxes-content {
		padding-left: 60px;
		padding-right: 60px;
		}

	.contentboxes-image-wrap.half-width.cb-mobile-content-left .contentboxes-content {
		padding-left: 60px;
		padding-right: 60px;
		}

	.contentboxes-image-wrap.cb-mobile-content-center .contentboxes-content {
		align-items: center;
		text-align: center;
		}

	.contentboxes-image-wrap.cb-mobile-content-left .contentboxes-content {
		align-items: flex-start;
		text-align: left;
		}

	.cb-mobile-content-vertical-bottom .contentboxes-content-wrap {
		align-items: flex-end;
		}

	.cb-mobile-content-vertical-middle .contentboxes-content-wrap {
		align-items: center;
		}

	.cb-mobile-content-vertical-top .contentboxes-content-wrap {
		align-items: flex-start;
		}

	.contentboxes-image-wrap.full-width .has-gradient.gradient-contentboxes-content-middle.gradient-contentboxes-content-left {
	width: 75%;
	}


	/* gradient overlay */
	.cpm-change .has-gradient.gradient-contentboxes-content-top,
	.cpm-change .has-gradient.gradient-contentboxes-content-bottom,
	.cpm-change .has-gradient.gradient-contentboxes-content-middle {
		background-image: none;
		}

	.cpm-change.cb-mobile-content-vertical-top .has-gradient {
		background-image: linear-gradient(to bottom,#101213 0%,rgba(16,18,19,0) 50%);
		background-image: linear-gradient(to bottom,#090b09 0%,rgba(16,18,19,0) 50%);
		}

	.cpm-change.cb-mobile-content-vertical-bottom .has-gradient {
		background-image: linear-gradient(to top,#101213 0%,rgba(16,18,19,0) 50%);
		background-image: linear-gradient(to top,#090b09 0%,rgba(16,18,19,0) 50%);
		}

	.cpm-change.cb-mobile-content-vertical-middle .has-gradient {
		background-image: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(16,18,19,0.5) 45%, rgba(0,0,0,0) 100%);
		background-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
		}

	.contentboxes-image-wrap.hide-on-mobile {
		display: none;
		}

	.contentboxes-image-wrap.no-content.mobile-square:before,
	.contentboxes-image-wrap.has-content.mobile-square:before {
		padding-top: 100% !important;
		}

	.contentboxes-image-wrap.no-content.mobile-half-height:before,
	.contentboxes-image-wrap.has-content.mobile-half-height:before {
		padding-top: 50% !important;
		}

	.contentboxes-image-wrap.no-content.mobile-three-quarter-height:before,
	.contentboxes-image-wrap.has-content.mobile-three-quarter-height:before {
		padding-top: 75% !important;
		}

	.contentboxes-image-wrap.no-content.mobile-one-and-a-half-height:before,
	.contentboxes-image-wrap.has-content.mobile-one-and-a-half-height:before {
		padding-top: 150% !important;
		}

	.contentboxes-image-wrap.no-content.mobile-double-height:before,
	.contentboxes-image-wrap.has-content.mobile-double-height:before {
		padding-top: 200% !important;
		}


	/* masonry => flex layout to reorder */
	.contentboxes-masonry {
		display: flex;
		flex-wrap: wrap;
		height: auto !important;
		}

	.contentboxes-image-wrap {
		position: relative !important;
		float: none;
		overflow: initial;
		top: initial !important;
		left: initial !important;
		order: 99;
		transform: initial !important;
		}
	

}

/* Mobile (Landscape)  ----------------------------------------------------*/
@media only screen and (max-width: 767px) {


	/** PAGE HEADER BLOCK **/
	/* 24px at the sides instead of 96px. A title at the bottom of the header keeps its top and bottom padding,
	   which holds the text clear of the wave. The middle one repeats the selector the 96px comes from: it is
	   a class more specific than the plain one, and would otherwise win. */
	.category-header.overlay .category-title-wrap {
		padding-left: 24px;
		padding-right: 24px;
		}

	.category-header.overlay .category-title-wrap.header-content-middle {
		padding: 48px 24px;
		}


	.animated-search-button .search-box {
		margin-left: 12px;
		}

	/** CONTENT BOXES BLOCK **/
	.grid-sizer-contentboxes {
		width: 8.33%;
		width: calc(100% / 12);
		float: left;
		}

	.contentboxes-image-wrap,
	.contentboxes-image-wrap.half-width,
	.contentboxes-image-wrap.one-third-width,
	.contentboxes-image-wrap .contentboxes-content ,
	.contentboxes-image-wrap.half-width .contentboxes-content ,
	.contentboxes-image-wrap.one-third-width .contentboxes-content    { 
		width: 100% !important;
		}

	.contentboxes-image-wrap.quarter-width.double-height.has-content {
		width: 100% !important;
		}

	.contentboxes-wrap.six .contentboxes-image-wrap-inner,
	.contentboxes-wrap.twelve .contentboxes-image-wrap-inner,
	.contentboxes-wrap.twentyfour .contentboxes-image-wrap-inner,
	.contentboxes-wrap.fourtyeight .contentboxes-image-wrap-inner  {
		margin: 0;
		margin-bottom: 0;
		//padding-bottom: 12px;
		}

	.contentboxes-image-wrap.quarter-width.double-height.has-content.use-defined-height:before {
		padding-top: 150%;
		}


	.half-width.no-vertical-text .contentboxes-content, 
	.one-third-width.no-vertical-text .contentboxes-content, 
	.quarter-width.no-vertical-text .contentboxes-content {
		padding: 48px 24px;
		}

	.contentboxes-image-wrap.cb-mobile-content-center .contentboxes-content,
	.contentboxes-image-wrap.half-width.cb-mobile-content-center .contentboxes-content {
		align-items: center;
		text-align: center;
		padding-left: 24px;
		padding-right: 24px;
		}

	.contentboxes-image-wrap.cb-mobile-content-left .contentboxes-content,
	.contentboxes-image-wrap.half-width.cb-mobile-content-left .contentboxes-content  {
		align-items: flex-start;
		text-align: left;
		padding-left: 24px;
		padding-right: 24px;
		}

	/** BLOG BLOCK **/
	.section-blog {
		padding-bottom: 0;
		}

	.section-blog .post-grid,
	.section-blog.padding-twentyfour .post-grid,
	.section-blog.padding-fourtyeight .post-grid,
	.perrow-two.section-blog .post-grid, 
	.perrow-two.section-blog.padding-fourtyeight .post-grid {
		flex-basis: 100%;
		width: 100%;
		margin-bottom: 24px;
		margin-top: 0;
		}

	/* Space between posts: none stays none when the posts stack */
	.section-blog.padding-none .post-grid {
		margin-top: 0;
		margin-bottom: 0;
		}

	/* The posts stack on a phone: one per row at full width, whatever the posts per row and the space between
	   posts are set to. Without this a block set to two or four per row with no space (or 24px) kept half
	   or quarter width cards under each other. */
	.section-blog.perrow-two:is(.padding-none, .padding-twentyfour, .padding-fourtyeight) .post-grid,
	.section-blog.perrow-four:is(.padding-none, .padding-twentyfour, .padding-fourtyeight) .post-grid {
		flex-basis: 100%;
		width: 100%;
		}

	.section-blog .articles-wrap {
		flex-direction: column;
		}

	.section-blog.perrow-two.layout-listfirstlarge.first-post-large article.firstlargeitem,
	.section-blog.perrow-two .listfirst-wrap-right {
		flex-basis: 100%;
		width: 100%;
		}

	/* List layout as a masonry grid (three per row with the first post large, the first post a stamp when the
	   posts are ranked): the posts stack like every other list layout. Masonry still writes positions and
	   heights into the markup, so these win with !important, and the space kept for the stamp goes too.
	   Before, the posts overlapped the first one on a phone and were squeezed into three 188px columns
	   between 480 and 767px. The 48px before each image is the gap between the columns, so it goes as well. */
	section.section-blog.layout-listfirstlarge .articles-wrap.masonry {
		height: auto !important;
		min-height: 0 !important;
		}

	section.section-blog.perrow-three.has-ranking-number.layout-listfirstlarge.first-post-large .articles-wrap.masonry {
		padding-left: 0;
		}

	section.section-blog.layout-listfirstlarge .articles-wrap.masonry > article {
		position: relative !important;
		left: auto !important;
		right: auto !important; /* Masonry may write either side (RTL origin in scripts.js, LTR in blocks.js) */
		top: auto !important;
		transform: none !important;
		flex-basis: 100%;
		width: 100%;
		}

	section.section-blog.layout-listfirstlarge .articles-wrap.masonry > .article-empty {
		display: none;
		}

	.section-blog.perrow-three.layout-listfirstlarge.first-post-large .tnail {
		margin-left: 0;
		}

	/* Text over the image: 24px of padding all round on a phone, so a card that grows to fit its text keeps
	   some air above it. The vertically centred layout and the full width one without padding keep their
	   own padding rules. */
	.section-blog.layout-overimage .articlecontentwrap {
		padding: 24px;
		}

	/* Vertically centred text over the image: 36px above and below on a phone instead of 60px, so the text
	   fits the card more often instead of stretching it. */
	.section-blog.layout-overimage.vertical-align-middle .articlecontentwrap {
		padding-top: 36px;
		padding-bottom: 36px;
		}

	/* Text over the image: the date and the author stay on one line on a phone, the number of comments is
	   left out. The date drops its dot when the comments were the last item, and a meta line with nothing
	   but the comments goes. */
	.section-blog.layout-overimage .post-info-comment {
		display: none;
		}

	.section-blog.layout-overimage .post-info:has(+ .post-info-comment:last-child)::after {
		content: none;
		}

	.section-blog.layout-overimage .entry-meta-data:has(.post-info-comment:only-child) {
		display: none;
		}

	/* List layout with ranking numbers: 12px between image and text and 6px after the number, so the title
	   keeps more width on a phone. The big first item and the sidebar widget variant set their own padding
	   with more specific rules and stay as they are; the number rule skips the big first item. */
	.article-content.listfirstlarge.has-ranking-number {
		padding-left: 12px;
		}

	article:not(.firstlargeitem) > .article-content.listfirstlarge .ranking-number {
		margin-right: 6px;
		}

	/* Posts with an image go one step further: the number moves from beside the title onto the bottom left
	   corner of the image, white with a soft shadow, and the text gets the usual 24px. Beside the title it
	   left long titles a narrow column, five lines high, and the image stretched to match. The number in
	   the image is the widget one (it comes before the image in blog.php); the sidebar widget variant keeps
	   its number beside the image. */
	.section-blog.layout-listfirstlarge:not(.widget-area *, .widgets-php *) article:not(.firstlargeitem):has(> .tnail) {
		position: relative;
		}

	.section-blog.layout-listfirstlarge:not(.widget-area *, .widgets-php *) article:not(.firstlargeitem):has(> .tnail) > .widget-ranking-number {
		display: block;
		position: absolute;
		left: 12px;
		bottom: 14px;
		z-index: 1;
		margin: 0;
		padding: 0;
		font-size: 2.8em;
		color: rgba(255, 255, 255, 0.4);
		text-shadow: 0 0 26px rgba(16, 18, 19, 0.4);
		pointer-events: none;
		}

	.section-blog.layout-listfirstlarge:not(.widget-area *, .widgets-php *) article:not(.firstlargeitem):has(> .tnail) .standard-ranking-number {
		display: none;
		}

	.section-blog.layout-listfirstlarge:not(.widget-area *, .widgets-php *) article:not(.firstlargeitem):has(> .tnail) > .article-content {
		padding-left: 24px;
		}

	/** LOGOS BLOCK **/
	.press-logo {
		min-width: 50% !important;
		width: 50%;
		}

	.has-border .press-logo:nth-child(even) {
		border-right: 0;
		}

	.press-logo img {
		padding: 0 6px;
		}

	/** NEWSLETTER BLOCK **/
	.subscription-vertical {
		left: 6px;
		}

	.subscription-content {
		padding: 120px 60px 60px;
		}

	/** TABLE BLOCK **/
	/* wide fixed-layout tables: let columns size to their content so the
	   figure scrolls horizontally (core .wp-block-table overflow-x: auto)
	   instead of crushing cells to one character per line */
	.wp-block-table table.has-fixed-layout {
		table-layout: auto;
		}

	/* core pairs .has-fixed-layout with word-break: break-word - undo it
	   so columns keep whole words when the layout switches to auto */
	.wp-block-table table.has-fixed-layout th,
	.wp-block-table table.has-fixed-layout td {
		word-break: normal;
		min-width: 100px;
		}

	/** GROUP BLOCK **/
	/* 24px instead of 36px on a phone, in step with the page gutter. A full width group keeps the 18px sides
	   from the tablet rule, with 24px above and below. Padding set on the block in the editor is inline
	   and still wins. */
	.wp-block-group.has-background {
		padding: 24px;
		}

	.wp-block-group.alignfull.has-background {
		padding-top: 24px;
		padding-bottom: 24px;
		}

	/** MEDIA **/
	/* Only 24px of space above and below an image, cover, file or media & text block on a phone -
	   next to a paragraph too, where the rules for larger screens leave 60px. */
	.wp-block-image,
	.wp-block-cover,
	.wp-block-file,
	.wp-block-media-text {
		margin: 24px 0;
		}

	p + .wp-block-image,
	p + .wp-block-cover,
	p + .wp-block-file,
	p + .wp-block-media-text,
	p + .wp-block-post-featured-image,
	.wp-block-image + p,
	.wp-block-cover + p,
	.wp-block-file + p,
	.wp-block-media-text + p,
	.wp-block-post-featured-image + p {
		margin-top: 24px;
		}

	/** SECTION HEADER BLOCK **/
	/* The View all link sits under the headline here, so it gets more air above it. */
	.postsectionheadline-bottom .viewall {
		padding-top: 18px;
		}

}

/* Mobile (Portrait)  -----------------------------------------------------*/
@media only screen and (max-width: 479px) {

	/** PAGE HEADER BLOCK **/
	.category-header.overlay .category-title-wrap,
	.category-header.overlay .category-title-wrap.header-content-middle {
		padding: 160px 24px 120px;
		}

	.category-header.overlay .category-image-fullbg.image-mobile {
		display: block;
		}	

	.category-header.overlay .category-image-fullbg.image-regular {
		display: none;
		}

	svg.wave-svg {
		bottom: -6px;
		}

	.category-header .vertical-text {
		   display: none;
		}

	/** BLOG BLOCK **/
	.section-blog.padding-fourtyeight .articles-wrap, 
	section.section-blog.layout-listfirstlarge .articles-wrap {
		//margin-top: 0;
		}

	.section-blog.perrow-two.layout-listfirstlarge.first-post-large article.firstlargeitem {
		flex-basis: 100%;
		width: 100%;
		}

	.perrow-two.section-blog .post-grid, 
	.perrow-two.section-blog.padding-fourtyeight .post-grid {
		width: 100%;
		flex-basis: 100%;
		}

	.section-blog .post-grid.masonry-item, 
	.section-blog.padding-fourtyeight .post-grid.masonry-item, 
	.section-blog.layout-listfirstlarge.first-post-large article.firstlargeitem {
		flex-basis: 100%;
		width: 100%;
		left: 0 !important;
		}

	.section-blog .post-grid, 
	.section-blog.padding-twentyfour .post-grid, 
	.section-blog.padding-fourtyeight .post-grid {
		margin-top: 0;
		}


	.section.section-blog.alignfull:not(.padding-none):not(.bgtype-image):not(.bgtype-video) {
		//padding-left: 24px;
		//padding-right: 24px;
		}

	.section-blog.has-bg-color .blog-block-content-wrap, 
	.section-blog.has-bg-image .blog-block-content-wrap, 
	.section-blog.has-bg-video .blog-block-content-wrap {
		padding-left: 18px;
		padding-right: 18px;
		}

	/* Phones in portrait: the background video band is twice as high (square), the sides are cropped */
	section.section-blog.bgtype-video .blog-block-bgvideo-wrap {
		aspect-ratio: 1 / 1;
		}

	.section-blog.layout-listfirstlarge.first-post-large article.firstlargeitem .article-content {
		padding: 18px;
		}

	/* List layout, first post large: portrait on a phone whatever the image ratio, so the card with the
	   text over it is taller than wide. blog.php hands phones the portrait crop of the image (<picture>).
	   The image fills the card: its fixed 450px height cut off the bottom of narrow cards. */
	.section-blog.layout-listfirstlarge.first-post-large article.firstlargeitem .tnail:is(.aspect-ratio-square, .aspect-ratio-landscape, .aspect-ratio-landscape-narrow) {
		aspect-ratio: 2 / 3;
		}

	.section-blog.layout-listfirstlarge.first-post-large article.firstlargeitem .tnail:is(.aspect-ratio-square, .aspect-ratio-portrait, .aspect-ratio-landscape, .aspect-ratio-landscape-narrow) img {
		height: 100%;
		}

	/* Text over the image, Large or X-Large titles on square images: 4:5 on a phone, so the photo shows above
	   the text instead of behind all of it. The square file is cropped at the sides; its srcset already has
	   files big enough for that. The text sits at the bottom, also when the block centres it, and the shade
	   behind it reaches higher. */
	.section-blog.layout-overimage:is(.titlesize-large, .titlesize-xlarge) .image-square .tnail.aspect-ratio-square {
		aspect-ratio: 4 / 5;
		}

	.section-blog.layout-overimage.vertical-align-middle:is(.titlesize-large, .titlesize-xlarge) .image-square .article-content {
		justify-content: flex-end;
		}

	.section-blog.layout-overimage.vertical-align-middle:is(.titlesize-large, .titlesize-xlarge) .image-square .articlecontentwrap {
		padding: 24px;
		}

	.section-blog.layout-overimage:is(.titlesize-large, .titlesize-xlarge) .image-square .article-overlay.article-has-gradient {
		background-image: linear-gradient(to top, rgba(16,18,19,0.75) 0%, rgba(16,18,19,0.45) 50%, rgba(16,18,19,0) 100%);
		height: 75%;
		}

	/** CONTENT BOXES BLOCK **/
	.contentboxes-image-wrap.quarter-width,
	.contentboxes-image-wrap.quarter-width .contentboxes-content   { 
		width: 100% !important;
		}

	/** LOGOS BLOCK **/
	.press-logo {
		min-width: 50% !important;
		width: 50%;
		padding-top: 6px;
    		padding-bottom: 6px;
		}

	.has-border .press-logo:nth-child(odd) {
		border-left: 0;
		}

	.has-border .press-logo:nth-child(even) {
		border-right: 0;
		}


}


/* Bigger Screens  -----------------------------------------------------*/
@media only screen and (min-width: 960px) {

	/** CONTENT BOXES BLOCK **/
	/* no leftover height from "100% screen height" on mobile. Box Height on Tablet "100% screen height" is the
	   exception: blocks.js sets that height between 960 and 1200px and takes it off again outside */
	.contentboxes-image-wrap:not(.tablet-viewheight) {
		height: auto !important;
		}

}


/* Very Big Screens  -----------------------------------------------------*/
@media only screen and (min-width: 1400px) {

	/** CONTENT BOXES BLOCK **/
	.half-width.no-vertical-text .contentboxes-content, 
	.two-third-width.no-vertical-text .contentboxes-content {
		padding-left: 96px;
		padding-right: 96px;
		}

}

/* Content boxes: image failed to load (broken link) - dark text on white instead of
   white text on a dark gradient. The class is set by the image's onerror handler. */
.contentboxes-image-wrap.image-broken .contentboxbgimage {
	display: none;
}

.contentboxes-image-wrap.image-broken .contentboxes-zoom-wrap {
	background-color: #fff;
	border: 1px solid #e5e5e5;
	box-sizing: border-box;
}

.contentboxes-image-wrap.image-broken .contentbox-overlay,
.contentboxes-image-wrap.image-broken .has-gradient {
	background-image: none;
}

.contentboxes-image-wrap.image-broken .contentboxes-content-wrap,
.contentboxes-image-wrap.image-broken .contentboxes-content-wrap * {
	color: #111 !important;
	text-shadow: none !important;
}

.contentboxes-image-wrap.image-broken .contentboxes-content-wrap .button-outline {
	border-color: #111 !important;
}


/* Image / gallery blocks: the image failed to load (broken link). Show a neutral placeholder
   tile and the caption dark on white instead of white on a dark gradient. The class is set on
   the figure by a script (front end: the img's onerror attribute, editor: makai-features).
   The img stays in the DOM, only invisible, so its alt text remains available to assistive tech. */
figure.wp-block-image.image-broken {
	position: relative;
	min-height: 160px;
	border: 1px solid #e0e0e0;
	box-sizing: border-box;
	/* placeholder icon, centred in the tile */
	background: #f5f5f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") center 45% / 48px 48px no-repeat;
}

figure.wp-block-image.image-broken img {
	opacity: 0;
}

/* core paints its own dark overlay on gallery tiles with a caption */
.wp-block-gallery.has-nested-images figure.wp-block-image.image-broken::before {
	display: none;
}

.wp-block-image.image-broken figcaption,
.wp-block-gallery.has-nested-images figure.wp-block-image.image-broken figcaption {
	background-image: none;
	color: #111 !important;
	text-shadow: none;
}

.wp-block-image.image-broken figcaption a,
.wp-block-image.image-broken figcaption a:link {
	color: inherit;
}

/* Editor only: tell the author what is wrong, the visitor does not need the wording */
.editor-styles-wrapper figure.wp-block-image.image-broken {
	background-color: #fcf0f1;
	border: 1px dashed #cc1818;
	min-height: 220px;
}

.editor-styles-wrapper figure.wp-block-image.image-broken::after {
	content: "Image not found \2013  please replace it";
	position: absolute;
	top: calc(45% + 36px);
	left: 0;
	right: 0;
	padding: 0 12px;
	text-align: center;
	font-size: 13px;
	line-height: 1.4;
	color: #cc1818;
	pointer-events: none;
}


/*-------------------------------------
## THEME PATTERNS (shared)
--------------------------------------*/

/* 12px under every theme pattern. The comparison cards end with their note paragraph */
.makai-compare-note,
.makai-product-rows,
.makai-image-cards,
.makai-coupon-box,
.makai-product-feature {
	margin-bottom: 12px;
	}

/* the editor spaces blocks with a 24px top margin on the next block and no bottom margin
   (:root :where(.is-layout-flow) > *), so its twin sets the next block's top margin. Kept at (0,1,1) so it only
   beats that 24px: blocks with their own top margin keep it, as on the front end (the quote's 6em,
   which holds its quote mark, was cut to 12px and the mark hung over the pattern) */
body.editor-styles-wrapper :where(.makai-compare-note, .makai-product-rows, .makai-image-cards, .makai-coupon-box, .makai-product-feature) + * {
	margin-top: 12px;
	}


/*-------------------------------------
## COMPARISON CARDS (pattern: makai/comparison-cards)
--------------------------------------*/

.makai-compare > .wp-block-columns {
	gap: 36px;
	margin: 0;
	}

/* one card */
.makai-compare .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 24px;
	background: var(--wp--preset--color--seasalt, #f9f9fa);
	}

.makai-compare .wp-block-column > * {
	margin-top: 0;
	margin-bottom: 0;
	}

.makai-compare .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	}

/* card title in the Customizer headings font, weight and letter spacing.
   The editor twin beats the Customizer's editor heading colour (.editor-styles-wrapper h4.block-editor-block-list__block) */
.makai-compare .wp-block-heading,
.editor-styles-wrapper .makai-compare .wp-block-heading {
	font-size: 24px;
	line-height: 1.2;
	color: #333;
	}

/* one-line verdict under the title */
.makai-compare .wp-block-column > p:not(.is-style-makai-badge) {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
	color: #55595e;
	}

/* buttons sit at the bottom, so all three cards line up */
.makai-compare .wp-block-buttons {
	margin-top: auto;
	}

/* full-width buttons: the theme's 38px side padding wrapped "Check price ✦" onto 2 lines in narrow cards */
.makai-compare .wp-block-button .wp-block-button__link {
	padding-left: 12px;
	padding-right: 12px;
	}

.makai-compare-note {
	margin-top: 18px;
	font-size: 13px;
	color: #6b6e72;
	}


/* featured card: Column > Styles > "Featured card" */
.makai-compare .wp-block-column.is-style-makai-featured {
	background: var(--wp--preset--color--mintmist, #d6ece9);
	box-shadow: 0 16px 40px rgba(10, 10, 20, 0.08);
	}

.makai-compare .is-style-makai-featured .wp-block-heading {
	font-size: 26px;
	color: #000;
	}

.makai-compare .is-style-makai-featured > p:not(.is-style-makai-badge),
.makai-compare .is-style-makai-featured .is-style-makai-specs > li {
	color: #000;
	}

.makai-compare .is-style-makai-featured .is-style-makai-specs,
.makai-compare .is-style-makai-featured .is-style-makai-specs > li {
	border-color: #fff;
	}

.makai-compare .is-style-makai-featured .is-style-makai-specs > li > strong,
.makai-compare .is-style-makai-featured .is-style-makai-specs > li > div > strong {
	color: #333;
	}

/* top pick badge in the button colours (Customizer > Colors > Regular Buttons adds it to its output),
   with a light mint border (#E0F1EF) against the card. These values are the fallback without the Customizer output. */
.makai-compare .is-style-makai-featured .is-style-makai-badge {
	background: var(--wp--preset--color--tiffanyblue, #83c5be);
	border-color: #e0f1ef;
	color: #fff;
	}


/* rounded corners follow the theme's rounded-corners setting.
   The editor has no .has-rounded-corners class; makai_editor_button_corners() mirrors these there. */
.has-rounded-corners .makai-compare .wp-block-column,
.has-rounded-corners .makai-compare .wp-block-image img {
	border-radius: 6px;
	}


/* phones: the top pick comes first instead of second */
@media (max-width: 781px) {

	.makai-compare .wp-block-column.is-style-makai-featured {
		order: -1;
		}
	}


/*-------------------------------------
## BADGE (Paragraph > Styles > "Badge")
--------------------------------------*/

/* the editor twin beats the Customizer's editor text colour (.editor-styles-wrapper p) */
p.is-style-makai-badge,
.editor-styles-wrapper p.is-style-makai-badge {
	width: fit-content;
	padding: 2px 12px;
	border: 1px solid var(--wp--preset--color--mintmist, #d6ece9);
	background: #ebf6f4;
	color: var(--wp--preset--color--tiffanyblue, #83c5be);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 3px;
	line-height: 1.8;
	text-transform: uppercase;
	}

.has-rounded-corners p.is-style-makai-badge {
	border-radius: 6px;
	}

/* the badge is only as wide as its text, so the alignment toolbar moves the box, not the text.
   The alignment classes are physical, so RTL keeps these rules as they are */
/*rtl:begin:ignore*/
p.is-style-makai-badge.has-text-align-center {
	margin-left: auto;
	margin-right: auto;
	}

p.is-style-makai-badge.has-text-align-right {
	margin-left: auto;
	}

p.is-style-makai-badge.has-text-align-left {
	margin-right: auto;
	}

/* the editor canvas and Groups with a content width centre every child with !important margins,
   so an aligned badge is moved to the edge of the content column there */
.is-root-container > p.is-style-makai-badge.has-text-align-left,
.is-layout-constrained > p.is-style-makai-badge.has-text-align-left {
	margin-left: max(0px, (100% - var(--wp--style--global--content-size, 100%)) / 2) !important;
	margin-right: auto !important;
	}

.is-root-container > p.is-style-makai-badge.has-text-align-right,
.is-layout-constrained > p.is-style-makai-badge.has-text-align-right {
	margin-left: auto !important;
	margin-right: max(0px, (100% - var(--wp--style--global--content-size, 100%)) / 2) !important;
	}
/*rtl:end:ignore*/


/*-------------------------------------
## SPECS (List > Styles > "Specs")
   Each item: bold label, then the value. "**Best for** Weekends and city breaks"
--------------------------------------*/

ul.wp-block-list.is-style-makai-specs {
	margin: 0;
	margin-left: 0 !important; /* the theme's list indent (room for the dash) is !important too */
	padding: 0;
	list-style: none;
	border-bottom: 1px solid #eceef0;
	}

/* a table row, not flex: everything after the label stays in one cell,
   so a value like "€<mark>€€</mark>" or one with a link is not pulled apart */
ul.wp-block-list.is-style-makai-specs > li {
	display: table;
	width: 100%;
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid #eceef0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.45;
	color: #333;
	text-align: right;
	}

/* editor: the item's text sits in a <div> inside the <li> (rich text in the canvas, a plain div in
   pattern previews), so that div takes the row layout */
ul.wp-block-list.is-style-makai-specs > li > div {
	display: table;
	width: 100%;
	}

/* no dash marker in front of spec rows */
ul.wp-block-list.is-style-makai-specs > li::before {
	content: none;
	}

ul.wp-block-list.is-style-makai-specs > li > strong,
ul.wp-block-list.is-style-makai-specs > li > div > strong {
	display: table-cell;
	width: 1%;
	padding-right: 16px;
	white-space: nowrap;
	vertical-align: baseline;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 1.4;
	text-transform: uppercase;
	color: #6b6e72;
	text-align: left;
	}



/*-------------------------------------
## PRODUCT ROWS (pattern: makai/product-rows)
--------------------------------------*/

/* grey panel with a two-column grid of rows */
.makai-product-rows {
	padding: 24px;
	background: var(--wp--preset--color--seasalt, #f9f9fa);
	}

/* one product row */
.makai-product-row {
	padding: 16px;
	background: #fff;
	}

.makai-product-row .wp-block-image {
	flex: none;
	width: 104px;
	margin: 0;
	}

.makai-product-row .wp-block-image img {
	display: block;
	width: 104px;
	height: 104px;
	object-fit: cover;
	}

/* WordPress 7.1 gives every image in the editor an inline height: auto (unless the block has a height of its own),
   which beats the height above. The editor twins of these image heights need !important */
.editor-styles-wrapper .makai-product-row .wp-block-image img {
	height: 104px !important;
	}

/* the theme makes image links inline-block, whose line box left 9px under the photo */
.makai-product-row .wp-block-image a {
	display: block;
	}

.makai-product-row__text {
	flex: 1;
	min-width: 0;
	}

/* the editor twins beat the Customizer's editor text and heading colours
   (.editor-styles-wrapper .block-editor-block-list__block, .editor-styles-wrapper h4.block-editor-block-list__block) */
.makai-product-row .makai-product-label,
.editor-styles-wrapper .makai-product-row .makai-product-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--wp--preset--color--tiffanyblue, #83c5be);
	}

/* product name in the body font */
.makai-product-row .wp-block-heading,
.editor-styles-wrapper .makai-product-row .wp-block-heading {
	font-family: inherit;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: #333;
	}

.makai-product-row__text > p:not(.makai-product-label) {
	font-size: 14.5px;
	font-weight: 400;
	line-height: 1.5;
	color: #55595e;
	}

.makai-product-row .wp-block-buttons {
	margin-top: 6px;
	}

/* no space under the button, so the text sits centred next to the photo */
.makai-product-row .wp-block-button {
	margin-bottom: 0;
	}

/* rounded corners follow the theme's rounded-corners setting.
   The editor has no .has-rounded-corners class; makai_editor_button_corners() mirrors these there. */
.has-rounded-corners .makai-product-rows,
.has-rounded-corners .makai-product-row,
.has-rounded-corners .makai-product-row .wp-block-image img {
	border-radius: 6px;
	}

/* small phones: a bit less padding and a smaller photo */
@media (max-width: 420px) {

	.makai-product-rows {
		padding: 16px;
		}

	.makai-product-row .wp-block-image,
	.makai-product-row .wp-block-image img {
		width: 80px;
		}

	.makai-product-row .wp-block-image img {
		height: 80px;
		}

	.editor-styles-wrapper .makai-product-row .wp-block-image img {
		height: 80px !important;
		}
	}


/*-------------------------------------
## TEXT LINK (Button > Styles > "Text link")
   A button that looks like an underlined content link.
   Being a Button, its link rel ("sponsored nofollow") stays put when the URL changes.
--------------------------------------*/

/* the link is shorter than a line of body text, so without this the line box of the wrapper
   added 12px around it. The link's own line-height sets the height instead. */
.wp-block-button.is-style-makai-text-link {
	line-height: 0;
	}

/* the underline and its hover swipe work like a content link's. Customizer > Colors > Link Underline,
   Link Underline Hover and Link Underline Position add this button to their outputs, which carry one
   class more than these fallbacks */
.is-style-makai-text-link .wp-block-button__link {
	background-image: linear-gradient(#c4d3db, #c4d3db), linear-gradient(#e6bcb4, #e6bcb4);
	background-size: 100% 0.3em, 0 0.3em;
	background-position: 100% 90%, 0 90%;
	background-repeat: no-repeat;
	transition: background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	}

.is-style-makai-text-link .wp-block-button__link:hover {
	background-size: 0 0.3em, 100% 0.3em;
	}

/* no fill, padding or corners, and the body font rather than the Customizer button font.
   Inline like a content link, so a label that wraps is underlined on every line.
   :not(#makai-text-link) adds the weight of an id (core does the same with :not(#individual-image)),
   which the Customizer button colours (up to 6 classes on hover, 7 in the editor) can't outweigh.
   Colours picked on the button itself still win: they are inline styles or !important classes. */
.wp-block-button.is-style-makai-text-link .wp-block-button__link:not(#makai-text-link) {
	display: inline;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	color: #333;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: normal;
	line-height: 1.4;
	text-transform: none;
	}

/* a ✦ typed at the end and coloured with Highlight (a <mark>) stays out of the underline.
   The cut is the space plus the ✦ in Manrope: 1em at full size, 0.8em as Superscript (the patterns' default).
   Superscript and Highlight nest either way round, depending on which was applied first */
.is-style-makai-text-link .wp-block-button__link:has(> mark:last-child) {
	background-size: calc(100% - 1em) 0.3em, 0 0.3em;
	background-position-x: calc(100% - 1em), 0 /*rtl:1em, 100%*/;
	}

.is-style-makai-text-link .wp-block-button__link:has(> mark:last-child):hover {
	background-size: 0 0.3em, calc(100% - 1em) 0.3em;
	}

.is-style-makai-text-link .wp-block-button__link:has(> mark:last-child > sup:only-child),
.is-style-makai-text-link .wp-block-button__link:has(> sup:last-child > mark:only-child) {
	background-size: calc(100% - 0.8em) 0.3em, 0 0.3em;
	background-position-x: calc(100% - 0.8em), 0 /*rtl:0.8em, 100%*/;
	}

.is-style-makai-text-link .wp-block-button__link:has(> mark:last-child > sup:only-child):hover,
.is-style-makai-text-link .wp-block-button__link:has(> sup:last-child > mark:only-child):hover {
	background-size: 0 0.3em, calc(100% - 0.8em) 0.3em;
	}


/*-------------------------------------
## IMAGE CARDS (pattern: makai/image-cards)
--------------------------------------*/

/* one card: photo in the background, text at the bottom.
   overflow: clip rather than hidden: hidden makes the card a scroll container, which drops the
   content-based minimum height of aspect-ratio, so a long title was cut off instead of making the card taller */
.makai-image-card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	aspect-ratio: 4 / 5;
	overflow: clip;
	background: #a9adb2;
	}

/* the photo fills the whole card */
.makai-image-card > .wp-block-image {
	position: absolute;
	inset: 0;
	z-index: -2;
	margin: 0;
	}

.makai-image-card > .wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
	}

/* see the product rows: WordPress 7.1 gives editor images an inline height: auto */
.editor-styles-wrapper .makai-image-card > .wp-block-image img {
	height: 100% !important;
	}

/* dark fade behind the text, like the post navigation cards.
   ::before, because the editor draws its selection outline with ::after (z-index 1, above the text) */
.makai-image-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(16, 18, 19, 0.66) 0%, rgba(16, 18, 19, 0) 65%);
	pointer-events: none;
	}

.makai-image-card__content {
	padding: 30px 30px 28px;
	}

/* black label, like the theme's category labels.
   The editor twins beat the Customizer's editor text and heading colours, as in the product rows */
.makai-image-card .makai-image-label,
.editor-styles-wrapper .makai-image-card .makai-image-label {
	width: fit-content;
	padding: 6px 10px;
	background: #000;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.5px;
	line-height: 1.2;
	text-transform: uppercase;
	}

/* title keeps the theme's heading font */
.makai-image-card .wp-block-heading,
.editor-styles-wrapper .makai-image-card .wp-block-heading {
	font-size: 25px;
	line-height: 1.22;
	color: #fff;
	}

/* "Check availability": small white caps instead of the underlined text link. White in every state:
   :not(#makai-text-link) outweighs the Text link style and the Customizer button and link underline colours */
.makai-image-card .wp-block-button.is-style-makai-text-link .wp-block-button__link:not(#makai-text-link) {
	background-image: none;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-shadow: none;
	}

/* no space under the link, so the bottom padding of the card is all there is */
.makai-image-card .wp-block-button {
	margin-bottom: 0;
	}

/* the whole card is clickable: the link stretches over it. Every box between the link and the card
   has to stay unpositioned, and the theme makes .wp-block-button relative */
.makai-image-card .wp-block-buttons,
.makai-image-card .wp-block-button,
.makai-image-card .wp-block-button__link {
	position: static;
	}

.makai-image-card .wp-block-button__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	}

/* keyboard focus outlines the whole card */
.makai-image-card .wp-block-button__link:focus-visible {
	outline: none;
	}

.makai-image-card .wp-block-button__link:focus-visible::before {
	outline: 2px solid #fff;
	outline-offset: -8px;
	}

/* not in the editor, so every block inside the card stays clickable there.
   The blocks keep the editor's position: relative, which places their selection outlines */
.editor-styles-wrapper .makai-image-card .wp-block-button__link::before {
	content: none;
	}

.editor-styles-wrapper .makai-image-card .wp-block-buttons,
.editor-styles-wrapper .makai-image-card .wp-block-button {
	position: relative;
	}

/* gentle zoom on hover */
@media (prefers-reduced-motion: no-preference) {

	.makai-image-card:hover > .wp-block-image img {
		transform: scale(1.04);
		}
	}

/* rounded corners follow the theme's rounded-corners setting.
   The editor has no .has-rounded-corners class; makai_editor_button_corners() mirrors these there. */
.has-rounded-corners .makai-image-card,
.has-rounded-corners .makai-image-card .makai-image-label,
.has-rounded-corners .makai-image-card .wp-block-button__link:focus-visible::before {
	border-radius: 6px;
	}


/*-------------------------------------
## DISCOUNT CODE BOX (pattern: makai/discount-code-box)
--------------------------------------*/

.makai-coupon-box {
	padding: 34px 36px;
	background: var(--wp--preset--color--azure, #e9f5f6);
	}

/* black "Sponsored" label, like the theme's category labels.
   The editor twins in this section beat the Customizer's editor text and heading colours, as in the product rows */
.makai-coupon-box .makai-sponsored-label,
.editor-styles-wrapper .makai-coupon-box .makai-sponsored-label {
	width: fit-content;
	padding: 6px 10px;
	background: #000;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.5px;
	line-height: 1.2;
	text-transform: uppercase;
	}

/* "In partnership with" + logo */
.makai-coupon-partner p,
.editor-styles-wrapper .makai-coupon-partner p {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: #4f5256;
	}

.makai-coupon-box .makai-coupon-logo {
	margin: 0;
	padding: 6px 14px;
	background: #fff;
	}

/* the theme makes image links inline-block, whose line box added space under the logo */
.makai-coupon-box .makai-coupon-logo a {
	display: block;
	}

.makai-coupon-box .makai-coupon-logo img {
	display: block;
	width: auto;
	height: 24px;
	}

/* see the product rows: WordPress 7.1 gives editor images an inline height: auto */
.editor-styles-wrapper .makai-coupon-box .makai-coupon-logo img {
	height: 24px !important;
	}

/* title keeps the theme's heading font */
.makai-coupon-box .wp-block-heading,
.editor-styles-wrapper .makai-coupon-box .wp-block-heading {
	margin-top: 6px;
	font-size: 30px;
	line-height: 1.2;
	color: #333;
	}

/* the text under the title. WordPress gives every paragraph a wp-block-paragraph class,
   so p:not([class]) would never match */
.makai-coupon-box > p:not(.makai-coupon-note) {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	}

/* the coupon: white tile with a dashed teal border */
.makai-coupon {
	padding: 18px 20px 18px 24px;
	border: 2px dashed var(--wp--preset--color--tiffanyblue, #83c5be);
	background: #fff;
	}

.makai-coupon .makai-coupon-offer,
.editor-styles-wrapper .makai-coupon .makai-coupon-offer {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: #4f5256;
	}

/* the code is in the Customizer headings font: inc/customizer.php adds .makai-coupon-code to its outputs.
   Lining numerals so a 0 never looks like an o. */
.makai-coupon .makai-coupon-code,
.editor-styles-wrapper .makai-coupon .makai-coupon-code {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 3px;
	color: #333;
	font-variant-numeric: lining-nums;
	}

.makai-coupon .wp-block-button__link {
	white-space: nowrap;
	}

/* no space under the button, so it sits centred next to the code */
.makai-coupon .wp-block-button {
	margin-bottom: 0;
	}

.makai-coupon-box .makai-coupon-note,
.editor-styles-wrapper .makai-coupon-box .makai-coupon-note {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: #4f5256;
	}

/* rounded corners follow the theme's rounded-corners setting.
   The editor has no .has-rounded-corners class; makai_editor_button_corners() mirrors these there. */
.has-rounded-corners .makai-coupon-box,
.has-rounded-corners .makai-coupon,
.has-rounded-corners .makai-coupon-box .makai-sponsored-label,
.has-rounded-corners .makai-coupon-box .makai-coupon-logo {
	border-radius: 6px;
	}

/* phones: less padding, full-width button under the code */
@media (max-width: 600px) {

	.makai-coupon-box {
		padding: 24px 20px;
		}

	.makai-coupon .wp-block-buttons,
	.makai-coupon .wp-block-button,
	.makai-coupon .wp-block-button__link {
		width: 100%;
		}
	}


/*-------------------------------------
## FEATURED PRODUCT (pattern: makai/featured-product, WooCommerce only)
--------------------------------------*/

.makai-product-feature {
	overflow: hidden;
	background: var(--wp--preset--color--seasalt, #f9f9fa);
	}

.makai-product-feature .makai-product-feature__columns {
	gap: 0;
	margin: 0;
	}

/* left: the whole product image, never cropped, whatever its shape and however long the text.
   48px around it, plus 32px (about half the wave) on the wave side, so it sits centred in the part
   the wave leaves visible. The pattern sets the image block's Scale to Contain (an inline object-fit) */
.makai-product-feature__media {
	position: relative;
	min-height: 480px;
	background: #dcdee1;
	}

.makai-product-feature__media .wp-block-woocommerce-product-image,
.makai-product-feature__media .wc-block-components-product-image {
	position: absolute;
	inset: 48px 80px 48px 48px /*rtl:48px 48px 48px 80px*/; /* rtlcss doesn't flip inset */
	margin: 0;
	}

/* WooCommerce wraps the image in a link even with "Link to product" off (an inert href="#"),
   so the link has to fill the box too */
.makai-product-feature__media .wc-block-components-product-image > a {
	display: block;
	height: 100%;
	}

.makai-product-feature__media .wc-block-components-product-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.35));
	}

/* in the editor the Product Image block's own wrapper holds WooCommerce's image box, so the box only fills
   the wrapper, and the 12px padding WooCommerce puts around the sale badge there would move it */
.makai-product-feature__media .wp-block-woocommerce-product-image .wc-block-components-product-image {
	inset: 0;
	}

.makai-product-feature__media .wc-block-components-product-image__inner-container {
	padding: 0;
	}

/* behind it, a blurred copy fills the column. makai_featured_product_backdrop() (inc/theme-functions.php)
   hands the image over as --makai-feature-image, and js/pattern-previews.js does it in the editor;
   without one the grey stays. The layer is 84px (3 x the blur) bigger all round and clipped back
   to the column, so the blur's faded edge stays out of sight */
.makai-product-feature__media::before {
	content: "";
	position: absolute;
	inset: -84px;
	background: var(--makai-feature-image, none) center / cover no-repeat;
	filter: blur(28px) brightness(0.8);
	clip-path: inset(84px);
	pointer-events: none;
	}

/* the sample guide in the inserter preview (js/pattern-previews.js): no image yet, just a note what goes there.
   Centred in the grey part, so the padding on the wave side takes half the wave */
.makai-product-feature__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 24px 32px 24px 0;
	color: #4f5256;
	font-size: 15px;
	line-height: 1.4;
	text-align: center;
	}

/* the wave edge, like the single post header. 2px past the top and bottom (the card clips them):
   ending exactly with the column, a card edge on a fractional pixel left a dark line of the backdrop under the wave */
.makai-product-feature__media::after {
	content: "";
	position: absolute;
	top: -2px;
	right: -1px;
	bottom: -2px;
	z-index: 1;
	width: 64px;
	/* RTL: the image is on the right, the wave on its left edge, so the shape is mirrored */
	transform: none /*rtl:scaleX(-1)*/;
	/*rtl:ignore*/
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 700' preserveAspectRatio='none'%3E%3Cpath fill='%23f9f9fa' d='M64 0H34C14 70 52 130 38 210C26 280 6 330 22 410C36 480 58 540 40 610C32 645 30 675 36 700H64Z'/%3E%3C/svg%3E") no-repeat right center / 100% 100%;
	pointer-events: none;
	}

/* WooCommerce block sale badge (Product Collection incl. Hand-picked Products, Single Product):
   the yellow makai badge in place of WooCommerce's white outlined one. The featured product
   pattern below uses the same look and places its own badge. Corners: .has-rounded-corners below,
   mirrored in the editor by makai_editor_button_corners() */
:is(.wp-block-woocommerce-product-sale-badge, .wc-block-components-product-image) .wc-block-components-product-sale-badge {
	padding: 6px 10px;
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--sunglow, #ffd138);
	color: #000;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.5px;
	line-height: 1.2;
	text-transform: uppercase;
	}

.has-rounded-corners :is(.wp-block-woocommerce-product-sale-badge, .wc-block-components-product-image) .wc-block-components-product-sale-badge {
	border-radius: 6px;
	}

/* product cards: 12px from the image corner (WooCommerce: 4px) */
.wc-block-product-template .wc-block-components-product-image .wc-block-components-product-sale-badge--align-left {
	top: 12px;
	left: 12px;
	right: auto;
	margin: 0;
	}

.wc-block-product-template .wc-block-components-product-image .wc-block-components-product-sale-badge--align-center {
	top: 12px;
	margin: 0;
	}

.wc-block-product-template .wc-block-components-product-image .wc-block-components-product-sale-badge--align-right {
	top: 12px;
	right: 12px;
	left: auto;
	margin: 0;
	}

/* yellow sale badge, 20px from the column's top left corner. It sits in the image box, which is 48px in.
   WooCommerce also gives it .alignleft; the theme's float and margins for that class
   don't apply to an absolutely positioned badge with margin 0 */
.makai-product-feature .wc-block-components-product-sale-badge {
	position: absolute;
	right: auto;
	left: -18px;
	top: -18px;
	z-index: 2;
	margin: 0;
	padding: 6px 10px;
	border: 0;
	background: var(--wp--preset--color--sunglow, #ffd138);
	color: #000;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.5px;
	line-height: 1.2;
	text-transform: uppercase;
	}

/* right: the text */
.makai-product-feature__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	padding: 56px 64px 56px 44px;
	}

.makai-product-feature__content > * {
	margin-top: 0;
	margin-bottom: 0;
	}

/* "My guide" label with the short teal line under it.
   The editor twins in this section beat the Customizer's editor text and heading colours, as in the product rows */
.makai-product-feature .makai-product-feature__label,
.editor-styles-wrapper .makai-product-feature .makai-product-feature__label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2px;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--wp--preset--color--tiffanyblue, #83c5be);
	}

.makai-product-feature .makai-product-feature__label::after {
	content: "";
	display: block;
	width: 40px;
	height: 2px;
	margin-top: 16px;
	background: currentColor;
	}

/* product name keeps the theme's heading font */
.makai-product-feature .wp-block-post-title,
.editor-styles-wrapper .makai-product-feature .wp-block-post-title {
	margin-top: 4px;
	font-size: 38px;
	line-height: 1.15;
	color: #333;
	}

.makai-product-feature .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
	}

/* price: sale price first, old price crossed out after it.
   The screen reader texts between them are absolutely positioned, so they take no part in the flex row */
.makai-product-feature .wc-block-components-product-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
	color: #333;
	}

.makai-product-feature .wc-block-components-product-price ins {
	order: -1;
	margin: 0; /* WooCommerce indents a sale price by 0.5em, for when it follows the old price; the gap spaces them here */
	text-decoration: none;
	}

.makai-product-feature .wc-block-components-product-price del {
	font-size: 17px;
	font-weight: 400;
	color: #6b6e72;
	}

/* short description in the regular text style (Customizer > Typography > Base Font), with the usual space
   between paragraphs. A gap rather than margins, because WooCommerce leaves empty paragraphs around
   a description written in blocks, and hidden ones take no gap */
.makai-product-feature .wc-block-components-product-summary {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	}

.makai-product-feature .wc-block-components-product-summary > * {
	margin: 0;
	}

.makai-product-feature .wc-block-components-product-summary > p:empty {
	display: none;
	}

/* the small format line of the sample guide in the inserter preview (js/pattern-previews.js) */
.makai-product-feature .makai-product-feature__format {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	color: #4f5256;
	}

.makai-product-feature .makai-product-feature__actions {
	margin-top: 6px;
	}

/* a simple product's Add to cart has .add_to_cart_button, which woocommerce-blocks.css sizes for product
   grids (6px 12px, always rounded). Here it matches the other buttons, like an external product's link */
.makai-product-feature .wp-block-button .wp-block-button__link.add_to_cart_button {
	padding: 7px 38px;
	border-radius: 0;
	}

.has-rounded-corners .makai-product-feature .wp-block-button .wp-block-button__link.add_to_cart_button {
	border-radius: 6px;
	}

/* "See inside the guide" links to the product page. The underline is the theme's Read More one:
   Customizer > Colors > Link Underline, Link Underline Hover and Link Underline Position */
.makai-product-feature .wp-block-read-more,
.editor-styles-wrapper .makai-product-feature .wp-block-read-more {
	font-size: 15px;
	font-weight: 500;
	color: #333;
	text-decoration: none;
	}

/* rounded corners follow the theme's rounded-corners setting.
   The editor has no .has-rounded-corners class; makai_editor_button_corners() mirrors these there. */
.has-rounded-corners .makai-product-feature,
.has-rounded-corners .makai-product-feature .wc-block-components-product-sale-badge {
	border-radius: 6px;
	}

/* phones: image on top, no wave */
@media (max-width: 781px) {

	/* the whole image at its own shape, 24px around it */
	.makai-product-feature__media {
		min-height: 0;
		padding: 24px;
		}

	.makai-product-feature__media .wp-block-woocommerce-product-image,
	.makai-product-feature__media .wc-block-components-product-image {
		position: relative;
		inset: auto;
		}

	.makai-product-feature__media .wc-block-components-product-image img {
		width: auto;
		max-width: 100%;
		height: auto;
		max-height: 420px;
		margin: 0 auto;
		}

	/* still 20px from the corner, now that the image box is 24px in */
	.makai-product-feature .wc-block-components-product-sale-badge {
		top: -4px;
		left: -4px;
		}

	.makai-product-feature__media::after {
		display: none;
		}

	.makai-product-feature__content {
		padding: 32px 24px;
		}

	.makai-product-feature .wp-block-post-title,
	.editor-styles-wrapper .makai-product-feature .wp-block-post-title {
		font-size: 30px;
		}
	}



/** *****************************************************************************************
** ## WOOCOMMERCE BLOCKS: FEATURED CATEGORY, FEATURED PRODUCT, PRODUCT FILTERS  ***********
*********************************************************************************************/

/* Featured Category and Featured Product put their text over a darkened photo, so it is white.
   Without this the title, description and price kept the theme's dark heading and text colours
   and could not be read. A colour picked in a block (.has-text-color) still wins. */
.wc-block-featured-category :is(h1, h2, h3, h4, h5, h6, p):not(.has-text-color),
.wc-block-featured-product :is(h1, h2, h3, h4, h5, h6, p):not(.has-text-color),
.wc-block-featured-product .wp-block-woocommerce-product-price:not(.has-text-color) .wc-block-components-product-price,
.wc-block-featured-product .wp-block-woocommerce-product-price:not(.has-text-color) .wc-block-components-product-price * {
	color: #fff;
	}

.wc-block-featured-category :is(h1, h2, h3, h4, h5, h6):not(.has-text-color) a,
.wc-block-featured-category :is(h1, h2, h3, h4, h5, h6):not(.has-text-color) a:link,
.wc-block-featured-category :is(h1, h2, h3, h4, h5, h6):not(.has-text-color) a:visited,
.wc-block-featured-product :is(h1, h2, h3, h4, h5, h6):not(.has-text-color) a,
.wc-block-featured-product :is(h1, h2, h3, h4, h5, h6):not(.has-text-color) a:link,
.wc-block-featured-product :is(h1, h2, h3, h4, h5, h6):not(.has-text-color) a:visited {
	color: #fff;
	}

/* Editor: WooCommerce shrinks the Checkout actions row to 13px there, so "Place Order", whose size is
   the Customizer's 0.9em, came out at 11.7px. On the site the row has the body size. */
.editor-styles-wrapper .wc-block-checkout .wc-block-checkout__actions_row {
	font-size: inherit;
	}

/* Product Filters
   Filter group titles are small headings, not page headings. */
.wc-block-product-filters h3.wp-block-heading {
	margin: 24px 0 12px;
	font-size: 1.2rem;
	}

/* Filter options are body text. The theme's small bold form label style applied here twice over
   (label and the span inside it), which left the options at 12px. */
.wc-block-product-filters .wc-block-product-filter-checkbox-list__label {
	padding: 0;
	font-size: 0.9rem;
	font-weight: inherit;
	letter-spacing: 0;
	text-transform: none;
	}

.wc-block-product-filters .wc-block-product-filter-checkbox-list__text-wrapper {
	font-size: inherit;
	}

/* Active filters look like the theme's term pills */
.wc-block-product-filters .wc-block-product-filter-removable-chips__item {
	padding: 4px 12px 4px 18px;
	font-size: 0.8em;
	font-weight: 500;
	line-height: 2em;
	background: #f9f9fa;
	border: 0;
	border-radius: 0;
	}

.has-rounded-corners .wc-block-product-filters .wc-block-product-filter-removable-chips__item {
	border-radius: 6px;
	}

/* the small x is a <button>: keep the theme's button fill and padding off it */
.wc-block-product-filters .wc-block-product-filter-removable-chips__remove,
.wc-block-product-filters .wc-block-product-filter-removable-chips__remove:hover {
	padding: 0;
	color: inherit;
	background: none;
	border: 0;
	}

/* "Clear filters": a small outline button */
.wc-block-product-filters .wc-block-product-filter-clear-button .wp-block-button__link {
	padding: 4px 18px;
	font-size: 0.8em;
	}

/* price fields: the theme's input look without the bold */
.wc-block-product-filters .wp-block-woocommerce-product-filter-price input[type="text"] {
	font-weight: inherit;
	}
