/* Product screenshots that open larger on click or tap (js/zoom.js) */
img[data-zoom] { cursor: zoom-in; }
img[data-zoom]:focus-visible { outline: 3px solid var(--ts-orange); outline-offset: 3px; }
.ts-zoom {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    touch-action: pan-x pan-y pinch-zoom;
}
.ts-zoom::backdrop { background: rgba(18, 21, 28, 0.82); }
.ts-zoom img {
    display: block;
    margin: 56px auto 24px;
    width: min(96vw, 2000px);
    height: auto;
    background: #FFFFFF;
    border-radius: 10px;
    cursor: zoom-out;
}
.ts-zoom-close {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--ts-ink);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
html.ts-zoom-open { overflow: hidden; }


/* Phone: the image opens at a readable size (set in js/zoom.js), the dialog scrolls in both
   directions, pinch-zoom stays on and the close button is larger and stays in the corner. */
@media (max-width: 700px) {
    .ts-zoom img {
        max-width: none;
        margin: 64px 0 24px;
        border-radius: 0;
        cursor: default;
        touch-action: pan-x pan-y pinch-zoom;
    }
    .ts-zoom-close { top: 8px; right: 8px; width: 48px; height: 48px; transform-origin: top right; box-shadow: 0 2px 10px rgba(18, 21, 28, 0.35); }
}
