.e-f83c97d-aefe448 {
    position: absolute !important;
    bottom: 70px !important;
}

@media (max-width: 760px) {
    .e-f83c97d-aefe448,
    .e-d60fe1e-c6d54bc {
        width: 100% !important;
    }
}

.e-f83c97d-aefe448,
.e-d60fe1e-c6d54bc {
    margin-right: 40px !important;
    font-size: 15px !important;
    margin: 10px !important;
}

.cinematic-scroll-container {
    position: relative;
}

.cinematic-scroll-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #000;
}

/* Offset top when WP Admin bar is active */
body.admin-bar .cinematic-scroll-sticky {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
    body.admin-bar .cinematic-scroll-sticky {
        top: 46px;
        height: calc(100vh - 46px);
    }
}

.cinematic-scroll-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.cinematic-scroll-container.is-video-ready .cinematic-scroll-video {
    opacity: 1;
}

.cinematic-scroll-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.cinematic-scroll-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    pointer-events: none;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.cinematic-scroll-container.is-video-ready .cinematic-scroll-content {
    opacity: 1;
}

.cinematic-scroll-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cinematic-scroll-slide h2.heading-1 {
    margin: 0 0 5px 0;
    font-size: 3rem;
    font-weight: 700;
}

.cinematic-scroll-slide h3.heading-2 {
    margin: 0 0 15px 0;
    font-size: 1.8rem;
    font-weight: 500;
}

.cinematic-scroll-slide p {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.6;
}

/* Video preloader */
.cinematic-scroll-loader {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 30px;
    box-sizing: border-box;
    background: #000;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cinematic-scroll-container.is-video-ready .cinematic-scroll-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.cinematic-scroll-loader-inner {
    width: min(360px, 85vw);
    text-align: center;
}

.cinematic-scroll-loader-spinner {
    display: block;
    width: 46px;
    height: 46px;
    margin: 0 auto 18px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cinematic-scroll-spin 0.85s linear infinite;
}

.cinematic-scroll-loader-text {
    margin: 0 0 14px;
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
}

.cinematic-scroll-loader-progress {
    position: relative;
    width: 100%;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.cinematic-scroll-loader-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #fff;
    transition: width 0.18s linear;
}

.cinematic-scroll-loader-progress-bar.is-indeterminate {
    width: 35%;
    animation: cinematic-scroll-indeterminate 1.15s ease-in-out infinite;
}

.cinematic-scroll-loader-percent {
    margin-top: 9px;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    opacity: 0.8;
}

@keyframes cinematic-scroll-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes cinematic-scroll-indeterminate {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(320%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cinematic-scroll-loader-spinner,
    .cinematic-scroll-loader-progress-bar.is-indeterminate {
        animation-duration: 1.8s;
    }

    .cinematic-scroll-video,
    .cinematic-scroll-content,
    .cinematic-scroll-loader,
    .cinematic-scroll-slide {
        transition-duration: 0.01ms;
    }
}

/* Page counter styling */
.cinematic-scroll-counter {
    position: absolute;
    bottom: 30px;
    right: 40px;
    z-index: 4;
    background-color: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    pointer-events: none;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.cinematic-scroll-container.is-video-ready .cinematic-scroll-counter,
.cinematic-scroll-container.is-video-ready .e-f83c97d-aefe448 {
    opacity: 1;
}

.cinematic-scroll-container.is-loading .cinematic-scroll-counter,
.cinematic-scroll-container.is-loading .e-f83c97d-aefe448 {
    opacity: 0;
    pointer-events: none;
}

@media screen and (max-width: 1200px) {
	.cinematic-scroll-slide{
		padding: 60px;
	}
}
@media screen and (max-width: 768px) {
	.cinematic-scroll-slide{
		padding: 40px;
	}
    .cinematic-scroll-counter {
        bottom: 20px;
        right: 20px;
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}
