Shows the Lifestyle fotografie photos as a swipeable row on phones
Four stacked photos were too much on a phone screen. Below the small breakpoint the gallery is now a scroll-snap row with one photo at a time and the next one peeking in; tablets and desktops keep the grid. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1407,7 +1407,19 @@ p:last-child { margin-bottom: 0; }
|
||||
.hero__socials { bottom: 1.5rem; flex-direction: row; }
|
||||
.hero__scroll { display: none; }
|
||||
|
||||
.intro-gallery { grid-template-columns: 1fr; }
|
||||
/* Phones: one photo at a time in a swipeable row, the next one peeking in */
|
||||
.intro-gallery:not(.intro-gallery--duo) {
|
||||
display: flex;
|
||||
overflow-x: auto;
|
||||
scroll-snap-type: x mandatory;
|
||||
scroll-padding-inline: var(--gutter);
|
||||
margin-inline: calc(-1 * var(--gutter));
|
||||
padding-inline: var(--gutter);
|
||||
scrollbar-width: none;
|
||||
}
|
||||
.intro-gallery:not(.intro-gallery--duo)::-webkit-scrollbar { display: none; }
|
||||
.intro-gallery:not(.intro-gallery--duo) figure { flex: 0 0 85%; scroll-snap-align: center; }
|
||||
.intro-gallery--duo { grid-template-columns: 1fr; }
|
||||
.intro-gallery figure { margin-top: 0 !important; }
|
||||
|
||||
.portfolio-grid { grid-template-columns: 1fr; }
|
||||
|
||||
Reference in New Issue
Block a user