*{
 padding: 0;
 margin: 0;
 box-sizing: border-box;   
}
body{
width: 100%;
height: auto;
display: flex;
justify-content: center;
align-items: center; 
overflow: none;  
}
.main{
width: 100%;
height: auto;  
overflow: none;  
background-image: linear-gradient(to top,black,transparent);
}
.main h3{
 color: #E91C21;
 font-size: 30px;
 font-weight: 800;
 font-family: poppins;
 padding: 5px 30px;   
}
.gallery{
width: 100%;
height: 550px;
display: grid;   
overflow: hidden;
grid-template-columns: 80% 1fr;
margin-bottom: 30px;
}

.gallery .img-display{
height: 550px;
padding: 20px;
margin-right: 5px;
}

.gallery .img-display img{
width: 100%;
height: 100%;
animation: current 1s;   
transition: all 1s;

}

.gallery .img-container{
display: flex;
flex-direction: column; 
padding: 20px;
align-items: center;
overflow: none;
}

.img-container img{
width: 150px;
height: 100px;    
transition: all 1s;
border: 5px solid white;
border-top-right-radius: 20px;
border-top-left-radius: 20px;
margin-bottom: 5px;
}





@keyframes current{
 0%{
 
  transform: rotateX(180deg); 
 }   
}

@keyframes next{
 0%{
  margin-top: 0;  
 }   
}

@media screen and (max-width:500px) {
.main h3{

 font-size: 25px;
 font-weight: 700;
 font-family: poppins;
 padding: 5px 30px;   
}
.gallery{
width: 100%;
height: auto;
display: grid;   
overflow: none;
grid-template-columns:100%;
}

.gallery .img-display{
height: 350px;   
width: 100%; 

}

.gallery .img-display img{
width: 100%;
height: 100%;
margin-left: 0;   
border: 0;
border-radius: 0;
animation: current 0.5s;
border-top: 5px solid #499C54;

}

.gallery .img-container{
display: flex;
flex-direction: row; 
background-color:transparent;

}

.img-container img{
width: 80px;
height: 80px;    
transition: all 1s;
border: 5px solid #499C54;
border-radius: 50%;
margin-right: 5px;
}
}

