﻿/* Outer widget container */
.nst-miniature {
    max-width: 100%;
}

/* Main box */
.nst-viewport {
    border: 1px solid currentColor;
    border-radius: 2px;
    padding: 16px;
    box-sizing: border-box;
    width: 100%;
    min-height: 200px;
}

.nst-viewport p {
    max-width: 100%;
}

/* Highlight viewport on dragover */
.nst-viewport.nst-dragover {
    outline: 2px dashed currentColor;
}

/* Prompt block at top */
.nst-state-prompt {
    cursor: pointer;
    text-align: center;
    margin-bottom: 16px;
}

.nst-state-prompt p {
    margin: 0;
}

/* Hide file input */
.nst-file-input {
    display: none;
}

/* Spinner: centered block while processing */
.nst-state-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

/* Spinner circle uses currentColor */
.nst-spinner-circle {
    width: 32px;
    height: 32px;
    border: 4px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    margin: 0 0 8px 0;
    animation: nst-spin 0.8s linear infinite;
}

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

/* Results: row of images under the prompt */
.nst-state-result {
    margin-top: 8px;
}

/* Images row: side-by-side, shrink on narrow viewports */
.nst-images {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

/* Each figure; override global figure margins */
.nst-image {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 1 256px;   /* prefers 256px, can shrink */
    max-width: 256px;
}

/* Actual images */
.nst-image img {
    width: 100%;
    height: auto;
    max-width: 256px;
    max-height: 256px;
    display: block;
}

/* Captions */
.nst-image figcaption {
    margin-top: 6px;
    text-align: center;
    font-size: 0.9rem;
}

/* Error message */
.nst-error {
    margin-top: 10px;
    font-weight: bold;
}

/* Utility: hide elements */
.nst-hidden {
    display: none;
}

/* Modified */