/* =========================================================
   Willows Text 3D — HTML / Resonance transition rebuild
   Perspective X = camera (perspective-origin), not rotate hinge.
   Faces hinge at 50% like the HTML demo.
   ========================================================= */

.text-3d {
	--text-3d-delay: 0s;
	--text-3d-duration: 1.25s;
	--text-3d-perspective-x: 50%;
	--text-3d-ease: cubic-bezier(0.8, 0, 0.2, 1);

	display: inline-block;
	max-width: 100%;
	vertical-align: top;
	opacity: 1;
	transform: none;
}

.elementor-widget-heading:has(.willows-text-3d),
.elementor-widget-heading:has(.willows-text-3d) > .elementor-widget-container,
.elementor-element:has(.willows-text-3d) {
	overflow: visible !important;
}

.text-3d-inner {
	position: relative;
	display: inline-block;
	max-width: 100%;
	perspective: 1000px;
	perspective-origin: var(--text-3d-perspective-x) 50%;
	transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
}

.text-3d-front,
.text-3d-back {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	transform-style: preserve-3d;
	-webkit-font-smoothing: antialiased;
}

.text-3d-front {
	position: relative;
	z-index: 2;
	display: block;
	transform-origin: 50% 100%;
}

.text-3d-front .elementor-heading-title {
	display: inline-block;
	max-width: 100%;
	margin: 0;
}

.text-3d-back {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	display: block;
	pointer-events: none;
	transform-origin: 50% 0;
}

.text-3d-hack {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* From (WOW appear-animate) */
.text-3d .text-3d-inner {
	opacity: 0;
	transform: translate3d(0, 3.25rem, 0);
	transition:
		transform var(--text-3d-duration) var(--text-3d-ease),
		opacity var(--text-3d-duration) var(--text-3d-ease);
	transition-delay: var(--text-3d-delay);
}

.text-3d .text-3d-front {
	transform: translate3d(0, 0, 0) rotateX(0deg);
	transition: transform var(--text-3d-duration) var(--text-3d-ease);
	transition-delay: var(--text-3d-delay);
}

.text-3d .text-3d-back {
	transform: translate3d(0, 100%, 0) rotateX(-90deg);
	transition: transform var(--text-3d-duration) var(--text-3d-ease);
	transition-delay: var(--text-3d-delay);
}

/* To (.animated) */
.text-3d.bb-3d--play .text-3d-inner {
	opacity: 1;
	transform: none;
}

.text-3d.bb-3d--play .text-3d-front {
	transform: translate3d(0, -100%, 0) rotateX(90deg);
}

.text-3d.bb-3d--play .text-3d-back {
	transform: translate3d(0, 0, 0) rotateX(0deg);
}

@media print {
	.text-3d .text-3d-inner,
	.text-3d.bb-3d--play .text-3d-inner {
		opacity: 1 !important;
		transform: none !important;
	}
	.text-3d .text-3d-front,
	.text-3d.bb-3d--play .text-3d-front {
		transform: translate3d(0, -100%, 0) rotateX(90deg) !important;
	}
	.text-3d .text-3d-back,
	.text-3d.bb-3d--play .text-3d-back {
		transform: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.text-3d .text-3d-inner,
	.text-3d .text-3d-front,
	.text-3d .text-3d-back {
		transition: none !important;
	}
	.text-3d .text-3d-inner {
		opacity: 1 !important;
		transform: none !important;
	}
	.text-3d .text-3d-front {
		transform: translate3d(0, -100%, 0) rotateX(90deg) !important;
	}
	.text-3d .text-3d-back {
		transform: none !important;
	}
}

.bb-wcf-hover-willows .bb-nav-inner { overflow: hidden !important; }

/* AA Sticky header is not working */
.elementor-control-aae_sec_header_sticky-area{display: none !important;}

@media (min-width: 992px) {
    .wcf-library-templates {
        -moz-column-count: 3 !important;
        column-count: 3 !important;
    }
}

#wcf-template-library .elementor-templates-modal__header__logo-area {
    background-image: url(../build/images/logo-icon-round.svg) !important;
}

.library--action.insert {
    color: #fff !important;
    background-color: #19be5f !important;
}


.wcf-library-template .title {
    padding-top: 10px !important;
    color: #000000 !important;
}

@media (max-width: 1439px) {
    #elementor-template-library-preview iframe {
        width: 1740px !important;
    }
}
