.revin{
    background: #0B010E;
    align-content: center;
    place-items: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.revin::before{
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url(https://as1.ftcdn.net/v2/jpg/05/49/29/70/1000_F_549297047_fxiIUIxD1AM6Iaw3GjQQ9ZBRrHJQm21q.jpg);
    background-size: cover;
    background-position: center;
    opacity: 5%;
}
main{
    width: min(1200px, 90vw);
    width: 100%;
    margin: auto;
}
.slider{
    width: 100%;
    height: var(--height);
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 10% 90%,
        transparent
    );
}
.slider .list2{
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
}
.slider .list2 .item2{
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%;
    animation: autoRun 10s linear infinite;
    transition: filter 0.5s;
    animation-delay: calc( (10s / var(--quantity)) * (var(--position) - 1) )!important;
    text-shadow: 0px 1px 25px rgb(218, 148, 148);
    
}
.slider .list2 .item2 img{
    width: 100%;
    height: 400px;
    border: 2px solid orange; 
}
.slider .list2 .item2 h2{
    text-align: center;
    background-color: rgb(255, 225, 180);
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 4px;
    height: 32px;
    width: 110px;
    color: black;
    border-radius: 40px;
    font-size: 20px;
    font-weight: lighter;
    transition: .5s ease;
    box-shadow: 0px 1px 10px rgb(255, 217, 171);
}
@keyframes autoRun{
    from{
        left: 100%;
    }to{
        left: calc(var(--width) * -1);
    }
}
.slider:hover .item2{
    animation-play-state: paused!important;
    filter: grayscale(1);
}
.slider .item2:hover{
    filter: grayscale(0);
}
.slider .item2 h2:hover{
    height: 33px;
    border: 2px solid rgb(255, 217, 171);
    color: rgb(255, 217, 171);
    background-color: transparent;
    cursor: pointer;
    transition: .5s ease;
}
.slider[reverse="true"] .item2{
    animation: reversePlay 10s linear infinite;
}
@keyframes reversePlay{
    from{
        left: calc(var(--width) * -1);
    }to{
        left: 100%;
    }
}
@media screen and (max-width: 1040px){
    .slider .list2 .item2 h2{
        width: 100px;
    }
}
.image-grid {
    padding: 12px;
    background: #0B010E;
    align-content: center;
    place-items: center;
    position: relative;
    isolation: isolate;
  }
  .image-row {
    display: flex;  
  }
  
  .image-row .image {
    margin: 12px;
    height: 240px; 
    box-shadow: 0px 1px 20px rgb(255, 233, 168);
  }
  
  .image { 
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 
                0 6px 20px rgba(0, 0, 0, 0.15),
                0 6px 20px rgba(0, 0, 0, 0.7);
  }
  
  .image-01 {
    background-image: url(images/rv1.jpg); 
    flex: 1;  
  }
  
  .image-02 {
    background-image: url(images/rv2.jpg); 
    flex: 1;  
  }
  
  .image-03 {
    background-image: url(images/rv3.jpg);  
    flex: 2;  
  }
  
  .image-04 {
    background-image: url(images/rv4.jpg); 
    flex: 1;
  }
  
  .image-05 {
    background-image: url(images/rv5.jpg);
    flex: 2;
  }
  
  .image-06 {
    background-image: url(images/rv6.jpg);  
    flex: 2;
  }
  
  .image-07 {
    background-image: url(images/rv1.jpg); 
    flex: 1;
  }
  
  .image-08 {
    background-image: url(images/rv2.jpg);  
    flex: 3;
  }
  
  .image-09 {
    background-image: url(images/rv3.jpg);  
    flex: 1;
  }
  @media screen and (max-width: 400px) {
    .image-row {
      flex-direction: column;
    }
    
    .image-row .image {
      flex-basis: auto;
    }
  }
  .image-row .image a{
    font-size: 10px;
    margin-top: 220px; 
    margin-right: 10px;
    color: white;
    text-shadow: 0px 1px 25px rgb(147, 37, 37);
    float: right;
    transition: .5s ease;
  }
  .image-row .image a:hover{
    color: rgb(255, 218, 169);
    text-shadow: 0px 1px 25px rgb(235, 76, 92);
    transform: translateY(-5px);
    transition: .5s ease;
  }