.scs *, .scs *::before, .scs *::after { box-sizing: border-box !important; margin: 0 !important; padding: 0 !important; }
.scs { position: relative; width: 100%; max-width: 700px; margin: 0 auto; }

.scs-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: transparent;
}

.scs-num {
    display: none;
}

.scs-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s ease;
}
.scs-track.no-t { transition: none; }

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

.scs-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
}

.scs-arr {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 64px !important;
    border: 2px solid rgba(0,0,0,0.08) !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #222 !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10) !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.scs-arr svg {
    display: block !important;
    width: 32px !important;
    height: 32px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.5 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    pointer-events: none !important;
}

.scs-arr-l { left: 16px !important; }
.scs-arr-r { right: 16px !important; }

.scs-arr:hover {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
    transform: translateY(-50%) scale(1.06) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25) !important;
}

.scs-arr:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.scs-num {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    padding: 4px 14px;
    border-radius: 20px;
    font: 600 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    pointer-events: none;
}

.scs-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 16px 0 8px;
}

.scs-dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    border: none !important;
    background: #ccc !important;
    cursor: pointer !important;
    outline: none !important;
    transition: background 0.2s, transform 0.2s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.scs-dot.on {
    background: #222 !important;
    transform: scale(1.3) !important;
}

.scs-dot:hover { background: #666 !important; }

.scs-thumbs {
    display: flex;
    gap: 8px;
    padding: 6px 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.scs-thumbs::-webkit-scrollbar { display: none; }

.scs-th {
    flex: 0 0 72px !important;
    width: 72px !important;
    height: 72px !important;
    border: 2px solid transparent !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    outline: none !important;
    opacity: 0.5 !important;
    transition: opacity 0.2s, border-color 0.2s !important;
    background: #f5f5f5 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.scs-th.on {
    border-color: #222 !important;
    opacity: 1 !important;
}

.scs-th:hover { opacity: 0.8 !important; }

.scs-th img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: none !important;
    box-shadow: none !important;
}

.scs-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}
.scs-lightbox.on { display: flex; }

.scs-lb-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
    cursor: pointer;
}

.scs-lb-img {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
}

.scs-lb-x,
.scs-lb-l,
.scs-lb-r {
    position: fixed !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid rgba(255,255,255,0.2) !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    cursor: pointer !important;
    outline: none !important;
    transition: background 0.2s, border-color 0.2s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.scs-lb-x svg, .scs-lb-l svg, .scs-lb-r svg {
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.5 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    pointer-events: none !important;
}

.scs-lb-x {
    top: 20px !important;
    right: 20px !important;
    width: 50px !important;
    height: 50px !important;
}
.scs-lb-x svg { width: 24px !important; height: 24px !important; }

.scs-lb-l,
.scs-lb-r {
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 60px !important;
    height: 60px !important;
}
.scs-lb-l svg, .scs-lb-r svg { width: 30px !important; height: 30px !important; }

.scs-lb-l { left: 20px !important; }
.scs-lb-r { right: 20px !important; }

.scs-lb-x:hover, .scs-lb-l:hover, .scs-lb-r:hover {
    background: rgba(255,255,255,0.3) !important;
    border-color: rgba(255,255,255,0.5) !important;
}

@media (max-width: 600px) {
    .scs-arr { width: 50px !important; height: 50px !important; }
    .scs-arr svg { width: 26px !important; height: 26px !important; }
    .scs-arr-l { left: 8px !important; }
    .scs-arr-r { right: 8px !important; }
    .scs-th { flex: 0 0 56px !important; width: 56px !important; height: 56px !important; }
}
