.grid {
    box-sizing: border-box;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    justify-items: center;
    list-style-type: none;
    padding: 0;
    margin: auto;
}

.grid__item {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: space-between;

    max-height: 80vh;
    height: 100vw;
    width: 90%;
    padding: 1rem 1rem;
    box-sizing: border-box;
    background-position: center;
    background-size: cover;
}

.grid__item > h3 {
    margin: 0;
}

.grid__item > p {
    margin: 0 1rem;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: 50% 50%;
        gap: 0;
    }

    .grid__item {
        width: 100%;
        height: 50vw;
        aspect-ratio: 1/1;
    }
}
/* 
Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {
     
    .grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }
    }

/* X-Large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(0px, 1fr));
    }

    .grid__item {
        max-height: 60vh;
        max-width: 25vw;
    }
     
    }