/* Photos owns its library, collections and viewer. iOS18 single-page collection model. */
.sim-device .photos-library{padding:0;background:#f2f2f7!important;color:#151515}
.photos-scroll{padding:0 0 48px;overflow-x:hidden;scrollbar-width:none}.photos-library-controls{display:flex;align-items:center;justify-content:space-between;padding:7px 18px 12px;background:#faf9fc;font-size:15px}.photos-library-controls b{font-weight:500}.photos-library-controls span{font-size:12px;color:#8e8e93}
.photos-library-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(var(--phone-safe-top) + 2px) 20px 14px;background:#faf9fc}
.photos-library-header h1{font-size:34px;line-height:1.1;letter-spacing:-1px;margin:0;font-weight:700}.photos-library-header>div{display:flex;align-items:center;gap:8px}
.sim-device .photos-search-pill{display:grid;place-items:center;min-height:36px;height:36px;width:36px;min-width:36px;padding:0;background:#e8e8ed;color:#111;border-radius:50%;font-size:14px}.photos-search-pill span{display:none}.photos-search-pill .icon{width:20px;height:20px}.photos-account{display:grid;place-items:center;width:38px;height:44px;padding:0}.photos-account>.avatar{width:34px;height:34px;border-radius:50%;border:2px solid #fff}
.photos-library .sim-search{margin:0 14px 12px;background:#e9e8ed}
.sim-device .sim-photo-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;width:100%;overflow:hidden}
.sim-device .photos-grid-item{aspect-ratio:1;min-width:0;min-height:0;width:100%;padding:0;border:0;overflow:hidden;background:#e7e8eb}
.photos-grid-item>img,.photos-grid-item>svg{display:block;width:100%;height:100%;object-fit:cover}
.photos-empty{grid-column:1/-1;min-height:160px;display:grid;place-items:center;color:#8e8e93;font-size:15px}
.photos-grid-summary{display:flex;align-items:center;justify-content:space-between;padding:5px 20px 12px;min-height:48px;color:#8e8e93;font-size:12px;background:#faf9fc}.photos-grid-summary>button{font-size:14px;color:var(--ios-blue);padding:0}
.photos-collection-section{padding:7px 20px 14px}.photos-collection-section h2{font-size:23px;letter-spacing:-.5px;margin:0 0 13px;line-height:1.3;font-weight:700}.photos-collection-section h2>span{font-weight:400;color:#999}
.photos-recent-cards{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none}.photos-recent-cards>button{position:relative;flex:0 0 112px;height:122px;border-radius:18px;overflow:hidden;padding:0;background:#e5e5e7}.photos-recent-cards img,.photos-recent-cards svg{width:100%;height:100%;object-fit:cover;display:block}.photos-recent-cards span{position:absolute;left:0;right:0;bottom:0;padding:24px 12px 11px;text-align:left;color:white;font-weight:600;font-size:14px;background:linear-gradient(transparent,#0006)}
.photos-album-cards{display:flex;align-items:stretch;gap:0;height:94px;overflow:hidden;border-radius:17px}.photos-album-image{width:92px;flex-shrink:0;padding:0;overflow:hidden;background:#e8e8e8}.photos-album-image>svg,.photos-album-image>img{display:block;width:100%;height:100%;object-fit:cover}.photos-album-text{flex:1;min-width:0;background:white;text-align:left;padding:14px;font-size:15px}.photos-album-text>b{font-weight:500}.photos-album-text>small{display:block;color:#8e8e93;font-size:13px;margin-top:4px}.photos-album-favorites{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:#eeedf4;flex:0 0 105px;margin-left:10px;border-radius:17px;color:#4b4b56;font-size:12px}.photos-album-favorites .icon{color:#f15a70;width:25px;height:25px}.photos-album-favorites b{font-weight:500}.photos-album-favorites small{color:#8e8e93}
.photos-library-foot{padding-top:11px}.photos-library-foot p{font-size:14px;line-height:1.7;color:#8e8e93;margin:0}
.sim-device .sim-photo-view{padding-top:var(--phone-safe-top);padding-bottom:0;background:#fff!important;color:#111;overflow:hidden;position:relative}
.photos-viewer-header{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;min-height:50px;height:50px;flex-shrink:0;padding:0 8px;color:var(--ios-blue)}.photos-viewer-header>button{display:grid;place-items:center;width:44px;height:44px;padding:0}.photos-viewer-header>div{text-align:center;overflow:hidden;color:#111}.photos-viewer-header b{font-size:16px;font-weight:600;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.photos-viewer-header small{display:block;font-size:11px;margin-top:2px;color:#8e8e93;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sim-device .sim-photo-stage{display:flex;align-items:center;justify-content:center;position:relative;flex:1;min-height:0;min-width:0;width:100%;padding:0;border:0;overflow:hidden;background:#fff;touch-action:pan-y}
.sim-photo-stage>svg,.sim-photo-stage>img{display:block;width:100%;height:100%;object-fit:contain;max-width:100%;max-height:100%;pointer-events:none;transition:transform .25s}.sim-photo-stage.zoomed>svg,.sim-photo-stage.zoomed>img{transform:scale(2)}
.photos-filmstrip{display:flex;align-items:center;height:59px;min-height:59px;gap:3px;padding:5px 4px;color:var(--ios-blue);background:#fff}.photos-filmstrip>button{display:grid;place-items:center;width:44px;flex-shrink:0;padding:0}.photos-filmstrip>div{display:flex;flex:1;min-width:0;justify-content:center;gap:3px;overflow:hidden}.sim-device .photos-filmstrip>div>button{height:45px;min-height:0;min-width:0;width:32px;padding:0;overflow:hidden;border-radius:3px;opacity:.55;flex-shrink:0}.sim-device .photos-filmstrip>div>button.selected{width:48px;opacity:1;margin:0 4px}.photos-filmstrip svg,.photos-filmstrip img{height:100%;width:100%;object-fit:cover;display:block}.photos-filmstrip .icon{width:20px;height:20px}
.sim-viewer-toolbar{display:flex;align-items:flex-start;justify-content:space-around;flex-shrink:0;min-height:83px;height:83px;padding:6px 10px var(--phone-safe-bottom);background:#fff;color:var(--ios-blue)}.sim-viewer-toolbar>button{display:grid;place-items:center;height:44px;width:54px;padding:0}.sim-viewer-toolbar .icon{width:26px;height:26px}.sim-viewer-toolbar .favorite .icon{fill:var(--ios-blue)}
.photos-info-panel{padding:16px 22px;max-height:230px;overflow:auto;flex-shrink:0;background:#f5f5f7;border-top:.5px solid #e5e5e8}.photos-info-heading{display:flex;justify-content:space-between;font-size:12px;color:#8e8e93;margin-bottom:13px}.photos-info-panel>b{font-size:20px;display:block}.photos-info-panel>small{color:#8e8e93;font-size:12px;display:block;margin-top:4px}.photos-info-panel>p{font-size:15px;line-height:1.7;margin:12px 0 0}
.sim-device .sim-photo-view.bare{background:#000!important}.sim-photo-view.bare .sim-photo-stage{position:absolute;inset:0;background:#000}.sim-photo-view.bare .photos-viewer-header,.sim-photo-view.bare .photos-filmstrip,.sim-photo-view.bare .sim-viewer-toolbar,.sim-photo-view.bare .photos-info-panel{visibility:hidden;pointer-events:none}

.photos-media-types>button{display:flex;align-items:center;gap:12px;width:100%;min-height:49px;background:#fff;padding:10px 14px;color:#007aff;text-align:left;border-bottom:.5px solid #e0e0e4}.photos-media-types>button>.icon{width:23px;height:23px}.photos-media-types>button>span{flex:1;font-size:17px}.photos-media-types>button>small{font-size:15px;color:#8e8e93}.photos-media-types>button>em{font-style:normal;color:#c7c7cc;font-size:22px}.photos-media-types>button:first-of-type{border-radius:13px 13px 0 0}.photos-media-types>button:last-of-type{border-radius:0 0 13px 13px;border-bottom:0}
