/* Styles for Custom Blocks */

/********************************
## LANDING GALLERY BLOCK
## HERO BLOCK
********************************/


.landinggallery-images-masonry {
	padding-bottom: 48px;
}


.landing-gallery-wrap.ninetysix {
    margin: 0 -48px;
}

/*
.landing-gallery-wrap.fortyeight .landinggallery-images-masonry {
	margin: 48px;
	}

.landing-gallery-wrap.ninetysix .landinggallery-images-masonry {
	margin: 48px;
	}

.landing-gallery-wrap.seventytwo .landinggallery-images-masonry {
	margin: 36px;
	}

.landing-gallery-wrap.sixty .landinggallery-images-masonry {
	margin: 30px;
	}

.landing-gallery-wrap.fortyeight .landinggallery-images-masonry {
	margin: 24px;
	}

.landing-gallery-wrap.twentyfour .landinggallery-images-masonry {
	margin: 12px;
	}

.landing-gallery-wrap.twelve .landinggallery-images-masonry {
	margin: 6px;
	}

.landing-gallery-wrap.six .landinggallery-images-masonry {
	margin: 3px;
	}
*/



.landing-gallery-wrap .landing-gallery-image-wrap {
	box-sizing: border-box;
	}

.landing-gallery-wrap.ninetysix .landing-gallery-image-wrap {
	padding: 48px;
	}

.landing-gallery-wrap.seventytwo .landing-gallery-image-wrap {
	padding: 36px;
	}

.landing-gallery-wrap.sixty .landing-gallery-image-wrap {
	padding: 30px;
	}

.landing-gallery-wrap.fortyeight .landing-gallery-image-wrap {
	padding: 24px;
	}

.landing-gallery-wrap.twentyfour .landing-gallery-image-wrap {
	padding: 12px;
	}

.landing-gallery-wrap.twelve .landing-gallery-image-wrap {
	padding: 6px;
	}

.landing-gallery-wrap.six .landing-gallery-image-wrap {
	padding: 3px;
	}






.maxheightdemos .landing-gallery-inner-wrap {
	overflow: hidden;
	display: grid;
	box-shadow: 0 26px 46px rgb(0, 0, 0, 0.19);
	border-radius: 6px;
	margin: 24px auto;
	}




.maxheightdemos .landing-gallery-wrap.ninetysix .landing-gallery-image-wrap, 
.maxheightdemos .landing-gallery-wrap.sixty .landing-gallery-image-wrap {
	padding: 0;
	}

.maxheightdemos .landing-gallery-inner-wrap img {
	box-shadow: none;
	transition: .4s ease transform;
	}


.maxheightdemos .landing-gallery-inner-wrap img:hover{ 
	transform: translateY(-60px);
	} 

.maxheightdemos .landing-gallery-inner-wrap {
	aspect-ratio: 3/4;
	}


/* scroll */
.maxheightdemos.scroll .landing-gallery-inner-wrap img {
	transition: 3s ease transform;
	}

.maxheightdemos.scroll .landing-gallery-inner-wrap img:hover{ 
	transform: translateY(-65vw);
	} 



.landing-gallery-image-wrap { 
	position: relative;
        }

.landing-gallery-image-wrap img {
	box-shadow: 0 26px 46px rgb(0, 0, 0, 0.19);
	/* the img has width/height attributes: keep its proportions when the width is set in % */
	height: auto;
        }

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

/* float */
.landing-gallery-image-wrap.float-right IMG {
	float: right;
	} 

/* width */
.grid-sizer-landinggallery { 
	width: 25%;
	width: calc(100% / 4);
	float: left;
	}


.landing-gallery-image-wrap.third-width { 
	width: 33.33%;
	width: calc(100% / 3);
        }

.landing-gallery-image-wrap.half-width { 
	width: 50%;
	width: calc(100% / 2);
	}

.landing-gallery-image-wrap.full-width { 
	width: 100%;
	}

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




/* text */
.imagetitle {
	text-align: center;
	//text-transform: uppercase;
	font-size: 1em;
	line-height: 1.4em;
	font-weight: 700;
	margin: 0;
	padding: 0;
	}

.imagesubtitle {
	text-align: center;
	font-size: 0.8em;
	line-height: 1.4em;
	font-weight: 500;
	}

.darkbg .imagetitle {
	color: #eaeaef;
	}

.darkbg .imagesubtitle {
	color: #88888a;
	}



/* lightbox color */
.mfp-bg {
	background: #000 !important;
	opacity: 0.96 !important;
	}

.mfp-container .mfp-preloader, 
.mfp-container .mfp-preloader a, 
.mfp-container .mfp-counter {
	color: #fff !important; 
	}
 
.mfp-container .mfp-preloader a:hover {
      	color: #fff !important;
	}  

.mfp-container .mfp-title, 
.mfp-container .mfp-close, 
.mfp-container button.mfp-arrow, 
.mfp-container.mfp-image-holder .mfp-close, 
.mfp-container.mfp-iframe-holder .mfp-close {
	color: #fff !important;
	opacity: 0.8 !important;
	}



/* 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: 24px !important;
	}

/* use post section button */
.postsectionheadline-wrap {
	padding: 0 !important;
	margin-left: -18px;
   margin-top: 12px !important;
}

/*  subtitle */
.subtitle-block.subtitle-above:not(.white-transparent):not(.subtitle-simple) .subtitle-inner {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 6px;
	background: #D6ECE9;
	background: #EBF6F4;
	border: 1px solid #D6ECE9;
    padding: 2px 12px;
    margin-bottom: 8px;
	}


.subtitle-block.subtitle-above.subtitle-center {
	margin: 0 auto;
	}


.content-white .hero-subtitle.subtitle-above,
.subtitle-above.white-transparent .subtitle-inner,
.category-header .subtitle-above {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	padding: 2px 12px;
	margin-bottom: 4px;
	margin-bottom: 12px;
	}

/* A badge too long for one line stays inside its column and breaks into even lines
   ("Your Stories, / Beautifully Displayed" instead of a lone "Displayed").
   text-wrap: balance needs Safari 17.5+ / Chrome 114+; older browsers wrap as before. */
.subtitle-block.subtitle-above .subtitle-inner {
	max-width: 100%;
	box-sizing: border-box;
	text-wrap: balance;
	}

.category-header .subtitle-above {
	//width: max-content;
	margin: 0 auto;
	font-weight: 700;
	}


/* buttons */
.hero-content-item.hero-buttons .button,
.wp-element-button {
	font-family: 'Outfit' !important;
	}

/* Page Header buttons: the transparent white fill is the resting state; hover uses the Customizer's
   Regular Buttons "Background Hover" and "Text Hover" colours, passed in as variables by features.php */
.categoryheader-button-wrap a.categoryheader-button.button.button-outline {
	background-color: rgba(255, 255, 255, 0.3);
	}

.categoryheader-button-wrap a.categoryheader-button.button.button-outline:hover {
	background-color: var(--landing-button-hover, #ffd138);
	color: var(--landing-button-texthover, #000) !important;
	}

/** *****************************************************************************************
** ## HERO BLOCK ****************************************************************************
*********************************************************************************************/

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

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

/* image */
.section-hero img,
.hero-image { 
	position: relative; 
	object-fit: cover;
	display: block;
	height: 100%;
	width: 100%;
	min-height: 200px;
	}

/* video */
.hero-bgvideo {
	position: relative;
	min-width: 100%;
	width: 100%;
	display: block;
	}

.wp-block .hero-bgvideo {
	position: relative;
	}

.hero-bgvideo-wrap {
	overflow: hidden;
	}


/* full view height*/
.full-viewheight .hero-image, 
.full-viewheight .hero-bgvideo {
	width: auto;
	}

/* content  */
.hero-content-wrap.image-uploaded,
.hero-bgvideo-wrap .hero-content-wrap { 
	position: absolute; 
	box-sizing: border-box;
	display: flex;
	align-items: center;
	top: 0; 
	left: 0; 
	min-height: 100%;
	width: 50%;
	}


.hero-content-wrap.image-uploaded.hero-content-bottom, 
.hero-bgvideo-wrap .hero-content-wrap.hero-content-bottom {
	align-items: flex-end;
	}

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

.hero-content-wrap.third-width-overlay { 
    	width: 36%;
	}

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

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

.hero-content { 
	word-break: break-word;
	width: 100%;
	max-width: 100%;
	min-height: 100%;
	padding: 60px 120px;
	display: flex;
    	justify-content: center;
    	flex-direction: column;
    	align-items: flex-start;
	}

.has-overlay .hero-content {
	text-shadow: 0px 0px 16px rgb(0 0 0 / 25%);
	}


.hero-content-wrap.third-width-overlay .hero-content  { 
    	padding: 60px 120px 60px 60px;
	}

.has-transparent-header section.section-hero:first-of-type .hero-content { 
	padding-top: 120px;
	padding-bottom: 120px;
	}

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

.hero-content-wrap.hero-content-center.full-width-overlay .hero-content { 
    	max-width: 60%;
	}

.hero-content-center .hero-content {
	max-width: 960px;
	margin: 0 auto;
    	align-items: center;
	}

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

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

.hero-content-right,
.hero-content-right .page-title {
	text-align: right;
	}

.hero-content-left .page-title {
    	text-align: left;
	}

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

/* "Use Title as Page Title (H1)" only changes the tag: the title keeps the H2 size and line-height
   (Customizer H2 / Responsive H2, passed in as variables by features.php), not the H1 or Page Title size */
h1.hero-title.page-title {
	font-size: clamp(var(--landing-h2-size-mobile), 4.5vw, var(--landing-h2-size));
	line-height: var(--landing-h2-lineheight);
	}

@media (max-width: 767px) {
	h1.hero-title.page-title {
		line-height: var(--landing-h2-lineheight-mobile);
		}
	}

.hero-subtitle.subtitle-above {
	margin-bottom: 2px;
	}

.hero-button {
	margin-top: 16px;
	text-shadow: none !important;
	}

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

.hero-text {
	font-size: 1.03em;
	margin-top: 24px;
	margin-bottom: 24px;
	}

.hero-content-item.hero-buttons {
	display: flex;
	flex-wrap: wrap;
	//justify-content: center;
	margin-top: 0 !important;
	}



.hero-content-item.hero-buttons .button {
    cursor: pointer;
    overflow: visible;
    display: inline-block;
    text-align: center;
    font-size: 0.9rem;
    text-decoration: none;
    -webkit-appearance: none;
    word-break: initial;
    white-space: nowrap;
    line-height: inherit;
    border: none;
    padding: 7px 38px;
    font-weight: 600;
    border-radius: 6px;
}




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

.hero-content-center .hero-button-wrap {
	margin-right: 12px;
	margin-left: 12px;
	}

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

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

img.herooverlayimage {
	height: 260px !important;
	width: auto;
	margin-bottom: 24px;
	}

.hero-content-item i {
	padding-left: 18px;
}


/* custom color for second button */
.hero-buttons .hero-button-wrap .hero-button:active,
.hero-buttons .hero-button-wrap .hero-button:focus,
.hero-buttons .hero-button-wrap .hero-button:hover {
	background-color: #83c5be !important;
	border-color: #83c5be !important;
	color: #fff !important;
	background-image: linear-gradient(120deg, #ACD8D3 0%, #74BEB6 50%);
	background: radial-gradient(circle, #9ED1CC 0%, rgba(131, 197, 190, 1) 100%);;
	}


.hero-buttons .hero-button-wrap:nth-child(2) .hero-button {
	background-color: #FFD138 !important;
	border-color: #FFD138 !important;
	color: #000 !important;
	transition: background-color 0.3s ease, color 0.3s ease !important
	}

.hero-buttons .hero-button-wrap:nth-child(2) .hero-button:active,
.hero-buttons .hero-button-wrap:nth-child(2) .hero-button:focus,
.hero-buttons .hero-button-wrap:nth-child(2) .hero-button:hover {
	background-color: #FFD138 !important;
	border-color: #FFD138 !important;
	color: #000 !important;
	background: radial-gradient(circle, #FFDD6A 0%, #FFD138 100%);;
	transition: background-color 0.3s ease, color 0.3s ease !important
	}






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

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

.hero-content > .hero-content-item ~ .hero-content-item.hero-divider {
	margin-top: 14px;
	}

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

.hero-content > .hero-content-item ~ .hero-content-item.hero-button-wrap {
	margin-top: 0;
	}

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

/*  white + theme color + dark */
.content-white .hero-vertical,
.content-white .hero-subtitle.subtitle-above,
.content-white .hero-title,
.content-white .hero-content,
.content-white .button {
	color: #fff !important;
	}

.content-white .hero-title{
	color: #fff !important;
	}

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

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

.content-white .button-outline:hover, 
.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) {
	background-color: #fff;
	border-color: #fff;
	color: #666;
	}

.content-white .button:not(.button-outline):hover, 
.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{
	color: #fff;
	}

.content-white-pluscolor .hero-vertical,
.content-white-pluscolor .hero-title,
.content-white-pluscolor .hero-content{
	color: #fff;
	}

.content-white-pluscolor .hero-title {
	color: #fff !important;
	}

.content-black .hero-vertical,
.content-black .hero-subtitle.subtitle-above,
.content-black .hero-title,
.content-black .hero-content,
.content-black .button {
	color: #101010;
	}





.content-black .hero-divider {
	background-color: #101010;
	border-color: #101010;
	}

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

.content-black .button-outline:hover, 
.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) {
	background-color: #101010;
	border-color: #101010;
	color: #eee;
	}

.content-black .button.button-outline:hover, 
.content-black a.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 {
	background-color: #404040;
	border-color: #404040;
	color: #fff !important;
	}

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

.hero-vertical {
	position: absolute;
	text-align: center;
	top: -16px;
	bottom: 0;
	left: 40px;	
	height: 25px;
	margin: auto;
	padding-left: 12px;
	padding-right: 12px;
	-webkit-transform-origin: 8px 50%;
	-moz-transform-origin: 8px 50%;
	-ms-transform-origin: 8px 50%;
	-o-transform-origin: 8px 50%;
	transform-origin: 8px 50%;
	-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%);
	}

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

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

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



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












/*-------------------------------------
## RESPONSIVE LAYOUT -------------------
--------------------------------------*/




/* Larger Devices and Wider Screens -------------------------------------*/
@media only screen and (max-width: 1350px) { 

	.hero-content-left .hero-content {
		padding-right: 24px;
		}

}


/* Large Devices and Wide Screens -------------------------------------*/
@media only screen and (max-width: 1200px) { 


	/** HERO BLOCK **/
	/* no room for the rotated vertical text from here down: show it as a small label above the title,
	   same pill as the section subtitles ("Get Started"), tinted from the content colour so it works on dark and light heroes */
	.hero-content .hero-vertical,
	.hero-content-right .hero-vertical {
		position: static;
		display: inline-block;
		height: auto;
		margin: 0 0 16px;
		padding: 2px 12px;
		-webkit-transform: none;
		transform: none;
		border-radius: 6px;
		background: color-mix(in srgb, currentColor 20%, transparent);
		border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
		/* subtitle typography instead of the vertical text's (Customizer > Typography > Subtitle, set in features.php),
		   so the label is the same size as the other badges: the vertical text has no line-height of its own */
		font-size: var(--landing-subtitle-size, 0.8em);
		line-height: var(--landing-subtitle-lineheight, 1.7em);
		letter-spacing: var(--landing-subtitle-letterspacing, 2px);
		font-weight: var(--landing-subtitle-weight, 600);
		}

	.hero-vertical::before,
	.hero-vertical::after {
		display: none;
		}

	/* with the vertical text above the title instead of beside it, left-aligned content no longer needs the 120px
	   on its left: line it up with the logo of the mobile header (24px from the edge) */
	.hero-content-left .hero-content {
		padding-left: 24px;
		}

	.wp-block-columns.splitdemo {
		padding: 0 32px !important;
		}



}

/* ##  -------------------------------------------------*/
@media only screen and (max-width: 1120px) { 

	.landing-gallery-wrap.ninetysix .landing-gallery-image-wrap,
	.landing-gallery-wrap.sixty .landing-gallery-image-wrap {
	    padding: 24px;
	}


	.maxheightdemos .landing-gallery-inner-wrap {
		//margin: 36px;
		}





}




/* ## Tablet Portrait -------------------------------------------------*/
@media only screen and (max-width: 959px) { 

.landing-gallery-image-wrap {
	padding: 12px !important;
	}
	
.landinggallery-images-masonry {
	margin: 24px 0 !important;
	}

.maxheightdemos .landinggallery-images-masonry {
	margin: 24px !important;
	}

.maxheightdemos .landing-gallery-inner-wrap {
	margin: 24px 0;
	}	

.wp-block-media-text.is-stacked-on-mobile {
	grid-template-columns: 100% !important;
	}
	
.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media {
	grid-column: 1;
	grid-row: 2;
	}

.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
	grid-column: 1;
	grid-row: 1;
	}

.top-icon-list-wrap {
    display: none !important;
}

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


	/** HERO BLOCK **/

	.hero-content-center .hero-content {
		max-width: 75%;
		padding-left: 64px;
		padding-right: 64px;
		}

	.hero-content-wrap.full-width-overlay .hero-content,
	.hero-content-wrap.hero-content-center.full-width-overlay .hero-content {
		max-width: 100%;
		}

	.hero-content-right .hero-content {
		padding-left: 24px;
		padding-right: 60px;
		}




}




/* ## TABLETS -------------------------------------------------*/
@media only screen and (max-width: 781px) {

	.maxheightdemos .landing-gallery-inner-wrap {	
        margin: 24px auto !important;
		}

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

	/** HERO BLOCK **/
	.section-hero {
		margin-left: -24px;
		margin-right: -24px;
		}

	.hero-content,
	.hero-content-center .hero-content  {
		max-width: 80%;
		padding-top: 120px;
		padding-bottom: 120px;
		}

	.hero-content,
	.hero-content-center .hero-content,
	.hmobile-content-center .hero-content  {
		max-width: 100%;
		padding-left: 24px;
    	padding-right: 24px;
    	padding-bottom: 24px; /* same as left/right */
		}

	.hero-content-wrap,
	.hero-content-wrap.image-uploaded,
	.hero-bgvideo-wrap .hero-content-wrap {
		width: 100%;
		}

	.hero-content-wrap.half-width-overlay {
		width: 100%;
		}

	.section-hero img, .hero-image {
		min-height: 66vh;
		}

	/* image and content share one grid cell instead of the content floating on top (position: absolute),
	   so the hero grows with its content when that is taller than the image, instead of cutting off the buttons */
	.section-hero {
		display: grid;
		}

	.section-hero > .hero-image,
	.section-hero > picture,
	.section-hero > .hero-content-wrap.image-uploaded {
		grid-area: 1 / 1;
		}

	.section-hero > .hero-content-wrap.image-uploaded {
		position: relative;
		}

	/* in the grid the wrap has a definite height, so min-height: 100% would stretch the content over the whole
	   hero and centre it, ignoring "Content Position Vertical on Small Screens" (the wrap's align-items) */
	.section-hero > .hero-content-wrap.image-uploaded > .hero-content {
		min-height: 0;
		}

	.hero-content-wrap.hero-content-right {
		justify-content: flex-end;
		}

	.hmobile-content-center,
	.hmobile-content-center .page-title {
		text-align: center;
		}

	.hmobile-content-center .hero-button-wrap {
		margin-right: 12px;
		margin-left: 12px;
		}

	.hmobile-content-center .hero-content {
		max-width: 75%;
		margin: 0 auto;
		align-items: center;
		}

	.hero-content-wrap.image-uploaded.hmobile-contentv-top, 
	.hero-bgvideo-wrap .hero-content-wrap.hmobile-contentv-top  {
		align-items: flex-start;
		}

	.hero-content-wrap.image-uploaded.hmobile-contentv-bottom, 
	.hero-bgvideo-wrap .hero-content-wrap.hmobile-contentv-bottom  {
		align-items: flex-end;
		}

	.hmobile-content-center.hero-content-right {
		text-align: center;
		}

	.hmobile-content-left.hero-content-right,
	.hmobile-content-left.hero-content-center  {
		text-align: left;
		}

	.hmobile-content-left.hero-content-right .hero-content,
	.hmobile-content-left.hero-content-center .hero-content {
		align-items: flex-start;
		max-width: 100%;
		}


	.hero-content-item.hero-text {
		font-weight: 400;
		letter-spacing: -0.4px;
		font-size: 1em;
		line-height: 1.5em;
		}

	/* white text over an image or video: no flat overlay colour (the block's "Overlay Color" is an inline
	   background-color, hence !important), a dark gradient from the bottom up behind the text instead */
	.section-hero.content-white .hero-content-wrap.image-uploaded,
	.section-hero.content-white-pluscolor .hero-content-wrap.image-uploaded,
	.section-hero.content-white .hero-bgvideo-wrap .hero-content-wrap,
	.section-hero.content-white-pluscolor .hero-bgvideo-wrap .hero-content-wrap {
		background-color: transparent !important;
		background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 35%, rgba(0, 0, 0, 0) 70%);
		}

	.has-transparent-header section.section-hero:first-of-type .hero-content {
		padding-bottom: 24px;
		}

	.hero-content-item.hero-title,
	h1.hero-title.page-title {
		font-size: 2.2em;
		padding-top: 72px;
		}

	/* vertical text shown above the title: it takes the title's top spacing so the two stay together */
	.hero-content .hero-vertical {
		margin-top: 72px;
		}

	.hero-vertical ~ .hero-content-item.hero-title,
	.hero-vertical ~ h1.hero-title.page-title {
		padding-top: 0;
		}

	/* buttons share one row in equal widths (about 22px either side of the text on a 390px phone, fits down to 360px);
	   when even that is too narrow they stack full width. Spacing comes from the gap, not the side margins. */
	.hero-content-item.hero-buttons {
		align-self: stretch; /* full content width, not just as wide as the buttons */
		column-gap: 12px;
		}

	.hero-buttons .hero-button-wrap {
		flex: 1 1 0;
		margin-left: 0;
		margin-right: 0;
		}

	.hero-content-item.hero-buttons .button {
		display: block;
		padding-left: 12px;
		padding-right: 12px;
		margin-bottom: 0; /* keeps the space under the buttons equal to the side padding */
		}

	img.logoimage {
		max-height: 26px;
		}

}



/* ## Mobile Phones -------------------------------------------------*/
@media only screen and (max-width: 479px) { 

.highlight-dark {
	margin-left: -24px !important;
	margin-right: -24px !important;
	}

.landinggallery-images-masonry {
	margin: 24px -12px;
	}

.maxheightdemos .landing-gallery-inner-wrap {
	margin: 24px 0 0;
	}

.maxheightdemos .landinggallery-images-masonry {
	margin: 24px 0 !important;
	}

.landing-gallery-image-wrap.half-width {
	width: 100%
	}

.landing-gallery-image-wrap, .landing-gallery-image-wrap.quarter-width {
	width: 50%;
	}
	
.landing-gallery-image-wrap.third-width {
	width: 50%
	}

	/** HERO BLOCK **/
	.hero-content,
	.hero-content-center .hero-content,
	.hmobile-content-center .hero-content  {
		max-width: 100%;
		padding-left: 24px;
    	padding-right: 24px;
		}

	.hero-content,
	.hero-content-center .hero-content  {
		max-width: 100%;
		padding-top: 36px;
		padding-bottom: 24px; /* same as left/right */
		}


	.hero-content>.hero-content-item~.hero-content-item.hero-text {
		margin-top: 6px;
		margin-bottom: 6px;
		}

	.full-viewheightmobile .hero-image {
		width: auto;
		}


	/* "1 click demo import. All images included." */
	#demos ~ p .highlight-dark {
		font-size: 17.5px;
		}
		
    .wp-block-group.demos-group.has-background {
        padding-top: 12px !important;
    }

}
