title: Swiperjs isn't working with my css grid on nextjs
body: <p>I'm trying to do an about page and i need 3 sets of elements inside a vertical slider, so i picked swiperjs. Without the carousel, they were working just fine as far as the grid goes, but now the columns are extremely tall and the elements aren't in their correct rows. Here's how it looks on the jsx</p>
  <pre><code>    &lt;container className = {styles.sobreGeral}&gt;
        &lt;div className={styles.parent}&gt;
          &lt;Swiper
            direction={&quot;vertical&quot;}
            pagination={{clickable: true,}}
            modules={[Pagination]}              
          &gt;
            &lt;SwiperSlide&gt;
              &lt;div className={styles.div1}&gt;                   
                &lt;img src=&quot;sobre.jpg&quot; alt=&quot;alt&quot; className={styles.imagem} /&gt;            
              &lt;/div&gt;
              &lt;div className={styles.div2}&gt;
                &lt;img src=&quot;logo-sobre.jpg&quot; alt=&quot;logo&quot; className={styles.imagem} /&gt;
              &lt;/div&gt;
              &lt;div className={styles.div3}&gt;
                &lt;p&gt;text&lt;/p&gt;
              &lt;/div&gt;
            
            &lt;/SwiperSlide&gt;
            &lt;SwiperSlide&gt;
              &lt;div className={styles.div1}&gt; 
                &lt;img src=&quot;sobre-rita.jpg&quot; alt=&quot;pic&quot; className={styles.imagem} /&gt;
              &lt;/div&gt;
              &lt;div className={styles.div2}&gt;
                &lt;h2&gt;Rita &lt;/h2&gt;
              &lt;/div&gt;
              &lt;div className={styles.div3}&gt;
                &lt;p&gt;text&lt;/p&gt;
              &lt;/div&gt;
            &lt;/SwiperSlide&gt;    
            &lt;SwiperSlide&gt;
            &lt;div className={styles.div1}&gt; 
                &lt;img src=&quot;sobre-jose.jpg&quot; alt=&quot;pic&quot; className={styles.imagem} /&gt;
              &lt;/div&gt;
              &lt;div className={styles.div2}&gt;
                &lt;h2&gt;Jose &lt;/h2&gt;
              &lt;/div&gt;
              &lt;div className={styles.div3}&gt;
                &lt;p&gt;text&lt;/p&gt;
              &lt;/div&gt;
            &lt;/SwiperSlide&gt;
          &lt;/Swiper&gt;
        &lt;/div&gt;
      &lt;/container&gt;  
  }
  </code></pre>
  <p>and here's how the css is setup</p>
  <pre><code>.sobreGeral{
      display: flex;
      margin-top: 150px;
  
  }
  
  .contato{
      display: flex;        
      justify-content: center;
      
  }
  .parent {
      display: grid;
      grid-template-columns: repeat(9, 1fr);
      width: 100%;
      grid-template-rows: repeat(8, 1fr);
      grid-column-gap: 0px;
      grid-row-gap: 0px;
  }        
  .div1 { 
      grid-area: 2 / 3 / 6 / 6;
      max-width: fit-content;
      padding-left: 10%;        
  }
  .div2 { 
      grid-area: 2 / 6 / 4 / 11;
      max-width: fit-content;    
  }
  .div3 { 
      grid-area: 4 / 6 / 6 / 8;    
  }
  </code></pre>
  <p>without the swiper, things were in their proper places, but as it is it's not working</p>