/* header navigation */

.ghmtheme-header-navigation {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 10;
	padding: 0.2em 2em;
}

.wp-block-image :where(figcaption){
	text-align: center;
}

/* GHM-Section pattern */

.ghm-section {
	--wp--custom--ghm-section--text-column--padding: 1em;
	--wp--custom--ghm-section--figure--margin: 0em;
}

.ghm-section .wp-block-columns {
	gap: 0;
}

.ghm-section .wp-block-columns figure {
	margin: var(--wp--custom--ghm-section--figure--margin);
}


.ghm-section .wp-block-column.text-column .wp-block-group {
	padding: var(--wp--custom--ghm-section--text-column--padding);
}

.ghm-section.is-style-ghm-reverse .wp-block-columns {
	flex-direction: row-reverse;
}
.ghm-section.is-style-ghm-reverse-invert .wp-block-columns {
	flex-direction: row-reverse;
}

/* GHM-Fader pattern */

figure.wp-block-gallery.ghm-fader {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	--wp--custom--ghm-fader--fade-in: 2s;
	--wp--custom--ghm-fader--fade-out: 3s;
	background-color: black;
}

figure.wp-block-gallery.ghm-fader figure.wp-block-image {
	grid-area: 1 /1;
	visibility: hidden;
	opacity: 0%;
}

figure.wp-block-gallery.ghm-fader figure.wp-block-image {
	animation: faderout ease-out;
	animation-duration: var(--wp--custom--ghm-fader--fade-out);
	animation-fill-mode: forwards;
	animation-play-state: paused;
}

figure.wp-block-gallery.ghm-fader figure.wp-block-image.current {
	animation: faderin ease-in;
	animation-duration: var(--wp--custom--ghm-fader--fade-in);
	animation-fill-mode: forwards;
	animation-delay: 100ms;
}

@keyframes fader {
	0% {
		opacity: 0%;
	}

	10% {
		opacity: 100%;
	}

	90% {
		opacity: 100%;
	}

	100% {
		opacity: 0%;
	}
}

@keyframes faderin {
	0% {
		opacity: 0%;
	}

	100% {
		opacity: 100%;
	}
}

@keyframes faderout {
	0% {
		opacity: 100%;
	}

	100% {
		opacity: 0%;
	}
}





/* FlipCard pattern */

.flip-card-wrapper {
	perspective: 1000px;
	width: 100%;
	max-width: 300px;
	margin: 0 auto;
}

.flip-card-inner {
	position: relative;
	aspect-ratio: 1 / 1;
	text-align: center;
	transition: transform 0.6s;
	transform-style: preserve-3d;
}

.flip-card-wrapper:hover .flip-card-inner {
	transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	align-items: center;
	justify-content: center;
	display: flex;
	box-sizing: border-box;
}

.flip-card-back {
	transform: rotateY(180deg);
	background-color: var(--wp--preset--color--warm-cider-beige);
	color: var(--wp--preset--color--forest-night);
	margin: 0;
	padding: 0 1em;
}