.ui-photo{flex-direction:column;gap:4px;min-width:0;margin:0;display:flex}.ui-photo-frame{aspect-ratio:3/2;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper-sunk);width:100%;color:inherit;font:inherit;padding:0;display:block;position:relative;overflow:hidden}button.ui-photo-frame{cursor:zoom-in}button.ui-photo-frame:hover{border-color:var(--line-strong)}button.ui-photo-frame:focus-visible{box-shadow:var(--focus-ring);outline:none}.ui-photo-frame>img{object-fit:contain;opacity:0;width:100%;height:100%;transition:opacity .22s var(--ease);position:absolute;inset:0}.ui-photo-frame>img[data-loaded=true]{opacity:1}.ui-photo[data-kind=illustration] .ui-photo-frame,.ui-photo[data-kind=herbarium] .ui-photo-frame{background:var(--paper-raised)}.ui-photo[data-kind=illustration] .ui-photo-frame>img,.ui-photo[data-kind=herbarium] .ui-photo-frame>img{width:auto;max-width:calc(100% - 16px);height:auto;max-height:calc(100% - 16px);box-shadow:0 0 0 1px var(--line), 0 1px 3px #322a1924;margin:auto;inset:8px}.ui-photo-empty{color:var(--ink-3);font-size:var(--text-sm);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:0 18px;line-height:1.35;display:flex;position:absolute;inset:0}.ui-photo-empty>.ui-icon,.ui-photo-empty>svg{color:var(--ink-4)}.ui-photo-caption{flex-direction:column;gap:2px;min-width:0;display:flex}.ui-photo-caveat{color:var(--ink-2);font-size:var(--text-sm);line-height:1.35}.ui-photo-caveat:before{content:"";background:var(--straw);vertical-align:1px;border-radius:50%;width:6px;height:6px;margin-right:6px;display:inline-block}.ui-photo-credit{min-width:0;min-height:15px;color:var(--ink-3);font-size:var(--text-xs);white-space:nowrap;line-height:1.4;display:flex}.ui-photo-credit>*{flex:none}.ui-photo-credit>.ui-photo-credit-author{text-overflow:ellipsis;flex:0 auto;min-width:0;overflow:hidden}.ui-photo-credit a{color:inherit;text-decoration:underline;-webkit-text-decoration-color:var(--line-strong);text-decoration-color:var(--line-strong);text-underline-offset:2px}.ui-photo-credit a:hover{color:var(--ink);text-decoration-color:currentColor}.ui-photo-credit a:focus-visible{box-shadow:var(--focus-ring);border-radius:2px;outline:none}.ui-photo-thumb{border-radius:var(--radius-sm);background:var(--paper-sunk);box-shadow:inset 0 0 0 1px var(--line);flex:none;display:inline-block;overflow:hidden}.ui-photo-thumb>img{object-fit:cover;width:100%;height:100%;display:block}.ui-photo-viewer{z-index:900;animation:ui-photo-in .16s var(--ease);background:#25231eb8;justify-content:center;align-items:center;padding:32px;display:flex;position:fixed;inset:0}.ui-photo-viewer-figure{border-radius:var(--radius-lg);background:var(--paper-raised);max-width:min(900px,100%);max-height:100%;box-shadow:var(--shadow-pop);flex-direction:column;gap:0;margin:0;display:flex;overflow:hidden}.ui-photo-viewer-figure>img{object-fit:contain;background:var(--paper-sunk);cursor:zoom-out;width:auto;max-width:100%;height:auto;max-height:calc(100vh - 126px);display:block}.ui-photo-viewer-figure[data-kind=illustration]>img,.ui-photo-viewer-figure[data-kind=herbarium]>img{background:var(--paper-raised);box-sizing:border-box;padding:14px}.ui-photo-viewer-figure>figcaption{flex-direction:column;gap:2px;min-width:0;padding:9px 14px 11px;display:flex}.ui-photo-viewer-name{color:var(--ink);font-size:var(--text-md);font-weight:600}.ui-photo-viewer-close{background:var(--paper-raised);box-shadow:var(--shadow-pop);border-radius:50%;position:absolute;top:14px;right:14px}@keyframes ui-photo-in{0%{opacity:0}}.ui-photo-tip{white-space:normal;flex-direction:column;gap:4px;width:220px;padding:3px 0 1px;display:flex}.ui-photo-tip>img{object-fit:contain;background:#ffffff14;border-radius:2px;width:100%;height:auto;max-height:220px;display:block}.ui-photo-tip>span:first-child{white-space:pre-line}.ui-photo-tip-credit{opacity:.72;font-size:var(--text-xs)}@media (prefers-reduced-motion:reduce){.ui-photo-frame>img{transition:none}.ui-photo-viewer{animation:none}}
