/* Shared Gallery navigation: the original links, counters and handlers remain in place. */
body:has(#ts-gallery-page) #id-corpo:has(.elem_menu){box-sizing:border-box;width:calc(100% - 96px)!important;max-width:1180px;margin-inline:auto;background:#faf9f6!important;border-color:#dedcd5!important;z-index:90}
body:has(#ts-gallery-page) #id-corpo>:is(.c950,.c585){width:100%!important;max-width:none!important;box-sizing:border-box}
body:has(#ts-gallery-page) #id-corpo>div>ul{box-sizing:border-box;width:100%!important;display:flex!important;align-items:center;justify-content:space-between;gap:16px;border-inline:0!important;padding-block:6px}
body:has(#ts-gallery-page) #id-corpo>div>ul>li{display:flex!important;align-items:center;width:auto!important;min-width:0;border:0!important}
body:has(#ts-gallery-page) #id-corpo>div>ul>li:first-child{flex:1;min-width:0}
body:has(#ts-gallery-page) #id-corpo>div>ul>li>ul{display:flex;align-items:center;gap:2px;float:none!important;margin:0!important}
body:has(#ts-gallery-page) #id-corpo>div>ul>li:first-child>ul{overflow-x:auto;white-space:nowrap;min-width:0;scrollbar-width:thin;scrollbar-color:#bbb4a7 transparent}
body:has(#ts-gallery-page) #id-corpo>div>ul>li:first-child>ul>li{flex:none}
body:has(#ts-gallery-page) #id-corpo>div>ul>li:first-child>ul>li>div{padding:0 9px!important}
body:has(#ts-gallery-page) #id-corpo .elem_menu{font:500 12px/1.5 Arial,Helvetica,sans-serif;letter-spacing:.015em}
body:has(#ts-gallery-page) #id-corpo a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;color:#4a4943!important;font:500 12px/1.4 Arial,Helvetica,sans-serif!important;text-decoration:none}
body:has(#ts-gallery-page) #id-corpo a span{color:inherit!important;font:inherit!important}
body:has(#ts-gallery-page) #id-corpo a:hover{color:#8b4934!important}
body:has(#ts-gallery-page) #id-corpo :is(a,[tabindex]):focus-visible{outline:2px solid #8b4934;outline-offset:2px}
body:has(#ts-gallery-page) #id-corpo a:is([href='/?p=c'],[href='/?p=d']){width:44px;position:relative}
body:has(#ts-gallery-page) #id-corpo a:is([href='/?p=c'],[href='/?p=d'])>img{opacity:0;width:24px!important;height:24px!important}
body:has(#ts-gallery-page) #id-corpo a:is([href='/?p=c'],[href='/?p=d'])::before{content:'';position:absolute;width:23px;height:23px;background:currentColor;mask:center/contain no-repeat var(--ts-nav-icon)}
body:has(#ts-gallery-page) #id-corpo a[href='/?p=c']{--ts-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M3 3h2l3 12h11l3-9H6M8 18h11'/%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3C/svg%3E")}
body:has(#ts-gallery-page) #id-corpo a[href='/?p=d']{--ts-nav-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M12 21S2 15 2 8a5 5 0 0 1 10-1 5 5 0 0 1 10 1c0 7-10 13-10 13Z'/%3E%3C/svg%3E")}
body:has(#ts-gallery-page) #id-corpo img[alt='notifications']{width:26px!important;height:auto!important;filter:grayscale(1)}
body:has(#ts-gallery-page) #id-corpo>div>ul>li:first-child>div{flex:none;margin-left:8px;max-width:42px}
body:has(#ts-gallery-page) #id-corpo>div>ul>li:last-child>ul>li{padding-inline:3px!important}
body:has(#ts-gallery-page) #id-corpo a[href='#top-of-page']{margin-inline:4px!important}
/* Informational pages already supply their own 920px container. */
body:has(#ts-gallery-page) .ts-gallery-navigation #id-corpo:has(.elem_menu){width:100%!important;max-width:none!important;margin-inline:0}
body:has(#ts-gallery-page) #id-corpo:has(.elem_menu):is([style*="position: fixed"],[style*="position:fixed"]){left:50%!important;transform:translateX(-50%);margin-inline:0!important}
body:has(#ts-gallery-page) .ts-gallery-navigation #id-corpo:has(.elem_menu):is([style*="position: fixed"],[style*="position:fixed"]){width:calc(100% - 96px)!important;max-width:920px!important}
@media(max-width:760px){
 body:has(#ts-gallery-page) #id-corpo:has(.elem_menu){width:calc(100% - 48px)!important}
 body:has(#ts-gallery-page) #id-corpo>div>ul{flex-wrap:wrap;gap:0}
 body:has(#ts-gallery-page) #id-corpo>div>ul>li:first-child{flex:1 1 100%;width:100%!important}
 body:has(#ts-gallery-page) #id-corpo>div>ul>li:last-child{display:flex!important;width:100%!important;justify-content:flex-end}
 body:has(#ts-gallery-page) #id-corpo>div>ul>li:first-child>ul{flex:1}
 body:has(#ts-gallery-page) .ts-gallery-navigation #id-corpo:has(.elem_menu):is([style*="position: fixed"],[style*="position:fixed"]){width:calc(100% - 48px)!important}
}
