I have encountered a problem with the grid layout that I am using.

HTML:

```
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style2.css">
<title>Grid training</title>
</head>
<body>
<div class="container">
    <div class="text">
        <h1>This is the title</h1>
        <h3>This is the</br>lorem ispum doler sis amet</h3>
        <input type="submit" value="Submit" class="cta">
    </div>
    <div class="image"></div>
</div>

```

CSS:

```
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;700;900&display=swap');

*{
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Rubik', sans-serif;
}

.container{
padding-top: 50px;
width: 95%;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr;
grid-gap: 15px;
}

 .container > div{
height: 90vh;
}

.image{
background-image: url("img1.jpg");
background-size: cover;
}

.text{
display: flex;
flex-direction: column;
width: 65%;
margin-left: 50px;

}

.text h1{
margin: 50px 0;
font-weight: 900;
font-size: 85px;
}

.text h3{
font-weight: 300;
font-size: 35px;
}

.cat{
border-radius: 25px;
border-style: none;
font-size: 28px;
width: 150px;
height: 40px;
margin-top: 95px;
}

@media (max-width: 600px)
{
.container{
    grid-template-columns: 1fr;
    width: 95%;
}

.image{
    width: 95%;
    margin-left: auto;
    margin-top: 25px;
}
}

```

However, the image on the right side is not responsive when I minimize the browser.
For this reason, I used media queries. Is this technique correct or is there an easier method?
Is there anything else I should consider about the code and make it responsive?