#photosView{background:#fff;color:#171719;padding:48px 0 28px}
#photosView [hidden]{display:none!important}
.photos-head{display:flex;align-items:center;gap:9px;padding:8px 16px;min-height:52px}
.photos-head h1{margin:0;font-size:28px;letter-spacing:-.7px}
.photos-round,.photos-nav button,.photos-tools button{background:#f1f1f4;color:#151517;border-radius:99px;min-width:35px;height:35px}
.photos-head #photosBack{flex:none}
.photos-content{flex:1;overflow:auto;min-height:0}
.photos-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}
.photos-thumb,.photos-cover{position:relative;display:block;padding:0;width:100%;aspect-ratio:1;overflow:hidden;background:#eee}
.photos-thumb img,.photos-cover img{display:block;width:100%;height:100%;object-fit:cover}
.photos-thumb b{position:absolute;bottom:4px;left:6px;color:white;text-shadow:0 1px 4px black}
.photos-albums{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 10px;padding:7px 16px}
.photos-album{background:none;color:inherit;padding:0;text-align:left;min-width:0}
.photos-cover{border-radius:9px}
.photos-cover span{display:grid;height:100%;place-items:center;color:#888;font-size:40px}
.photos-album strong,.photos-album small{display:block;margin-top:4px}
.photos-album strong{font-family:-apple-system,'Apple Color Emoji','Segoe UI Emoji',sans-serif}
.photos-album small,.photos-empty,.photos-caption{color:#66666c}
.photos-empty{margin:24px 16px}
.photos-nav{display:flex;justify-content:center;align-items:center;gap:7px;padding:7px 12px}
.photos-nav button{height:39px;padding:0 14px;font-size:13px;font-weight:700}
.photos-nav button[aria-pressed=true]{color:#0866dc;background:#e8f2ff}
.photos-nav #photosSearchBtn{margin-left:auto}
.photos-search{margin:7px 16px 12px;width:calc(100% - 32px);padding:10px 13px;border:0;border-radius:10px;background:#f1f1f4}
.photos-viewer:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0}
.photos-caption{font-size:13px;text-align:center;margin:2px 0 10px}
.photos-full{flex:1;min-height:0;width:100%;object-fit:contain;touch-action:pan-y}
.photos-tools{display:flex;gap:8px;justify-content:center;padding:10px 12px}
.photos-tools button{font-size:20px;padding:0 12px}
.photos-tools button[aria-pressed=true]{color:#ff3159}
.photos-tools button:disabled{opacity:.35}
.photos-app-icon{background:white;display:grid;place-items:center}
.photos-app-icon svg{width:78%;height:78%}
#photosView{position:absolute;padding:0}
.photos-head{padding:56px 16px 8px;min-height:104px;z-index:2}
.photos-head h1{font-size:34px}
.photos-content{padding-bottom:93px;scrollbar-width:none}
#photosView[data-layout=library] .photos-head{position:absolute;top:0;right:0;left:0;min-height:0;justify-content:flex-end;padding:52px 12px 0;pointer-events:none}
#photosView[data-layout=library] .photos-head button{pointer-events:auto}
#photosView[data-layout=library] #photosTitle,#photosView[data-layout=library] #photosBack{display:none}
.photos-hero{position:relative;height:148px;background:#25252a;overflow:hidden;color:#fff}
.photos-hero img{position:absolute;inset:0;width:50%;height:100%;object-fit:cover}
.photos-hero img+img{left:50%}
.photos-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(#0007,#0002 45%,#0008)}
.photos-hero h2,.photos-hero small{position:absolute;z-index:1;left:18px;margin:0;text-shadow:0 1px 7px #0006}
.photos-hero h2{bottom:32px;font-size:36px;line-height:1}
.photos-hero small{bottom:12px;font-size:13px;font-weight:700}
.photos-grid{margin-top:2px}
.photos-thumb[aria-pressed=true]::after{content:"✓";position:absolute;right:5px;bottom:5px;color:white;background:#087fff;border:2px solid white;border-radius:50%;width:23px;height:23px}
.photos-nav{position:absolute;bottom:18px;left:17px;right:17px;justify-content:space-between;padding:0;z-index:4;pointer-events:none}
.photos-nav-group,.photos-nav #photosSearchBtn,.photos-actions-group,.photos-tools #photosShare{border-radius:99px;background:#fafafbd9;backdrop-filter:blur(22px) saturate(1.5);box-shadow:0 5px 20px #0002,inset 0 1px 0 white;pointer-events:auto}
.photos-nav-group{display:flex;gap:2px;padding:4px}
.photos-nav button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-width:74px;height:48px;background:transparent;font-size:12px}
.photos-nav button[aria-pressed=true]{background:#3c3c431f;color:#087fff}
.photos-nav #photosSearchBtn{min-width:52px;width:52px;height:52px;padding:0}
.photos-svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.photos-round{display:inline-grid;place-items:center;min-width:40px;height:40px;background:#f6f6f8e6;box-shadow:0 2px 10px #0002;padding:0 10px;font-weight:650}
.photos-head .photos-round+.photos-round{margin-left:3px}
.photos-cover{border-radius:12px}
.photos-album strong{font-size:15px;font-weight:600}
.photos-viewer .photos-caption{position:absolute;top:68px;left:80px;right:80px;pointer-events:none}
#photosView[data-layout=viewer] .photos-head{min-height:117px}
#photosView[data-layout=viewer] #photosTitle{position:absolute;left:75px;right:75px;top:51px;text-align:center;font-size:15px}
.photos-tools{justify-content:space-between;padding:8px 18px 35px}
.photos-tools button{display:inline-grid;place-items:center;background:transparent;height:44px;min-width:44px;padding:0;font-size:23px}
.photos-actions-group{display:flex;align-items:center;gap:4px;padding:0 8px}
.photos-full{width:100%;user-select:none}
.photos-sheet{border:0;border-radius:20px;width:min(325px,calc(100% - 40px));padding:18px;color:#171719}
.photos-sheet::backdrop{background:#0005}
.photos-sheet h2{margin:0 0 9px;font-size:20px}
.photos-sheet p{margin:0 0 14px;color:#5b5b61}
.photos-sheet button{background:#f1f1f4;border-radius:12px;padding:9px 14px;margin-right:6px}
#photosView[data-layout=library] .photos-content{padding-top:0}
