.nivelz-windows {
    --nw-start-width: 750px;
    --nw-scene-height: 280vh;
    --nw-text-max-width: 760px;
    --nw-zoom-percent: 320;
    position: relative;
    width: 100%;
}

.nivelz-window-scene {
    position: relative;
    height: var(--nw-scene-height);
    min-height: 1200px;
}

.nivelz-window-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    min-height: 520px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.nivelz-window-image-wrap {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    overflow: visible;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.nivelz-window-image {
    display: block;
    width: min(var(--nw-start-width), 100%);
    max-width: none;
    min-width: 0;
    height: auto;
    flex: 0 0 auto;
    flex-shrink: 0;
    max-height: none;
    object-fit: contain;
    object-position: center;
    will-change: width, transform;
    transform-origin: center center;
    backface-visibility: hidden;
}

.nivelz-window-content {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: min(var(--nw-text-max-width), calc(100% - 40px));
    max-height: 72vh;
    overflow: auto;
    padding: 24px;
    text-align: center;
    opacity: 0;
    transform: translate3d(-50%, calc(-50% + 14px), 0);
    will-change: opacity, transform;
    transform-origin: center center;
    box-sizing: border-box;
}

.nivelz-window-title {
    margin: 0 0 18px;
}

.nivelz-window-description > *:first-child {
    margin-top: 0;
}

.nivelz-window-description > *:last-child {
    margin-bottom: 0;
}

.nivelz-windows-empty {
    padding: 16px;
    border: 1px dashed currentColor;
    opacity: .75;
}

.nivelz-windows.is-reduced-motion .nivelz-window-scene {
    height: auto;
    min-height: 0;
    margin: 0 0 80px;
}

.nivelz-windows.is-reduced-motion .nivelz-window-sticky {
    position: relative;
    height: auto;
    min-height: 0;
    display: grid;
    gap: 24px;
    overflow: visible;
}

.nivelz-windows.is-reduced-motion .nivelz-window-image-wrap,
.nivelz-windows.is-reduced-motion .nivelz-window-content {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    width: 100%;
    max-height: none;
    opacity: 1 !important;
    transform: none !important;
}

.nivelz-windows.is-reduced-motion .nivelz-window-image-wrap {
    grid-row: 1;
}

.nivelz-windows.is-reduced-motion .nivelz-window-content {
    grid-row: 2;
}

.nivelz-windows.is-reduced-motion .nivelz-window-image {
    width: min(var(--nw-start-width), 100%) !important;
    opacity: 1 !important;
    transform: none !important;
}

@media (max-width: 767px) {
    .nivelz-windows {
        --nw-start-width: min(88vw, 620px);
        --nw-scene-height: 220vh;
    }

    .nivelz-window-scene {
        min-height: 900px;
    }

    .nivelz-window-sticky {
        min-height: 480px;
    }

    .nivelz-window-content {
        width: calc(100% - 28px);
        padding: 18px;
        max-height: 68vh;
    }
}
