.premium-dialog{box-sizing:border-box;width:min(760px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:22px;border:0;border-radius:18px;background:var(--card,var(--tone-142b4b,#fff));color:var(--ink-f7f9ff,#142b4b)}.premium-dialog::backdrop,.premium-photo-dialog::backdrop{background:#001729aa}.premium-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.premium-heading h2{margin:0}.premium-heading>button{font-size:24px;padding:4px 12px}.premium-plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.premium-plan{border:1px solid var(--tone-324e72,#c5d6e6);border-radius:14px;padding:16px}.premium-plan h3{margin:0 0 10px}.premium-plan button{font-size:14px;padding:10px 14px}.premium-consent{display:flex!important;align-items:flex-start;gap:10px;font-size:14px}.premium-consent input{width:auto;flex:none;margin-top:5px}.premium-dialog progress{width:100%;accent-color:#ed7c16}.premium-albums{padding-bottom:18px;border-bottom:1px solid var(--tone-324e72,#c5d6e6);margin-bottom:18px}.premium-albums h3{font-size:18px;margin:0 0 8px}.premium-albums button{font-size:13px;padding:8px 12px}.premium-album{padding:12px 0;border-top:1px solid var(--tone-324e72,#c5d6e6);margin:10px 0}.premium-album summary{cursor:pointer;font-weight:700;margin-bottom:12px}.premium-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;margin:12px 0}.premium-photo img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px}.premium-photo>button:first-child{padding:0;background:none;width:100%}.premium-photo-dialog{box-sizing:border-box;max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:12px;border:0;border-radius:16px}.premium-photo-dialog img{display:block;max-width:100%;max-height:80dvh;object-fit:contain}.premium-photo-dialog>button{display:block;margin-left:auto}#openPremium{margin-bottom:18px}:root[data-theme=light] .premium-dialog{background:#fff;color:#142b4b}:root[data-theme=peach] .premium-dialog{background:#fff0e8;color:#49313b}@media(max-width:480px){.premium-dialog{padding:16px}.premium-plans{grid-template-columns:1fr}.premium-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.premium-trial{margin:14px 0;border-color:#ed7c16}.premium-trial button{margin-top:10px}#groupPhotoAlbumDetails{display:none!important}

#eventPhotoAlbumCard>details:not(.premium-albums),#eventPhotoAlbumCard>.actions,#eventPhotoAlbumCard>#eventPhotoAlbum,#eventPhotoAlbumCount,#eventPhotoAlbumStatus{display:none!important}

#eventPhotoAlbumCard>:not(.premium-albums){display:none!important}

.album-slideshow{position:relative;padding:9px;border:1px solid var(--tone-324e72,#ced9e3);border-radius:18px;background:var(--tone-1d395d,#edf3f8);margin:18px 0;overflow:hidden}.album-slideshow[hidden]{display:none}.album-slideshow-pictures{display:grid;grid-template-columns:1.6fr 1fr;grid-template-rows:100px 100px;gap:8px;min-height:208px}.album-slideshow-photo{display:block!important;padding:0!important;border:0;background:transparent;overflow:hidden;border-radius:11px;min-width:0;min-height:0}.album-slideshow-photo:first-child{grid-row:1/3}.album-slideshow-photo img{display:block;width:100%;height:100%;object-fit:cover}.album-slideshow-pictures:has(>.album-slideshow-photo:only-child){grid-template-columns:1fr}.album-slideshow-pictures:has(>.album-slideshow-photo:nth-child(2):last-child)>.album-slideshow-photo:nth-child(2){grid-row:1/3}.album-slideshow-controls{display:flex;justify-content:center;gap:8px;margin-top:8px}.album-slideshow-controls button{width:32px;min-height:30px;padding:3px!important;font-size:18px!important}.album-slideshow-controls button[hidden]{display:none}@media(max-width:600px){.album-slideshow-pictures{grid-template-rows:75px 75px;min-height:158px;gap:6px}.album-slideshow{padding:6px;border-radius:14px}}

.album-slideshow .album-slideshow-photo,.album-slideshow .album-slideshow-photo img{border-radius:0!important}

.premium-albums>summary{cursor:pointer;font-weight:700;font-size:18px;margin-bottom:14px}.photo-section-summary svg{vertical-align:middle;margin-right:8px}.photo-section-summary span{vertical-align:middle}.premium-albums>h3{font-size:14px!important;font-weight:400;color:inherit}.photo-view-controls{display:flex;justify-content:flex-end;gap:7px;margin:8px 0}.photo-view-controls .photo-view-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:7px!important;min-height:36px}.photo-view-button[aria-pressed=true]{background:#ecd6ae!important;color:#142b4b!important;box-shadow:inset 0 0 0 1px #bca47b}.album-slideshow[data-view=grid] .album-slideshow-pictures{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:110px;min-height:0}.album-slideshow[data-view=grid] .album-slideshow-photo{grid-row:auto!important;grid-column:auto!important}.album-slideshow[data-view=collage] .album-slideshow-pictures{grid-template-columns:1.6fr 1fr 1fr;grid-template-rows:100px 100px;grid-auto-rows:100px}.album-slideshow[data-view=collage] .album-slideshow-pictures:has(>.album-slideshow-photo:only-child){grid-template-columns:1fr}.album-slideshow[data-view=collage] .album-slideshow-pictures:has(>.album-slideshow-photo:nth-child(2):last-child){grid-template-columns:1.6fr 1fr}.album-slideshow[data-view=collage] .album-slideshow-pictures:has(>.album-slideshow-photo:nth-child(3):last-child)>.album-slideshow-photo{grid-row:1/3}.album-slideshow-controls:not(:has(button:not([hidden]))){display:none}@media(max-width:600px){.album-slideshow[data-view=grid] .album-slideshow-pictures{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:85px}.album-slideshow[data-view=collage] .album-slideshow-pictures{grid-template-rows:75px 75px;grid-auto-rows:75px}}

#compactEventPhotos .premium-albums>.photo-section-summary{display:none}

.album-slideshow{background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;overflow:visible}.album-slideshow .album-slideshow-pictures{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:auto!important;gap:12px!important;min-height:0!important;align-items:start}.album-slideshow .album-slideshow-photo{grid-row:auto!important;grid-column:auto!important;align-self:start;background:transparent!important}.album-slideshow .album-slideshow-photo img{width:100%!important;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important}.album-slideshow[data-view=collage] .album-slideshow-pictures{display:block!important;columns:2;column-gap:12px}.album-slideshow[data-view=collage] .album-slideshow-photo{width:100%;break-inside:avoid;margin-bottom:12px}.album-slideshow[data-view=grid] .album-slideshow-pictures{grid-template-columns:repeat(3,minmax(0,1fr))!important}.album-slideshow[data-view=slideshow] .album-slideshow-pictures{grid-template-columns:repeat(2,minmax(0,1fr))!important}.album-slideshow[data-view=slideshow] .album-slideshow-photo:first-child{grid-column:1/-1!important}.album-slideshow .album-slideshow-pictures:has(>.album-slideshow-photo:only-child){grid-template-columns:1fr!important}@media(max-width:600px){.album-slideshow[data-view=grid] .album-slideshow-pictures{grid-template-columns:repeat(2,minmax(0,1fr))!important}.album-slideshow[data-view=collage] .album-slideshow-pictures{column-gap:8px}.album-slideshow[data-view=collage] .album-slideshow-photo{margin-bottom:8px}}

.photo-caption{font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.photo-editor-canvas{display:block;max-width:100%;height:auto;margin:14px auto;touch-action:none;cursor:move}.photo-editor-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.photo-editor-controls label{min-width:0;font-size:14px}.photo-editor-controls input,.photo-editor-controls select{width:100%;box-sizing:border-box}.photo-editor-controls .actions{align-items:center;gap:6px}.photo-editor-controls button{padding:8px 10px;font-size:13px}.photo-editor textarea{width:100%;box-sizing:border-box}.photo-editor .muted{font-size:13px}.photo-editor-controls[hidden]{display:none}@media(max-width:450px){.photo-editor-controls{grid-template-columns:1fr}.photo-editor{padding:14px}}

.photo-layout-header{position:relative}.photo-layout-header>.photo-section-summary{padding-right:170px;min-height:28px;margin-bottom:14px}.photo-layout-header>.premium-heading{padding-right:170px}.photo-layout-header>.photo-album-header-actions{position:absolute;right:0;top:10px;margin:0;display:flex;gap:8px;align-items:center}.photo-album-header-actions>button:first-child{margin:0;padding:9px 16px;font-size:14px;min-height:40px}.photo-album-header-actions>.photo-album-refresh{display:none}.photo-layout-header>.photo-view-controls{justify-content:center;margin:12px 0 18px;gap:8px}.photo-layout-header>.photo-view-controls .photo-view-button{width:40px;height:40px;min-height:40px}.photo-layout-header>.album-slideshow{margin-top:0}@media(max-width:450px){.photo-layout-header>.photo-section-summary{padding-right:145px}.photo-album-header-actions>button:first-child{padding:8px 11px;font-size:13px}.photo-layout-header>h3{max-width:calc(100% - 145px)}}

/* The legacy event album host must not leave an empty card after switching to a group. */
#eventPhotoAlbumCard:not(:has(>.premium-albums)){display:none!important}

/* Match the group history disclosure heading. */
#groupPhotoAlbumCard .premium-albums>.photo-section-summary{font-size:21px;font-weight:700;min-height:0;line-height:normal;cursor:pointer}
#groupPhotoAlbumCard .photo-section-summary>svg{display:none}
#groupPhotoAlbumCard .photo-section-summary>span{vertical-align:baseline}
.photo-tags{margin-top:18px;padding-top:14px;border-top:1px solid var(--tone-324e72,#c5d6e6)}.photo-tags h3{margin:0 0 12px}.photo-tag-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0}.photo-tag-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.photo-tag-form label{flex:1;min-width:160px}.photo-tag-form select{display:block;width:100%;box-sizing:border-box;margin:6px 0 0;padding:10px;border-radius:8px;border:1px solid var(--tone-324e72,#c5d6e6);background:var(--tone-102644,#f3f7fb);color:inherit;font:inherit}.photo-tag-form button{margin:0}.photo-tags .muted{font-size:14px}.private-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.private-photo-preview{padding:0!important;display:block;width:100%;background:none;border:0}.private-photo-preview img{display:block;width:100%;height:auto;border-radius:0}.private-photo-full{display:block;max-width:100%;max-height:65dvh;margin:12px auto;object-fit:contain;border-radius:0}.private-photo-library>.actions [aria-pressed=true]{font-weight:700;box-shadow:inset 0 0 0 2px currentColor}#openMyPhotos{margin:8px 10px 8px 0}@media(max-width:600px){.private-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-tag-row{flex-wrap:wrap}}

/* The personal collage is mounted only inside the signed-in owner’s profile. */
#myProfileAlbums{margin:22px 0;padding:0}#myProfileAlbums h3{margin:0 0 4px}#myProfileAlbums .profile-albums-title{padding:0;margin:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:700;cursor:pointer}#myProfileAlbums .profile-albums-title:hover{font-weight:800}#myProfileAlbums>.muted{font-size:13px;margin:4px 0 10px}.profile-albums-collage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-width:420px}.profile-albums-photo{display:block;width:100%;height:92px;min-height:0;padding:0!important;border:0;border-radius:0;background:transparent;overflow:hidden}.profile-albums-photo img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}@media(max-width:500px){.profile-albums-collage{max-width:330px}.profile-albums-photo{height:74px}}

#myProfileAlbums .profile-albums-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:420px}#myProfileAlbums .profile-albums-settings{display:inline-flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;min-height:34px;margin:0;padding:6px;border-radius:9px;color:inherit;background:var(--tone-1d395d,#e7eef7);border:0}@media(max-width:500px){#myProfileAlbums .profile-albums-heading{max-width:330px}}

.photo-tags .photo-tag-form{display:block;margin:12px 0}.photo-tag-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin-bottom:12px}.photo-tag-form .photo-tag-choice{display:flex;align-items:center;gap:9px;min-width:0;margin:0;font-weight:400;overflow-wrap:anywhere}.photo-tag-choice input[type=checkbox]{flex:none;width:18px;height:18px;margin:0;accent-color:var(--ink-ffff67,#b69051)}@media(max-width:450px){.photo-tag-choices{grid-template-columns:1fr}}

.photo-viewer-toolbar{display:flex;align-items:center;gap:8px;position:sticky;top:0;z-index:2;background:transparent;padding:3px 0 10px}.photo-viewer-toolbar button{display:inline-flex!important;align-items:center;justify-content:center;margin:0!important;min-width:40px;min-height:40px;padding:5px 12px;font-size:24px}.photo-viewer-toolbar button:last-child{margin-left:auto!important}.photo-viewer-count{font-size:14px;white-space:nowrap}.photo-viewer-body img{display:block;max-width:100%;max-height:65dvh;margin:0 auto;object-fit:contain;border-radius:0;touch-action:pan-y pinch-zoom}.photo-viewer-body button{margin:5px 8px 5px 0}.photo-viewer{width:min(820px,calc(100% - 24px))}

#myProfileAlbums .profile-albums-settings{width:auto;min-width:0;padding:5px 0 5px 12px;background:transparent;border-radius:0;font-size:14px;font-weight:600}#myProfileAlbums .profile-albums-settings:hover{font-weight:800}

.personal-upload-event{display:flex;flex-direction:column;gap:7px;padding:14px!important;text-align:left;min-width:0;width:100%;box-sizing:border-box}.personal-upload-event span{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.personal-event-header{margin:10px 0 14px}.personal-event-header h3{margin:12px 0 0}

.private-photo-grid.album-preview-list{grid-template-columns:minmax(0,1fr);gap:12px}.album-preview-list .personal-upload-event{gap:7px}.album-card-previews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;max-width:480px}.album-card-previews:empty{display:none}.album-card-previews img{display:block;width:100%;height:94px;object-fit:cover;border-radius:0}@media(max-width:500px){.album-card-previews img{height:74px}}

.event-capture-only>.premium-heading,.event-capture-only>h3,.event-capture-only>.photo-album-header-actions,.event-capture-only>.photo-view-controls,.event-capture-only>.album-slideshow,.event-capture-only>div:not(.event-photo-capture){display:none!important}.event-photo-capture{display:flex;align-items:center;justify-content:center;gap:16px;padding:12px 0}.event-photo-camera{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;flex:none;padding:12px!important;border-radius:14px}.event-photo-capture p{margin:0;font-size:16px;line-height:1.5}.event-capture-only{border:0;margin:0;padding:0}.event-capture-only>.photo-section-summary{display:none}.event-capture-only>p:empty{display:none}@media(max-width:500px){.event-photo-capture{gap:12px}.event-photo-camera{width:54px;height:54px}.event-photo-capture p{font-size:14px}}

.event-photo-capture[hidden]{display:none!important}

/* Compact, centred event photo prompt. */
.event-photo-capture{flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:0;text-align:center}.event-photo-camera{width:66px;height:58px;min-height:58px;padding:5px!important;background:transparent!important;border:0!important}.event-photo-camera svg{width:60px;height:60px}.event-photo-capture p{margin:0;line-height:1.4;font-size:14px}.event-capture-only{margin:0!important;padding:0!important}.event-capture-only>.muted{margin:6px 0 0;text-align:center;font-size:13px}#compactEventPhotos>.compact-event-panel-body:has(.event-capture-only){padding-top:0;padding-bottom:10px}@media(max-width:500px){.event-photo-capture{gap:5px;padding:0}.event-photo-camera{width:66px;height:58px}.event-photo-capture p{font-size:14px}}

#compactEventPhotos #eventPhotoAlbumCard:has(.event-capture-only){margin:0!important;padding:0!important}

.premium-album>summary{box-sizing:border-box;min-height:48px;padding:14px 16px;border-radius:12px;background:var(--tone-1d395d,#145b7f);color:inherit;line-height:1.5}html[data-theme=light] .premium-album>summary{background:#edf3f8;color:#192f50}html[data-theme=peach] .premium-album>summary{background:#ffe4d4;color:#49313b}

.album-photo-actions{display:flex;align-items:center;gap:7px;margin-top:8px;flex-wrap:wrap}.premium-albums .album-photo-actions .album-photo-action{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;min-height:38px;margin:0;padding:8px;border-radius:9px}.album-photo-action svg{display:block;flex:none;width:20px;height:20px}@media(max-width:600px){.premium-albums .album-photo-actions .album-photo-action{width:40px;height:40px;min-height:40px}}

.album-photo-actions{flex-wrap:nowrap;gap:6px}.premium-albums .album-photo-actions .album-photo-action{box-sizing:border-box;flex:0 0 34px;width:34px;min-width:34px;height:36px;min-height:36px;padding:7px}

.album-photo-menu{margin-top:6px}.premium-albums .album-photo-menu>summary{display:inline-flex;align-items:center;justify-content:center;list-style:none;min-width:38px;min-height:30px;padding:0 7px;margin:0;border:0;border-radius:8px;background:transparent;color:inherit;font-size:19px;line-height:1;letter-spacing:2px;cursor:pointer}.album-photo-menu>summary::-webkit-details-marker{display:none}.album-photo-menu>summary:focus-visible{outline:2px solid currentColor;outline-offset:2px}.album-photo-menu:not([open])>.album-photo-actions{display:none}.album-photo-menu[open]>.album-photo-actions{display:flex;margin-top:6px}

.album-photo-menu{margin-top:2px;text-align:right}.premium-albums .album-photo-menu>summary{min-width:32px;min-height:24px;padding:0 4px;margin:0 0 0 auto}.album-photo-menu[open]>.album-photo-actions{justify-content:flex-end;margin-top:4px}.premium-photo>.photo-caption{margin:3px 0;font-size:12px}

.photo-uploader{margin:3px 0;font-size:12px;line-height:1.4;overflow-wrap:anywhere;color:inherit;opacity:.85}
.since-last-visit{margin:12px 0 20px;padding:18px;box-sizing:border-box}.since-last-visit[hidden]{display:none!important}.since-visit-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.since-visit-heading h2{font-size:18px;margin:0}.since-visit-heading button{font-size:12px;padding:7px 10px}.since-visit-item{display:block;width:100%;text-align:left;margin:6px 0;padding:11px 12px;white-space:normal;overflow-wrap:anywhere}.photo-feedback{width:100%;box-sizing:border-box;border-top:1px solid currentColor;margin-top:16px;padding-top:14px}.photo-feedback textarea{box-sizing:border-box;width:100%;max-width:100%;font-size:16px}.photo-feedback h3{font-size:17px;margin:12px 0}.photo-feedback-comment{margin:10px 0;padding:8px 0}.photo-feedback-comment p{white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0}.photo-feedback-comment small{opacity:.75}.photo-feedback-comment button{margin-left:10px;font-size:12px;padding:5px 8px}

.event-photo-capture .event-photo-camera{width:78px;height:70px;min-height:70px}

.event-photo-capture small{font-size:12px;line-height:1.4;opacity:.8}.event-photo-capture>button:not(.event-photo-camera){font-size:14px;padding:8px 14px}.event-capture-only>progress{display:block;width:min(320px,100%);margin:8px auto}.event-capture-only>progress[hidden]{display:none}.premium-group-albums>p[role=status]{overflow-wrap:anywhere}

.photo-upload-status{overflow-wrap:anywhere}.photo-upload-progress{display:block;width:min(320px,100%);margin:8px auto}.photo-upload-progress[hidden]{display:none}

.photo-preview-loading{min-height:110px;display:flex;align-items:center;justify-content:center;font-size:13px;opacity:.7}.photo-preview-loading button{font-size:13px}
/* Square album previews; opened photos keep their natural dimensions. */
.premium-photo>button:first-child,.private-photo-preview,.profile-albums-photo,.album-slideshow .album-slideshow-photo{border-radius:0!important;overflow:hidden;aspect-ratio:1!important;height:auto!important}
.premium-photo img,.private-photo-preview img,.profile-albums-photo img,.album-card-previews img,.album-slideshow .album-slideshow-photo img{display:block;width:100%!important;height:auto!important;aspect-ratio:1!important;object-fit:cover!important;border-radius:0!important}

.album-card-previews{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none}@media(max-width:600px){.album-card-previews{grid-template-columns:repeat(3,minmax(0,1fr))}.album-card-previews img:nth-child(n+4){display:none}}
.album-library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}.album-library-toolbar>.actions{flex:1 1 330px;margin:0}.album-library-tools{display:flex;gap:8px;position:relative;margin-left:auto;z-index:30}.album-library-tools[hidden]{display:none!important}.album-library-tools details{position:relative}.album-library-tools details[open]{z-index:40}.album-library-tools summary{display:flex;align-items:center;justify-content:center;list-style:none;width:40px;height:40px;border-radius:12px;background:var(--tone-1d395d,#edf3f8);color:inherit;cursor:pointer}.album-library-tools summary::-webkit-details-marker{display:none}.album-library-search-panel,.album-library-sort-panel{position:absolute;right:0;top:46px;z-index:50;padding:12px;border-radius:12px;background:var(--card,#fff);color:inherit;box-shadow:0 5px 24px #0003;box-sizing:border-box;width:240px;max-width:calc(100vw - 72px)}.album-library-tools input,.album-library-tools select{font-size:16px;box-sizing:border-box;max-width:100%;width:100%;min-width:0}.album-library-group{min-width:0}.album-library-group>h3{font-size:18px;margin:8px 0 10px}.album-library-group-list{display:grid;gap:12px}.album-library-group-list>.personal-upload-event{width:100%;box-sizing:border-box}html[data-theme=light] .album-library-tools summary{background:#efd7ac;color:#142b4b}
.album-photo-section{grid-column:1/-1;min-width:0}.album-photo-section>h3{font-size:17px;margin:8px 0 12px}.album-photo-section-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.album-photo-owner{display:block;font-size:12px;margin-top:6px;line-height:1.4;overflow-wrap:anywhere}.album-photo-owner[data-owner=own]{font-weight:700}.album-photo-section .actions{gap:5px;flex-wrap:wrap}.album-photo-section .actions button{font-size:12px;padding:7px 9px}@media(max-width:600px){.album-photo-section-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.album-library-toolbar>.actions [aria-pressed=true]{font-weight:700;box-shadow:inset 0 0 0 2px currentColor}
.premium-photo{position:relative}.premium-photo>button:first-child{display:block}.premium-photo>.album-photo-menu{position:absolute;right:3px;bottom:3px;margin:0;z-index:2}.premium-albums .premium-photo>.album-photo-menu>summary{display:flex;width:32px;min-width:32px;height:36px;padding:0;margin:0;color:#fff;background:transparent;font-size:28px;font-weight:700;letter-spacing:0;text-shadow:0 1px 4px #000,0 0 2px #000;border-radius:0}.premium-photo>.album-photo-menu[open]>.album-photo-actions{position:absolute;right:0;bottom:100%;margin:0 0 4px;padding:5px;gap:4px;flex-wrap:nowrap;background:var(--card,#fff);color:var(--ink-f7f9ff,#142b4b);border-radius:8px;box-shadow:0 2px 12px #0004}
@media(max-width:600px){dialog.premium-photo-dialog.photo-viewer{box-sizing:border-box;width:100%;max-width:100%;max-height:calc(100dvh - 16px);padding:0;border:0;margin:auto;border-radius:12px;overflow:auto}.photo-viewer .photo-viewer-toolbar{padding:6px 8px;background:var(--card,#fff);margin:0}.photo-viewer .photo-viewer-count{display:none}.photo-viewer .photo-viewer-body img{width:100%;max-width:100%;height:auto;max-height:none;object-fit:contain}.photo-viewer .photo-viewer-panel>p,.photo-viewer .photo-viewer-panel>section,.photo-viewer .photo-viewer-panel>button{margin-left:12px;margin-right:12px}.photo-viewer .photo-album-caption{margin-top:12px;margin-bottom:5px;font-weight:700}.photo-viewer .photo-caption{margin-top:5px;margin-bottom:5px}}

.album-slideshow>.album-mix-more{display:block;width:auto;margin:12px auto 0;padding:8px 16px;font-size:14px}.album-slideshow>.album-mix-more[hidden]{display:none}@media(max-width:600px){.album-slideshow[data-view=grid] .album-slideshow-pictures{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
.photo-albums-list>.photo-album-header-actions{display:flex;justify-content:flex-end;margin:8px 0 12px;gap:8px}.photo-albums-list>.photo-section-summary{font-size:18px;font-weight:700;cursor:pointer}.photo-layout-header>.photo-section-summary{padding-right:0}.photo-layout-header>h3{max-width:none}
.photo-viewer .photo-viewer-stage{position:relative;width:fit-content;max-width:100%;margin:0 auto}.photo-viewer .photo-viewer-stage>img{display:block;margin:0;max-width:100%;border-radius:0}.photo-viewer .photo-viewer-menu{position:absolute;right:7px;bottom:7px;z-index:3}.photo-viewer .photo-viewer-menu>summary{display:flex;align-items:center;justify-content:center;width:36px;height:40px;list-style:none;cursor:pointer;color:#fff;font-size:32px;font-weight:700;text-shadow:0 1px 4px #000;margin:0;padding:0}.photo-viewer-menu>summary::-webkit-details-marker{display:none}.photo-viewer .photo-viewer-menu>summary:focus-visible{outline:2px solid #fff;outline-offset:2px}.photo-viewer .photo-viewer-actions{position:absolute;right:0;bottom:100%;display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:160px;padding:7px;border-radius:10px;background:var(--card,#fff);color:var(--ink-f7f9ff,#142b4b);box-shadow:0 2px 15px #0004;max-height:55dvh;overflow:auto}.photo-viewer .photo-viewer-menu:not([open])>.photo-viewer-actions{display:none}.photo-viewer .photo-viewer-actions>button{margin:0!important;font-size:14px;padding:9px 12px;white-space:nowrap}.photo-viewer .photo-viewer-like{position:absolute;left:10px;bottom:10px}.photo-viewer .photo-viewer-like>button{margin:0;padding:9px 13px}.photo-viewer .photo-album-caption{margin:12px 0 4px;font-size:17px}.photo-viewer .photo-caption{margin:4px 0;font-size:14px}.photo-viewer .photo-uploader{font-size:12px;margin:4px 0}.photo-viewer .photo-feedback{margin-top:14px}.photo-viewer .photo-feedback h3:empty{display:none}@media(max-width:600px){.photo-viewer .photo-viewer-stage{width:100%;max-width:100%}.photo-viewer .photo-viewer-stage>img{width:100%;max-height:none}.photo-viewer .photo-viewer-menu{right:5px;bottom:5px}.photo-viewer .photo-viewer-like{left:8px;bottom:8px}.photo-viewer .photo-viewer-panel>.photo-feedback{box-sizing:border-box;width:calc(100% - 24px)}}
.photo-viewer .photo-viewer-like>button{background:transparent!important;border:0!important;box-shadow:none!important;color:#fff!important;font-size:26px!important;font-weight:700;line-height:1.2;padding:5px!important;text-shadow:0 1px 4px #000,0 0 2px #000}.premium-albums .album-add-camera{display:inline-flex;align-items:center;justify-content:center;margin-left:auto;padding:8px;min-width:44px;min-height:44px;flex:none}.photo-tag-panel:focus{outline:none}.photo-tag-panel[hidden]{display:none!important}
.premium-album>.premium-photo-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.album-grid-dialog .album-popup-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 0}.album-grid-dialog .album-popup-photo{display:block;width:100%;aspect-ratio:1;padding:0;margin:0;min-width:0;border:0;border-radius:0;overflow:hidden;background:var(--tone-1d395d,#dce7f1)}.album-grid-dialog .album-popup-photo img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}.album-grid-dialog>.premium-heading{position:sticky;top:0;z-index:2;background:inherit}.album-grid-dialog>.premium-heading h2{font-size:20px;overflow-wrap:anywhere}.album-grid-dialog .album-popup-photo:focus-visible{outline:3px solid currentColor;outline-offset:2px}@media(max-width:600px){dialog.album-grid-dialog{width:calc(100% - 12px);max-width:calc(100% - 12px);padding:10px}.album-grid-dialog .album-popup-grid{gap:4px}}
.photo-albums-list>.photo-section-summary{position:relative;box-sizing:border-box;min-height:44px;line-height:44px;padding-right:180px;margin-bottom:8px}.photo-albums-list>.photo-section-summary>.photo-album-header-actions{position:absolute;right:0;top:50%;transform:translateY(-50%);display:flex;gap:8px;align-items:center;margin:0;line-height:normal}@media(max-width:450px){.photo-albums-list>.photo-section-summary{padding-right:145px}}
#groupPhotoAlbumCard .photo-albums-list>.photo-section-summary{min-height:44px;line-height:44px}
.album-popup-tile{position:relative;min-width:0}.photo-tile-actions{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:space-between;align-items:center;padding:4px;pointer-events:none;opacity:0;transition:opacity .15s}.album-popup-tile:hover>.photo-tile-actions,.album-popup-tile:focus-within>.photo-tile-actions{opacity:1}.album-grid-dialog .photo-tile-actions>button{pointer-events:auto;display:flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;padding:3px;margin:0;border:0;background:transparent;box-shadow:none;color:#fff;font-size:30px;line-height:1;text-shadow:0 1px 4px #000}.photo-tile-download svg{filter:drop-shadow(0 1px 2px #000)}.album-grid-dialog .album-popup-add{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1;margin:0;padding:12px;border-radius:0;background:var(--tone-1d395d,#e4edf5);color:inherit}.photo-viewer .photo-viewer-like{left:auto;right:10px}.photo-viewer .photo-viewer-stage>.photo-viewer-menu{right:7px;top:7px;bottom:auto}.photo-viewer .photo-viewer-stage>.photo-viewer-menu>.photo-viewer-actions{top:100%;bottom:auto}.photo-viewer .photo-viewer-like>button{font-size:30px!important}@media(hover:none){.photo-tile-actions{opacity:1}}@media(max-width:600px){.photo-viewer .photo-viewer-like{left:auto;right:8px}.album-grid-dialog .album-popup-add svg{width:50px;height:50px}}
.photo-viewer .photo-viewer-download{position:absolute;left:10px;bottom:10px}.photo-viewer .photo-viewer-download>button{display:flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;margin:0;padding:3px;background:transparent!important;box-shadow:none!important;border:0!important;color:#fff!important}
.photo-layout-header>.photo-section-summary{position:relative;box-sizing:border-box;padding-right:100px;margin-bottom:8px}.photo-layout-header>.photo-section-summary>.photo-view-controls{position:absolute;right:0;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:8px;margin:0}.photo-layout-header>.photo-section-summary .photo-view-button{width:40px;height:40px;min-height:40px;padding:7px!important}.photo-layout-header>.photo-section-summary .photo-view-button svg{margin:0}#groupPhotoAlbumCard .photo-layout-header>.photo-section-summary{min-height:44px;line-height:44px}.photo-layout-header>h3{max-width:none}
.photo-layout-header>.photo-section-summary>.photo-view-controls{left:50%;right:auto;transform:translate(-50%,-50%)}
.photo-layout-header:not([open])>.photo-section-summary>.photo-view-controls{display:none}
.photo-tile-actions{box-sizing:border-box;padding:8px 12px 12px}.album-grid-dialog .photo-tile-actions>button{font-size:26px;font-weight:400;text-shadow:0 1px 3px #0008}.photo-tile-download svg{width:23px;height:23px;stroke-width:1.5;filter:drop-shadow(0 1px 2px #0008)}.photo-viewer .photo-viewer-like{left:auto;right:12px;bottom:12px}.photo-viewer .photo-viewer-download{left:12px;bottom:12px}.photo-viewer .photo-viewer-like>button{font-size:26px!important;font-weight:400;text-shadow:0 1px 3px #0008}
.album-slideshow-tile{position:relative;min-width:0;align-self:start}.album-slideshow-tile>.album-slideshow-photo{width:100%}.album-slideshow[data-view=slideshow] .album-slideshow-tile:first-child{grid-column:1/-1}.album-slideshow-tile:hover>.photo-tile-actions,.album-slideshow-tile:focus-within>.photo-tile-actions{opacity:1}.album-slideshow .photo-tile-actions>button{pointer-events:auto;display:flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;padding:3px!important;margin:0;border:0;background:transparent!important;box-shadow:none!important;color:#fff!important;font-size:26px!important;font-weight:400;line-height:1;text-shadow:0 1px 3px #0008}
.photo-heart-icon{display:block;width:25px;height:25px;flex:none;filter:drop-shadow(0 1px 2px #0008)}
.photo-tile-actions>.photo-tile-heart{order:-1}.photo-viewer .photo-viewer-like{left:12px;right:auto;bottom:12px}.photo-viewer .photo-viewer-download{display:none}.photo-viewer .photo-viewer-stage>.photo-viewer-menu{left:auto;right:12px;top:auto;bottom:12px}.photo-viewer .photo-viewer-stage>.photo-viewer-menu>.photo-viewer-actions{top:auto;bottom:100%}
.photo-viewer .photo-viewer-like>button{display:inline-flex;align-items:center;justify-content:center;gap:5px}.photo-viewer .photo-like-count{font-size:12px;font-weight:400;line-height:1;color:#fff}
.photo-viewer{overflow-anchor:none}
.photo-viewer .photo-viewer-tags{text-align:right;font-size:14px;line-height:1.4;overflow-wrap:anywhere;margin-top:6px;margin-bottom:4px}
.photo-viewer .photo-meta-row{display:flex;align-items:baseline;justify-content:space-between;gap:6px 20px;flex-wrap:wrap;margin-top:4px}.photo-viewer .photo-meta-row:empty{display:none}.photo-viewer .photo-meta-row>.photo-uploader{margin:0;flex:0 1 auto}.photo-viewer .photo-meta-row>.photo-viewer-tags{margin:0 0 0 auto;font-size:12px;text-align:right;flex:0 1 auto;max-width:100%}@media(max-width:600px){.photo-viewer .photo-meta-row{margin-left:12px;margin-right:12px;gap:4px 12px}}
.photo-viewer .photo-tag-profile{display:inline;appearance:none;min-width:0;min-height:0;border:0;border-radius:0;padding:0;margin:0;background:transparent!important;box-shadow:none;color:inherit;font:inherit;font-weight:400;line-height:inherit;text-decoration:none;cursor:pointer;vertical-align:baseline}.photo-viewer .photo-tag-profile:hover,.photo-viewer .photo-tag-profile:focus-visible{font-weight:700;text-decoration:none}.photo-viewer .photo-tag-profile:focus-visible{outline:1px solid currentColor;outline-offset:2px}
.photo-viewer .photo-uploader-name{font-weight:700}
.photo-feedback,.photo-viewer .photo-feedback{margin-top:8px;padding-top:4px}.photo-feedback h3{margin:0 0 6px}.photo-feedback form,.photo-feedback form>label{display:block;margin:0}.photo-feedback textarea{height:36px;min-height:36px;line-height:22px;padding:6px 10px;margin:4px 0 0;resize:vertical}.photo-feedback form>button{margin:6px 0 0}.photo-feedback>[role=status]:empty{display:none}
.photo-viewer .photo-uploader-name{display:inline;appearance:none;font:inherit;font-weight:400;color:inherit;background:transparent!important;box-shadow:none;border:0;border-radius:0;padding:0;margin:0;min-height:0;min-width:0;text-decoration:none;line-height:inherit;vertical-align:baseline}.photo-viewer button.photo-uploader-name{cursor:pointer}.photo-viewer button.photo-uploader-name:hover,.photo-viewer button.photo-uploader-name:focus-visible{font-weight:700;text-decoration:none}.photo-feedback form>label,.photo-feedback .photo-comment-author{font-size:16px}.photo-feedback .photo-feedback-comment{margin:6px 0;padding:4px 0}.photo-feedback .photo-feedback-comment-line{margin:0;line-height:1.4;white-space:pre-wrap}.photo-feedback .photo-comment-author{display:inline;font-family:inherit;font-weight:700;line-height:inherit;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:inherit;vertical-align:baseline}.photo-feedback button.photo-comment-author:hover{font-weight:700;text-decoration:none}.photo-feedback .photo-feedback-comment-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:3px}.photo-feedback .photo-feedback-comment-meta small{font-size:12px}.photo-feedback .photo-comment-remove{margin:0;font-size:12px;padding:4px 8px}

/* Videos share the existing private album layout. */
.album-video-preview{position:relative}.album-video-preview:after{content:'▶';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:white;font-size:28px;line-height:1;text-shadow:0 1px 7px #000;pointer-events:none}.photo-viewer-stage>video{display:block;width:100%;max-height:65dvh;object-fit:contain;background:#000}.photo-viewer-stage:has(>video) .photo-viewer-like,.photo-viewer-stage:has(>video) .photo-viewer-menu{bottom:54px}@media(max-width:640px){.photo-viewer-stage>video{max-height:70dvh}}

/* Full-screen slideshows use the same black canvas in every theme. */
dialog.album-cinema{box-sizing:border-box;position:fixed;inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:12px;border:0;border-radius:0;background:#000!important;color:#f5f5f5!important;display:grid;grid-template-rows:minmax(0,1fr) auto auto auto;gap:8px;overflow:hidden}dialog.album-cinema:not([open]){display:none}.album-cinema::backdrop{background:#000}.album-cinema button{background:transparent!important;color:#fff!important;border:0;box-shadow:none;margin:0;min-width:40px;min-height:40px}.album-cinema .cinema-close{position:absolute;right:max(10px,env(safe-area-inset-right));top:max(8px,env(safe-area-inset-top));z-index:3;font-size:32px;padding:4px 12px}.cinema-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:0;touch-action:pan-y;overflow:hidden}.cinema-image{display:block;max-width:100%;max-height:100%;object-fit:contain;border-radius:0;user-select:none}.cinema-strip{display:grid;grid-template-columns:repeat(var(--cinema-count),minmax(0,1fr));gap:5px;width:min(740px,100%);justify-self:center}.album-cinema .cinema-thumb{display:block;min-width:0;min-height:0;aspect-ratio:1;padding:0;border:2px solid transparent;opacity:.65;border-radius:0;overflow:hidden}.album-cinema .cinema-thumb[aria-current=true]{border-color:#fff;opacity:1}.cinema-thumb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}.cinema-controls{display:flex;justify-content:center;gap:20px}.cinema-controls button{font-size:24px;padding:4px 16px}.cinema-status{margin:0;text-align:center}.cinema-status:empty{display:none}.cinema-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:40px}.album-cinema{padding-bottom:max(12px,env(safe-area-inset-bottom))!important}
@media(max-width:600px){
.album-slideshow[data-view=grid] .album-slideshow-pictures{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:3px!important}.album-slideshow{padding:0!important}.premium-album>.premium-photo-grid{gap:3px}.album-grid-dialog .album-popup-grid{gap:3px}.album-slideshow .photo-tile-actions,.album-grid-dialog .photo-tile-actions,.premium-photo-grid .photo-tile-actions{display:none!important;pointer-events:none!important}
html body dialog.premium-photo-dialog.photo-viewer{position:fixed;inset:0;box-sizing:border-box;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0 0 env(safe-area-inset-bottom);border:0;border-radius:0;background:#000!important;color:#eee!important}.photo-viewer::backdrop{background:#000}.photo-viewer .photo-viewer-toolbar{position:sticky;top:0;z-index:5;background:transparent!important;padding-top:max(6px,env(safe-area-inset-top))}.photo-viewer .photo-viewer-toolbar button{background:transparent!important;color:#fff!important;border:0;box-shadow:none}.photo-viewer .photo-viewer-body,.photo-viewer .photo-viewer-body p,.photo-viewer .photo-viewer-body label,.photo-viewer .photo-viewer-body h3,.photo-viewer .photo-viewer-body small{color:#eee!important}.photo-viewer .photo-viewer-body textarea,.photo-viewer .photo-viewer-body input:not([type=checkbox]){background:#222!important;color:#f5f5f5!important;border:1px solid #777!important}.photo-viewer .photo-viewer-actions{background:#222!important;color:#fff!important}.photo-viewer .photo-viewer-actions button{color:#fff!important;background:#333!important}.photo-viewer .photo-viewer-stage>img{touch-action:pan-y}.album-cinema .cinema-strip{width:100%;gap:3px}.album-cinema{padding-left:0!important;padding-right:0!important}.cinema-controls{padding-bottom:env(safe-area-inset-bottom)}
}

@media(max-width:600px){.album-grid-dialog .album-popup-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-upload-progress{display:block;width:100%;margin:8px 0}.photo-upload-progress[hidden]{display:none}}

@media(prefers-reduced-motion:no-preference){.cinema-image{animation:cinema-enter .2s ease-out}@keyframes cinema-enter{from{opacity:.6;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}}

.album-cinema .cinema-image{width:100%;height:100%;object-fit:contain}
/* Mobile raster: three square photos, edge to edge. */
@media(max-width:600px){
 .album-slideshow[data-view=grid] .album-slideshow-pictures{width:100vw;max-width:none;margin-left:calc((100% - 100vw)/2);margin-right:calc((100% - 100vw)/2);grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important}
 .album-slideshow[data-view=grid] .album-slideshow-tile{width:100%;aspect-ratio:1;overflow:hidden}
 .album-slideshow[data-view=grid] .album-slideshow-photo{display:block;width:100%;height:100%;aspect-ratio:1;padding:0!important;margin:0!important;border:0!important;border-radius:0!important}
 .album-slideshow[data-view=grid] .album-slideshow-photo img{width:100%!important;height:100%!important;aspect-ratio:1!important;object-fit:cover!important;border-radius:0!important}
 dialog.album-grid-dialog{width:100%;max-width:100%;padding-left:0;padding-right:0}
 .album-grid-dialog>.premium-heading{padding-left:10px;padding-right:10px}
 .album-grid-dialog .album-popup-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-left:0;margin-right:0}
}

/* Browsing all photos keeps navigation reachable while scrolling. */
.album-grid-dialog>.premium-heading{position:sticky!important;top:-12px;z-index:20;isolation:isolate;background:var(--card,#fff);min-height:52px}.album-grid-dialog>.premium-heading>button{flex:none}.album-grid-dialog .album-popup-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.album-grid-top{position:sticky;bottom:12px;display:block;margin:0 12px 0 auto;z-index:10;min-width:42px;font-size:22px;box-shadow:0 2px 8px #0004}.album-grid-top[hidden]{display:none!important}.album-cinema{grid-template-rows:minmax(0,1fr) auto auto auto auto!important}.cinema-caption{margin:0;padding:0 12px;text-align:center;color:#eee!important;font-size:14px;line-height:1.4}.cinema-caption[hidden]{display:none}.album-cinema .cinema-stage>.photo-tile-actions{display:flex!important;opacity:1!important;z-index:2;left:0;right:0;bottom:4px;padding:4px 16px;pointer-events:none}.album-cinema .cinema-stage>.photo-tile-actions>button{display:flex;align-items:center;justify-content:center;color:#fff!important;pointer-events:auto;width:42px;height:42px;padding:6px;background:transparent!important;filter:drop-shadow(0 1px 3px #000)}@media(max-width:600px){.album-grid-dialog>.premium-heading{top:-10px}}

.album-cinema .cinema-photo-actions{position:absolute;inset:0;pointer-events:none}.album-cinema .cinema-photo-actions>.photo-tile-actions{display:flex!important;opacity:1!important;bottom:4px;z-index:2;padding:4px 16px}.album-cinema .cinema-photo-actions .photo-tile-actions>button{display:flex;align-items:center;justify-content:center;pointer-events:auto;color:#fff!important;width:42px;height:42px;padding:6px;background:transparent!important;filter:drop-shadow(0 1px 3px #000)}.album-grid-dialog>.premium-heading{top:0!important;background:inherit}

/* Inline mobile slideshow. */
@media(max-width:700px){
  .album-slideshow[data-view="slideshow"] .album-slideshow-tile:first-child > .album-slideshow-photo {
    height: 100% !important;
    aspect-ratio: auto !important;
  }
  .album-slideshow[data-view="slideshow"] .album-slideshow-tile:first-child > .album-slideshow-photo img {
    object-position: center;
  }

.album-slideshow[data-view=slideshow] .album-slideshow-pictures{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:0!important;margin:0;padding:0}.album-slideshow[data-view=slideshow] .album-slideshow-tile:first-child{grid-column:1/-1!important;width:100%;aspect-ratio:3/2;overflow:hidden}.album-slideshow[data-view=slideshow] .album-slideshow-tile:not(:first-child){grid-column:auto!important;width:100%;aspect-ratio:1;overflow:hidden}.album-slideshow[data-view=slideshow] .album-slideshow-photo{display:block;height:100%;padding:0!important;margin:0!important;border:0!important;border-radius:0!important}.album-slideshow[data-view=slideshow] .album-slideshow-photo img{display:block;width:100%!important;height:100%!important;object-fit:cover!important;aspect-ratio:auto!important}.album-slideshow[data-view=slideshow] .photo-tile-actions{display:none!important}.album-slideshow[data-view=slideshow] .album-inline-details{grid-column:1/-1;text-align:center;padding:8px 0;overflow-wrap:anywhere}.album-inline-title{font-weight:600}.album-inline-date{font-size:13px}.photo-section-summary:focus{outline:none!important}.photo-section-summary:focus,.photo-section-summary:focus-visible{box-shadow:none!important}.photo-section-summary:has(.photo-view-button:focus){box-shadow:none}


}

@media(min-width:701px){.album-slideshow[data-view=slideshow] .album-slideshow-pictures{display:grid!important;width:min(100%,680px);margin-left:auto;margin-right:auto;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:0!important;padding:0}.album-slideshow[data-view=slideshow] .album-slideshow-tile:first-child{grid-column:1/-1!important;width:100%;height:360px;overflow:hidden}.album-slideshow[data-view=slideshow] .album-slideshow-tile:not(:first-child){grid-column:auto!important;aspect-ratio:1;width:100%;overflow:hidden}.album-slideshow[data-view=slideshow] .album-slideshow-photo{height:100%;width:100%;padding:0!important;margin:0!important;border:0!important;border-radius:0!important}.album-slideshow[data-view=slideshow] .album-slideshow-photo img{width:100%!important;height:100%!important;object-fit:cover!important;aspect-ratio:auto!important}.album-slideshow[data-view=slideshow] .album-slideshow-tile:not(:first-child)>.photo-tile-actions{display:none!important}}

.album-inline-caption{text-align:center;font-size:14px;margin:5px 0}.album-inline-caption[hidden]{display:none}@media(max-width:600px){.album-inline-caption{display:none}}

.photo-tag-approval{margin:10px 12px;padding:8px 0}.photo-tag-approval[hidden]{display:none!important}.photo-tag-approval .photo-tag-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px;width:min(100%,360px)}.photo-tag-approval .photo-tag-row>span{grid-column:1/-1;font-size:14px}.photo-tag-approval button{width:100%;min-width:0;margin:0;padding:8px 12px;white-space:normal;overflow-wrap:anywhere}

.album-storage-info{margin:12px 0 0}.photo-upload-status:empty,.album-storage-info:empty{display:none}

.photo-viewer .photo-zoom-stage{overflow:visible}.photo-viewer .photo-zoom-stage>img{touch-action:none!important;user-select:none;-webkit-user-select:none;transform-origin:center;cursor:zoom-in}.photo-viewer .photo-is-zoomed>img{cursor:grab}.photo-zoom-controls{display:flex;justify-content:center;align-items:center;gap:8px;margin:6px 0}.photo-zoom-controls button{min-width:38px;min-height:34px;padding:3px 8px;font-size:16px}.photo-zoom-controls button:disabled{opacity:.35}@media(max-width:700px){html body .photo-viewer .photo-zoom-controls button{background:#222!important;color:#fff!important;border:0}}
/* One compact upload action in an event. */
.event-photo-capture .event-photo-camera{display:flex;flex-direction:column;gap:6px;width:auto;max-width:100%;height:auto;min-height:0;padding:8px 12px!important;font-size:14px;line-height:1.3;white-space:normal}
.event-photo-capture .event-photo-camera svg{width:44px;height:44px;flex:none}
.event-photo-capture .event-photo-camera span{font-size:14px}
.event-photo-capture .event-photo-camera svg{width:64px;height:64px}

.group-capture-empty > h3,
.group-capture-empty > .album-slideshow,
.group-capture-empty > .photo-section-summary > .photo-view-controls {
  display: none !important;
}
.group-capture-empty > .event-photo-capture {
  padding: 12px 0 8px;
}
.group-capture-empty .event-photo-camera svg {
  width: 72px;
  height: 72px;
}
.group-capture-empty > .photo-upload-status:empty {
  display: none;
}
.group-capture-empty + .photo-albums-list {
  display: none !important;
}

@media (max-width: 700px) {
  #groupPhotoAlbumCard .album-slideshow[data-view="grid"] .album-slideshow-pictures,
  #groupPhotoAlbumCard .album-slideshow[data-view="slideshow"] .album-slideshow-pictures,
  #groupPhotoAlbumCard .premium-album > .premium-photo-grid {
    width: calc(100% + var(--group-photo-grid-outset, 12px) * 2);
    max-width: none;
    margin-inline: calc(-1 * var(--group-photo-grid-outset, 12px));
  }
  #myProfileAlbums .profile-albums-collage {
    gap: 0;
  }
}

@media (max-width: 700px) {
  .photo-viewer[open] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .photo-viewer .photo-viewer-toolbar {
    flex: none;
  }
  .photo-viewer .photo-viewer-body {
    flex: 1;
    min-height: 0;
  }
  .photo-viewer .photo-viewer-content {
    display: grid;
    height: 100%;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .photo-viewer .photo-viewer-media {
    display: grid;
    place-items: center;
    min-height: 0;
    container-type: size;
  }
  .photo-viewer .photo-viewer-stage {
    width: fit-content;
    margin: 0;
  }
  .photo-viewer .photo-viewer-stage > :is(img, video) {
    width: auto;
    height: auto;
    max-width: 100cqw;
    max-height: 100cqh;
    object-fit: contain;
  }
  .photo-viewer .photo-viewer-panel {
    max-height: 55dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 12px 12px;
  }
  .photo-viewer .photo-viewer-panel > :is(p, section, button) {
    margin-inline: 0;
  }
  .photo-viewer .photo-viewer-panel > .photo-feedback {
    width: 100%;
  }
}

#groupPhotoAlbumCard .photo-layout-header > h3 {
  text-align: center;
}

.photo-viewer .photo-viewer-panel > .photo-viewer-tags { font-size: 11px; margin-inline: 12px; }

dialog.photo-viewer,
.photo-viewer :is(.photo-viewer-panel, .photo-viewer-actions) {
  scrollbar-width: none;
}
dialog.photo-viewer::-webkit-scrollbar,
.photo-viewer :is(.photo-viewer-panel, .photo-viewer-actions)::-webkit-scrollbar {
  display: none;
}
.photo-viewer .photo-viewer-controls {
  display: flex;
  align-items: center;
  height: 40px;
}
.photo-viewer .photo-viewer-controls > :is(.photo-viewer-like, .photo-viewer-menu) {
  position: relative;
  inset: auto;
}
.photo-viewer .photo-viewer-controls > .photo-viewer-menu {
  margin-inline-start: auto;
}
.photo-viewer .photo-viewer-controls .photo-viewer-like > button[aria-pressed] {
  color: #fff !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.photo-viewer .photo-viewer-controls .photo-heart-icon {
  fill: none;
}
.photo-viewer .photo-viewer-controls [aria-pressed="true"] .photo-heart-icon {
  stroke-width: 2.5;
}
[data-theme="light"] .photo-viewer .photo-viewer-controls .photo-viewer-like > button[aria-pressed] {
  color: #000 !important;
}
@media (max-width: 700px) {
  .photo-viewer .photo-viewer-stage > :is(img, video) {
    max-height: max(0px, calc(100cqh - 40px));
  }
}
@media (max-width: 700px) {
  html:has(dialog.photo-viewer[open]) {
    overflow: hidden;
  }
  .photo-viewer .photo-viewer-panel-frame {
    min-width: 0;
    overflow: clip;
  }
  /* Clip native touch scroll indicators while keeping the comments scrollable. */
  .photo-viewer .photo-viewer-panel-frame > .photo-viewer-panel {
    box-sizing: border-box;
    width: calc(100% + 24px);
    padding-inline-end: 36px;
  }
  .photo-viewer *::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}
:root[data-theme="light"] .photo-viewer .photo-viewer-controls {
  background: #fff;
}
:root[data-theme="light"] .photo-viewer .photo-viewer-controls .photo-viewer-like > button.secondary[aria-pressed] {
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  color: #000 !important;
  background: #fff !important;
  text-shadow: none;
}
:root[data-theme="light"] .photo-viewer .photo-viewer-controls :is(.photo-like-count, .photo-viewer-menu > summary) {
  color: #000 !important;
  text-shadow: none;
}
:root[data-theme="light"] .photo-viewer .photo-viewer-controls .photo-heart-icon {
  filter: none;
}
:root[data-theme="light"] .photo-viewer .photo-viewer-controls :is(button, summary):focus-visible {
  outline: 2px solid #000;
  outline-offset: -2px;
}
@media (max-width: 700px) {
  html:is([data-theme="light"], [data-theme="peach"]) body dialog.premium-photo-dialog.photo-viewer {
    background: #fff !important;
    color: #142b4b !important;
  }
  :root:is([data-theme="light"], [data-theme="peach"]) .photo-viewer::backdrop {
    background: #fff;
  }
  :root:is([data-theme="light"], [data-theme="peach"]) .photo-viewer .photo-viewer-toolbar {
    background: transparent !important;
  }
  :root:is([data-theme="light"], [data-theme="peach"]) .photo-viewer :is(.photo-viewer-toolbar button, .photo-viewer-body, .photo-viewer-body p, .photo-viewer-body label, .photo-viewer-body h3, .photo-viewer-body small) {
    color: #142b4b !important;
    text-shadow: none;
  }
  :root:is([data-theme="light"], [data-theme="peach"]) .photo-viewer .photo-viewer-controls :is(.photo-like-count, .photo-viewer-menu > summary, .photo-viewer-like > button[aria-pressed]) {
    color: #000 !important;
    text-shadow: none;
  }
  :root:is([data-theme="light"], [data-theme="peach"]) .photo-viewer .photo-viewer-controls .photo-heart-icon {
    filter: none;
  }
  :root:is([data-theme="light"], [data-theme="peach"]) .photo-viewer .photo-viewer-body :is(textarea, input:not([type="checkbox"])) {
    background: #f5f7fa !important;
    color: #142b4b !important;
    border-color: #b6c5d4 !important;
  }
}
html body dialog.album-grid-dialog.moment-preview-album {
  background: #fff !important;
  color: #142b4b !important;
}
html body dialog.album-grid-dialog.moment-preview-album > .premium-heading {
  background: #fff !important;
}
html body dialog.album-grid-dialog.moment-preview-album > .premium-heading h2 {
  color: #142b4b !important;
}
.premium-albums .premium-album > summary {
  position: relative;
  box-sizing: border-box;
  min-height: 44px;
  padding-block: 11px;
  padding-inline-end: 52px;
}
.premium-albums .premium-album > summary > .album-add-camera {
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}
.album-grid-dialog .album-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.album-grid-dialog .album-settings-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
}
.album-grid-dialog > .premium-heading h2 {
  min-width: 0;
}
.album-grid-dialog .album-heading-actions {
  margin-inline-start: auto;
}
html:is([data-theme="light"], [data-theme="peach"]) body dialog.album-grid-dialog {
  background: #fff !important;
  color: #142b4b !important;
}
html:is([data-theme="light"], [data-theme="peach"]) body dialog.album-grid-dialog > :is(.premium-heading, .mobile-album-selection-tools, .mobile-album-selection-bar) {
  background: #fff !important;
  color: #142b4b !important;
}
html:is([data-theme="light"], [data-theme="peach"]) body dialog.album-grid-dialog :is(.premium-heading h2, .muted, .photo-upload-status, .album-save-status, .album-save-ready a) {
  color: #142b4b !important;
}
@media (max-width: 700px) {
  html:is([data-theme="light"], [data-theme="peach"]) body dialog.album-grid-dialog :is(.mobile-album-selection-tools button, .mobile-album-selection-bar button, .album-upload-feedback) {
    background: #eef3f8 !important;
    color: #142b4b !important;
  }
  html:is([data-theme="light"], [data-theme="peach"]) body dialog.album-grid-dialog > .mobile-album-selection-bar {
    box-shadow: 0 -1px 8px #142b4b26;
  }
}
html body dialog:is(.album-grid-dialog, .album-settings-dialog) .premium-heading :is(.album-close-button, h2 + button) {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font-size: 26px;
  line-height: 1;
}
html body dialog:is(.album-grid-dialog, .album-settings-dialog) .premium-heading :is(.album-close-button, h2 + button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
.album-settings-dialog .album-delete-actions {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line, #6484ac);
}
.album-settings-dialog .album-delete-actions > button {
  margin: 0;
}
html body dialog.album-settings-dialog > .premium-heading > button {
  margin: 0 0 0 auto;
  flex-shrink: 0;
}
.album-grid-dialog .album-heading-titles {
  min-width: 0;
}
.album-grid-dialog .album-heading-group {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.photo-viewer .photo-feedback form > button[type="submit"] {
  display: block;
  margin-inline: auto;
}
@media (max-width: 700px) {
  html.photo-viewer-page-locked { overflow: hidden; overscroll-behavior: none; }
  html.photo-viewer-page-locked > body {
    position: fixed;
    top: var(--photo-viewer-page-top);
    inset-inline: 0;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }
  html.photo-viewer-page-locked .album-grid-dialog .album-grid-scroll { overflow: hidden; }
  dialog.premium-photo-dialog.photo-viewer[open] {
    overflow: hidden;
    overscroll-behavior: none;
  }
  .photo-viewer .photo-viewer-body { overflow: hidden; }
  .photo-viewer .photo-viewer-controls { flex-shrink: 0; }
  .photo-viewer .photo-viewer-panel { overscroll-behavior: none; }
}

.event-photo-preview-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  width: min(100%, 520px);
  margin-top: 3px;
}
.event-photo-preview-strip[hidden] { display: none; }
.event-photo-preview-strip > button {
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 6px;
}
.event-photo-preview-strip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#pageMoments .moment-add-yesterday-photos {
  display: grid;
  justify-items: center;
  gap: 5px;
  margin: 8px auto 2px;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 14px;
}
#pageMoments .moment-add-yesterday-photos svg { display: block; }

.premium-albums .album-first-photo-tile { width: 100%; aspect-ratio: 1; margin: 0; }
.premium-albums .album-first-photo-tile > svg { width: min(50%, 44px); height: auto; }

.photo-viewer .photo-viewer-menu > .photo-viewer-actions { max-height: min(55dvh, var(--photo-menu-space, 55dvh)); }
.photo-viewer .photo-viewer-menu[data-open-down] > .photo-viewer-actions { top: 100%; bottom: auto; }

#pageMoments .moment-new-photos { display: inline-block; margin-inline-start: 8px; padding: 2px 7px; border-radius: 5px; background: var(--brand-gold, #ecd6ae); color: #152b46; font-size: 12px; white-space: nowrap; }
