/* width variables */
:root {
    --sidebar-width: 380px;
}

/* remove the sidebar at 1120px */
@media (max-width: 1119px) {
    #sidebar {
        display: none;
    }  
    :root {
        --sidebar-width: 0;
    }      
}

/* set the width on the header container */
.breakdance #sidebar {
    width: var(--sidebar-width);
}

/* Set the position */
#sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    max-height: 100vh;
}

/* set the width for the rest of the content */
.breakdance footer.bde-section,
.breakdance>.bde-section:not(#sidebar),
.breakdance .dwc-site-wrapper >.bde-section,
.breakdance > main {
    width: calc(100% - var(--sidebar-width));
    margin-left: auto;
    margin-bottom: auto;
}