Excellent work on this task and your additions! Cool fallback strategy for the grid!
One way to making the drop-down work on mobile would be to create a media query for mobile where the sub menus are always visible. But this would only be a good idea if there aren’t too many entries.
left: 0; on the nav can be omitted since we have no horizontal scrolling.
Maybe an easier method to make the photos work would be a grid with grid-template-columns: 1fr 1fr;
Scrollbar is part of viewport (17px) and for dekstop version media query i need to use width from inpector (not from responsive mode) + 17px of scroll bar. Right?
Ah, I see that makes sense. May I offer you an improved grid version which behaves similar to your flex code, but also gets rid of the whitespace to the right of the elements:
Puts as many 150px images on the same line as there is space for it.
Expands those images evenly until all the remaining whitespace is used
Yes, there are differences with counting scrollbars. In the end it shouldn’t matter too much as we are trying (in general) to build robust layouts where some small pixel differences won’t destroy it. That’s the challenge
Yes, in this case the images would just get wider to fill the whole column until there is enough space to fit two 150px images side-by-side.
I wouldn’t say grid is simpler or meant to replace flex. They both have a reason to exist. This photos example may be a case where both are reasonable.