diff --git a/src/components/customerCases/customerCase/featuredCases/featuredCases.module.css b/src/components/customerCases/customerCase/featuredCases/featuredCases.module.css index 66e0ad32b..15f0c866c 100644 --- a/src/components/customerCases/customerCase/featuredCases/featuredCases.module.css +++ b/src/components/customerCases/customerCase/featuredCases/featuredCases.module.css @@ -1,24 +1,22 @@ .wrapper { display: flex; flex-direction: column; - gap: 2rem; - margin: 4rem 0; + gap: var(--padding-s); + margin: 4rem auto; + + max-width: var(--max-content-width-medium); + width: 100%; } .content { - display: flex; - gap: 5rem; - - @media (max-width: 1024px) { - flex-direction: column; - } + display: grid; + gap: var(--padding-m); + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } .caseWrapper { - display: flex; - flex-direction: column; gap: 1rem; - max-width: 500px; + max-width: 31.25rem; flex-grow: 1; flex-basis: 0; }