Вы можете настроить свой код, как показано ниже.Хитрость заключается в том, чтобы управлять распределением свободного пространства, чтобы быть уверенным, что изображение останется в центре:
header {
display: flex;
/*justify-content: center; no more needed*/
align-items: center;
flex-direction: row;
}
header > div:nth-child(2),
header > div:nth-child(4){
flex:1;
}
/*make the last and first one take more space*/
header > div:first-child,
header > div:last-child{
flex:5;
}
/*align first and second to right*/
header > div:first-child,
header > div:nth-child(2) {
text-align:right;
}
body {
max-width: 100%;
overflow-x: hidden;
height: 1000px padding: 0px;
margin: 0px;
}
.nav {
position: sticky;
top: 0;
}
.navLink {
padding: 0 25px;
font-weight: 300;
text-transform: uppercase;
cursor: pointer;
}
#logo {
margin-top: 4px;
margin-bottom: 4px;
width: 4%;
height: 4%;
cursor: pointer;
}
.container {
display: grid;
grid-template-columns: [content] 1fr [images] 1fr
}
.content {
grid-column: content;
background-color: red;
}
.images {
grid-column: images;
text-align: center;
background-color: blue;
}
<div class="nav">
<header>
<div class="navLink" id="story-scroll">Our Story</div>
<div class="navLink" id="menu-scroll">Menu</div>
<img src="https://placekitten.com/50/50" id="logo" lt="logo">
<div class="navLink" id="press-scroll">Press</div>
<div class="navLink" id="contact-scroll">Contact</div>
</header>
</div>
<div class="container">
<div class="content">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has
survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing
software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
<div class="images">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has
survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing
software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
</div>