@import url('https://fonts.googleapis.com/css2?family=Jura:wght@300..700&display=swap');

html{
    font-size: 100%;
    box-sizing: border-box;
}

*, *::before, *::after{
    box-sizing: inherit;
}

body{
    margin: 0;
    padding: 0;
    font-family: "Jura", sans-serif;
    line-height: 1.3;
    font-size: 1rem; /*16px*/
    font-weight: 300;
}

.container{
    padding: 2.8125rem;
    height: 100vh;
    display: flex;
    align-items: center;
}

.grid{
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    grid-template-rows: repeat(16, 2vw);
    gap: 1rem;
}

.item{
    position: relative;
}

.item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item .brand-name{
    position: absolute;
    padding: 0.25rem 0.5rem;
    top: 10%;
    background-color: #FFFFFF;
}


.grid .item:first-child{
    grid-area: 1 / 5 / 7 / 9;
}

.grid .item:nth-child(2){
    grid-area: 7 / 6 / 16 / 9;
}

.grid .item:nth-child(3){
    grid-area: 4 / 9 / 14 / 13;
}

.grid .item:nth-child(4){
    grid-area: 2 / 13 / 11 / 16;
}

.grid .item:nth-child(5){
    grid-area: 11 / 13 / 17 / 17;
}

.grid .title{
    grid-area: 11 / 1 / 13 / 3;
}

.title h1{
    font-size: 3rem;
    font-weight: bold;
}

/*1023px*/
@media (max-width: 63.9375em){
    .title h1{
        font-size: 2rem;
    }    
    .item .brand-name{
        top: 25%;
    }
}

/*767px*/
@media (max-width: 47.9375em){
    .container{
        padding: 1.5rem;
    }

    .grid{
        grid-template-rows: repeat(16, 5vw);
        gap: 0.5rem;
    }

    .title h1{
        font-size: 1.5rem;
    }
}

/*479px*/
@media (max-width: 29.9375em){
    .container{
        padding: 1rem;
    }

    .grid{
        grid-template-rows: repeat(16, 6vw);
        gap: 0.25rem;
    }

    .item .brand-name{
        top: 70%;
        font-size: 0.75rem;
    }

    .title h1{
        font-size: 1rem;
    }   
}
