.evapera-scroll-video {
    --evapera-scroll-desktop: 320;
    --evapera-scroll-mobile: 280;
    --evapera-stage-desktop: 100;
    --evapera-stage-mobile: 100;
    --evapera-bg: #ffffff;
    --evapera-fit: contain;
    --evapera-position-x: 50%;
    --evapera-position-y: 50%;
    --evapera-top-offset: 0px;
    --evapera-z-index: 100;
    position: relative;
    width: 100%;
    max-width: none !important;
    height: calc(var(--evapera-scroll-desktop) * 1vh);
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    background: var(--evapera-bg);
    isolation: isolate;
}

.evapera-scroll-video.is-full-width {
    width: 100vw;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.evapera-scroll-video__stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc((var(--evapera-stage-desktop) * 1vh) - var(--evapera-top-offset));
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--evapera-bg);
    z-index: var(--evapera-z-index);
    box-sizing: border-box;
}

@supports (height: 1dvh) {
    .evapera-scroll-video__stage {
        height: calc((var(--evapera-stage-desktop) * 1dvh) - var(--evapera-top-offset));
    }
}

.evapera-scroll-video__stage.is-fixed {
    position: fixed !important;
    top: var(--evapera-top-offset) !important;
    right: auto !important;
    bottom: auto !important;
    z-index: var(--evapera-z-index) !important;
}

.evapera-scroll-video__stage.is-ended {
    position: absolute !important;
    top: auto !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
}

.evapera-scroll-video__media {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none !important;
    max-height: none !important;
    object-fit: var(--evapera-fit);
    object-position: var(--evapera-position-x) var(--evapera-position-y);
    background: var(--evapera-bg);
    pointer-events: none;
    user-select: none;
}

.evapera-scroll-video__status {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    max-width: calc(100% - 32px);
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font: 600 14px/1.25 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: center;
    opacity: 1;
    transition: opacity 180ms ease;
    pointer-events: none;
}

.evapera-scroll-video.is-ready .evapera-scroll-video__status,
.evapera-scroll-video.hide-status .evapera-scroll-video__status {
    opacity: 0;
    visibility: hidden;
}

.evapera-scroll-video.has-error .evapera-scroll-video__status {
    opacity: 1;
    visibility: visible;
    background: #9b1c1c;
}

.evapera-scroll-video__error-text {
    display: none !important;
}

@media (min-width: 783px) {
    .evapera-scroll-video.is-desktop-disabled {
        display: none !important;
    }
}

@media (max-width: 782px) {
    .evapera-scroll-video {
        height: calc(var(--evapera-scroll-mobile) * 1vh);
    }

    .evapera-scroll-video__stage {
        height: calc((var(--evapera-stage-mobile) * 1vh) - var(--evapera-top-offset));
    }

    @supports (height: 1dvh) {
        .evapera-scroll-video__stage {
            height: calc((var(--evapera-stage-mobile) * 1dvh) - var(--evapera-top-offset));
        }
    }

    .evapera-scroll-video.is-mobile-disabled {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .evapera-scroll-video.respect-reduced-motion {
        height: auto !important;
        min-height: 0 !important;
    }

    .evapera-scroll-video.respect-reduced-motion .evapera-scroll-video__stage,
    .evapera-scroll-video.respect-reduced-motion .evapera-scroll-video__stage.is-fixed,
    .evapera-scroll-video.respect-reduced-motion .evapera-scroll-video__stage.is-ended {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
    }
}

/* Video üzeri yazı katmanı */
.evapera-scroll-video__overlay {
    position: absolute;
    left: var(--evapera-overlay-x, 50%);
    top: var(--evapera-overlay-y, 50%);
    z-index: 2;
    width: min(var(--evapera-overlay-width, 700px), calc(100% - 32px));
    max-width: calc(100% - 32px);
    color: var(--evapera-overlay-color, #111111);
    text-align: var(--evapera-overlay-align, center);
    opacity: var(--evapera-overlay-opacity, 0);
    transform: translate(
        var(--evapera-overlay-shift-x, -50%),
        var(--evapera-overlay-shift-y, -50%)
    );
    transition: opacity 80ms linear;
    pointer-events: none;
    will-change: opacity;
    box-sizing: border-box;
}

.evapera-scroll-video__overlay-box {
    display: inline-block;
    width: 100%;
    padding: var(--evapera-overlay-padding-y, 18px) var(--evapera-overlay-padding-x, 24px);
    border-radius: var(--evapera-overlay-radius, 0);
    background: var(--evapera-overlay-background, transparent);
    box-sizing: border-box;
}

.evapera-scroll-video__overlay-title {
    margin: 0;
    color: inherit;
    font-size: var(--evapera-overlay-title-size, 48px);
    font-weight: var(--evapera-overlay-title-weight, 700);
    line-height: var(--evapera-overlay-line-height, 1.2);
    letter-spacing: var(--evapera-overlay-letter-spacing, 0);
    overflow-wrap: anywhere;
}

.evapera-scroll-video__overlay-text {
    margin-top: 0.65em;
    color: inherit;
    font-size: var(--evapera-overlay-text-size, 18px);
    font-weight: var(--evapera-overlay-text-weight, 400);
    line-height: 1.5;
    letter-spacing: var(--evapera-overlay-letter-spacing, 0);
    overflow-wrap: anywhere;
}

.evapera-scroll-video__overlay-title:only-child,
.evapera-scroll-video__overlay-text:only-child {
    margin-top: 0;
}

.evapera-scroll-video.overlay-font-inherit .evapera-scroll-video__overlay {
    font-family: inherit;
}

.evapera-scroll-video.overlay-font-system .evapera-scroll-video__overlay {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.evapera-scroll-video.overlay-font-serif .evapera-scroll-video__overlay {
    font-family: Georgia, "Times New Roman", serif;
}

.evapera-scroll-video.overlay-font-mono .evapera-scroll-video__overlay {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.evapera-scroll-video.overlay-has-shadow .evapera-scroll-video__overlay-title,
.evapera-scroll-video.overlay-has-shadow .evapera-scroll-video__overlay-text {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
}

.evapera-scroll-video__status {
    z-index: 3;
}

@media (min-width: 783px) {
    .evapera-scroll-video.overlay-desktop-disabled .evapera-scroll-video__overlay {
        display: none !important;
    }
}

@media (max-width: 782px) {
    .evapera-scroll-video__overlay {
        width: min(var(--evapera-overlay-mobile-width, 340px), calc(100% - 24px));
        max-width: calc(100% - 24px);
    }

    .evapera-scroll-video__overlay-title {
        font-size: var(--evapera-overlay-mobile-title-size, 30px);
    }

    .evapera-scroll-video__overlay-text {
        font-size: var(--evapera-overlay-mobile-text-size, 16px);
    }

    .evapera-scroll-video.overlay-mobile-disabled .evapera-scroll-video__overlay {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .evapera-scroll-video.respect-reduced-motion .evapera-scroll-video__overlay {
        opacity: 1 !important;
    }
}
