.grid{ display: flex; flex-direction: column; } .heading{ margin-bottom: 32px; } .subtitle{ font-weight: 400; font-size: 20px; line-height: 160%; } .inputHero{ margin-top: 54px; background-color: var(--purewhite); padding: 5px; border-radius: 28px; display: flex; flex-direction: row; justify-content: space-between; flex-wrap: nowrap; margin-bottom: 50px; } .textInput{ border: none; font-size: 16px; font-weight: 400; line-height: 140%; color: rgba(51, 51, 51, 0.6); margin-left: 22px; outline: none; width: 70%; } .heroStats{ display: flex; flex-direction: row; } .heroStats span:nth-child(1){ margin-right: 60px; } .image{ border-radius: 32px; height: 340px; max-width: 95%; aspect-ratio: 1/1; object-fit: cover; box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.205); margin-top: 50px; } @media screen and (min-width: 768px){ .grid{ display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; gap: 0px 25px; grid-template-areas: ". ."; } .image{ border-radius: 32px; height: 400px; max-width: auto; aspect-ratio: 1/1; object-fit: cover; box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.205); margin-top: none; } } @media screen and (min-width: 980px){ .image{ height: 560px; } .inputHero{ max-width: 400px; } } @media screen and (min-width: 1400px) {}