Hello everyone.
Since 3 Day's i'm trying to find a solution for my problem. I'm making a Portfolio website with a fixed header, and a fixed sidebar. In the content container i have multiple sections which are 100% of the parent div, later i'll add a snap scrolling effect so everything looks cool, i already got this working and all is fine.
The Problem:
All the sections needs to stay at the same height, but when i put a lot content inside a section, all sections getting bigger - but i want the content of the section to overflow:scroll so i can scroll inside the section and when i reached the bottom i want to scroll to the next section.
Second Problem: When the whole window gets smaller in height i want the .site to overflow:scroll
This is how it should look like:

But when the inside of a section is higher than the section self:

Here is a code of a similar layout that i'm using on my homepage:
html, body {
margin: 0;
background: lightgrey;
height: 100vh;
}
.site {
display: flex;
flex-direction: column;
box-shadow: inset 0 0 0 2px red ;
height: 100%;
}
.header {
padding: 40px 0;
text-align: center;
background: red;
}
.main {
flex: 1;
display: flex;
}
.sidebar {}
.content {
display: flex;
flex-direction: column;
background: blueviolet;
overflow-y: scroll;
flex: 1;
}
.section {
flex: 0 0 100%;
}
.section:last-child{
background: blue
}
<html>
<body>
<div class="site">
<div class="header">header</div>
<div class="main">
<div class="sidebar">sidebar1</div>
<div class="content">
<div class="section">Now i want the content inside here to overflow inside of this section, but the section has to keep the same height.<br>You can see the Problem if you run this emmet: <h1>Overflow</h1><h1>Overflow</h1><h1>Overflow</h1><h1>Overflow</h1><h1>Overflow</h1><h1>Overflow</h1><h1>Overflow</h1><h1>Overflow</h1><h1>Overflow</h1><h1>Overflow</h1><h1>Overflow</h1><h1>Overflow</h1><h1>Overflow</h1><h1>Overflow</h1><h1>Overflow</h1><h1>Overflow</h1><h1>Overflow</h1><h1>Overflow</h1></div>
<div class="section">section</div>
</div>
<div class="sidebar">sidebar2</div>
</div>
</div>
</body>
</html>
Here is a image of the design i created that describes the problem:

If someone could help me it would be amazing.
Thank you and have a nice weekend :)