Portfolio: 78% width centered, extra vertical breathing
Portfolio cards no longer span the full 12-column row on tablet+ sizes — they cap at 78% max-width and center themselves, so a landscape image feels less like a wall and more like a plate inside the layout. Stays full-bleed below 700px so it still feels right on phones. Added margin-block to push neighbors away vertically.
This commit is contained in:
@@ -279,8 +279,17 @@ main > .section:first-child { margin-top: var(--space-3xl); }
|
||||
.grid > .card--featured{ grid-column: span 8; }
|
||||
}
|
||||
|
||||
/* portfolio item — always full row */
|
||||
.grid > .card--portfolio { grid-column: span 12; }
|
||||
/* portfolio item — full row on mobile, ~78% centered with breathing room above */
|
||||
.grid > .card--portfolio {
|
||||
grid-column: span 12;
|
||||
margin-block: clamp(0.5rem, 1.5vw, 1.25rem);
|
||||
}
|
||||
@media (min-width: 700px) {
|
||||
.grid > .card--portfolio {
|
||||
max-width: 78%;
|
||||
justify-self: center;
|
||||
}
|
||||
}
|
||||
|
||||
/* clients grid — auto-flowing square tiles */
|
||||
.grid--clients {
|
||||
|
||||
Reference in New Issue
Block a user