.cards {
    --cards-text-color: white;
    --cards-closed-size: 4rem;
    --animation-speed-normal: .5s;
    --animation-speed-fast: .25s;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.card {
    max-height:300px;
    max-width: 500px;

    width: 100%;
    height: var(--cards-closed-size);
    overflow: hidden;
    border-radius: 1rem;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.card[active] {
    height: 56vw;
}

.card__image {
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    filter: brightness(.675) saturate(75%);
}

.card:hover .card__image {
    filter: brightness(.875) saturate(100%);
}

.card__infos {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    height: var(--cards-closed-size);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .125rem;
    width: 100%;
    padding: .25rem 1rem;
}

.card__name {
    margin: 0;
    color: var(--cards-text-color);
    transform: translateY(.65rem);
    
    font-size: 1.5rem;
}

.card[active] .card__name {
    transform: translateY(0);
}

.card__author {
    padding-bottom: 25px;
    color: var(--cards-text-color);
    text-decoration: none;
    transform: translateY(.65rem);
    opacity: 0;
}

.card[active] .card__author {
    transform: translateY(0);
    opacity: 1;
}

.card[active] .card__author:hover {
    opacity: .75;
}

