
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    min-height: 100vh;
    background: #eee;
}

.card{
    width: 350px;
    height: 350px;
    display: grid;
    grid-template-rows: minmax(100%, 1fr);
    grid-template-areas: "cards";
    overflow: hidden;
    border-radius: 10px;
}

.card img{
    grid-area: cards;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card figcaption{
    grid-area: cards;
    background: rgba(43, 56, 100, 0.8);
    transform: translateY(calc(100% - 4rem));
    transition: transform 600ms;
    padding: 0 20px 20px 20px;
    color: #FFF;
    font-weight: 400;
}

.card h3{
    height: 4rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 22px;
    text-transform: uppercase;
}

.card p{
    font-size: 14px;
    padding: 10px 0;
}

.card button{
    float: right;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
}

.card:hover figcaption{
    transform: none;
}