:root {
  --max-width: 100rem
  --container-padding: 0;
}

html {
    scrollbar-gutter: stable;
}

#wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  border: 10px solid red;
  
}

#header.inside {
    display: flex;
    justify-content: space-between;
    gap: 2rem 1rem;
    border: 10px solid blue;
}

#container {
  flex: 1;
  display: flex;
  flex-flow: row wrap;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
}

#main {
  flex: 1 1 0;
  min-width: 0; 
  
}

aside {
  flex: 0 0 300px;
}

@media (max-width: 768px) {
  #container { flex-direction: column; }
  aside { flex: 0 0 auto; width: 100%; }
}

