.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    list-style: none;
    padding: 0;
    margin: 0;
}

@media screen and (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

.grid li {
    position: relative;
    background-color: #f1f1f1;
    overflow: hidden;
    /* min-height: 16em; */
    grid-column: span 6;
}

.grid li.quarter {
    grid-column: span 3;
}

@media screen and (min-width: 768px) {
    .grid li.quarter {
        grid-column: span 6;
    }
}

@media screen and (min-width: 992px) {
    .grid li.quarter {
        grid-column: span 3;
    }
}

@media screen and (min-width: 768px) {
    .grid li.third {
        grid-column: span 4;
    }

}

.grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: transform 1s ease;
    aspect-ratio: 1;
}

.grid li:hover img {
    transform: scale(1.05);
}

.grid li a {
    display: flex;
    text-decoration: none;
}

.grid picture {
    width: 100%;
}

.grid picture:before {
    content: "";
    background: linear-gradient(180deg, rgba(53, 35, 13, 0.8) 0%, rgba(0, 0, 0, 0.16) 100%);
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
}

.grid li .picture-content {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.grid li .title-category {
    font-size: 1.875rem;
    line-height: 1.2;
    color: #fff;
    text-align: center;
    z-index: 1;
}

.grid li .title-category p strong {
    font-size: 1.5rem;
}

.grid li .btn-discover {
    background: transparent;
    border-radius: 3em;
    color: white;
    border: 1px solid white;
    padding: 1em 1.333em;
    min-width: 176px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 0.938rem;
    line-height: 1.2em;
    z-index: 1;
    cursor: pointer;
    transition: all .3s linear;
}

.grid li .btn-discover:hover {
    background: white;
    color: #000;
    transition: all .3s linear;
}

@media (min-width:1250px) {
    .grid li .title-category {
        font-size: 2.188rem;
        line-height: 1.5;
    }
    .grid li .title-category p strong {
        font-size: 2.813rem;
    }

    .grid li.quarter .title-category p,
    .grid li.quarter .title-category p strong {
        font-size: 2.188rem;
    }
}

@media (min-width:350px) and (max-width:1249px) {
    .grid li.quarter .title-category p,
    .grid li.quarter .title-category p strong {
        font-size: 1.2rem;
    }

    .grid li .btn-discover {
        padding: 0.583em 1.333em;
        min-width: 100px;
        font-size: 0.75rem;
    }
}