work {
    display: flex;
    width: 100%;
    justify-content: space-around;
    margin-top: 3vh;
}

worktile {
    box-shadow: 0 0 3vw #aaa;
    border-radius: 1vw;
    width: 30vw;
    display: flex;
    flex-direction: column;
    position: relative;
}

worktile img {
    width: 100%;
    height: 10vh;
    object-fit: contain;
    display: flex;
    margin-top: 2vh;
}

worktile h3 {
    height: 2lh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition:
        100ms max-height ease-in-out,
        100ms margin ease-in-out;
    overflow: hidden;
}

worktile time,
worktile type {
    font-weight: bold;
    opacity: 0.7;
    text-align: center;
    overflow: hidden;
    max-height: 1lh;
    transition: 100ms max-height ease-in-out;
}

worktile.show time,
worktile.show type,
worktile.show h3 {
    max-height: 0;
    margin: 0;
}

worktile desc {
    font-size: small;
    padding-left: 1.5vw;
    margin-bottom: 2vh;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        opacity 250ms ease-in-out,
        max-height 250ms ease-out;
}

worktile.show desc {
    max-height: 50vh;
    opacity: 1;
}

worktile li {
    margin-top: 1vh;
}

@media (max-aspect-ratio: 1/1) {
    work {
        flex-direction: column;
    }

    worktile {
        width: 80vw;
        margin-left: 10vw;
        margin-bottom: 10vw;
    }
}
