*{
    margin: 0;
    padding: 0;
}

body{
    width: 100svw;
    height: 100svh;
    display: grid;
    place-items: center;
    background-color: darkgray;
}

.container{
    width:50rem;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    padding: 0rem 1rem;
    gap: 3rem;
    overflow: hidden;
}
.container:nth-child(1){
    place-items: end;
    height: 30rem;
    grid-template-columns: repeat(8, 1fr);
    background-color: white;
}
.container:nth-child(1):hover{
    grid-template-rows: 1fr;
}
.container:nth-child(2){
    padding: 0.5rem 1rem;
    place-items: center;
}

.images{
    width: 80%;
    height: 80%;
    display: grid;
    place-items: center;
}

.images img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container:nth-child(1)>div{
    width: 100%;
    height: 0rem;
    display: grid;
    place-items: center;
    color: white;
    transition: background-color 0.5s ease-in-out, height 0.5s ease-in-out;
}

.container:nth-child(1):hover>div:nth-child(1){
    height: 25rem;
    background-color: red;
}
.container:nth-child(1):hover>div:nth-child(2){
    height: 17.8rem;
    background-color: blue;
}
.container:nth-child(1):hover>div:nth-child(3){
    height: 3.2rem;
    background-color: green;
}
.container:nth-child(1):hover>div:nth-child(4){
    height: 4.2rem;
    background-color: darkred;
}
.container:nth-child(1):hover>div:nth-child(5){
    height: 7.4rem;
    background-color: lime;
}
.container:nth-child(1):hover>div:nth-child(6){
    height: 20.8rem;
    background-color: darkblue;
}
.container:nth-child(1):hover>div:nth-child(7){
    height: 5.1rem;
    background-color: hotpink;
}
.container:nth-child(1):hover>div:nth-child(8){
    height: 8.6rem;
    background-color: darkred;
}