| ... | @@ -826,8 +826,11 @@ const screenshot = await getImage({ | ... | @@ -826,8 +826,11 @@ const screenshot = await getImage({ |
| 826 | gap: 12px; | 826 | gap: 12px; |
| 827 | overflow-x: auto; | 827 | overflow-x: auto; |
| 828 | overscroll-behavior-x: contain; | 828 | overscroll-behavior-x: contain; |
| 829 | padding: 4px max(32px, calc((100vw - 1240px) / 2 + 32px)); | 829 | /* Percentages resolve against this element's own box rather than the |
| 830 | scroll-padding-inline: max(32px, calc((100vw - 1240px) / 2 + 32px)); | 830 | viewport, so the first card lines up with the heading's .container edge |
| | 831 | even when a classic scrollbar makes 100vw wider than the layout. */ |
| | 832 | padding: 4px max(32px, calc((100% - 1240px) / 2 + 32px)); |
| | 833 | scroll-padding-inline: max(32px, calc((100% - 1240px) / 2 + 32px)); |
| 831 | } | 834 | } |
| 832 | | 835 | |
| 833 | .endorsement-card { | 836 | .endorsement-card { |