/**
 * Sticky-section compatibility — legacy template migration.
 *
 * The legacy plugin's "Sticky" extension (extensions/sticky.php) pinned a
 * section/container to the viewport when its `wdp_enable_section_sticky`
 * control was on, via the class `.wdp-sticky-section-positon--top|--bottom`
 * defined in wdp.css:
 *
 *   position: fixed !important; z-index: 99; width: 100%; left: 0; top/bottom: 0;
 *
 * That extension is not part of this plugin, so on import the pinned section
 * (e.g. the "DEKSTOP BACKGROUND" desktop frame in the TC/TP/TS template
 * families) dropped into normal flow and rendered at the end of the page.
 * Di_Elementor::sticky_before_render() re-adds a di-namespaced class from the
 * stored setting; this file restores the exact original rule.
 */

.di-sticky-fixed--top {
	position: fixed !important;
	z-index: 99;
	width: 100%;
	left: 0;
	top: 0;
}

.di-sticky-fixed--bottom {
	position: fixed !important;
	z-index: 99;
	width: 100%;
	left: 0;
	bottom: 0;
}

/*
 * The pinned frame is the backdrop the whole invitation scrolls over, and in
 * the TC/TP/TS families it runs Elementor's Ken Burns zoom on a photo. On
 * iPhone Safari a scroll-reveal transition starting in the content above it
 * re-layers the tree, and the backdrop's photo paints black for a frame
 * (owner, 2026-10-21, TC01 Our Love Story). Its own layer and the zooming
 * image's are declared up front, so neither is created or re-rasterised
 * while the guest scrolls.
 */
.di-sticky-fixed--top,
.di-sticky-fixed--bottom {
	transform: translateZ(0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.di-sticky-fixed--top .elementor-ken-burns,
.di-sticky-fixed--bottom .elementor-ken-burns {
	will-change: transform;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}
