.gallery .elementlist{
display: grid;
grid-template-columns: repeat(6, 1fr);
grid-template-rows: repeat(4, 1fr);
grid-gap: 10px;
height: 500px;
height: clamp(400px, 70vh, 600px);
}
.gallery .elementlist > div:nth-of-type(1){ grid-area: 1 / 1 / 3 / 7; }
.gallery .elementlist > div:nth-of-type(2){ grid-area: 3 / 1 / 4 / 3; }
.gallery .elementlist > div:nth-of-type(3){ grid-area: 3 / 3 / 4 / 5; }
.gallery .elementlist > div:nth-of-type(4){ grid-area: 3 / 5 / 4 / 7; }
.gallery .elementlist > div:nth-of-type(5){ grid-area: 4 / 1 / 5 / 4; }
.gallery .elementlist > div:nth-of-type(6){ grid-area: 4 / 4 / 5 / 7; }


@media (min-width: 768px){
.gallery .elementlist{
grid-template-columns: repeat(12, 1fr);
grid-template-rows: repeat(2, 1fr);
height: 350px;
height: clamp(350px, 50vmin, 500px);
}
.gallery .elementlist > div:nth-of-type(1){ grid-area: 1 / 1 / 3 / 7; }
.gallery .elementlist > div:nth-of-type(2){ grid-area: 1 / 7 / 2 / 9; }
.gallery .elementlist > div:nth-of-type(3){ grid-area: 1 / 9 / 2 / 11; }
.gallery .elementlist > div:nth-of-type(4){ grid-area: 1 / 11 / 2 / 13; }
.gallery .elementlist > div:nth-of-type(5){ grid-area: 2 / 7 / 3 / 10; }
.gallery .elementlist > div:nth-of-type(6){ grid-area: 2 / 10 / 3 / 13; }
}
.gallery .elementlist > div{
flex: none;
overflow: hidden;
padding: 0;
}
.gallery .elementlist > div > div{
height: 100% !important;
margin: 0;
}
.gallery .elementlist > div img{
width: 100%;
height: 100%;
object-fit: cover;
}
