.ui-photo-viewer{position:fixed;inset:0;z-index:var(--photo-viewer-layer);display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:var(--photo-viewer-bg);color:var(--photo-viewer-text);outline:none;animation:ui-photo-viewer-in var(--photo-viewer-fade) ease-out}@keyframes ui-photo-viewer-in{0%{opacity:0}}@media (prefers-reduced-motion:reduce){.ui-photo-viewer{animation:none}}.ui-photo-viewer__counter{position:absolute;inset-block-start:var(--photo-viewer-counter-top);inset-inline-start:var(--photo-viewer-edge-phone);margin:0;font:var(--font-photo-viewer-counter)}.ui-photo-viewer__round{display:inline-flex;align-items:center;justify-content:center;inline-size:var(--photo-viewer-control-phone);block-size:var(--photo-viewer-control-phone);padding:0;border:0;border-radius:9999px;background-color:var(--photo-viewer-control-bg);color:inherit;cursor:pointer}.ui-photo-viewer__round:focus-visible,.ui-photo-viewer__thumb:focus-visible{outline:var(--photo-viewer-focus) solid var(--photo-viewer-text);outline-offset:var(--photo-viewer-focus)}.ui-photo-viewer__round svg{inline-size:var(--photo-viewer-control-icon);block-size:var(--photo-viewer-control-icon)}.ui-photo-viewer__close{position:absolute;inset-block-start:var(--photo-viewer-close-top-phone);inset-inline-end:var(--photo-viewer-edge-phone)}.ui-photo-viewer__stage{display:flex;flex-direction:column;align-items:flex-start;gap:var(--photo-viewer-stage-gap);inline-size:100%;margin:0}.ui-photo-viewer__photo{display:block;inline-size:100%;max-block-size:var(--photo-viewer-photo-height-phone);object-fit:contain}.ui-photo-viewer__caption{padding-inline:var(--photo-viewer-edge-phone)}.ui-photo-viewer__broken,.ui-photo-viewer__caption{color:var(--photo-viewer-caption);font:var(--font-photo-viewer-caption)}.ui-photo-viewer__broken{inline-size:100%;margin:0;padding:var(--photo-viewer-broken-block) var(--photo-viewer-edge-phone);text-align:center}.ui-photo-viewer__step,.ui-photo-viewer__thumbs{display:none}@media (hover:hover){.ui-photo-viewer__round:hover{background-color:var(--photo-viewer-control-bg-hover)}}@media (min-width:640px){.ui-photo-viewer{justify-content:flex-start;padding-block-start:var(--photo-viewer-stage-top)}.ui-photo-viewer__counter{inset-inline-start:var(--photo-viewer-edge)}.ui-photo-viewer__round{inline-size:var(--photo-viewer-control);block-size:var(--photo-viewer-control)}.ui-photo-viewer__close{inset-block-start:var(--photo-viewer-close-top);inset-inline-end:var(--photo-viewer-edge)}.ui-photo-viewer__stage{align-items:center;inline-size:auto;max-inline-size:min(var(--photo-viewer-photo-width),calc(100vw - var(--photo-viewer-side-room)))}.ui-photo-viewer__photo{inline-size:auto;max-inline-size:100%;max-block-size:min(var(--photo-viewer-photo-height),calc(100vh - var(--photo-viewer-stage-top) - var(--photo-viewer-below-room)));border-radius:var(--radius-row)}.ui-photo-viewer__caption{padding-inline:0;text-align:center}.ui-photo-viewer__step{position:absolute;inset-block-start:50%;display:inline-flex;inline-size:var(--photo-viewer-step);block-size:var(--photo-viewer-step);translate:0 -50%}.ui-photo-viewer__step--previous{inset-inline-start:var(--photo-viewer-edge)}.ui-photo-viewer__step--next{inset-inline-end:var(--photo-viewer-edge)}[dir=rtl] .ui-photo-viewer__step svg{scale:-1 1}.ui-photo-viewer__thumbs{position:absolute;inset-block-end:var(--photo-viewer-thumbs-end);inset-inline:0;display:flex;justify-content:center;gap:var(--photo-viewer-thumbs-gap);margin:0;padding:0;list-style:none}.ui-photo-viewer__thumb{display:block;overflow:hidden;inline-size:var(--photo-viewer-thumb-width);block-size:var(--photo-viewer-thumb-height);padding:0;border:0;border-radius:var(--radius-option-thumb);background-color:var(--photo-viewer-control-bg);opacity:var(--photo-viewer-thumb-rest);cursor:pointer}.ui-photo-viewer__thumb[aria-current=true]{opacity:1}.ui-photo-viewer__thumb img{inline-size:100%;block-size:100%;object-fit:cover}}@media (min-width:640px) and (hover:hover){.ui-photo-viewer__thumb:hover{opacity:1}}