/* Product-detail only; original product info and purchase flow are untouched. */
#ny-gallery {display:grid;grid-template-columns:76px minmax(0,1fr);gap:14px;align-items:start;min-width:0;}
#ny-gallery .ny-gallery-main {min-width:0;}
#ny-gallery .ny-gallery-thumbs {display:flex;flex-direction:column;gap:9px;max-height:650px;overflow:auto;scrollbar-width:thin;padding:2px;}
#ny-gallery .ny-gallery-thumb {display:block;flex:none;width:100%;aspect-ratio:3/4;padding:2px;border:1px solid #e7dbd4;background:#fff;border-radius:4px;overflow:hidden;cursor:pointer;}
#ny-gallery .ny-gallery-thumb img {display:block;width:100%;height:100%;object-fit:cover;}
#ny-gallery .ny-gallery-thumb[aria-current="true"] {border:2px solid #936a58;}
#ny-gallery .ny-gallery-frame {position:relative;overflow:hidden;border-radius:5px;background:#f8f5f3;}
#ny-gallery .ny-gallery-stage {display:block;width:100%;aspect-ratio:3/4;max-height:650px;overflow:hidden;padding:0;border:0;background:#f8f5f3;cursor:zoom-in;touch-action:pan-y;}
#ny-gallery .ny-gallery-stage img {width:100%;height:100%;max-height:none;object-fit:contain;display:block;transform:scale(1);transform-origin:50% 50%;transition:transform .2s ease;user-select:none;pointer-events:none;}
@media (hover:hover) and (pointer:fine) {#ny-gallery .ny-gallery-stage.ny-hover-zoom img{transform:scale(2.2);transition:transform .16s ease;}}
.ny-gallery-arrow,.ny-gallery-expand,.ny-lightbox-btn {border:1px solid #e7dbd4;background:rgba(255,255,255,.96);color:#352c28;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.ny-gallery-arrow {position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;border-radius:50%;font-size:16px;z-index:2;}
.ny-gallery-arrow.ny-prev {left:10px}.ny-gallery-arrow.ny-next {right:10px}
.ny-gallery-expand {position:absolute;bottom:12px;right:12px;gap:6px;border-radius:24px;padding:8px 13px;font-size:12px;z-index:2;}
.ny-gallery-count {position:absolute;bottom:12px;left:12px;background:#fff;color:#65534b;border-radius:20px;padding:6px 11px;font-size:12px;pointer-events:none;}
.ny-gallery-hint {font-size:12px;color:#89756b;margin-top:10px;text-align:center;}
#ny-gallery button:focus-visible,#ny-gallery-lightbox button:focus-visible {outline:2px solid #936a58;outline-offset:2px;}
#ny-gallery-lightbox {position:fixed;inset:0;margin:auto;max-width:96vw;width:min(1050px,96vw);max-height:94dvh;border:0;border-radius:10px;padding:14px;background:#fff;color:#352c28;overflow:auto;}
#ny-gallery-lightbox::backdrop {background:rgba(28,23,21,.82);}
.ny-lightbox-head {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;}
.ny-lightbox-tools {display:flex;gap:6px;align-items:center;}
.ny-lightbox-btn {width:38px;height:38px;border-radius:5px;font-size:20px;flex-shrink:0;}
.ny-lightbox-stage {position:relative;display:block;width:100%;height:min(72dvh,780px);overflow:hidden;padding:0;border:0;background:#f8f5f3;cursor:zoom-in;touch-action:pan-y;}
.ny-lightbox-stage img {display:block;width:100%;height:100%;object-fit:contain;transform:scale(1);transform-origin:50% 50%;pointer-events:none;user-select:none;transition:transform .18s ease;}
.ny-lightbox-stage.ny-zoomed {cursor:zoom-out;touch-action:none;}
.ny-lightbox-stage.ny-zoomed img {transform:scale(2.4);transition:none;}
.ny-lightbox-foot {display:flex;justify-content:center;align-items:center;gap:16px;margin-top:10px;}
@media(max-width:767px){#ny-gallery{grid-template-columns:minmax(0,1fr);gap:10px}#ny-gallery .ny-gallery-thumbs{order:2;flex-direction:row;max-height:none;overflow-x:auto}#ny-gallery .ny-gallery-thumb{width:64px}#ny-gallery .ny-gallery-stage{max-height:560px}.ny-gallery-hint{font-size:11px}.ny-lightbox-stage{height:65dvh}}
@media(prefers-reduced-motion:reduce){#ny-gallery img,#ny-gallery-lightbox img{transition:none!important}}
