/* Scoped product media; the native images and other video sections are unchanged. */
.gl9-gallery .gl9-stage{position:relative;background:#fff}
.gl9-gallery .gl9-panel{position:absolute;inset:0;width:100%;height:100%}
.gl9-gallery .gl9-panel[hidden]{display:none!important}
.gl3-product-page .gl9-gallery .gl9-panel>img,.gl3-product-page .gl9-gallery .gl9-panel>video{display:block;width:100%;height:100%;object-fit:contain;background:#fff}
.gl9-gallery .gl9-panel>video{max-height:100%}
.gl9-gallery .gl9-thumbs{align-items:start}
.gl9-gallery [data-gl9-status]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.gl9-gallery .gl9-thumb{position:relative;min-width:0;background:#fff;border:1px solid transparent}
.gl3-product-page .gl9-gallery .gl9-thumb img{object-fit:contain;background:#fff}
.gl9-gallery .gl9-thumb.active{border-color:var(--ink,#201d1a)}
.gl9-gallery .gl9-thumb:focus-visible{outline:2px solid var(--ink,#201d1a);outline-offset:3px}
.gl9-gallery .gl9-video-mark{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#fffefbea;color:var(--ink,#201d1a);box-shadow:0 0 0 1px #201d1a26}
.gl9-gallery .gl9-video-mark svg{width:17px;height:17px}
.gl9-gallery .gl9-video-label{position:absolute;bottom:3px;left:3px;right:3px;font-size:9px;line-height:1.6;text-align:center;background:#fffefbe8;color:var(--ink,#201d1a)}
.gl9-admin-gallery .gl9-admin-controls{display:flex;flex-direction:column;align-items:flex-start;gap:7px;max-width:560px}
.gl9-admin-gallery [data-gl9-media-name]{overflow-wrap:anywhere}
.gl9-admin-gallery .gl9-admin-status:empty{display:none}
.gl9-admin-gallery .gl9-admin-status{font-size:12px;color:#50575e}
.gl9-admin-gallery [hidden]{display:none!important}

.gl9-gallery .gl9-stage:has(.gl9-stage-arrow) { touch-action: pan-y pinch-zoom; }
.gl9-gallery .gl9-panel > img { user-select: none; -webkit-user-drag: none; }
.gl9-gallery .gl9-stage-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #0002;
    border-radius: 50%;
    background: #fffd;
    color: #000;
    cursor: pointer;
}
.gl9-gallery .gl9-stage-arrow:hover { background: #fff; }
.gl9-gallery .gl9-stage-arrow svg { width: 17px; height: 17px; }
.gl9-gallery .gl9-stage-prev { left: 12px; }
.gl9-gallery .gl9-stage-next { right: 12px; }
@media (max-width: 760px), (pointer: coarse) {
    .gl9-gallery .gl9-stage-arrow { display: none; }
}
