/* Transform the AWB video wrapper on scroll */
.home-header-round .nk-awb-wrap-content {
    height: 0;
}
.home-header-round .nk-awb-wrap {
    left: 50%;
    transform: translateX(-50%);
    height: 80vh;
    width: 97vw;
    border-radius: 50px;
    overflow: hidden;
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                border-radius 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add a spacer to prevent content jump when switching position */
.home-header-round {
    min-height: 80vh; /* Match your video height */
}

/* Optional: Add margin-top when complete for spacing */
.home-header-round .nk-awb-wrap.animation-complete {
    margin-top: 30vh; /* Match your original top: 15vh */
}

/* Ensure video covers the container properly */
.home-header-round .jarallax-container {
    clip-path: none !important;
}

.home-header-round .nk-awb-overlay, .home-header-round img {
    display: none;
    visibility: hidden;
}

/* Content fade effect */
#home-header-round-title {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Default visible state */
#home-header-round-title {
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 1;
    transform: translateY(0);
}

/* Fade out when scrolled class is added */
.home-header-round .nk-awb-wrap.scrolled #home-header-round-title {
    opacity: 0;
    transform: translateY(-20px);
}

/* Smooth overlay transition */
.home-header-round .nk-awb-overlay {
    transition: background 0.2s ease;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .home-header-round .nk-awb-wrap {
        width: 90vw;
        border-radius: 40px;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .home-header-round .nk-awb-wrap,
    .home-header-round .nk-awb-overlay,
    #home-header-round-title {
        transition: none !important;
    }
}
/* End Transform the AWB video wrapper on scroll */

/* Initial state for the CTA block */
.ryn-fp3-cta-block .nk-awb-wrap {
    width: 85vw;
    margin: 0 auto;
    border-radius: 80px;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                border-radius 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
	height: 80vh;
}

.ryn-fp3-cta-block .nk-awb-wrap-content {
    width: 420px;
    margin: 0 auto;
    border-radius: 80px;
    position: absolute;
	left: 50%;
    transform: translateX(-50%);
	top: 6%;
}

/* Ensure container maintains space when fixed */
.ryn-fp3-cta-block {
    position: relative;
	padding: 0;
}
.ryn-fp3-cta-block.expanded-parent {
    margin-top: 80vh;
}

/* Ensure image covers and stays centered */
.ryn-fp3-cta-block .jarallax-img {
    object-fit: cover !important;
    object-position: center center !important;
    min-width: 100vw !important;
    width: 100vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Expanded state */
.ryn-fp3-cta-block .nk-awb-wrap.expanded {
    width: 100vw !important;
    border-radius: 0 !important;
    margin: 0;
}

/* Smooth transitions while not fixed */
.ryn-fp3-cta-block .nk-awb-wrap:not([style*="position: fixed"]) {
    transition: all 0.3s ease;
}