/**
 * Moto 360° Variation Gallery - Stili v1.2
 * - Aspect ratio 1000×585
 * - Thumbnails strip rimosso
 *
 * FILE: /wp-content/plugins/moto360-variation-gallery/assets/moto360-gallery.css
 */

/* ── Contenitore viewer ──────────────────────────────────────── */
#moto360-viewer {
    width: 100%;
    max-width: 1920px;
    font-family: inherit;
    user-select: none;
    -webkit-user-select: none;
}

/* ── Stage ───────────────────────────────────────────────────── */
.moto360-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1000 / 585;     /* proporzione esatta delle tue foto */
    background: #f4f4f4;
    border-radius: 10px;
    overflow: hidden;
    cursor: grab;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}
.moto360-stage:active {
    cursor: grabbing;
}

.moto360-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;            /* cover perché le foto hanno già la proporzione esatta */
    display: block;
    pointer-events: none;
}

/* ── Hint drag ───────────────────────────────────────────────── */
.moto360-drag-hint {
    display: none;
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
}

/* ── Contatore frame ─────────────────────────────────────────── */
.moto360-frame-counter {
    position: absolute;
    top: 10px;
    right: 14px;
    background: rgba(0,0,0,0.40);
    color: #fff;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 12px;
    pointer-events: none;
}

/* ── Scrubber ────────────────────────────────────────────────── */
.moto360-scrubber-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 0 4px;
}

.moto360-icon-360 {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    white-space: nowrap;
    flex-shrink: 0;
}

.moto360-scrubber {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    cursor: pointer;
}

.moto360-scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #111;
    cursor: grab;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #111;
    transition: transform 0.1s;
}
.moto360-scrubber::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.15);
}

.moto360-scrubber::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #111;
    cursor: grab;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #111;
    transition: transform 0.1s;
}
.moto360-scrubber::-moz-range-thumb:active {
    cursor: grabbing;
    transform: scale(1.15);
}

.moto360-scrubber::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #ddd;
}

.moto360-scrubber:focus-visible {
    outline: 3px solid #0066cc;
    outline-offset: 3px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
    .moto360-stage {
        border-radius: 6px;
    }
    .moto360-scrubber::-webkit-slider-thumb {
        width: 26px;
        height: 26px;
    }
}
