diff --git a/_sass/_custom.scss b/_sass/_custom.scss index 64ad9c1..3032af6 100644 --- a/_sass/_custom.scss +++ b/_sass/_custom.scss @@ -1269,6 +1269,28 @@ figure { SCROLL TO TOP - FULL STYLING (all viewports) ============================================================================ */ + @media (max-width: 768px) { + body { + overflow-x: hidden; + max-width: 100vw; + min-width: 0; + } + + /* Ensure scroll-to-top button stays visible on mobile */ + #scroll-to-top { + display: none !important; + position: fixed !important; + bottom: 4.5rem !important; + right: 1rem !important; + z-index: 9999 !important; + } + + /* When JS sets display: block, override to actually show it */ + #scroll-to-top[style*="display: block"] { + display: block !important; + } +} + #scroll-to-top { position: fixed; bottom: 4.5rem;