.sketchwalker {
    width: 100%;
}

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

.sketchwalker__empty {
    margin: 0;
    padding: 24px;
    background: var(--sketchwalker-background, #d2d2d2);
    text-align: center;
}

.sketchwalker__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 5;
    overflow: hidden;
    border: 0;
    outline: 0;
    background: var(--sketchwalker-background, #d2d2d2);
    isolation: isolate;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.sketchwalker__stage:focus-visible {
    outline: 3px solid #36708f;
    outline-offset: 3px;
}

.sketchwalker__canvas {
    position: absolute;
    inset: 0;
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: 50% 50%;
    will-change: transform;
}

.sketchwalker__image {
    display: block;
    width: 100%;
    height: 100%;
    border: 0 !important;
    box-shadow: none !important;
    object-fit: contain;
    object-position: 50% 50%;
    pointer-events: none;
    -webkit-user-drag: none;
}

.sketchwalker__spots {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sketchwalker__spot {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 7px rgba(0, 0, 0, 0.4);
    color: #fff;
    font: 700 14px/1 Arial, Helvetica, sans-serif;
    transform: translate(-50%, -50%) rotate(var(--sketchwalker-marker-rotation, 0deg)) scale(var(--sketchwalker-marker-scale, 1));
    cursor: pointer;
    pointer-events: auto;
    transition: filter 160ms ease;
}

.sketchwalker__spot:hover,
.sketchwalker__spot:focus-visible {
    filter: brightness(1.14);
}

.sketchwalker__spot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.sketchwalker__stage:not(.is-zoomed) {
    cursor: grab;
}

.sketchwalker__stage:not(.is-zoomed).is-dragging,
.sketchwalker__stage.is-zoomed {
    cursor: grabbing;
}

.sketchwalker__loader {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(23, 35, 45, 0.2);
    color: #fff;
    font: 14px/1.4 Arial, Helvetica, sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: opacity 160ms ease, visibility 160ms ease;
}

.sketchwalker__loader.is-visible {
    opacity: 1;
    visibility: visible;
}

.sketchwalker__spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sketchwalker-spin 650ms linear infinite;
}

@keyframes sketchwalker-spin {
    to {
        transform: rotate(360deg);
    }
}

.sketchwalker__mode,
.sketchwalker__status {
    position: absolute;
    z-index: 4;
    top: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(23, 35, 45, 0.76);
    color: #fff;
    font: 12px/1 Arial, Helvetica, sans-serif;
    pointer-events: none;
    backdrop-filter: blur(5px);
}

.sketchwalker__mode {
    left: 14px;
}

.sketchwalker__status {
    right: 14px;
    display: flex;
    gap: 6px;
}

.sketchwalker__toolbar {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border-radius: 7px;
    background: rgba(23, 35, 45, 0.84);
    transform: translateX(-50%);
    backdrop-filter: blur(8px);
    touch-action: manipulation;
}

.sketchwalker__toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    touch-action: manipulation;
}

.sketchwalker__toolbar button:hover,
.sketchwalker__toolbar button:focus-visible,
.sketchwalker__toolbar button.is-active {
    background: rgba(255, 255, 255, 0.18);
}

.sketchwalker__toolbar button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 1px;
}

.sketchwalker__toolbar button:disabled {
    opacity: 0.32;
    cursor: default;
}

.sketchwalker__toolbar svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sketchwalker__toolbar .sketchwalker__icon-play {
    fill: currentColor;
    stroke: none;
}

.sketchwalker__toolbar-separator {
    width: 1px;
    height: 24px;
    margin: 0 2px;
    background: rgba(255, 255, 255, 0.2);
}

.sketchwalker__icon-pause,
.sketchwalker__icon-collapse,
.is-auto-playing .sketchwalker__icon-play,
.is-fullscreen .sketchwalker__icon-expand {
    display: none;
}

.is-auto-playing .sketchwalker__icon-pause,
.is-fullscreen .sketchwalker__icon-collapse {
    display: block;
}

.sketchwalker__stage:fullscreen,
.sketchwalker__stage.is-pseudo-fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    aspect-ratio: auto;
    background: var(--sketchwalker-background, #d2d2d2);
}

.sketchwalker__stage.is-pseudo-fullscreen {
    position: fixed;
    z-index: 999999;
    inset: 0;
}

body.sketchwalker-fullscreen-lock {
    overflow: hidden;
}

.sketchwalker__modal[hidden] {
    display: none;
}

.sketchwalker__modal {
    position: fixed;
    z-index: 1000000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
}

.sketchwalker__modal-backdrop {
    position: absolute;
    inset: 0;
    background: var(--sketchwalker-popup-overlay, #000);
    opacity: 0.58;
}

.sketchwalker__modal-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    width: min(100%, 960px);
    max-height: min(80vh, 760px);
    overflow: auto;
    padding: 0;
    border-radius: var(--sketchwalker-popup-radius, 0);
    background: var(--sketchwalker-popup-background, #fff);
    color: #17232d;
}

.sketchwalker__modal-dialog:not(.has-image) {
    grid-template-columns: 1fr;
    width: min(100%, 680px);
}

.sketchwalker__modal-media {
    min-height: 360px;
    background: #f1f3f4;
}

.sketchwalker__modal-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0 !important;
    box-shadow: none !important;
    object-fit: cover;
}

.sketchwalker__modal-content {
    min-width: 0;
    padding: var(--sketchwalker-popup-padding, 40px);
    background: var(--sketchwalker-popup-background, #fff);
}

.sketchwalker__modal-dialog h2 {
    margin: 0 40px 12px 0;
    font-weight: 300;
}

.sketchwalker__modal-description {
    margin: 0 0 14px;
    color: #58656e;
}

.sketchwalker__modal-text {
    line-height: 1.6;
}

.sketchwalker__modal-text > :first-child {
    margin-top: 0;
}

.sketchwalker__modal-text > :last-child {
    margin-bottom: 0;
}

.sketchwalker__modal-text a,
.sketchwalker__modal-company-link {
    color: var(--sketchwalker-modal-accent, #36708f);
}

.sketchwalker__modal-company-link {
    display: inline-flex;
    margin-top: 24px;
    padding-bottom: 4px;
    border-bottom: 1px solid currentColor;
    font-weight: 600;
    text-decoration: none;
}

.sketchwalker__modal-company-link:hover,
.sketchwalker__modal-company-link:focus-visible {
    opacity: 0.72;
}

.sketchwalker__modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #17232d;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 700px) {
    .sketchwalker__modal {
        align-items: flex-start;
        padding: 12px;
        overflow: auto;
    }

    .sketchwalker__modal-dialog,
    .sketchwalker__modal-dialog.has-image {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .sketchwalker__modal-media,
    .sketchwalker__modal-media img {
        min-height: 0;
        max-height: 42vh;
        aspect-ratio: 4 / 3;
    }

    .sketchwalker__mode,
    .sketchwalker__status {
        top: 8px;
        padding: 6px 8px;
        font-size: 11px;
    }

    .sketchwalker__mode {
        left: 8px;
    }

    .sketchwalker__status {
        right: 8px;
    }

    .sketchwalker__toolbar {
        bottom: max(8px, env(safe-area-inset-bottom));
        gap: 1px;
        padding: 4px;
    }

    .sketchwalker__toolbar button {
        width: 34px;
        height: 34px;
    }

    .sketchwalker__spot {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sketchwalker__loader,
    .sketchwalker__spot {
        transition: none;
    }

    .sketchwalker__spinner {
        animation-duration: 1.4s;
    }
}
