.pmh{margin:16px 0 8px;font-size:14px}.pmh *{box-sizing:border-box}.pmh__head{margin-bottom:10px}.pmh__title{margin:0;font-size:18px;line-height:1.3}.pmh__subtitle{margin:2px 0 0;opacity:.68;font-size:12px}.pmh__folders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pmh__folder{display:flex;align-items:center;gap:9px;min-height:64px;padding:10px;text-align:left;background:#fff;border:1px solid rgba(0,0,0,.12);border-radius:8px;cursor:pointer}.pmh__folder strong,.pmh__folder small{display:block}.pmh__folder strong{font-size:13px;line-height:1.25}.pmh__folder small{margin-top:3px;font-size:11px;opacity:.65}.pmh__icon{display:flex;align-items:center;justify-content:center;flex:0 0 34px;height:34px;border-radius:50%;background:rgba(0,0,0,.05);font-size:16px}.pmh__note{display:flex;width:100%;align-items:flex-start;gap:9px;margin-top:9px;padding:10px;text-align:left;border:1px solid rgba(0,0,0,.1);border-radius:8px;background:rgba(0,0,0,.025);cursor:pointer}.pmh__note span:nth-child(2){flex:1;min-width:0}.pmh__note strong,.pmh__note small,.pmh__note em{display:block}.pmh__note small{margin-top:3px;line-height:1.35;opacity:.75}.pmh__note em{margin-top:5px;font-size:11px;font-style:normal;font-weight:600}.pmh__chevron{align-self:center}.pmh__viewer{position:fixed;z-index:999999;inset:0;display:none;background:#fff}.pmh__viewer.is-open{display:block}.pmh__viewer-panel{height:100%;display:flex;flex-direction:column}.pmh__viewer-head{display:flex;align-items:center;min-height:54px;padding:6px 8px;border-bottom:1px solid rgba(0,0,0,.1)}.pmh__viewer-head h3{flex:1;margin:0 8px;font-size:16px}.pmh__back,.pmh__close{width:42px;height:42px;border:0;background:transparent;font-size:18px}.pmh__viewer-body{flex:1;overflow:auto;padding:12px;-webkit-overflow-scrolling:touch}.pmh__loading,.pmh__empty,.pmh__error{padding:40px 15px;text-align:center}.pmh__tabs{display:flex;gap:6px;overflow:auto;padding-bottom:10px}.pmh__tab{white-space:nowrap;padding:8px 12px;border:1px solid rgba(0,0,0,.12);border-radius:18px;background:#fff}.pmh__tab.is-active{font-weight:700;border-color:rgba(0,0,0,.5)}.pmh__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pmh__photo{margin:0}.pmh__photo button{display:block;width:100%;padding:0;border:0;background:#f4f4f4}.pmh__photo img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover}.pmh__photo figcaption{padding:5px 2px;font-size:11px;opacity:.72}.pmh__video-card{position:relative;text-align:left;border:0;background:#f5f5f5;padding:0}.pmh__video-card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.pmh__play{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);font-size:34px;color:#fff;text-shadow:0 1px 4px #000}.pmh__video-title{display:block;padding:8px;font-weight:600}.pmh__iframe{width:100%;aspect-ratio:16/9;border:0}.pmh__cars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pmh__car{display:block;text-decoration:none;border:1px solid rgba(0,0,0,.1);border-radius:8px;overflow:hidden;color:inherit}.pmh__car img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover}.pmh__car strong{display:block;padding:8px}.pmh__note-full{font-size:14px;line-height:1.55}.pmh__note-images{margin-top:14px}.pmh__zoom{position:fixed;z-index:1000000;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.92);padding:10px}.pmh__zoom img{max-width:100%;max-height:100%;object-fit:contain}.pmh__zoom button{position:absolute;right:8px;top:8px;width:44px;height:44px;border:0;background:rgba(255,255,255,.15);color:#fff;font-size:22px;border-radius:50%}@media(min-width:768px){.pmh{margin-top:20px}.pmh__folders{grid-template-columns:repeat(4,minmax(0,1fr))}.pmh__viewer{background:rgba(0,0,0,.58);padding:4vh 4vw}.pmh__viewer-panel{max-width:1040px;height:92vh;margin:auto;background:#fff;border-radius:10px;overflow:hidden}.pmh__back{display:none}.pmh__viewer-body{padding:18px}.pmh__grid{grid-template-columns:repeat(4,minmax(0,1fr))}.pmh__cars{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Viewer is portaled to body so Journal stacking/overflow cannot clip it. */
body > .pmh__viewer{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100vw!important;height:100dvh!important;margin:0!important;transform:none!important;visibility:visible!important;opacity:1!important;overflow:hidden!important;}
body > .pmh__viewer:not(.is-open){display:none!important;}
body > .pmh__viewer.is-open{display:block!important;}
body > .pmh__viewer .pmh__viewer-panel{position:relative;display:flex;flex-direction:column;min-height:0;}
body > .pmh__viewer .pmh__viewer-head{flex:0 0 auto;position:relative;z-index:2;background:#fff;}
body > .pmh__viewer .pmh__viewer-body{min-height:0;overflow:auto;overscroll-behavior:contain;}
body > .pmh__viewer .pmh__tabs{max-width:100%;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin;}
body > .pmh__viewer [hidden]{display:none!important;}
body > .pmh__viewer .pmh__actual-grid{grid-template-columns:minmax(0,1fr);max-width:760px;margin:0 auto;gap:18px;}
body > .pmh__viewer .pmh__actual-grid .pmh__photo{max-width:100%;text-align:center;}
body > .pmh__viewer .pmh__actual-grid .pmh__photo button{width:100%;background:#f7f7f7;border-radius:8px;overflow:hidden;}
body > .pmh__viewer .pmh__actual-grid .pmh__photo img{width:100%;height:auto;max-height:65dvh;aspect-ratio:auto;object-fit:contain;}
@media(min-width:768px){body > .pmh__viewer{height:100dvh!important;}body > .pmh__viewer .pmh__viewer-panel{height:92dvh;max-height:92dvh;}}
/* v1.2.0 gallery viewer: scoped, mobile-first, no Journal overrides. */
body > .pmh__viewer .pmh__viewer-panel{background:#fff;color:#202733;}
body > .pmh__viewer .pmh__viewer-head{padding:8px 14px;min-height:64px;border-bottom:1px solid #e8ebef;}
body > .pmh__viewer .pmh__viewer-head h3{font-size:16px;font-weight:650;line-height:1.4;}
body > .pmh__viewer .pmh__viewer-body{padding:12px 14px;}
body > .pmh__viewer .pmh__tab{cursor:pointer;border-radius:22px;}
body > .pmh__viewer .pmh__group[hidden]{display:none!important;}
body > .pmh__viewer .pmh-gallery{display:flex;flex-direction:column;min-height:0;gap:10px;}
body > .pmh__viewer .pmh-gallery__stage{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;min-height:0;height:52dvh;background:#fff;touch-action:pan-y;}
body > .pmh__viewer .pmh-gallery__image{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:0;height:100%;}
body > .pmh__viewer .pmh-gallery__image img{max-width:100%;max-height:calc(52dvh - 42px);height:auto;width:auto;object-fit:contain;}
body > .pmh__viewer .pmh-gallery__image p{font-size:12px;margin:6px 0 0;color:#647080;text-align:center;}
body > .pmh__viewer .pmh-gallery__arrow{display:flex;align-items:center;justify-content:center;width:40px;height:44px;background:transparent;border:0;color:#485466;font-size:25px;cursor:pointer;}
body > .pmh__viewer .pmh-gallery__bottom{display:flex;flex-direction:column;gap:8px;}
body > .pmh__viewer [data-pmh-counter]{font-size:12px;color:#66717d;}
body > .pmh__viewer .pmh-gallery__thumbs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;padding:2px 0 8px;}
body > .pmh__viewer .pmh-gallery__thumb{flex:0 0 68px;width:68px;height:68px;padding:3px;border:2px solid transparent;border-radius:7px;background:#f5f6f8;cursor:pointer;}
body > .pmh__viewer .pmh-gallery__thumb.is-active{border-color:#203d66;}
body > .pmh__viewer .pmh-gallery__thumb img{width:100%;height:100%;object-fit:contain;}
body > .pmh__viewer .pmh-gallery__thumb:focus-visible,body > .pmh__viewer .pmh-gallery__arrow:focus-visible{outline:2px solid #203d66;outline-offset:2px;}
@media(min-width:768px){body > .pmh__viewer{padding:20px!important;background:rgba(0,0,0,.72)!important;}body > .pmh__viewer .pmh__viewer-panel{max-width:1380px;height:calc(100dvh - 40px);max-height:900px;border-radius:8px;}body > .pmh__viewer .pmh__viewer-body{padding:16px 24px;}body > .pmh__viewer .pmh-gallery__stage{height:min(63dvh,650px);grid-template-columns:52px minmax(0,1fr) 52px;}body > .pmh__viewer .pmh-gallery__image img{max-height:min(59dvh,610px);}body > .pmh__viewer .pmh-gallery__bottom{align-items:center;}body > .pmh__viewer .pmh-gallery__thumbs{max-width:100%;}body > .pmh__viewer .pmh-gallery__thumb{flex-basis:76px;width:76px;height:76px;}}


/* v1.4.0 — Stitch-inspired storefront media UI. Mobile-first; no inline styles. */
.pmh{max-width:680px;margin:16px 0;padding:16px;border:1px solid #e2e8f0;border-radius:15px;background:#fff;color:#1e293b}
.pmh__head{display:none}
.pmh__folders{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pmh__folder{min-width:0;min-height:66px;padding:12px 10px;border:1px solid #e2e8f0;border-radius:12px;box-shadow:none;transition:border-color .15s,background-color .15s}
.pmh__folder:hover{border-color:#aeb9c8;background:#fafbfd}
.pmh__folder:focus-visible,.pmh__note:focus-visible{outline:2px solid #334155;outline-offset:2px}
.pmh__folder strong{font-size:13px;font-weight:650;color:#0f172a}
.pmh__folder small{font-size:12px;color:#64748b;opacity:1}
.pmh__icon{flex-basis:36px;height:36px;background:#f1f5f9;color:#334155;font-size:17px}
.pmh__note{margin-top:12px;padding:13px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;color:#334155}
.pmh__note-icon{color:#475569}
.pmh__note strong{font-size:13px;color:#0f172a}
.pmh__note small{font-size:12px;color:#64748b;opacity:1}
.pmh__note em{font-size:12px;color:#334155}
body > .pmh__viewer{background:#fff}
body > .pmh__viewer .pmh__viewer-panel{background:#fff;border:0;border-radius:0}
body > .pmh__viewer .pmh__viewer-head{gap:9px;min-height:66px;padding:10px 14px;border-bottom:1px solid #e2e8f0}
body > .pmh__viewer .pmh__viewer-symbol{display:flex;align-items:center;justify-content:center;flex:0 0 38px;height:38px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;color:#475569}
body > .pmh__viewer .pmh__viewer-heading{flex:1;min-width:0}
body > .pmh__viewer .pmh__viewer-head h3{margin:0;font-size:15px;font-weight:650;color:#0f172a}
body > .pmh__viewer .pmh__viewer-heading p{margin:3px 0 0;font-size:11px;color:#64748b}
body > .pmh__viewer .pmh__close{border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;color:#475569}
body > .pmh__viewer .pmh__viewer-body{padding:14px}
body > .pmh__viewer .pmh__tabs{gap:8px;margin-bottom:14px;padding:0 0 12px;border-bottom:1px solid #e2e8f0}
body > .pmh__viewer .pmh__tab{padding:8px 13px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#475569;font-size:12px}
body > .pmh__viewer .pmh__tab.is-active{border-color:#334155;background:#f1f5f9;color:#0f172a}
body > .pmh__viewer .pmh-gallery{gap:14px}
body > .pmh__viewer .pmh-gallery__stage{height:48dvh;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
body > .pmh__viewer .pmh-gallery__image img{max-height:calc(48dvh - 50px)}
body > .pmh__viewer .pmh-gallery__thumb{background:#f8fafc;border:2px solid #e2e8f0;border-radius:9px}
body > .pmh__viewer .pmh-gallery__thumb.is-active{border-color:#334155}
body > .pmh__viewer .pmh-gallery__arrow{color:#334155}
body > .pmh__viewer .pmh__video-card{overflow:hidden;border:1px solid #e2e8f0;border-radius:10px;background:#fff}
body > .pmh__viewer .pmh__car{border-color:#e2e8f0;border-radius:10px}
@media(min-width:768px){
 .pmh{padding:20px 22px}
 .pmh__folders{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
 body > .pmh__viewer{background:rgba(15,23,42,.55)!important;padding:3dvh 3vw!important}
 body > .pmh__viewer .pmh__viewer-panel{max-width:1360px;height:94dvh;max-height:960px;border:1px solid #e2e8f0;border-radius:20px;box-shadow:0 20px 70px rgba(15,23,42,.22)}
 body > .pmh__viewer .pmh__viewer-head{min-height:76px;padding:12px 24px}
 body > .pmh__viewer .pmh__viewer-head h3{font-size:17px}
 body > .pmh__viewer .pmh__viewer-body{padding:18px 24px}
 body > .pmh__viewer .pmh-gallery{display:grid;grid-template-columns:minmax(0,1fr) 160px;grid-template-rows:minmax(0,1fr);gap:18px;height:min(66dvh,660px)}
 body > .pmh__viewer .pmh-gallery__stage{height:100%;min-height:0}
 body > .pmh__viewer .pmh-gallery__image img{max-height:min(58dvh,590px)}
 body > .pmh__viewer .pmh-gallery__bottom{min-height:0;align-items:stretch;overflow:hidden}
 body > .pmh__viewer .pmh-gallery__thumbs{display:flex;flex-direction:column;align-items:stretch;overflow-y:auto;overflow-x:hidden;max-height:100%;padding:2px 6px 6px 2px}
 body > .pmh__viewer .pmh-gallery__thumb{flex:0 0 96px;width:100%;height:96px}
}

/* 1.5.8 adaptive video gallery, scoped to Product Media viewer; mobile first */
body > .pmh__viewer .pmh-video{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;min-width:0}
body > .pmh__viewer .pmh-video__main,body > .pmh__viewer .pmh-video__sidebar{min-width:0}
body > .pmh__viewer .pmh-video__frame{position:relative;width:100%;max-width:100%;height:auto;aspect-ratio:16/9;margin:auto;display:flex;align-items:center;justify-content:center;background:#101722;border-radius:10px;overflow:hidden}
body > .pmh__viewer .pmh-video__frame--portrait{aspect-ratio:9/16;max-width:min(100%,calc(66dvh * 9 / 16));max-height:66dvh}
body > .pmh__viewer .pmh-video__poster{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
body > .pmh__viewer .pmh-video__poster[hidden]{display:none}
body > .pmh__viewer .pmh-video__poster img{width:100%;height:100%;object-fit:contain}
body > .pmh__viewer .pmh-video__poster button{position:absolute;display:flex;flex-direction:column;align-items:center;gap:5px;padding:14px 20px;border:0;border-radius:12px;background:rgba(0,0,0,.7);color:#fff;cursor:pointer}
body > .pmh__viewer .pmh-video__poster button .fa{font-size:34px}
body > .pmh__viewer .pmh-video__iframe{display:block;width:100%;height:100%;position:absolute;inset:0;border:0}
body > .pmh__viewer .pmh-video__info{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 2px;font-size:13px}
body > .pmh__viewer .pmh-video__info span{color:#64748b;white-space:nowrap}
body > .pmh__viewer .pmh-video__fallback{font-size:13px;padding:9px 0}
body > .pmh__viewer .pmh-video__sidebar h4{font-size:13px;margin:0 0 10px;font-weight:650}
body > .pmh__viewer .pmh-video__list{display:flex;flex-direction:column;gap:8px}
body > .pmh__viewer .pmh-video__item{display:flex;align-items:center;gap:10px;min-height:66px;width:100%;padding:8px;border:1px solid #e2e8f0;border-radius:9px;background:#fff;text-align:left;cursor:pointer;color:#27364a}
body > .pmh__viewer .pmh-video__item.is-active{border-color:#7c9fc8;background:#f2f7fc}
body > .pmh__viewer .pmh-video__item img{width:90px;aspect-ratio:16/9;object-fit:contain;background:#111827;border-radius:5px;flex-shrink:0}
body > .pmh__viewer .pmh-video__item span{min-width:0;flex:1;overflow-wrap:anywhere;font-size:12px}
body > .pmh__viewer .pmh-video__item .fa{color:#64748b}
body > .pmh__viewer .pmh-video__item:focus-visible,body > .pmh__viewer .pmh-video__poster button:focus-visible{outline:2px solid #255d99;outline-offset:2px}
@media(min-width:768px){
 body > .pmh__viewer .pmh-video{grid-template-columns:minmax(0,1fr) minmax(220px,28%);align-items:start;gap:20px}
 body > .pmh__viewer .pmh-video__frame{max-height:68dvh}
 body > .pmh__viewer .pmh-video__frame--portrait{max-width:min(100%,calc(68dvh * 9 / 16))}
 body > .pmh__viewer .pmh-video__list{max-height:70dvh;overflow-y:auto;padding-right:4px}
}

/* 1.5.9: compact square photo stage; 10px inner spacing; mobile-first */
body > .pmh__viewer .pmh-gallery{min-width:0;gap:12px}
body > .pmh__viewer .pmh-gallery__stage{width:100%;max-width:min(100%,min(72dvh,680px));height:auto;aspect-ratio:1/1;min-height:0;margin:0 auto;padding:10px;grid-template-columns:30px minmax(0,1fr) 30px;border-radius:10px;background:#f8fafc}
body > .pmh__viewer .pmh-gallery__image{width:100%;height:100%;min-height:0;overflow:hidden}
body > .pmh__viewer .pmh-gallery__image img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;min-height:0;object-fit:contain}
body > .pmh__viewer .pmh-gallery__arrow{width:30px;height:42px;min-width:0;z-index:1}
body > .pmh__viewer .pmh-gallery__bottom{width:100%;max-width:min(100%,min(72dvh,680px));margin:0 auto}
body > .pmh__viewer .pmh-gallery__thumb img{object-fit:contain}
@media(min-width:768px){
 body > .pmh__viewer .pmh-gallery__stage{width:100%;max-width:min(100%,min(72dvh,680px));height:auto;grid-template-columns:34px minmax(0,1fr) 34px;padding:10px}
 body > .pmh__viewer .pmh-gallery__image img{max-height:100%}
 body > .pmh__viewer .pmh-gallery__arrow{width:34px}
 body > .pmh__viewer .pmh-gallery__bottom{max-width:min(100%,min(72dvh,680px))}
}

/* 1.6.0: true square stage, edge-to-edge contained photo, two-up thumbnail rail. */
body > .pmh__viewer .pmh-gallery{min-width:0;min-height:0;gap:12px}
body > .pmh__viewer .pmh-gallery__stage{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;aspect-ratio:1/1;width:min(100%,70dvh);height:auto;max-width:100%;max-height:70dvh;margin:0 auto;padding:0;overflow:hidden;background:#fff}
body > .pmh__viewer .pmh-gallery__image{position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}
body > .pmh__viewer .pmh-gallery__image img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;padding:0;margin:0;object-fit:contain}
body > .pmh__viewer .pmh-gallery__image p{position:absolute;bottom:0;left:0;right:0;margin:0;padding:5px 8px;background:rgba(255,255,255,.88)}
body > .pmh__viewer .pmh-gallery__arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:34px;height:44px;border-radius:6px;background:rgba(255,255,255,.85)}
body > .pmh__viewer [data-pmh-prev].pmh-gallery__arrow{left:4px}
body > .pmh__viewer [data-pmh-next].pmh-gallery__arrow{right:4px}
body > .pmh__viewer .pmh-gallery__bottom{width:100%;max-width:100%;margin:0;min-width:0}
body > .pmh__viewer .pmh-gallery__thumbs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-content:start;overflow-y:auto;overflow-x:hidden;min-height:0;max-height:100%;padding:2px}
body > .pmh__viewer .pmh-gallery__thumb{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:none;width:100%;height:auto;aspect-ratio:1/1;padding:3px;min-width:0;min-height:0}
body > .pmh__viewer .pmh-gallery__thumb img{display:block;width:100%;height:100%;object-fit:contain}
@media(min-width:768px){
 body > .pmh__viewer .pmh-gallery{grid-template-columns:minmax(0,1fr) 192px;grid-template-rows:auto;align-items:start;height:auto;max-height:none;gap:16px}
 body > .pmh__viewer .pmh-gallery__stage{width:min(100%,70dvh);max-width:100%;height:auto;max-height:70dvh;margin:0 auto;padding:0}
 body > .pmh__viewer .pmh-gallery__bottom{width:192px;max-width:100%;align-items:stretch;overflow:visible}
 body > .pmh__viewer .pmh-gallery__thumbs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:calc(70dvh - 26px);padding:2px}
 body > .pmh__viewer .pmh-gallery__thumb{flex:none;width:100%;height:auto;aspect-ratio:1/1}
}

/* 1.6.1: crawlable, accessible lightweight video links; no iframe or remote thumbnail required. */
.pmh .pmh__seo-links{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline;margin:10px 0 0;font-size:12px;line-height:1.5}
.pmh .pmh__seo-links span{color:#64748b}
.pmh .pmh__seo-links a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.pmh .pmh__seo-links a:focus-visible{outline:2px solid #255d99;outline-offset:2px}

/* v1.6.2: Stitch reference-inspired popup refinement. Scoped, mobile first. */
body > .pmh__viewer .pmh__viewer-panel{color:#172033}
body > .pmh__viewer .pmh__viewer-head{min-height:72px;gap:12px;padding:12px 16px;border-bottom:1px solid #e7ecf3}
body > .pmh__viewer .pmh__viewer-symbol{background:#eff6ff;color:#2563eb;border:1px solid #dbeafe;border-radius:12px;width:40px;height:40px;flex:0 0 40px}
body > .pmh__viewer .pmh__viewer-head h3{font-size:17px;letter-spacing:-.025em;font-weight:700}
body > .pmh__viewer .pmh__viewer-heading p{font-size:12px;line-height:1.35}
body > .pmh__viewer .pmh__close{width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:#94a3b8}
body > .pmh__viewer .pmh__close:hover{background:#f1f5f9;color:#334155}
body > .pmh__viewer .pmh__viewer-body{padding:14px 14px 24px}
body > .pmh__viewer .pmh__tabs{margin:0 0 18px;padding:0 0 12px;gap:8px;border-bottom:1px solid #e7ecf3}
body > .pmh__viewer .pmh__tab{border-radius:9px;padding:9px 13px;font-weight:600;color:#475569;background:#f8fafc}
body > .pmh__viewer .pmh__tab.is-active{background:#f1f5f9;border-color:#cbd5e1;color:#172033}
body > .pmh__viewer .pmh-gallery{gap:18px}
body > .pmh__viewer .pmh-gallery__stage{border:0;border-radius:12px;background:#fff;box-shadow:none}
body > .pmh__viewer .pmh-gallery__image{border-radius:10px}
body > .pmh__viewer .pmh-gallery__image img{object-fit:contain}
body > .pmh__viewer .pmh-gallery__arrow{width:40px;height:40px;border-radius:50%;background:#fff;border:1px solid #e2e8f0;box-shadow:0 3px 12px rgba(15,23,42,.13);font-size:24px}
body > .pmh__viewer [data-pmh-prev].pmh-gallery__arrow{left:10px}
body > .pmh__viewer [data-pmh-next].pmh-gallery__arrow{right:10px}
body > .pmh__viewer .pmh-gallery__bottom{gap:10px}
body > .pmh__viewer [data-pmh-counter]{display:block;padding:4px 0;color:#64748b;font-size:12px;font-weight:650}
body > .pmh__viewer .pmh-gallery__thumbs{gap:8px}
body > .pmh__viewer .pmh-gallery__thumb{border:1px solid #e2e8f0;border-radius:11px;padding:4px;background:#f8fafc;transition:border-color .15s,background-color .15s}
body > .pmh__viewer .pmh-gallery__thumb.is-active{border:2px solid #0f172a;background:#fff}
body > .pmh__viewer .pmh-gallery__thumb img{border-radius:7px}
body > .pmh__viewer .pmh-video__item{border-radius:11px}
body > .pmh__viewer .pmh-video__item.is-active{border-color:#334155;background:#f8fafc}
@media(min-width:768px){
 body > .pmh__viewer{padding:3dvh 3vw!important;background:rgba(5,12,30,.78)!important}
 body > .pmh__viewer .pmh__viewer-panel{max-width:1240px;height:94dvh;max-height:960px;border-radius:24px;box-shadow:0 24px 70px rgba(0,0,0,.25)}
 body > .pmh__viewer .pmh__viewer-head{padding:14px 32px;min-height:84px}
 body > .pmh__viewer .pmh__viewer-body{padding:20px 32px 28px}
 body > .pmh__viewer .pmh-gallery{grid-template-columns:minmax(0,1fr) 260px;gap:28px;align-items:start}
 body > .pmh__viewer .pmh-gallery__stage{width:min(100%,70dvh);max-width:100%;margin:0 auto}
 body > .pmh__viewer .pmh-gallery__bottom{width:260px;max-width:100%}
 body > .pmh__viewer .pmh-gallery__thumbs{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:calc(70dvh - 32px);overflow-y:auto}
 body > .pmh__viewer .pmh-gallery__thumb{aspect-ratio:1/1}
}
@media(max-width:767px){
 body > .pmh__viewer .pmh-gallery__stage{width:min(100%,65dvh);max-height:65dvh}
 body > .pmh__viewer .pmh-gallery__thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}
 body > .pmh__viewer .pmh-gallery__thumb{aspect-ratio:1/1}
}

/* v1.6.3: photo-group selector in popup header; isolated to PMH */
body > .pmh__viewer .pmh__group-picker{position:relative;display:flex;align-items:center;min-width:0;max-width:38%;flex:0 1 220px}
body > .pmh__viewer .pmh__group-picker[hidden]{display:none!important}
body > .pmh__viewer .pmh__group-picker label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
body > .pmh__viewer .pmh__group-picker select{width:100%;min-width:0;height:38px;appearance:none;-webkit-appearance:none;border:1px solid #d9e2ed;border-radius:9px;background:#f8fafc;padding:0 28px 0 11px;color:#24334b;font-size:12px;font-weight:650;cursor:pointer;text-overflow:ellipsis}
body > .pmh__viewer .pmh__group-picker .fa{position:absolute;right:11px;pointer-events:none;font-size:10px;color:#64748b}
body > .pmh__viewer .pmh__group-picker select:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
@media(max-width:767px){body > .pmh__viewer .pmh__group-picker{max-width:42%;flex-basis:150px}body > .pmh__viewer .pmh__group-picker select{height:36px;font-size:11px;padding-left:8px}}

/* v1.6.4: selector belongs to the modal header, not the gallery content */
body > .pmh__viewer .pmh__viewer-head{display:flex;align-items:center;flex-wrap:nowrap}
body > .pmh__viewer .pmh__group-picker{margin-left:auto;flex:0 1 220px;max-width:38%;width:auto}
body > .pmh__viewer .pmh__group-picker select{display:block;width:100%;max-width:100%;box-shadow:none}
body > .pmh__viewer .pmh__close{flex:0 0 40px;margin-left:4px}
body > .pmh__viewer .pmh__viewer-body{margin-top:0}
@media(max-width:767px){body > .pmh__viewer .pmh__viewer-heading p{display:none}body > .pmh__viewer .pmh__group-picker{flex:0 1 138px;max-width:45%}body > .pmh__viewer .pmh__viewer-head{gap:7px;padding:10px}body > .pmh__viewer .pmh__close{flex-basis:36px;width:36px;height:36px}}

/* v1.6.5: consistent header typography and CSS-drawn dropdown chevron. */
body > .pmh__viewer .pmh__group-picker select{font-family:inherit;font-size:13px;font-weight:600;line-height:1.3;letter-spacing:normal;color:#172033;border-color:#dce4ed;background:#f8fafc;padding-right:34px}
body > .pmh__viewer .pmh__group-picker .pmh__picker-arrow{position:absolute;right:14px;top:50%;width:8px;height:8px;border-right:2px solid #64748b;border-bottom:2px solid #64748b;transform:translateY(-70%) rotate(45deg);pointer-events:none}
body > .pmh__viewer .pmh__viewer-heading h3{font-family:inherit;letter-spacing:-.02em}
@media(max-width:767px){body > .pmh__viewer .pmh__group-picker select{font-size:12px}}

/* v1.6.6: custom header menu avoids Journal/native select arrows and typography overrides */
body > .pmh__viewer .pmh__group-picker{position:relative;z-index:5}
body > .pmh__viewer .pmh__group-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;height:40px;margin:0;padding:0 13px;border:1px solid #dce4ed;border-radius:9px;background:#f8fafc;color:#172033;font-size:13px;font-weight:600;line-height:1.3;font-family:inherit;text-align:left;cursor:pointer;box-shadow:none}
body > .pmh__viewer .pmh__group-trigger span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body > .pmh__viewer .pmh__group-trigger .pmh__picker-arrow{position:static;display:block;flex:0 0 8px;transform:translateY(-2px) rotate(45deg);border-right:2px solid #64748b;border-bottom:2px solid #64748b}
body > .pmh__viewer .pmh__group-menu{position:absolute;top:calc(100% + 6px);right:0;min-width:100%;max-width:min(80vw,320px);max-height:260px;overflow:auto;padding:5px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(15,23,42,.14)}
body > .pmh__viewer .pmh__group-menu[hidden]{display:none!important}
body > .pmh__viewer .pmh__group-option{display:block;width:100%;min-height:40px;padding:9px 11px;border:0;border-radius:6px;background:#fff;color:#24334b;text-align:left;font-size:13px;font-weight:500;cursor:pointer}
body > .pmh__viewer .pmh__group-option:hover,body > .pmh__viewer .pmh__group-option[aria-current=true]{background:#f1f5f9;color:#0f172a;font-weight:650}
body > .pmh__viewer .pmh__group-trigger:focus-visible,body > .pmh__viewer .pmh__group-option:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
@media(max-width:767px){body > .pmh__viewer .pmh__group-trigger{height:36px;padding:0 9px;font-size:12px}}

/* 1.6.10: mobile gallery uses an independent vertical thumbnail scroller. */
@media(max-width:767px){
 body > .pmh__viewer.pmh__viewer--gallery .pmh__viewer-panel{height:100%;max-height:100%;overflow:hidden}
 body > .pmh__viewer.pmh__viewer--gallery .pmh__viewer-body{display:flex;flex-direction:column;flex:1 1 0;min-height:0;overflow:hidden;overscroll-behavior:none;padding:10px 12px 12px}
 body > .pmh__viewer.pmh__viewer--gallery .pmh__group{flex:1 1 0;min-height:0}
 body > .pmh__viewer.pmh__viewer--gallery .pmh-gallery{display:flex;flex-direction:column;height:100%;min-height:0;gap:10px}
 body > .pmh__viewer.pmh__viewer--gallery .pmh-gallery__stage{flex:0 0 auto;width:min(100%,46dvh);max-width:100%;max-height:46dvh;aspect-ratio:1/1;height:auto;overflow:hidden}
 body > .pmh__viewer.pmh__viewer--gallery .pmh-gallery__bottom{display:flex;flex-direction:column;flex:1 1 0;min-height:0;width:100%;max-width:100%;overflow:hidden;gap:7px}
 body > .pmh__viewer.pmh__viewer--gallery .pmh-gallery__thumbs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:1 1 0;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:2px 4px 8px}
 body > .pmh__viewer.pmh__viewer--gallery .pmh-gallery__thumb{width:100%;height:auto;aspect-ratio:1/1}
}

/* v1.6.11: each mobile thumbnail owns one definite grid row; prevent image/button overlap. */
@media(max-width:767px){
 body > .pmh__viewer.pmh__viewer--gallery .pmh-gallery__thumbs{grid-auto-rows:max-content;align-content:start;row-gap:9px;min-height:0;}
 body > .pmh__viewer.pmh__viewer--gallery .pmh-gallery__thumb{position:relative;display:block;box-sizing:border-box;align-self:start;min-width:0;min-height:0;width:100%;height:auto;aspect-ratio:1/1;margin:0;padding:4px;overflow:hidden;flex:none;}
 body > .pmh__viewer.pmh__viewer--gallery .pmh-gallery__thumb img{position:absolute;inset:4px;display:block;width:calc(100% - 8px);height:calc(100% - 8px);max-width:none;max-height:none;margin:0;object-fit:contain;}
}
