* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

li {
    list-style: none;
}

.container {
    padding: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 40px auto;
}

.container ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.container ul li {
    letter-spacing: 1px;
    padding: 5px 15px;
    cursor: pointer;
    margin: 5px;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    font-weight: bold;
    font-size: 15px;
}

.container ul li.active {
    border-color: #c70039;
    color: #e84545;
}

.project-files {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.project-files .itembox {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 5px;
    display: block;
}

.project-files .itembox img {
    position: absolute;
    width: 100%;
    height: 250px;
    object-fit: cover;
    left: 0;
    top: 0;
    cursor: pointer;
}

.container .project-files .itembox.show {
    /* animation: show 0.5s ease 0s 1 forwards; */
    transform-origin: center;
}

.container .project-files .itembox.hide {
    animation: hide 0.5s ease 0s 1 forwards;
    transform-origin: center;
}

@keyframes hide {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
        width: 0;
        height: 0;
        margin: 0;
    }
}

@keyframes show {
    0% {
        transform: scale(0);
        width: 0;
        height: 0;
        margin: 0;
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 468px) {
    .project-files .itembox {
        width: 320px;
        height: 250px;
    }
}