Proyecto Neptuno’s layout system controls spacing, container widths, header dimensions, and responsive breakpoints. Understanding these properties allows you to adjust the overall feel and structure of your site.
Determine which component or section you want to adjust. Use browser DevTools to inspect the element and find its CSS class.
2
Locate the CSS rule
Open style.css and search for the class name. Note the current padding or margin values.
3
Modify the values
Adjust the spacing values. The current system uses rem units (1rem = 16px by default) and percentage for horizontal padding.Example - Increase section padding:
/* Before */.proyecto-seccion { padding: 5rem 5%;}/* After - More spacious */.proyecto-seccion { padding: 7rem 8%;}
4
Test responsively
Check your changes on different screen sizes to ensure they work well on mobile, tablet, and desktop.
The site uses a 5% horizontal padding on most sections. This creates consistent gutters that scale with viewport width. You can increase this to 8-10% for a more contained layout.
Modify the pixel values in existing media queries:
/* Change from 768px to 900px */@media (max-width: 900px) { .landing-grid { grid-template-columns: 1fr; }}
When adding custom breakpoints, work from largest to smallest. Place them in your CSS in descending order (1200px, 992px, 768px, 576px) for better organization.
/* Header navigation gap */header { gap: 1rem;}/* Landing card content gap */.landing-card { gap: 1rem;}/* Ocio text content gap */.ocio-bloque__texto { gap: 1.5rem;}/* Gastro card content gap */.gastro-card { gap: 1.5rem;}/* Form group gap */.form-group { gap: 0.5rem;}
To create more breathing room:
.landing-card { gap: 2rem; /* Increased from 1rem */}.gastro-card { gap: 2.5rem; /* Increased from 1.5rem */}
/* Increase max-widths */.render-grid--two { max-width: 1400px; /* Up from 1200px */}.gastro-grid { max-width: 1400px; /* Up from 1200px */}.footer-inner { max-width: 1400px; /* Up from 1200px */}
When increasing max-widths beyond 1200px, consider increasing the gap values in grid layouts to prevent content from feeling too spread out.
Test on multiple screen sizes - Use browser DevTools responsive mode
Check all pages - Ensure changes work across index, gastro, ocio, proyecto, and contact pages
Verify mobile navigation - Ensure the hamburger menu still works correctly
Check content overflow - Make sure text and images don’t overflow their containers
Test grid behavior - Verify grid layouts stack properly on smaller screens
Always test layout changes on actual mobile devices when possible. Browser DevTools are helpful but don’t always perfectly replicate real device behavior.