/* Shared inline galleries keep the image and navigation in the same order. */
#cubimo-design .cm-home-gallery{display:flex;flex-direction:column;align-items:stretch;min-width:0}
#cubimo-design .cm-home-gallery>.cm-gallery-heading{display:block;flex:none;margin-bottom:20px}
#cubimo-design .cm-home-gallery>.cm-gallery-heading>:not(.cm-slider-controls){margin-bottom:0}
#cubimo-design .cm-home-gallery>.cm-home-gallery-image{flex:none;min-width:0}
#cubimo-design .cm-home-gallery>.cm-gallery-navigation{box-sizing:border-box;display:flex;align-items:flex-start;justify-content:center;gap:14px;width:max-content;max-width:min(100%,calc(65svh * 1.777778));min-width:0;margin:18px auto 0;flex:none;--cm-gallery-thumb-height:48px}
#cubimo-design .cm-gallery-navigation>.cm-home-gallery-dots{display:flex;align-items:center;justify-content:flex-start;flex:0 1 auto;min-width:0;width:max-content;max-width:100%;gap:10px;margin:0;padding:6px 4px 16px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:transparent transparent;touch-action:pan-x pan-y}
#cubimo-design .cm-gallery-navigation>.cm-icon-button{display:inline-flex;align-items:center;justify-content:center;position:static;isolation:auto;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;margin-top:calc(6px + (var(--cm-gallery-thumb-height) - 44px) / 2);padding:0;border:1px solid #46765b;background:#153d2c;color:#b8e8d3;pointer-events:auto}
#cubimo-design .cm-gallery-navigation>.cm-icon-button:before{display:none}
#cubimo-design .cm-gallery-navigation>.cm-icon-button>svg{width:20px;height:20px}
#cubimo-design .cm-gallery-navigation>.cm-icon-button:hover{background:#25583c;border-color:#82d1a7}
#cubimo-design .cm-gallery-navigation>.cm-icon-button:focus-visible{outline:2px solid #8df0c4;outline-offset:2px}
#cubimo-design .cm-home-gallery>.cm-home-gallery-image>.cm-home-gallery-count{position:absolute;left:18px;right:auto;bottom:18px;width:max-content;display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 10px;box-sizing:border-box;background:#08271dda;color:#e9f2d8;font:12px/1.5 Consolas,monospace;pointer-events:none;z-index:1}
#cubimo-design .cm-home-gallery.cme-gallery-editing>.cm-gallery-navigation{display:none}
#cubimo-design .cm-home-gallery.cme-gallery-editing>.cm-gallery-editor{flex:none;margin:10px 0 0;min-width:0}
#cubimo-design .cm-home-gallery>.cm-gallery-navigation[hidden]{display:none}
@media(max-width:750px){#cubimo-design .cm-home-gallery>.cm-gallery-navigation{gap:10px;margin-top:14px;--cm-gallery-thumb-height:40px}#cubimo-design .cm-home-gallery>.cm-home-gallery-image>.cm-home-gallery-count{left:6px;bottom:6px;font-size:11px;padding:6px 8px}#cubimo-design .cm-home-gallery>.cm-gallery-heading{margin-bottom:18px}}

/* Keep each screenshot inside the gallery's fixed display frame. */
#cubimo-design .cm-home-gallery>.cm-home-gallery-image>.cm-home-gallery-track>img{object-fit:cover;object-position:center}
#cubimo-design .cm-gallery-navigation>.cm-home-gallery-dots>button.cm-gallery-thumbnail{height:var(--cm-gallery-thumb-height)}
#cubimo-design .cm-gallery-navigation>.cm-home-gallery-dots::-webkit-scrollbar{height:6px}
#cubimo-design .cm-gallery-navigation>.cm-home-gallery-dots::-webkit-scrollbar-track{background:transparent}
#cubimo-design .cm-gallery-navigation>.cm-home-gallery-dots::-webkit-scrollbar-thumb{background:transparent;border-radius:0}
#cubimo-design .cm-gallery-navigation>.cm-home-gallery-dots:is(:hover,:focus-within){scrollbar-color:#568a70 #102d23}
#cubimo-design .cm-gallery-navigation>.cm-home-gallery-dots:is(:hover,:focus-within)::-webkit-scrollbar-track{background:#102d23}
#cubimo-design .cm-gallery-navigation>.cm-home-gallery-dots:is(:hover,:focus-within)::-webkit-scrollbar-thumb{background:#568a70}
#cubimo-design .cm-gallery-navigation>.cm-home-gallery-dots::-webkit-scrollbar-thumb:hover{background:#85c6a5}
#cubimo-design .cm-guide-managed-gallery>.cm-wiki-figure>.cm-wiki-image-button{width:min(100%,calc(65svh * 1.777778));aspect-ratio:16/9;position:relative;overflow:hidden;margin-inline:auto}
#cubimo-design .cm-guide-managed-gallery>.cm-wiki-figure>.cm-wiki-image-button>img{width:100%;height:100%;max-height:none;object-fit:cover}
#cubimo-design .cm-guide-managed-gallery.cm-guide-feature-image>.cm-wiki-figure>.cm-wiki-image-button{width:100%;aspect-ratio:16/7}
#cubimo-design .cm-guide-cubling-image img{object-fit:cover}
