.portfolioContainer {
    max-width: 1130px;
    margin: 0px auto;
    /* padding: 30px 8%; */
}

section.btns {
    margin: 20px 0 30px 0;
}

section.btns ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 20px;
}

section.btns ul li {
    display: inline-block;
    padding: 3px 0px;
    font-size: 18px;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
    margin: 4px 15px;
    cursor: pointer;
    transition: color 0.4s;
}

section.btns ul li:hover {
    color: #111827;
}

section.btns ul li.active {
    position: relative;
    color: #111827;
}

section.btns ul li.active::after {
    content: "";
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #111827;
    animation: animate 0.4s linear;
}

@keyframes animate {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

section.album {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* grid-auto-rows: 230px; */
    grid-gap: 10px;
}

section.album .card {
    position: relative;
    max-width: 100%;
    height: 100%;
    cursor: pointer;
}

section.album .card.hide {
    display: none;
}

section.album .card.active {
    display: block;
    animation: animateTwo 0.6s;
}

@keyframes animateTwo {
    0% {
        transform: scale(0.6);
    }

    100% {
        transform: scale(1);
    }
}

.card .imgBox {
    position: relative;
    width: 100%;
    height: 100%;
}

.card .imgBox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s;
    border-radius: 20px;
}

.card:hover .imgBox img {
    opacity: 0.3;
    cursor: pointer;
}

.card .imgText {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.imgText h2 {
    font-weight: bold;
}

.imgText h2, .imgText p {
    padding: 20px 10%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s linear,
                padding 0.3s linear;
}

.card:hover .imgText h2, .card:hover .imgText p {
    opacity: 1;
    padding: 8px 10%;
}

@media(max-width : 1024px) {
    section.album {
        grid-template-columns: repeat(2, 1fr);
    }

    section.album .card {
        padding: 8px 8px;
    }
}

@media(max-width : 600px) {
    section.album {
        grid-template-columns: repeat(1, 1fr);
    }

    section.album .card {
        padding: 5px 5px;
    }

    header.title {
        padding: 0px 0px 10px 0px;
    }

    section.btns ul li {
        font-size: 14px;
        font-weight: 600;
    }
}