.detailphoto{cursor:zoom-in}.detailphoto:focus-visible{outline:3px solid #587b62;outline-offset:4px}.cn-photo-zoom{width:min(1500px,96vw);height:94dvh;max-width:96vw;max-height:94dvh;box-sizing:border-box;padding:14px;border:0;border-radius:14px;color:#20392f;background:#f5f5ef;overflow:hidden}.cn-photo-zoom[open]{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:10px}.cn-photo-zoom::backdrop{background:rgba(0,0,0,.86)}.cn-zoom-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.cn-zoom-head strong{font-size:15px;line-height:1.4;max-height:3em;overflow:auto}.cn-photo-zoom button,.cn-photo-zoom a{font:inherit}.cn-zoom-close{font-size:28px!important;line-height:1;border:0;border-radius:6px;padding:4px 12px;background:white;cursor:pointer}.cn-zoom-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cn-zoom-toolbar button{border:1px solid #b7c4b8;border-radius:7px;padding:8px 13px;background:white;color:#20392f;cursor:pointer;min-height:40px}.cn-zoom-toolbar button[data-zoom=in],.cn-zoom-toolbar button[data-zoom=out]{font-size:23px;line-height:1;font-weight:700;min-width:42px}.cn-zoom-toolbar output{min-width:58px;text-align:center;font-variant-numeric:tabular-nums}.cn-zoom-original{color:#315940;font-size:13px!important;padding:8px}.cn-zoom-canvas{position:relative;overflow:hidden;min-height:100px;background:white;border-radius:8px;touch-action:none;cursor:grab;user-select:none}.cn-zoom-canvas:active{cursor:grabbing}.cn-zoom-canvas img{position:absolute;left:50%;top:50%;max-width:none!important;max-height:none!important;object-fit:contain;transform-origin:center;pointer-events:none;will-change:transform}.cn-zoom-message{position:absolute;inset:40% 15px auto;text-align:center}.cn-zoom-help{font-size:12px;line-height:1.4;text-align:center;margin:0;color:#526358}@media(max-width:600px){.cn-photo-zoom{padding:10px;width:98vw;max-width:98vw;height:96dvh;max-height:96dvh}.cn-zoom-head strong{font-size:12px}.cn-zoom-toolbar{gap:5px}.cn-zoom-toolbar button{padding:7px 9px;font-size:12px}.cn-zoom-original{font-size:12px!important}.cn-zoom-help{font-size:11px}}

/* Keep small supplier files at their native size. Preserve the full garment in either orientation. */
.photo img, .photogallery img, img.detailphoto { object-fit: scale-down; object-position: center; }
.detailgrid > div { min-width: 0; }
img.detailphoto { display: block; height: auto; aspect-ratio: auto 4 / 5; max-height: min(70dvh, 620px); }
img.detailphoto[hidden] { display: none; }
@media (max-width: 700px) {
  img.detailphoto { max-height: min(56dvh, 500px); }
}
.photogallery .photo-video { display: grid; place-items: center; width: 60px; height: 70px; border: 1px solid #d7ddce; border-radius: 6px; font-size: 13px; }
.photogallery [hidden] { display: none; }

.photogallery .photo-unavailable { display: block; font-size: 10px; line-height: 1.15; color: #566258; overflow-wrap: anywhere; }
.cn-zoom-dimensions { font-size: 13px; color: #526358; }

/* Keep the original interactive image, hit target and alternative text in place. */
.cn-optical-parent { position: relative; }
.cn-optical-raster { position: absolute; display: block; pointer-events: none; max-width: none; max-height: none; transform-origin: center; }
img[data-optical-painted] { opacity: 0; }
.cn-optical-raster:has(+ img:focus-visible) { outline: 3px solid #587b62; outline-offset: 4px; }
@media print {
  .cn-optical-raster { display: none; }
  img[data-optical-painted] { opacity: 1; }
}
