/***************************************
			Global layout
****************************************/

body {
	max-width: 1920px;
	margin: 0 auto;
	overflow-x: hidden;
}

main {
	margin-top: 0;
}

.wp-block-group:where(:not(:first-child).has-background) {
	margin-top: var(--space-xl);
}
.wp-block-group:where(:not(:last-child).has-background) {
	margin-bottom: var(--space-xl);
}

:root section {
	margin-top: var(--space-2xl);
	margin-bottom: var(--space-2xl);
}
section.has-background, .padding-section {
	padding-top:  var(--space-2xl);
	padding-bottom:  var(--space-2xl);
}

main {
	padding-bottom: var(--space-2xl);
}
footer {
	margin-top: 0 !important;
}

.wp-block-group :not(:is(ul, li)).has-background:not(.alignfull):not(.wp-block-button__link):not(.wp-element-button) {
	padding: var(--space-xl) var(--space-stretch);
	border-radius: var(--frame-radius);
	box-shadow: var(--frame-shadow);
}


/***************************************
			Global style
****************************************/

*, *:before, *:after {
	box-sizing: border-box;
}
/*main p:empty {
	display: none;
}*/

strong, b {
	font-weight: var(--fontweight-bold);
	color: var(--wp--preset--color--contrast-high);
}

h2, h3, h4, p {
	text-wrap: pretty;
}
h1 {
	text-wrap: balance;
}

img, video {
	object-fit: cover;
	object-position: center;
}
.wp-block-image:not(.raw), figure:not(.raw) img {
	border-radius: var(--frame-radius);
}
figure:not(.no-shadow):not(.raw) img {
	box-shadow: var(--image-shadow);
}
.raw img {
	border-radius: 0;
	box-shadow: none;
}

figure figcaption {
	text-align: center;
}

:where(ul,ol).wp-block-list li::marker {
    color: var(--wp--preset--color--accent);
}
ul.bullet-check > li::marker {
    content: '\2713\A0';
	font-weight: 900;
}
ul.bullet-cross > li::marker {
    content: '\2717\A0';
	font-weight: 900;
}
ul.bullet-arrow > li::marker {
    content: '\27A2\A0';
}
ul.bullet-subarrow > li::marker {
    content: '\2792\A0';
}

sup {
    line-height: 0;
}

.tagline {
	letter-spacing: 3px;
	margin-bottom: 0;
	font-family: var(--tagline-font);
}
.tagline + * {
	margin-top: 0.25em;
}

a {
	text-decoration: none;
	transition-duration: var(--global-duration);
}

:is(.wp-element-button:not(.wp-block-search__button), .wp-block-button__link),
.parent-link :is(.wp-element-button, .wp-block-button__link) {
	transition-property: background, background-color, color, border-color;
}

:is(.wp-element-button:not(.wp-block-search__button), .wp-block-button__link):hover,
.parent-link:hover :is(.wp-element-button, .wp-block-button__link) {
	background-color: var(--wp--preset--color--links) !important;
	color: var(--wp--preset--color--on-links) !important;
	border-color: transparent !important
}

.outline {
	background-color: transparent;
	color: inherit;
	border: 1px solid currentColor;
}

p > a {
	text-decoration: underline var(--wp--preset--color--links);
	text-underline-offset: 2px;
}
p a:hover, p a:focus {
	color: var(--wp--preset--color--links);
}

p a[target="_blank"] {
	position: relative;
    margin-right: .5em;
}

p a[target="_blank"]::after {
    content: '';
    position: absolute;
    bottom: .8em;
	margin-left: 2px;
    z-index: 10;
    width: 0.5em;
    height: 0.5em;
    background: url('data:image/svg+xml,<svg width="100%" height="100%" viewBox="0 0 188 188" xmlns="http://www.w3.org/2000/svg"><g style="fill:rgba(128,128,128,0.5)"><path d="M177.083,10.417c-6.666,-6.667 -15,-10.417 -25,-10.417l-116.666,0c-9.584,0 -17.917,3.333 -25,10.417c-6.667,6.666 -10.417,15 -10.417,25l-0,117.083c-0,9.583 3.333,17.917 10.417,25c6.666,6.667 15,10.417 25,10.417l117.083,-0c9.583,-0 17.917,-3.334 25,-10.417c6.667,-6.667 10.417,-15 10.417,-25l-0,-117.083c-0.417,-9.584 -3.75,-17.917 -10.834,-25Zm-20.833,87.5c0,3.333 -1.667,5.833 -4.583,7.083c-1.25,0.417 -2.084,0.417 -2.917,0.417c-2.083,-0 -4.167,-0.834 -5.417,-2.5l-17.5,-17.5l-65,65c-1.666,1.666 -3.333,2.5 -5.416,2.5c-2.084,-0 -3.75,-0.834 -5.417,-2.5l-12.5,-12.5c-1.667,-1.667 -2.5,-3.334 -2.5,-5.417c0,-2.083 0.833,-3.75 2.5,-5.417l64.583,-64.583l-17.5,-17.5c-2.5,-2.5 -2.916,-5 -1.666,-8.333c1.25,-3.334 3.75,-4.584 7.083,-4.584l58.333,0c2.084,0 3.75,0.834 5.417,2.5c1.667,1.667 2.5,3.334 2.5,5.417l0,57.917Z"/></g></svg>');
    background-size: 100%;
}

blockquote {
	position: relative;
}

.wp-block-quote {
	padding-left: 2.5em;
}
.wp-block-quote p::before {
	position: absolute;
	line-height: 0;
	top: 0.4em;
	left: 0;
	font-size: 2em;
	color: var(--wp--preset--color--accent);
	font-style: normal;
	content: '\27A2\00A0';
}

.wp-block-pullquote blockquote::before,
.wp-block-pullquote blockquote::after {
--deco-spacing: 2em;
    content: '';
    display: block;
    position: relative;
    width: 0.6em;
    left: calc(50% - 0.3em);
    height: 0.4em;
    background: linear-gradient(118deg, transparent, var(--wp--preset--color--accent) 0%, var(--wp--preset--color--accent) 45%, transparent 45%, transparent 55%, var(--wp--preset--color--accent) 55%, var(--wp--preset--color--accent));
    clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);}
.wp-block-pullquote blockquote::before {
	margin-bottom: var(--deco-spacing);
}
.wp-block-pullquote blockquote::after {
	margin-top: var(--deco-spacing);
}

blockquote cite {
	display: block;
	margin-top: 1em !important;
	font-size: 80%;
	text-align: right;
	color: var(--wp--preset--color--contrast-low);
}


/***************************************
			Header
****************************************/

body {
	--header-height: calc(var(--space-xs) * 4 + var(--header-content-height));
}

header a :is(img, svg) {
	height: var(--site-logo-height) !important;
	width: auto;
}

header .theme-toggle {
	background-color: transparent;
	color: var(--wp--preset--color--contrast);
	padding: 0;
	border: 0;
	display: flex;
}


/***************************************
			Overlay header
****************************************/

body.overlay-header .wp-site-blocks {
	position: relative;
}
body.overlay-header .wp-site-blocks > header {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 99;
}


/***************************************
			Sticky header
****************************************/

@media screen and (min-width: 600px) {

	body.sticky-header.sticky-effect-2 {
		--header-height: calc(var(--space-xs) * 4 + var(--site-logo-height) + 40px);
	}

	body.sticky-header .wp-site-blocks > header {
		position: fixed;
		width: 100%;
		margin: 0 auto;
		top: var(--wp-admin--admin-bar--height, 0px);
		z-index: 99;
	}
	body.sticky-header:not(.overlay-header) main {
		margin-top: var(--header-height);
	}
	body.sticky-header .wp-site-blocks > header,
	body.sticky-header .wp-site-blocks > header :is(.header-logo, .theme-toggle svg, .wp-block-navigation__responsive-container-open) {
		transition-duration: 0.4s;
	}
	body.sticky-header .wp-site-blocks > header {
		transition-property: top;
	}
	body.sticky-header:not(.scroll-top):not(.scroll-up):not(.scroll-offset) .wp-site-blocks > header {
		top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--header-height));
	}
	
	/***************************************
				Sticky effect
	****************************************/

	body.sticky-header.sticky-effect-2 .wp-site-blocks > header :is(.header-logo, .theme-toggle, .wp-block-navigation__responsive-container-open) {
		padding: 20px;
		border-radius: 999px;
	}
	body.sticky-header.sticky-effect-2 .wp-site-blocks > header :is(.header-logo, .theme-toggle, .wp-block-navigation__responsive-container-open) {
		transition-property: -webkit-backdrop-filter, backdrop-filter, box-shadow;
	}
	body.sticky-header.sticky-effect-2:not(.scroll-top) .wp-site-blocks > header :is(.header-logo, .theme-toggle, .wp-block-navigation__responsive-container-open) {
		box-shadow: 0 15px 20px -10px var(--wp--preset--color--links);
		-webkit-backdrop-filter: blur(15px);
		backdrop-filter: blur(15px);
	}
	body.sticky-header.sticky-effect-2 .wp-site-blocks > header :is(.header-logo, .theme-toggle) svg {
		transition-property: filter;
	}
	body.sticky-header.sticky-effect-2:not(.scroll-top) .wp-site-blocks > header :is(.header-logo, .theme-toggle) svg {
		filter: saturate(0);
	}
	
}


/***************************************
			Navigation
****************************************/

:is(.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close) svg {
	width: 40px;
	height: 40px;
}

.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--space-xl) var(--space-edge) var(--space-2xl);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: var(--space-2xl);
}

nav .wp-block-navigation__container {
	width: 500px;
	max-width: 100%;
	margin: 0 auto;
}

nav .wp-block-navigation__container li {
	width: 100%;
}
nav .wp-block-navigation__container li .wp-block-site-logo {
	margin-bottom: 2rem;
}

nav .wp-block-navigation__container li > a {
	display: block;
	position: relative;
	width: 100%;
	padding-bottom: 0.4em !important;
}
nav .wp-block-navigation__container li > a::before, nav .wp-block-navigation__container li > a::after {
	content: "";
	position: absolute;
	display: block;
	top: unset;
	bottom: 0;
	height: 3px;
}
nav .wp-block-navigation__container li > a::before {
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--base-low) 7%, transparent);
	width: 100%;
	transition-duration: 0.3s;
	transition-property: background;
}
nav .wp-block-navigation__container li > a::after {
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--accent) 7%, transparent);
	width: 0;
	transition-duration: 0.3s;
	transition-property: bottom width height;
}

nav .wp-block-navigation__container li > a:hover {
	color: var(--wp--preset--color--contrast-high) !important;
}
nav .wp-block-navigation__container li > a:hover::after {
	width: 100%;
	height: 3px;
	bottom: 4px;
}
nav .wp-block-navigation__container li > a span {
	transition-duration: 0.3s;
	transition-property: padding-left;
	padding-left: 1em;
}
nav .wp-block-navigation__container li > a:hover span {
	padding-left: 2em;
}


/***************************************
			Page header
****************************************/

body:not(.overlay-header) main header {
	padding-top: var(--space-2xl);
}
body.overlay-header main header:not(.height-screen) {
	padding-top: calc(var(--header-height) + var(--space-m));
}
main header {
	margin-bottom: var(--space-2xl) !important;
}


/***************************************
			Footer
****************************************/

.footer a:hover {
	color: var(--wp--preset--color--links);
}
.footer-logo :is(svg, img) {
	height: var(--site-logo-height);
	width: auto;
	filter: saturate(0);
}

.footer ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
	text-align: center;
	display: flex;
	justify-content: center;
}
@media screen and (min-width: 721px) {
	.footer ul li:not(:last-child)::after {
		content: "|";
		margin: 0 0.5em;
		opacity: 0.3;
	}
}
@media screen and (max-width: 720.5px) {
	.footer ul {
		flex-direction: column;
	}
	.footer ul {
		gap: 0.5em;
		justify-content: space-around;
		width: auto;
	}
}


/***************************************
			Utilities
****************************************/

.text-pretty {
	text-wrap: pretty;
}
.text-balance {
	text-wrap: balance;
}
.fontsize-xs {
	font-size: var(--fontsize-xs);
}

.width-full, .wp-block-image.width-full > img {
	width: 100%;
}
.width-fit {
	width: fit-content;
}
.height-full, .wp-block-image.height-full > img {
	height: 100%;
}
.height-screen {
	min-height: 100dvh;
}
@media screen and (min-width: 1920px) {
	.height-screen {
		height: 100dvh;
		min-height: 0;
		max-height: 1080px;
	}
}

.frame, .kard {
	border-radius: var(--frame-radius);
	box-shadow: var(--frame-shadow);
}
.kard {
	background-color: var(--wp--preset--color--base-high);
}
.kard, .padding-stretch {
	padding: var(--space-stretch) !important;
}
.padding-edge {
	padding-left: var(--space-edge);
	padding-right: var(--space-edge);
}

.bg-image, .bg-overlay, .top-overlay {
    position: relative;
    isolation: isolate;
}
.bg-image > :is(figure, img, video),
:is(.bg-overlay, .top-overlay) > .overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
	max-width: unset;
	margin: 0;
}
.bg-image > :is(figure, img, video) {
	z-index: -2;
}
.bg-image > figure :is(img, video) {
	height: 100%;
	width: 100%;
}
.bg-image > figure img {
	border-radius: 0;
	box-shadow: none;
}
.bg-overlay > .overlay {
	z-index: -1;
}

.parent-link {
    position: relative;
}
.parent-link, .parent-link * {
    transition-duration: var(--global-duration);
}
.parent-link a[href] {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 9;
  color: transparent;
  border-radius: var(--frame-radius);
  margin: 0 !important;
  max-width: none !important;
  display: inline-block;
}
.parent-link figure {
	overflow: hidden;
	border-radius: var(--frame-radius);
}
.parent-link img {
	transition-property: transform;
}
:is(.parent-link:hover, .parent-link:focus-within) img {
	transform: scale(1.05);
}

.wp-block-columns.cols-sm-2 > .wp-block-column {
	flex-basis: 34% !important;
}
.flex {
	display: flex;
}
.grid  {
	display: grid !important;
}
.grid > * {
	margin: 0;
	width: 100%;
}
:where(.grid:not([class*="gap-"])) {
	gap: var(--wp--style--block-gap);
}
.gap-grid {
	gap: var(--grid-gap) !important;
}
.gap-stretch {
	gap: var(--space-stretch) !important;
}
@media screen and (min-width: 1280px) {
	.cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.cols-1-2 {
		grid-template-columns: 1fr 2fr;
	}
	.cols-2-3 {
		grid-template-columns: 2fr 3fr;
	}
	.cols-3-2 {
		grid-template-columns: 3fr 2fr;
	}
	.cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.cols-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	:is(.grid.cols-pretty, .is-layout-grid.cols-pretty, .cols-pretty .grid) :is(figure, img), .cols-pretty-1 > :first-child, .cols-pretty-1 > :first-child * {
		height: 100%;
	}
	:is(.grid.cols-pretty, .is-layout-grid.cols-pretty, .cols-pretty .grid) > :not(figure), .cols-pretty-1 > :last-child, .col-pretty {
		margin: var(--space-xl) 0 !important;
	}
	.checkers > :nth-child(even) > :last-child, .cols-rev > :last-child  {
		order: -1;
	}
}
@media screen and (max-width: 1279px) {
	.is-layout-grid.cols-lg-1 {
		grid-template-columns: 1fr;
	}
	:is(.grid, .is-layout-grid).cols-lg-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media screen and (max-width: 959px) {
	.is-layout-grid.cols-md-1 {
		grid-template-columns: 1fr;
	}
	:is(.grid, .is-layout-grid).cols-md-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media screen and (max-width: 639px) {
	.is-layout-grid.cols-sm-1, .grid:not(.cols-sm-2) {
		grid-template-columns: 1fr;
	}
	:is(.grid, .is-layout-grid).cols-sm-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.justify-center {
	justify-content: center;
	justify-items: center;
}
.align-center {
	align-content: center;
	align-items: center;
}

.block-link {
	display:block;
	line-height:0;
}

.static {
	position: static;
}
.relative {
	position: relative;
}

.square {
	aspect-ratio: 1;
}

.overflow-hidden {
	overflow: hidden;
}
.overflow-x-hidden {
	overflow-x: hidden;
}
.overflow-clip {
	overflow: clip;
}
.overflow-x-clip {
	overflow-x: clip;
}

.glass {
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
}


/***************************************
			Custom
****************************************/

.parent-link {
	transition-property: box-shadow;
	transition-duration: var(--global-duration);
}
.parent-link:hover {
	box-shadow: 0 0 0 0 transparent, inset 0 0 0 3px var(--wp--preset--color--accent);
}
.parent-link .read-more {
	display: inline-block;
	color: var(--wp--preset--color--secondary);
	font-size: var(--fontsize-xs);
	text-transform: uppercase;
	font-family: var(--button-font);
}
.parent-link:hover .read-more {
	color: var(--wp--preset--color--primary);
	box-shadow: 0.5em 0.5em 0 0 var(--wp--preset--color--accent);
}

h2:not(.no-gradient), .gradient-text {
	background-clip: text;
    color: transparent !important;
	background-image: linear-gradient(135deg, var(--wp--preset--color--primary), var(--wp--preset--color--secondary));
}

.bg-stripes {
	--stripe-color: var(--wp--preset--color--base);
	--stripe-angle: 135deg;
	--stripe-width: var(--space-xs);
	--stripe-thickness: 0.15;
	--stripe-start: calc(var(--stripe-width) * (1 - var(--stripe-thickness)));
	background: repeating-linear-gradient(var(--stripe-angle),
			transparent,
			transparent var(--stripe-start),
			var(--stripe-color) var(--stripe-start),
			var(--stripe-color) var(--stripe-width));
	background-position: center center;
}

h3 {
	position: relative;
}
h3::before {
	content: "";
	position: absolute;
	bottom: -0.4em;
	left: -0.5em;
	width: 2em;
	height: var(--decoration-thickness);
	background: var(--wp--preset--color--secondary);
	clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
}

.kard.feature-block {
	background-color: var(--wp--preset--color--base-high);
	color: var(--wp--preset--color--contrast);
}
.feature-block h3 {
	font-size: var(--fontsize-m);
}
.feature-block h3::before {
	content: ".\A0";
	color: var(--wp--preset--color--accent);
	background: none;
	position: static;
}

.thumb-reveal-scroll {
	width: 400px;
	max-width: 100%;
	height: auto;
	aspect-ratio: 1;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	padding: var(--space-2xs);
}
.thumb-reveal-scroll img {	
	object-position: top center;
	transition: 3s object-position ease-in-out;
}
.thumb-reveal-scroll .overlay {
	background: var(--wp--preset--gradient--primary-secondary);
	opacity: 0.6;
	transition: 0.3s opacity ease-in-out;
}
.thumb-reveal-scroll:hover img {
	object-position: bottom center;
}
.thumb-reveal-scroll:hover .overlay {
	opacity: 0;
}
.thumb-reveal-scroll:hover .thumb-content {
	transform: translateY(120%);
}
.thumb-reveal-scroll .thumb-content {
	display: block;
	width: 100%;
	background-color: var(--wp--preset--color--base-high);
	padding: var(--space-xs);
	transition: 1s ease-in-out;
	transition-property: transform;
	text-wrap: pretty;

}
.thumb-reveal-scroll .thumb-title {
	color: var(--wp--preset--color--contrast-high);
	font-size: var(--fontsize-m);
	font-weight: 600;
}
.thumb-reveal-scroll .thumb-excerpt {
	font-size: var(--fontsize-s);
}
