/* ============================================================
   vison-image-gallery スライダー
   1枚: そのまま表示  /  2枚以上: スライダー（ドットナビ付き）
   ============================================================ */

/* --- デフォルト（単一画像 / JS 未適用） --- */
.vison-image-gallery {
    margin: 20px 0;
    text-align: center;
}

.vison-image-gallery > img {
    display: inline-block;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
}

/* --- スライダーモード（JS が is-slider を付与） --- */
.vison-image-gallery.is-slider {
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.vison-image-gallery.is-slider:active {
    cursor: grabbing;
}

.vison-slider-track {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
}

.vison-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vison-slide img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* --- ドットナビゲーション（〇●〇） --- */
.vison-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.vison-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #888;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    box-sizing: border-box;
}

.vison-slider-dot.is-active {
    background: #555;
    border-color: #555;
}
