/* v61 — final reinforcement. The actual palette is injected by gallery.php. */
body.l2-gallery-page #gallery-page-toolbar .gpx-filter,
body.l2-gallery-page #gallery-page-toolbar .gpx-home,
body.l2-gallery-page .gallery-pagination a,
body.l2-gallery-page .gallery-pagination span{color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.72)!important}
body.l2-gallery-page #gallery-page-toolbar .gpx-filter i,
body.l2-gallery-page #gallery-page-toolbar .gpx-home i{color:#fff!important}
body.l2-gallery-page #gallery-page-modal[data-gallery-layout]{z-index:2147483400!important}
body.l2-gallery-page #gallery-page-modal[data-gallery-layout] .gallery-viewer-top-type,
body.l2-gallery-page #gallery-page-modal[data-gallery-layout] .gallery-viewer-zoom-label,
body.l2-gallery-page #gallery-page-modal[data-gallery-layout] .gallery-viewer-nav-button,
body.l2-gallery-page #gallery-page-modal[data-gallery-layout] .gallery-viewer-zoom-button,
body.l2-gallery-page #gallery-page-modal[data-gallery-layout] .gallery-modal-close{color:#fff!important}


/* v62: pagination/count readability + side viewer fallback. */
html[data-l2-layout^="legacy-"] body.l2-gallery-page .gallery-pagination a,
html[data-l2-layout^="legacy-"] body.l2-gallery-page .gallery-pagination span{color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.75)!important}
html[data-l2-layout^="legacy-"] #l2u-legacy-gallery-modal .l2u-lgv-count,
html[data-l2-layout^="legacy-"] #l2u-legacy-gallery-modal .l2u-lgv-navcount{color:#fff!important;opacity:1!important}


/* v63: lateral viewer count + gallery pagination readability. */
html[data-l2-layout^="legacy-"] #l2u-legacy-gallery-modal .l2u-lgv-count,
html[data-l2-layout^="legacy-"] #l2u-legacy-gallery-modal .l2u-lgv-navcount,
html[data-l2-layout^="legacy-"] #l2u-legacy-gallery-modal .l2u-lgv-zoom-label{color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.85)!important;font-weight:800!important}
html[data-l2-layout^="legacy-"] body.l2-gallery-page .gallery-pagination a,
html[data-l2-layout^="legacy-"] body.l2-gallery-page .gallery-pagination span{color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.85)!important;font-weight:800!important}

/* v67: every Gallery viewer stays below Likes and Login dialogs. */
body.l2-gallery-page #gallery-page-modal,
html[data-l2-layout^="legacy-"] #gallery-page-modal{z-index:2147483400!important}
html[data-l2-layout^="legacy-"] .l2-home-media-modal{z-index:2147483300!important}
