.studio-product-card .goodcard .mainphoto{padding:0!important;margin:0 0 24px!important;background:#f2f2f2;border-radius:12px;overflow:hidden;}
.studio-photo-trigger{position:relative;display:block;width:100%;aspect-ratio:1;border:0;padding:0;background:#f2f2f2;cursor:zoom-in;}
.studio-product-card .mainphoto .studio-photo-trigger>img{width:100%;height:100%;display:block;object-fit:contain;max-height:none;}
.studio-photo-hint{position:absolute;bottom:18px;right:18px;font:13px/1.4 Arial;color:#494949;background:#ffffffde;border:1px solid #ddd;border-radius:30px;padding:8px 14px;}
.studio-photo-dialog{width:calc(100vw - 40px);max-width:1440px;height:calc(100svh - 40px);max-height:none;padding:0;border:0;border-radius:12px;background:#f2f2f2;overflow:hidden;}
.studio-photo-dialog::backdrop{background:#000b;}
.studio-photo-close{position:absolute;z-index:2;top:14px;right:14px;border:1px solid #ddd;background:#fff;width:44px;height:44px;border-radius:50%;font:30px/1 Arial;cursor:pointer;color:#333;}
.studio-photo-view{height:100%;width:100%;overflow:auto;display:flex;align-items:center;justify-content:center;}
.studio-photo-view>img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;cursor:zoom-in;}
.studio-photo-zoom-hint{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#ffffffe0;border-radius:30px;padding:7px 14px;font:12px Arial;color:#555;pointer-events:none;}
.studio-zoomed .studio-photo-view{display:block;}
.studio-zoomed .studio-photo-view>img{width:1200px;max-width:none;height:1200px;max-height:none;cursor:zoom-out;margin:0 auto;}
@media(max-width:600px){.studio-photo-dialog{width:calc(100vw - 16px);height:calc(100svh - 16px);}.studio-photo-hint{font-size:12px;bottom:12px;right:12px;}.studio-photo-zoom-hint{font-size:11px;}}

.studio-photo-thumbs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:12px;background:#fff;}
.studio-photo-thumbs[hidden]{display:none;}
.studio-photo-thumb{display:block;min-width:0;padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;background:#f2f2f2;cursor:pointer;transition:border-color .2s;}
.studio-photo-thumb[aria-pressed="true"]{border-color:#9c622e;}
.studio-photo-thumb:hover{border-color:#bb966e;}
.studio-photo-thumb:focus-visible{outline:2px solid #9c622e;outline-offset:2px;}
.studio-photo-thumb img{display:block!important;float:none!important;width:100%!important;height:auto!important;max-width:none!important;margin:0!important;aspect-ratio:1;object-fit:contain;}
.studio-photo-prev,.studio-photo-next{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:44px;height:44px;border:1px solid #ddd;border-radius:50%;background:#fffffff0;color:#333;font:34px/1 Arial;cursor:pointer;}
.studio-photo-prev{left:16px;}.studio-photo-next{right:16px;}
.studio-photo-prev[hidden],.studio-photo-next[hidden]{display:none;}
.studio-photo-counter{position:absolute;top:20px;left:20px;border-radius:20px;padding:7px 12px;background:#ffffffe0;font:14px Arial;color:#444;}
@media(max-width:600px){.studio-photo-thumbs{padding:8px;gap:5px;}.studio-photo-prev{left:8px;}.studio-photo-next{right:8px;}.studio-photo-prev,.studio-photo-next{width:38px;height:38px;}}

.studio-product-card .goodcard .mainphoto{margin-bottom:0!important;}.studio-photo-thumbs{margin-bottom:24px;}
