.ql-gallery-controls{display:flex;align-items:center;justify-content:center;gap:18px;margin:12px 0;color:var(--ql-muted);font-size:12px}
.ql-gallery-controls button{width:32px;height:30px;border:1px solid var(--ql-border);border-radius:5px;background:#fff;color:var(--ql-green)}
.ql-gallery-thumbs{display:flex;gap:10px;overflow-x:auto;padding:3px 2px 8px;max-width:100%;scrollbar-width:thin}
.ql-gallery-thumbs button{flex:0 0 80px;width:80px;height:80px;padding:3px;border:1px solid var(--ql-border);border-radius:7px;background:#fff}
.ql-gallery-thumbs button[aria-pressed=true]{border:2px solid var(--ql-green);padding:2px;background:var(--ql-wash)}
.ql-gallery-thumbs img{display:block;width:100%;height:100%;object-fit:contain;border-radius:4px}
@media(max-width:540px){.ql-gallery-thumbs button{flex-basis:66px;width:66px;height:66px}.ql-gallery-controls{margin:10px 0}}

/* Keep small source photographs at their intrinsic dimensions. */
.ql-product-visual .ql-main-image{display:flex;align-items:center;justify-content:center;aspect-ratio:1}
.ql-product-visual .ql-main-image>img{width:auto;height:auto;max-width:100%;max-height:100%;aspect-ratio:auto;flex:0 1 auto}

/* Give the main product photograph a smaller desktop column. */
@media(min-width:901px){.ql-detail .ql-product-overview{grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:56px}}
@media(min-width:541px) and (max-width:900px){.ql-detail .ql-product-overview{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:30px}}
