.gallery-image{cursor:zoom-in}
body.media-viewer-open{overflow:hidden}
#image-dialog.media-viewer{width:min(1440px,calc(100vw - 64px));max-width:none;max-height:calc(100dvh - 48px);margin:auto;background:#080808;color:#f4f4f4;border:1px solid #303030;border-radius:0;padding:0;overflow:visible;box-shadow:0 32px 140px #000b}
#image-dialog.media-viewer::backdrop{background:#080808ed;backdrop-filter:blur(12px)}
.media-viewer:before,.media-viewer:after{content:"";position:absolute;inset:-5px;pointer-events:none;background:linear-gradient(#666,#666) left top/9px 1px no-repeat,linear-gradient(#666,#666) left top/1px 9px no-repeat,linear-gradient(#666,#666) right top/9px 1px no-repeat,linear-gradient(#666,#666) right top/1px 9px no-repeat,linear-gradient(#666,#666) left bottom/9px 1px no-repeat,linear-gradient(#666,#666) left bottom/1px 9px no-repeat,linear-gradient(#666,#666) right bottom/9px 1px no-repeat,linear-gradient(#666,#666) right bottom/1px 9px no-repeat}
.media-viewer-toolbar{height:60px;display:flex;align-items:center;border-bottom:1px solid #303030;gap:20px;padding-right:24px}
.media-viewer-toolbar .dialog-close{position:static;flex:0 0 60px;height:59px;width:60px;min-height:44px;border-radius:0;border:0;border-right:1px solid #303030;background:transparent;color:#eee;box-shadow:none;margin:0}
.media-viewer-heading{font-size:14px;font-weight:500;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.media-viewer-type{font-size:11px;color:#aaa;text-transform:uppercase;letter-spacing:.12em}
.media-viewer-stage{padding:14px;background:#0c0c0c;display:flex;align-items:center;justify-content:center;min-height:0}
#image-dialog.media-viewer .media-viewer-stage img{display:block;max-width:100%;width:100%;height:auto;max-height:calc(100dvh - 238px);object-fit:contain;border:1px solid #282828;border-radius:8px;background:#101010}
.media-viewer-footer{min-height:76px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #303030;padding:12px 22px;gap:20px}
.media-viewer-credit{display:grid;gap:5px;font-size:14px}.media-viewer-credit small{font-size:12px;color:#999}
.media-viewer-controls{display:flex;gap:12px;align-items:center}.media-viewer-count{font-size:12px;color:#aaa;font-variant-numeric:tabular-nums;min-width:36px;text-align:center}.media-viewer-controls button{width:44px;height:44px;display:grid;place-items:center;background:transparent;border:1px solid #333;border-radius:6px;color:#eee;cursor:pointer}.media-viewer-controls button:hover{background:#202020}.media-viewer button:focus-visible{outline:2px solid #ff8a42;outline-offset:3px}
@media(max-width:600px){#image-dialog.media-viewer{width:calc(100vw - 24px);max-height:calc(100dvh - 32px)}.media-viewer-toolbar{height:52px;gap:12px;padding-right:12px}.media-viewer-toolbar .dialog-close{height:51px;flex-basis:50px;width:50px}.media-viewer-type{display:none}.media-viewer-stage{padding:8px}#image-dialog.media-viewer .media-viewer-stage img{max-height:calc(100dvh - 202px)}.media-viewer-footer{padding:12px;gap:8px}.media-viewer-credit{font-size:12px}.media-viewer-credit small{font-size:11px}.media-viewer-controls{gap:5px}}
@media(prefers-reduced-motion:no-preference){#image-dialog.media-viewer[open]{animation:media-viewer-in .45s cubic-bezier(.22,1,.36,1) both}@keyframes media-viewer-in{from{opacity:0;transform:translateY(24px) scale(.985)}to{opacity:1;transform:none}}}

.inline-media-navigation .gallery-chevron,.media-viewer-controls .gallery-chevron{display:block;width:20px;height:20px;flex:none;overflow:visible}

/* Shared product preview: the same frame as the approved Design Lab gallery. */
.product-media-gallery .media-inline{display:grid;grid-template-rows:52px minmax(0,1fr) 68px;background:#080808;border:1px solid #303030;border-radius:var(--radius,16px);overflow:hidden;position:relative}
.product-media-gallery .inline-media-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #303030;padding-left:16px;color:#eee}
.product-media-gallery .inline-media-title{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-media-gallery .gallery-expand{position:static;width:52px;height:51px;flex:0 0 52px;border-radius:0;border:0;border-left:1px solid #303030;background:transparent;color:#eee}
.product-media-gallery .inline-media-stage{min-height:0;min-width:0;padding:clamp(20px,3vw,32px);display:flex;align-items:center;justify-content:center;background:#0c0c0c;overflow:hidden}
.product-media-gallery .inline-media-stage .gallery-image{display:block;position:static;inset:auto;width:auto;height:auto;max-width:100%;max-height:100%;border-radius:0;border:1px solid #282828;background:#0c0c0c;object-fit:contain;object-position:center}
.product-media-gallery .inline-media-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #303030;padding:10px 16px;color:#eee}
.product-media-gallery .inline-media-footer>div:first-child{display:grid;gap:5px;min-width:0;font-size:13px}
.product-media-gallery .inline-media-footer small{color:#999;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-media-gallery .inline-media-navigation{display:flex;align-items:center;gap:10px;flex-shrink:0}
.product-media-gallery .inline-media-navigation button{width:36px;height:36px;display:grid;place-items:center;border:1px solid #333;border-radius:5px;color:#eee;background:transparent;cursor:pointer}
.product-media-gallery .inline-media-navigation button:hover{background:#202020}
.product-media-gallery .inline-media-navigation>span{font-size:11px;color:#aaa;min-width:30px;text-align:center;font-variant-numeric:tabular-nums}
.product-media-gallery .gallery-image:focus-visible,.product-media-gallery .inline-media-navigation button:focus-visible,.media-viewer button:focus-visible{outline:2px solid var(--lime,#ff8a42);outline-offset:3px}
.product-media-gallery .gallery-stage:hover .gallery-image{transform:none}
.product-media-gallery .gallery-bottom{flex-wrap:wrap}
.product-media-gallery .gallery-thumbs{flex-wrap:wrap;max-width:100%}
.product-media-gallery .gallery-thumb img{object-fit:contain}
.media-viewer-controls[hidden]{display:none}
.media-viewer .dialog-close svg{display:block}
@media(max-width:600px){.product-media-gallery .inline-media-footer{padding:8px 12px}.product-media-gallery .inline-media-navigation{gap:6px}.product-media-gallery .inline-media-title{font-size:11px}}
@media(max-width:400px){.product-media-gallery .gallery-thumbs{gap:6px}.product-media-gallery .gallery-thumb{width:60px;height:50px}}
