.cns-thumbnail-gallery{padding:28px 0;min-width:0;--cns-gallery-accent:#897766}
.cns-thumbnail-gallery *{box-sizing:border-box}
.cns-gallery-stage{position:relative;aspect-ratio:3/1;overflow:hidden;background:#eee8df}
.cns-gallery-strip{display:flex;width:100%;height:100%;transform:translate3d(0,0,0);transition:transform .8s cubic-bezier(.22,.61,.36,1)}
.cns-gallery-slide{flex:0 0 100%;min-width:0;height:100%;margin:0;padding:0}
.cns-gallery-slide img,.cns-gallery-editor-image{display:block;width:100%;height:100%;object-fit:cover}
.cns-gallery-stage>button{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:grid;place-items:center;width:56px;height:56px;padding:0;border:0;border-radius:0;background:transparent;color:#fff;cursor:pointer}
.cns-gallery-prev{left:12px}.cns-gallery-next{right:12px}
.cns-gallery-stage>button:hover{background:transparent;color:#fff}
.cns-gallery-stage>button[hidden]{display:none}
.cns-gallery-stage svg{display:block;width:44px;height:44px;filter:drop-shadow(0 1px 3px #0008)}
.cns-gallery-stage path{fill:none;stroke:currentColor;stroke-width:1;stroke-linejoin:round;stroke-linecap:round}
.cns-gallery-thumbnails{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - (var(--cns-gallery-columns,5) - 1)*10px)/var(--cns-gallery-columns,5));gap:10px;margin-top:10px;overflow-x:auto;scrollbar-width:none}
.cns-gallery-thumbnails::-webkit-scrollbar{display:none}
.cns-gallery-thumbnails>button{position:relative;display:block;width:100%;min-width:0;aspect-ratio:16/9;padding:0;margin:0;border:0;border-radius:0;background:transparent;opacity:.55;cursor:pointer;transition:opacity .25s}
.cns-gallery-thumbnails>button img{display:block;width:100%;height:100%;object-fit:cover}
.cns-gallery-thumbnails>button[aria-current=true]{opacity:1}
.cns-gallery-thumbnails>button[aria-current=true]::after{content:"";position:absolute;inset:0;border:2px solid var(--cns-gallery-accent);pointer-events:none}
.cns-section.cns-thumbnail-gallery :is(button,[tabindex]):focus-visible{outline:2px solid var(--cns-gallery-accent);outline-offset:-3px}
.cns-gallery-editor-tools{display:flex;justify-content:center;gap:12px;padding:18px;background:#f5f7fa;margin-top:16px}
.cns-gallery-manager-row{display:grid;grid-template-columns:110px minmax(0,1fr);gap:18px;padding:18px;border:1px solid #ddd;margin-bottom:14px}
.cns-gallery-manager-row img{width:110px;aspect-ratio:16/9;object-fit:cover;display:block}
.cns-gallery-manager-actions{display:flex;gap:8px;align-items:center}
.cns-gallery-manager-footer{position:sticky;bottom:-24px;background:#fff;padding:16px 0;display:flex;gap:12px}
.cns-gallery-editor-image-button{display:block!important;width:100%;height:100%!important;padding:0!important}
@media(max-width:767px){.cns-gallery-stage{aspect-ratio:3/2}.cns-gallery-stage>button{width:44px;height:44px}.cns-gallery-stage svg{width:36px;height:36px}.cns-gallery-thumbnails>button{aspect-ratio:1}.cns-gallery-manager-row{grid-template-columns:80px minmax(0,1fr)}.cns-gallery-manager-row img{width:80px}}
@media(prefers-reduced-motion:reduce){.cns-gallery-strip,.cns-gallery-thumbnails>button{transition:none}}