/* The viewer is loaded only on public car detail pages. */
body.tm-ui .gallery-open{position:relative;display:block;width:100%;height:100%;padding:0;border:0;border-radius:inherit;background:transparent;cursor:zoom-in;overflow:hidden}
body.tm-ui .gallery-open:focus-visible{outline:3px solid #246e96;outline-offset:-4px}
body.tm-ui .gallery-open-hint{position:absolute;bottom:12px;right:12px;display:flex;align-items:center;gap:8px;padding:8px 12px;background:#202725;color:#fff;border-radius:8px;font-size:13px;font-weight:550;pointer-events:none}
body.tm-ui .tm-lightbox{position:fixed;inset:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#101412;color:#fff;overflow:hidden;overscroll-behavior:contain;font-family:inherit}
.tm-lightbox::backdrop{background:#0c100f}
body.tm-ui .tm-lightbox[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
body.tm-ui .tm-lightbox-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;padding-top:max(12px,env(safe-area-inset-top));padding-right:max(20px,env(safe-area-inset-right));padding-left:max(20px,env(safe-area-inset-left));z-index:2}
body.tm-ui .tm-lightbox-counter{font-size:15px;font-weight:550;font-variant-numeric:tabular-nums}
body.tm-ui .tm-lightbox-actions{display:flex;gap:8px}
body.tm-ui .tm-lightbox button{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;min-width:48px;padding:0;border:1px solid #5e6562;border-radius:9px;background:#252b28;color:#fff;cursor:pointer;touch-action:manipulation}
body.tm-ui .tm-lightbox button:focus-visible{outline:3px solid #f2cb56;outline-offset:3px}
body.tm-ui .tm-lightbox button:active:not(:disabled){transform:none}
body.tm-ui .tm-lightbox button:disabled{opacity:.4;cursor:default}
body.tm-ui .tm-lightbox [hidden]{display:none!important}
body.tm-ui .tm-lightbox-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:0;margin:0 80px;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none}
body.tm-ui .tm-lightbox-image{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;transform-origin:center;cursor:zoom-in;user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
body.tm-ui .tm-lightbox-stage.is-zoomed .tm-lightbox-image{cursor:grab}
body.tm-ui .tm-lightbox-stage.is-zoomed:active .tm-lightbox-image{cursor:grabbing}
body.tm-ui .tm-lightbox[data-loading=true] .tm-lightbox-image,body.tm-ui .tm-lightbox[data-loading=error] .tm-lightbox-image{visibility:hidden}
body.tm-ui .tm-lightbox-message{position:absolute;inset:auto 16px;margin:0;text-align:center;color:#e1e5e2;font-size:15px;pointer-events:none}
body.tm-ui .tm-lightbox-message:empty{display:none}
body.tm-ui .tm-lightbox-prev,body.tm-ui .tm-lightbox-next{position:absolute;top:calc(50% - 24px);transform:none;z-index:2}
body.tm-ui .tm-lightbox-prev{left:max(16px,env(safe-area-inset-left))}
body.tm-ui .tm-lightbox-next{right:max(16px,env(safe-area-inset-right))}
body.tm-ui .tm-lightbox-help{margin:0;padding:14px 20px max(16px,env(safe-area-inset-bottom));text-align:center;color:#c4ccc7;font-size:13px;line-height:1.4}
body.tm-ui .tm-lightbox-help-touch{display:none}
@media(hover:none){body.tm-ui .tm-lightbox-help-desktop{display:none}body.tm-ui .tm-lightbox-help-touch{display:inline}}
@media(hover:hover){body.tm-ui .tm-lightbox button:not(:disabled):hover{background:#3a433e;border-color:#c4ccc7}body.tm-ui .gallery-open:hover .gallery-open-hint{background:#35453b}}
@media(max-width:767px){body.tm-ui .gallery-open-hint{padding:7px 9px;bottom:8px;right:8px;font-size:12px}body.tm-ui .tm-lightbox-toolbar{padding:8px 12px;padding-top:max(8px,env(safe-area-inset-top))}body.tm-ui .tm-lightbox-stage{margin:0}body.tm-ui .tm-lightbox-prev,body.tm-ui .tm-lightbox-next{top:auto;bottom:calc(60px + env(safe-area-inset-bottom));transform:none}body.tm-ui .tm-lightbox-prev{left:max(12px,env(safe-area-inset-left))}body.tm-ui .tm-lightbox-next{right:max(12px,env(safe-area-inset-right))}body.tm-ui .tm-lightbox-help{padding:64px 12px max(12px,env(safe-area-inset-bottom));font-size:12px}}
@media(max-height:480px){body.tm-ui .tm-lightbox-toolbar{padding-top:4px;padding-bottom:4px}body.tm-ui .tm-lightbox-help{padding:6px 68px;font-size:11px}body.tm-ui .tm-lightbox-stage{margin:0 68px}body.tm-ui .tm-lightbox-prev,body.tm-ui .tm-lightbox-next{top:calc(50% - 24px);bottom:auto;transform:none}}
