/* Separate the dialog heading from the full-width search and scrolling tree. */
.folder-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 32px));max-height:calc(100svh - 32px);padding:16px;overflow:hidden}
.folder-dialog[open]{display:flex;flex-direction:column;gap:12px}
.folder-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}
.folder-dialog-heading h2{margin:0;font:22px/1.3 Georgia,serif}
.folder-dialog-heading>button{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;padding:0;border:1px solid #aab49b;border-radius:50%;background:transparent;color:inherit;font:27px/1 Arial,sans-serif;cursor:pointer}
.folder-dialog .folder-panel{position:static;box-sizing:border-box;width:100%;min-height:0;max-height:none;overflow:auto;padding:3px;scrollbar-gutter:stable}
.folder-dialog input{box-sizing:border-box;min-width:0}
.folder-dialog .tree-row{min-width:0}.folder-dialog .tree-row a{min-width:0}
.folder-dialog :focus-visible{outline:2px solid #93734a;outline-offset:2px}
@media(max-width:900px){
 .folder-dialog .folder-panel input{font-size:16px;min-height:44px}
 .folder-dialog .tree-row button{width:36px;min-height:44px}
 .folder-dialog .tree-row a{display:flex;align-items:center;min-height:44px}
 main :is(input:not([type=checkbox]):not([type=radio]),textarea,select),.community-dialog :is(input:not([type=checkbox]):not([type=radio]),textarea,select),.photo-admin-dialog :is(input:not([type=checkbox]):not([type=radio]),textarea,select){font-size:16px}
 .photo-context-menu :is(a,button,summary){min-height:44px}
}
@media(max-width:760px){
 .site-header .header-tools :is(#menu,#language){width:44px;height:44px;min-width:44px}
 .gallery-tabs a{box-sizing:border-box;min-height:44px;display:flex;align-items:center}
 .viewer-arrow{position:relative}.viewer-arrow::after{content:'';position:absolute;inset:-5px -10px}
}

/* Dialog headings must remain readable in the high-contrast preference. */
body.a11y-contrast :is(.folder-dialog,.photo-admin-dialog,.community-dialog,.photo-context-menu){background:#111;color:#fff;border-color:#fff}
body.a11y-contrast :is(.folder-dialog,.photo-admin-dialog,.community-dialog) :is(input,select,textarea){background:#111;color:#fff;border-color:#fff}
body.a11y-contrast .photo-context-menu :is(a,button,summary){background:#111;color:#ffed82}

@media(max-width:380px){.gallery-toolbar{gap:4px}.gallery-tabs{gap:3px}.gallery-tabs a{padding:10px 8px;font-size:12px}}

/* One mobile navigation strip leaves the space above the photograph clear. */
.mobile-gallery-navigation[hidden]{display:none}
@media(max-width:1366px){
 .gallery-toolbar{justify-content:flex-start;flex-wrap:nowrap;gap:12px;margin-bottom:12px}
 .gallery-tabs{flex-shrink:0;gap:4px}.gallery-tabs a{padding:10px 5px;white-space:nowrap}
 .mobile-gallery-navigation{display:flex;align-items:center;gap:3px;flex-shrink:0}
 .mobile-gallery-navigation .album-neighbors{display:flex;flex-wrap:nowrap;gap:3px;margin:0}
 .mobile-gallery-navigation [hidden]{display:none}
 .mobile-gallery-navigation.mobile-photo-navigation #album-up{display:none}
 .mobile-gallery-navigation .mobile-compact-control{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;min-width:44px;height:44px;padding:8px!important;margin:0;border-radius:6px}
 .mobile-gallery-navigation .mobile-control-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .mobile-gallery-navigation .mobile-control-icon{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .mobile-gallery-navigation #album-up{margin:0}
 .mobile-gallery-navigation>button{border:1px solid #b6b9a9;background:transparent;color:inherit}
 #photo-viewer #photo-filename,#photo-viewer #viewer-count{display:none}
 #photo-viewer .viewer-top{display:flex;min-height:0;margin-bottom:8px;justify-content:flex-end}
 #photo-viewer .viewer-name{min-height:0}
 #photo-viewer.mobile-no-metadata .viewer-top{display:none}
}
@media(max-width:760px){.mobile-gallery-navigation .mobile-compact-control{width:34px;min-width:34px;padding:4px!important}}
@media(max-width:380px){
 .gallery-toolbar{gap:8px}.gallery-tabs{gap:3px}.gallery-tabs a{padding:10px 4px;font-size:11px}
 .mobile-gallery-navigation,.mobile-gallery-navigation .album-neighbors{gap:2px}
 .mobile-gallery-navigation .mobile-compact-control{width:32px;min-width:32px;padding:4px!important}
}
@media(max-width:350px){
 .gallery-tabs a{padding:10px 2px;font-size:10px}
 .mobile-gallery-navigation,.mobile-gallery-navigation .album-neighbors{gap:0}
 .mobile-gallery-navigation .mobile-compact-control{width:30px;min-width:30px;padding:2px!important}
}

/* Clip viewport-fixed scenery to its homepage section, including mobile Safari. */
body[data-page="home"] :is(.photo-hero,.hero){clip-path:inset(0)}
body[data-page="home"] .photo-backdrop{position:fixed;inset:-12px;height:calc(100lvh + 24px);pointer-events:none}
body[data-page="home"] .photo-hero::after{position:fixed;inset:0;height:100lvh;pointer-events:none}
body[data-page="home"] .hero :is(.ambient,video,.shade){position:fixed;inset:0;width:100%;height:100lvh;padding:0;pointer-events:none}

/* Give the ordinary photograph the available viewport, with its actions in view. */
@media(max-width:1199px){   /* 2.3.185: the compact header of the photo view only below 1200px, as everywhere */
 body.gallery-photo-focus .site-header{height:auto;min-height:64px;padding:8px 16px;grid-template-columns:minmax(0,1fr) auto;gap:8px}
 body.gallery-photo-focus .site-header .brand{grid-column:1;grid-row:1;max-width:100%;gap:8px;min-width:0}
 body.gallery-photo-focus .site-header .brand>span{min-width:0}
 body.gallery-photo-focus .site-header .brand strong{font-size:20px;white-space:normal}
 body.gallery-photo-focus .site-header .brand small{font-size:8px}
 body.gallery-photo-focus .site-header .header-tools{grid-column:2;grid-row:1;gap:6px}
 body.gallery-photo-focus .site-header .header-tools :is(#menu,#language){width:44px;min-width:44px;height:44px}
 body.gallery-photo-focus .site-header #menu{display:block;border:1px solid #cbb68b66;border-radius:50%;padding:10px;background:transparent}
 body.gallery-photo-focus .site-header>#nav{display:none;position:absolute;top:100%;inset-inline:0;max-height:calc(100svh - 76px);overflow:auto;grid-column:auto;grid-row:auto;padding:16px 22px;gap:16px;background:#232923;border-top:1px solid #ffffff25;box-shadow:0 20px 30px #0004}
 body.gallery-photo-focus .site-header>#nav.open{display:flex;flex-direction:column;align-items:stretch}
 body.gallery-photo-focus #nav .site-links{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;margin:0;border:0;padding:0;gap:8px}
 body.gallery-photo-focus #nav .header-counters{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
 body.gallery-photo-focus .mobile-header-actions{display:flex;flex-direction:column;gap:8px;border-top:1px solid #cbb68b40;padding-top:12px}
 body.gallery-photo-focus .mobile-header-actions :is(a,button){display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:8px 0;border:0;border-radius:0;background:transparent;color:#e4c48e;text-align:start;font:14px/1.4 Arial,sans-serif;text-decoration:none}
 body.gallery-photo-focus .mobile-header-actions [hidden]{display:none}
 body.gallery-photo-focus .mobile-header-actions svg{width:22px;height:22px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 body.gallery-photo-focus .mobile-action-label{display:inline}
 body.gallery-photo-focus .page-wrap{padding:8px 16px 36px}
 body.gallery-photo-focus .gallery-layout{display:block}
 body.gallery-photo-focus .folder-sidebar,body.gallery-photo-focus .gallery-filters,body.gallery-photo-focus .filter-chips{display:none}
 body.gallery-photo-focus .gallery-toolbar{margin-bottom:6px;min-height:44px}
 body.gallery-photo-focus .album-breadcrumbs{flex-wrap:nowrap;white-space:nowrap;overflow:auto;min-height:20px;gap:8px;font-size:11px;scrollbar-width:none}
 body.gallery-photo-focus .album-breadcrumbs>*{flex-shrink:0}
 body.gallery-photo-focus #photo-viewer{margin-top:6px}
 body.gallery-photo-focus .viewer-stage{min-height:0}
 body.gallery-photo-focus .viewer-stage>img{height:var(--photo-frame-height,calc(100svh - 200px));min-height:0;max-height:none;object-fit:contain}
 body.gallery-photo-focus #photo-viewer .viewer-actions{margin:8px 0 0;min-height:44px;gap:8px}
 body.gallery-photo-focus .viewer-actions .page-button{min-height:44px}
}
@media(max-width:760px){body.gallery-photo-focus .site-header .brand strong{font-size:17px}.gallery-photo-focus .site-header .photo-logo{width:22px}.gallery-photo-focus .site-header .candle{width:21px;height:40px}}

/* Reserve neighboring-album slots while their destinations load asynchronously. */
@media(max-width:1366px){
 .mobile-gallery-navigation{--album-neighbors-width:91px}
 body.gallery-photo-focus .mobile-gallery-navigation .album-neighbors{min-width:var(--album-neighbors-width);min-height:44px;flex-shrink:0}
 body.gallery-photo-focus .mobile-gallery-navigation .album-neighbors[hidden]{display:flex!important;visibility:hidden}
}
@media(max-width:760px){.mobile-gallery-navigation{--album-neighbors-width:71px}}
@media(max-width:380px){.mobile-gallery-navigation{--album-neighbors-width:66px}}
@media(max-width:350px){.mobile-gallery-navigation{--album-neighbors-width:60px}}

/* Reveal short captions only after measuring the complete single-row toolbar. */
.mobile-control-short{display:none}
@media(max-width:1366px){
 .mobile-gallery-navigation .mobile-show-label{width:auto;gap:6px;padding-inline:9px!important}
 .mobile-gallery-navigation .mobile-show-label .mobile-control-short{display:inline;white-space:nowrap;font-size:12px;line-height:1.2}
 .mobile-gallery-navigation .mobile-show-label .mobile-control-icon{width:20px;height:20px;flex-shrink:0}
}

/* In landscape, spend less height on chrome while keeping the complete photo. */
@media (max-width:1366px) and (orientation:landscape){
 @media (max-width:1199px){body.gallery-photo-focus .site-header{min-height:48px;padding:2px 12px;gap:4px}}
 body.gallery-photo-focus .site-header .brand strong{font-size:17px;line-height:1.2}
 body.gallery-photo-focus .site-header .brand small{display:none}
 body.gallery-photo-focus .site-header .photo-logo{width:22px;height:28px}
 body.gallery-photo-focus .site-header .candle{width:18px;height:36px}
 body.gallery-photo-focus .page-wrap{padding:4px 12px 28px}
 body.gallery-photo-focus .gallery-toolbar{margin-bottom:2px}
 body.gallery-photo-focus .gallery-tabs a{box-sizing:border-box;display:flex;align-items:center;min-height:44px;height:44px;padding-block:6px}
 body.gallery-photo-focus .album-breadcrumbs{min-height:16px;line-height:16px}
 body.gallery-photo-focus #photo-viewer{margin-top:2px}
 body.gallery-photo-focus #photo-viewer .viewer-actions{margin-top:4px}
 body.gallery-photo-focus .viewer-actions .page-button{box-sizing:border-box;min-height:44px;padding-block:6px}
}

/* The public people directory's top block (2.3.126, Andrew 10.10: one even grid on all three sites). Row 1: the hint; row 2: the
   field, «Найти», «Сбросить» — one line, one height; row 3 (school89): «Показывать: Ученики · Учителя · Люди без фото» on one line.
   Narrow screens: the field takes the whole row, the two buttons share the next one, the ticks wrap as whole items. */
.gallery-filters.people-search{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:20px;margin-block:18px 26px}
.gallery-filters.people-search>.people-language-hint{grid-column:1/-1;grid-row:1;margin:0}
.gallery-filters.people-search>label{grid-column:1;grid-row:2;display:block;min-width:0;max-width:none;flex:none;margin:0;font-size:inherit}
.gallery-filters.people-search .people-search-caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.gallery-filters.people-search input[type=search],.gallery-filters.people-search>.page-button{box-sizing:border-box;height:48px;min-height:48px;font:inherit}
.gallery-filters.people-search input[type=search]{display:block;width:100%;max-width:none;min-width:0;margin:0;padding:10px 14px;font-size:15px}
.gallery-filters.people-search>.page-button{grid-row:2;display:inline-flex;align-items:center;justify-content:center;margin:0;padding-inline:20px;white-space:nowrap}
.gallery-filters.people-search>button.page-button{grid-column:2}.gallery-filters.people-search>a.page-button{grid-column:3}
.gallery-filters.people-search>.people-roles{grid-column:1/-1;grid-row:3}
.gallery-filters.people-search>.people-country{grid-column:1/-1;grid-row:3;min-width:0}.gallery-filters.people-search>.people-roles~.people-country{grid-row:4}
.gallery-filters.people-search .people-country label{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px 12px;max-width:100%;margin:0;font-size:15px}.gallery-filters.people-search .people-country-caption{font-weight:600}.gallery-filters.people-search .people-country select{width:auto;min-height:44px;max-width:100%;min-width:12em;font:inherit;font-size:15px;padding:6px 10px}
@media(max-width:600px){.gallery-filters.people-search{grid-template-columns:1fr 1fr;padding:16px;gap:10px}.gallery-filters.people-search>label{grid-column:1/-1}.gallery-filters.people-search input[type=search]{font-size:16px}.gallery-filters.people-search>.page-button{grid-row:3}.gallery-filters.people-search>button.page-button{grid-column:1}.gallery-filters.people-search>a.page-button{grid-column:2}.gallery-filters.people-search>.people-roles{grid-row:4}.gallery-filters.people-search>.people-country{grid-row:4}.gallery-filters.people-search>.people-roles~.people-country{grid-row:5}.gallery-filters.people-search .people-country select{font-size:16px;flex:1 1 12em}}

/* Shared action rows: one baseline, consistent targets and semantic groups. */
:is(.viewer-actions,.album-neighbors,.gallery-pagination,.photo-admin-actions,.about-actions,.memory-section-actions){display:flex;align-items:center;flex-wrap:wrap;gap:12px}
:is(.viewer-actions,.album-neighbors,.gallery-pagination,.photo-admin-actions,.about-actions,.memory-section-actions)>:is(button,a){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;line-height:1.25;margin-block:0;text-align:center}
.gallery-pagination .page-button{min-width:44px}
.album-controls{display:flex;align-items:center;flex-wrap:wrap;gap:16px 24px;margin-block:24px;padding-block:4px}
.album-controls :is(.album-navigation-actions,#album-view-actions,#album-admin-actions){display:flex;align-items:center;min-width:0;max-width:100%}
.album-controls .album-navigation-actions:not(:has(a:not([hidden]))),#album-view-actions:not(:has(.photo-order-controls:not([hidden]))),#album-admin-actions:empty{display:none}
#album-admin-actions{margin-inline-start:auto}
.album-controls #album-up,.album-controls .photo-order-controls{margin:0}
.album-controls .photo-order-controls{display:flex;align-items:center;gap:12px;max-width:100%}
.album-controls .photo-order-controls[hidden]{display:none}
.album-controls :is(.page-button,.photo-order-controls select){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;height:44px;min-height:44px;margin:0;padding:8px 14px;font:14px/1.25 Arial,sans-serif;text-align:center;white-space:nowrap}
.album-controls .photo-order-controls label{margin:0;min-height:44px;gap:8px}
.album-controls #photo-order{max-width:100%}
.album-controls #album-view-actions{padding-inline-start:24px;border-inline-start:1px solid #aab49b66}
.album-controls:not(:has(.album-navigation-actions a:not([hidden]))) #album-view-actions{padding-inline-start:0;border:0}
#photo-viewer .photo-order-controls{gap:12px;padding-block-start:12px;border-top:1px solid #aab49b55}
.frame-top :is(.frame-add,.frame-fullscreen){box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;height:34px;min-height:34px;line-height:1.25;margin:0}
@media(max-width:760px){
 .album-controls{gap:14px;margin-block:18px 22px}
 #album-admin-actions{flex-basis:100%;margin-inline-start:0;padding-top:14px;border-top:1px solid #aab49b55}
 .album-controls .photo-order-controls{gap:10px;align-items:center}
 .album-controls .photo-order-controls label{flex-wrap:wrap}
 .album-controls #album-view-actions{padding:0;border:0}
 .album-controls :is(.page-button,.photo-order-controls select){padding-inline:10px}
}

.community-dialog .tag-photo-preview{display:block;width:100%;height:140px;object-fit:contain;margin-block:12px;background:#e7e9df;border-radius:8px}
.tag-name-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}.tag-name-filters .name-combobox{display:block}.tag-not-listed a{font-weight:600}.tag-name-filters label{min-width:0}.tag-name-filters input{box-sizing:border-box;width:100%;min-width:0;height:44px}
.tag-people-list{max-height:32dvh;overflow:auto;display:grid;gap:6px;margin-block:12px}.community-dialog .tag-person-choice{display:flex;flex-direction:row;align-items:center;gap:12px;padding:10px 12px;margin:0;border:1px solid #cdd3c4;border-radius:8px;cursor:pointer}.community-dialog .tag-person-choice input{width:20px;height:20px;flex:0 0 20px;margin:0}.tag-person-choice span{min-width:0;overflow-wrap:anywhere}.tag-person-choice small{display:block;font-size:12px;font-weight:400;opacity:.8}.tag-person-choice:has(:checked){background:#e4eadc}.community-dialog .photo-admin-actions{display:flex;align-items:center;gap:12px}.community-dialog .photo-admin-actions button{min-height:44px;margin:0}@media(max-width:480px){.tag-name-filters{grid-template-columns:1fr}.community-dialog .tag-photo-preview{height:100px}}
.community-dialog:has(.tag-people-list){width:min(780px,calc(100vw - 32px));padding:24px;box-sizing:border-box}
.community-dialog:has(.tag-people-list)>h2{margin:0 0 12px}.community-dialog:has(.tag-people-list) form{gap:10px}.community-dialog:has(.tag-people-list) form>p{margin:0}.community-dialog:has(.tag-people-list) .tag-photo-preview{height:110px}
.community-dialog .tag-people-list{max-height:min(26dvh,240px);margin:0}.community-dialog:has(.tag-people-list) .photo-admin-actions{position:sticky;bottom:-24px;background:#f5f4ec;padding-block:12px;margin:0}

/* The whole photo fits on desktop as well as compact screens. */
#photo-viewer .viewer-stage{min-height:0}
#photo-viewer .viewer-stage>img{height:var(--photo-frame-height,70svh);min-height:0;max-height:none;object-fit:contain}

.gallery-filters .people-language-hint{flex:0 0 100%;margin:0 0 4px;font-size:14px;line-height:1.5;color:inherit}
.gallery-filters.people-search .people-roles{display:flex;flex-wrap:wrap;align-items:center;gap:0 20px;border:0;padding:0;margin:0;min-width:0}.gallery-filters.people-search .people-roles legend{float:left;margin-inline-end:4px;padding:0;font-weight:600}.gallery-filters.people-search .people-roles label{display:inline-flex;flex:0 0 auto;max-width:none;align-items:center;gap:6px;min-height:44px;font-size:15px;white-space:nowrap;cursor:pointer}.gallery-filters.people-search .people-roles input{width:20px;height:20px;min-height:0;padding:0;margin:0}

/* 2.3.220 (Andrew 21.10, audit list п.14): a computer — the open photo has ONE row above it: the neighbouring albums (names on one line, cut with «…», the whole
   name on hover), «Назад в альбом», «Показывать имена», and «IMG_… · N из M» set apart at the end; the photo gets the height that is left */
#photo-viewer.viewer-one-row .viewer-top{display:flex;flex-wrap:nowrap;align-items:center;gap:10px;min-height:44px;margin:0 0 8px;padding:0}
#photo-viewer.viewer-one-row .viewer-top>.album-neighbors{display:flex;flex-wrap:nowrap;gap:8px;margin:0;min-width:0;flex:0 1 auto}
#photo-viewer.viewer-one-row .viewer-top>.album-neighbors[hidden]{display:none}
#photo-viewer.viewer-one-row .viewer-top>.album-neighbors>a{min-width:0;max-width:280px;flex:0 1 auto;min-height:40px;padding-block:6px}
#photo-viewer.viewer-one-row .viewer-top>.album-neighbors .mobile-control-label{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#photo-viewer.viewer-one-row .viewer-top>#photo-return{flex:0 0 auto;min-height:40px;white-space:nowrap}
#photo-viewer.viewer-one-row .viewer-top>.photo-name-control{flex:0 0 auto;width:auto;min-width:0;margin:0}
#photo-viewer.viewer-one-row .viewer-name{display:flex;flex-direction:row;align-items:baseline;gap:8px;flex:none;min-width:0;max-width:none;min-height:0;margin-inline-start:auto;padding:6px 12px;border-radius:16px;background:#ece9df;white-space:nowrap}
#photo-viewer.viewer-one-row #photo-filename{min-width:0;overflow:hidden;text-overflow:ellipsis;font-weight:600}
#photo-viewer.viewer-one-row #viewer-count{flex:none;margin:0}

/* 2.3.225 (Andrew 19.10, audit list п.8: the full site on a phone held sideways — black strips ~44 pt left and right of the photo view): the pages take the whole
   screen (viewport-fit=cover); the page's own content keeps clear of the camera notch with the safe-area padding, the full-screen photo (fixed, inset 0) and the
   dialogs cover all of it. A computer has no safe areas (0) — nothing changes there. */
body{padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
.fullscreen-viewer .fullscreen-bottom,.fullscreen-viewer .fullscreen-top{padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}

/* 2.3.229 (Andrew 22.10, audit list п.18): a computer wider than 1366 px — the path stands in the row of «Альбомы / По годам / Люди», an open photo's «IMG_… · N из M»
   right after it; «Поиск папки» is the field's own placeholder; the row above the photo (neighbours, «Назад в альбом», names) spreads across the photo's width.
   Two lines less above the photo. */
body.gallery-wide-top .gallery-toolbar{display:flex;align-items:center;flex-wrap:nowrap;gap:12px 24px;min-width:0}
body.gallery-wide-top .gallery-toolbar>.album-breadcrumbs{flex:0 1 auto;min-width:0;margin:0;flex-wrap:nowrap;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
body.gallery-wide-top .gallery-toolbar>.album-breadcrumbs>*{flex-shrink:0}
body.gallery-wide-top .gallery-toolbar>.viewer-name{display:flex;flex-direction:row;align-items:baseline;gap:8px;flex:none;margin:0;min-height:0;max-width:none;padding:6px 12px;border-radius:16px;background:#ece9df;white-space:nowrap}
body.gallery-wide-top .gallery-toolbar>.viewer-name #photo-filename{display:inline;font-weight:600}
body.gallery-wide-top .gallery-toolbar>.viewer-name #viewer-count{display:inline;margin:0}
body.gallery-wide-top .folder-panel>label{display:block;margin:0}
body.gallery-wide-top .folder-search-caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.gallery-wide-top .folder-panel>label>input{margin:0;width:100%;box-sizing:border-box}
body.gallery-wide-top #photo-viewer.viewer-one-row{margin-top:0}
#photo-viewer.viewer-one-row .viewer-top{justify-content:space-between}
#photo-viewer.viewer-one-row .viewer-top>.album-neighbors{flex:2 1 0;min-width:0}
#photo-viewer.viewer-one-row .viewer-top>.album-neighbors>a{flex:1 1 0;max-width:none}
#photo-viewer.viewer-one-row .viewer-top>#photo-return{flex:0 1 auto}
#photo-viewer.viewer-one-row .viewer-top>.photo-name-control{flex:0 0 auto}
body.gallery-wide-top .gallery-toolbar{justify-content:flex-start}
body.gallery-wide-top .folder-panel>label{position:sticky;top:0;z-index:1;background:var(--paper,#f5f3ed);padding-bottom:6px}
