.nvkas-root {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    isolation: isolate;
    direction: ltr;
}

.nvkas-root *,
.nvkas-root *::before,
.nvkas-root *::after {
    box-sizing: border-box;
}

/*
 * Desktop height is intentionally NOT preset.
 * The active desktop image stays in normal flow and defines the slider height
 * from its own intrinsic aspect ratio. Inactive slides are overlaid.
 */
.nvkas-viewport {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.nvkas-slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: auto;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .36s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.nvkas-slide.is-active {
    position: relative;
    inset: auto;
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nvkas-picture,
.nvkas-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.nvkas-image {
    object-fit: contain;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
}

.nvkas-indicators {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transform: translateX(-50%);
}

.nvkas-indicator {
    appearance: none;
    width: 22px;
    height: 3px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .16);
    cursor: pointer;
    transition: width .2s ease, background-color .2s ease, opacity .2s ease;
}

.nvkas-indicator.is-active {
    width: 30px;
    background: #fff;
}

.nvkas-indicator:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.nvkas-empty {
    padding: 18px;
    border: 1px dashed #c3c4c7;
    text-align: center;
}

@media (max-width: 767px) {
    .nvkas-root {
        touch-action: pan-y pinch-zoom;
    }

    /* Mobile stays exactly square, as before. */
    .nvkas-viewport {
        aspect-ratio: 1 / 1;
    }

    .nvkas-slide,
    .nvkas-slide.is-active {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .nvkas-root .nvkas-picture,
    .nvkas-root .nvkas-image {
        width: 100%;
        height: 100%;
    }

    .nvkas-root .nvkas-image {
        object-fit: cover;
    }

    .nvkas-indicators {
        bottom: 12px;
        gap: 6px;
    }

    .nvkas-indicator {
        width: 18px;
    }

    .nvkas-indicator.is-active {
        width: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nvkas-slide,
    .nvkas-indicator {
        transition: none;
    }
}
