@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/poppins');


.banner{
    width: 100%;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.banner .slider {
    position: absolute;
    width: 183px;
    height: 150px;
    top: 10%;
left: calc(50% - 100px); 
transform-style: preserve-3d;
transform: perspective(1000px);
animation: autoRun 60s linear infinite;
z-index: 2;
}

@keyframes autoRun {
    from{
        transform: perspective(1000px)rotateX(-8deg) rotateY(0deg);
    }to{
        transform: perspective(1000px)rotateX(-8deg) rotateY(360deg);
    }
}

.banner .slider .item {
    position: absolute;
    inset: 0 0 0 0;
    transform:
    rotateY(calc((var(--position)-1)*(360/var(--quantity)) * 1deg))
     translateZ(550px);
}



.banner .slider .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner .content{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px , 100vw);
    height: max-content;
    padding-bottom: 1px;
    display: flex;
   flex-wrap:wrap;
   justify-content: space-between;
   align-items: center;
z-index: 1;
text-align: center;
}

.banner .content h1{
    font-family: 'ICA Rubrik';
   font-size: 14em;
    line-height: 1em;
    color: #252838;
    position: relative;
     text-align: center ;

}

.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;
    text-align: center;

}


.banner .content .author {
 
    text-align: right;
    max-width: 185px;
    padding-top: 80px;
    padding-right: 30px;
  
}

.banner .content h2 {
    font-size: 3em;
   
}

.banner .content .model {
    background-image: url(../images/redwood__3middle.png);
    width: 95%;
    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 (min-width: 1440px) {
    .banner .slider {
        width: 160px;
        height: 160px;
        left: calc(50% - 110px); /* Center it */
    }

    .banner .slider .item {
        transform:
            rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(700px); /* Further out for more depth on big screens */
    }

    .banner .content h1 {
        font-size: 16em;
    }
}



@media screen and (max-width: 1340px){
    .banner .content h1{
        text-align: center;
       
        font-size: 13em;
}
}
@media screen and (max-width: 1258px){
    .banner .content h1{
        text-align: center;
       
        font-size: 11em;
}
}

@media screen and (max-width: 1093px) {
    .banner .slider{
        width: 160px;
        height: 200px;
        left: calc(50% - 80px);
    }
    .banner .slider .item{
        transform: 
            rotateY(calc( (var(--position) - 1) * (360 / var(--quantity)) * 1deg))
            translateZ(300px);
    }
    .banner .content h1{
        text-align: center;
        width: 100%;
        text-shadow: 0 10px 20px #000;
        font-size: 7em;
    }
    .banner .content .author{
        color: #fff;
        padding: 20px;
        text-shadow: 0 10px 20px #000;
        z-index: 2;
        max-width: unset;
        width: 100%;
        text-align: center;
        padding: 0 30px;
    }
}
@media screen and (max-width: 767px) {
    .banner .slider{
        width: 100px;
        height: 150px;
        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 only screen and (max-width: 1000px) and ( orientation: landscape){ 
    .banner .slider{
        width: 100px;
        height: 150px;
        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 (max-width: 700px) and (max-height: 300px) {
    .banner .content {
        margin-top: 200px; /* Adjust spacing for this frame size */
    }
    .banner .slider {
        width: 100px; /* Reduce slider size if needed */
        height: 120px;
        left: calc(50% - 40px);
    }
    .banner .content h1 {
        margin-top: 2rem;
        font-size: 3em; /* Adjust font size for visibility */
    }
    .banner .content h2 {
        font-size: 1em;
       
    }
}


@media screen and (max-width: 420px){
    .banner .content h1{
        
       font-size: 4em;
        
}
.banner .content h2 {
    font-size: 2em;
   
}

}