.rr-machines .product>.product-gallery{padding:0;border:0;background:#fbe1ee;border-radius:0;overflow:visible}
.rr-machines .product:nth-child(3n+2)>.product-gallery{background:#eef2d6;border:0;border-radius:0}
.rr-machines .product:nth-child(3n)>.product-gallery{background:#fff0bb;border:0;border-radius:0}
.product .product-photo{position:relative;display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;border-radius:0}
.product .product-photo>img{display:block;width:100%;height:315px;padding:20px 30px 8px;background:transparent;object-fit:contain;transform:none}
.product-zoom{position:absolute;top:14px;right:14px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#fffaf1;color:#573c6b;font-size:20px}
.product-photos{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:12px;padding:8px 24px 18px}
.product-thumbnails{display:flex;flex-wrap:wrap;gap:8px}
.product .product-thumb{flex-shrink:0;border:2px solid transparent;border-radius:10px;padding:3px;background:#fffaf1;cursor:pointer;width:52px;height:52px}
.product .product-thumb[aria-pressed=true]{border-color:#a92e8c}
.product .product-thumb>img{width:100%;height:100%;object-fit:contain;background:transparent;padding:0;transform:none}
.product-photo-count{font-size:12px;color:#634b72;white-space:nowrap}
.gallery-open{overflow:hidden}
#photo-dialog{width:min(900px,94vw);max-width:94vw;max-height:94dvh;overflow:auto;padding:24px;border:2px solid #d6c2e3;border-radius:24px;background:#fffaf1;color:#252238;box-shadow:0 20px 70px #10051b55}
#photo-dialog::backdrop{background:#191025bb}
#photo-dialog h2{font-size:22px;line-height:1.3;margin:0 50px 18px 0}
#photo-dialog .photo-close{position:absolute;top:14px;right:14px;width:40px;height:40px;border:0;border-radius:50%;font-size:28px;background:#efe6fa;color:#573c6b;cursor:pointer}
.photo-viewport{position:relative;display:grid;place-items:center;min-height:220px;background:#f1e9f4;border-radius:16px}
#photo-dialog .photo-viewport>img{display:block;width:100%;height:min(58dvh,620px);padding:18px 52px;object-fit:contain;touch-action:pan-y}
#photo-dialog .photo-viewport>img:not([src]){visibility:hidden}
.photo-prev,.photo-next{position:absolute;top:calc(50% - 23px);z-index:1;width:40px;height:46px;border:1px solid #d6c2e3;border-radius:12px;background:#fffaf1;color:#573c6b;font-size:32px;cursor:pointer}
.photo-prev{left:8px}.photo-next{right:8px}
.photo-position{text-align:center;font-size:13px;min-height:20px;margin:12px 0}
.photo-thumbnails{display:flex;gap:10px;justify-content:center}
.photo-thumbnails button{width:64px;height:64px;padding:4px;background:#f1e9f4;border:2px solid transparent;border-radius:10px;cursor:pointer}
.photo-thumbnails button[aria-pressed=true]{border-color:#a92e8c}
.photo-thumbnails img{display:block;width:100%;height:100%;object-fit:contain}
.photo-retry{display:block;margin:0 auto 12px;padding:10px 18px;background:#efe6fa;color:#573c6b;border:1px solid #d6c2e3;border-radius:10px;cursor:pointer}
.photo-retry[hidden]{display:none}
.product-photo:focus-visible,.product-thumb:focus-visible,#photo-dialog button:focus-visible{outline:3px solid #8a4bba;outline-offset:3px}
@media(max-width:600px){.product .product-photo>img{height:280px;padding:18px 25px 8px}.product-photos{padding:8px 20px 16px}#photo-dialog{padding:18px;width:94vw}#photo-dialog h2{font-size:18px;margin-right:42px}.photo-viewport{min-height:180px}#photo-dialog .photo-viewport>img{height:min(52dvh,360px);padding:12px 40px}.photo-prev,.photo-next{width:34px;height:42px;top:calc(50% - 21px)}.photo-prev{left:4px}.photo-next{right:4px}}
