$itemGrow: 1.2;
$duration: 250ms;

html {
  scroll-behavior: smooth;
}

xbody {
  margin: 0;
  background-color: #000;
}

xh1 {
  font-family: Arial;
  color: red;
  text-align: center;
}

.wrapper {
  display: grid;
  grid-template-columns: repeat(3,100%);
  overflow:hidden;
  scroll-behavior: smooth;

  section {
    width: 100%;
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, auto);
    margin: 20px 0;
    
    .item {
      padding: 0 2px;
      transition: $duration all;
      
      &:hover { 
        margin: 0 40px;
        transform: scale(1.2);
      }
      
    }
    
    .arrow__btn {
      position: absolute;
      color: #FFF9DA;
      text-decoration: none;
      font-size: 6em;
      background:rgb(0,0,0);
      width: 80px;
      padding: 20px;
      text-align: center;
      z-index: 1;
      
      &:nth-of-type(1) {
        top:0; bottom:0; left:0;
        background: linear-gradient(-90deg, rgba(137, 27, 162, 0) 0%, rgba(137, 27, 162, 1) 100%);
      }
      &:nth-of-type(2) {
        top:0; bottom:0; right: 0;
        background: linear-gradient(90deg, rgba(137, 27, 162, 0) 0%, rgba(137, 27, 162, 1) 100%);
        
      }
      
    }
    
  }
}

.carousel img{
    width: 450px;
    height: auto;
    margin: 0 15px;
}

// Remove the arrow for Mobile
@media only screen and (max-width: 600px) {
  a.arrow__btn {
    display:none;
  }
}