.banner{
    width: 100%;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    position: relative;
}
.banner .slider{
    position: absolute;
    width: 200px;
    height: 250px;
    top: 10%;
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    animation: autoRun 20s linear infinite;
    z-index: 2;
}
@keyframes autoRun{
    from{
        transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
    }to{
        transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
    }
}

.banner .slider .item{
    position: absolute;
    inset: 0 0 0 0;
    transform: 
    rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
    translateZ(min(30vw, 400px));
    border: 6px solid rgba(112,149,138,255); /* Border (stroke) */
  border-radius: 12px;      /* Rounded corners */
  margin: 2px;              /* Optional spacing */
  box-sizing: border-box;   /* Ensures border stays inside the element's box */
}
.banner .slider .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.banner .content{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, 100vw);
    height: max-content;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}
.banner .content h1{
    font-family: 'ICA Rubrik';
    font-size: 16em;
    line-height: 1em;
    color: #25283B;
    position: relative;
}
.banner .content h1::after{
    position: absolute;
    inset: 0 0 0 0;
    content: attr(data-content);
    z-index: 2;
    -webkit-text-stroke: 2px #d2d2d2;
    color: transparent;
}
.banner .content .author{
    font-family: Poppins;
    text-align: right;
    max-width: 200px;
}
.banner .content h2{
    font-size: 3em;
}
.banner .content .model{
    background-image: url(images/model.png);
    width: 100%;
    height: 75vh;
    position: absolute;
    bottom: 0;
    left: 0;
    background-size: auto 130%;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: 1;
}

@media screen and (max-width: 1024px) {
    .banner .slider{
        width: 150px;
        height: 200px;
        left: calc(50% - 75px);
    }
    .banner .slider .item{
        transform: 
            rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(min(40vw, 500px));
    }
    .banner .content h1{
        font-size: 5em;
    }
    .banner {
        max-height: 50vh;
    }
    .banner .slider .item {
        border: 6px solid rgba(112,149,138,255); /* 100% thicker border */
      }
}

@media screen and (max-width: 700px) {
    .banner .slider{
        width: 100px;
        height: 150px;
        left: calc(50% - 50px);
    }
    .banner .slider .item{
        transform: 
            rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(min(40vw, 500px));
    }
    .banner .content h1{
        font-size: 5em;
    }
}
  
@media screen and (max-width:402px) {
    .banner .slider{
        width: 90px;
        height: 120px;
        left: calc(50% - 50px);
        
    }
    .banner .slider .item{
        transform: 
            rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(180px);
    }
    .banner .content h1{
        font-size: 5em;
    }
    
}
@media screen and (min-width: 1600px) {
    .banner .slider {
      width: 400px; /* 100% bigger than 200px */
      height: 500px; /* 100% bigger than 250px */
      left: calc(50% - 200px); /* Half of the new width */
    }
  
    .banner .slider .item {
      border: 10px solid rgba(112,149,138,255); /* 100% thicker border */
      margin: 90px; /* Increased margin to widen the gap between cards */
    }
  }
  
  