body#top .portfoliomasonry-em2 {
    position: relative;

    & .portfoliomasonry-item-em2 .entry-content-wrapper {
        display: flex;
        flex-wrap: wrap;
        margin-left: -15px;
        margin-right: -15px;

        & .portfoliomasonry-entry {
            width: 33.33333333333333%;
            padding-left: 15px;
            padding-right: 15px;
            margin-bottom: 30px;
            flex: 0 0 auto;
        }
    }

    & .portfoliomasonry-heading {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        margin-bottom: 50px;
    }

    & ul.portfoliomasonry-filters {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 10px;
        list-style: none;
        margin: 0px;
        padding: 0px;

        & li {
            background: none;
            color: var(--enfold-main-color-headin);
            margin-left: 0px;
            outline: none;
            cursor: pointer;
            display: inline-block;
            font-family: Montserrat;
            font-weight: 700;
            letter-spacing: 0.5px;
            font-size: 12px;
            line-height: 24px;
            min-width: 88px;
            box-shadow: inset 0 0 0 1px #e0e0e0;
            padding: 8px 16px 8px 16px;
            text-align: center;
            backface-visibility: hidden;
            transition: all 300ms ease-out;

            &.active,
            &:hover {
                background-color: var(--enfold-main-color-primary);
                color: #ffffff;
            }
        }
    }

    & .post-image {
        position: relative;
        overflow: hidden;
        text-align: center;

        & .post-image-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: block;
            z-index: 1;
            background-color: rgb(0 0 0 / .74);
            opacity: 0;
            transition: all 200ms ease-out;

            & .post-image-overlay-content {
                position: absolute;
                width: 100%;
                height: auto;
                top: 50%;
                left: 0;
                text-align: center;
                -ms-transform: translateY(-50%);
                transform: translateY(-50%);
                display: block;
                transition: all 500ms 250ms cubic-bezier(.785, .135, .15, .86);

                &>a {
                    position: relative;
                    margin: 0;
                    display: inline-block;
                    top: auto;
                    left: auto;
                    vertical-align: middle;
                    width: 48px;
                    height: 48px;
                    line-height: 48px;
                    border-radius: 48px;
                    text-align: center;
                    backface-visibility: hidden;
                    transition: all 300ms ease-out;
                    background-color: #fff;
                    color: #212121;
                    font-size: 48px;
                    cursor: pointer;
                    font-family: 'enovathemes' !important;
                    speak: none;
                    font-style: normal;
                    font-weight: 400;
                    font-variant: normal;
                    text-transform: none;

                    &::before {
                        width: 100%;
                        height: 100%;
                        display: block;
                        content: "\e90c";
                    }
                }
            }
        }

        & .image-container {
            overflow: hidden;

            & img {
                transition: all 700ms cubic-bezier(.19, 1, .22, 1);
                -ms-transform: translate3d(0, 0, 0);
                transform: translate3d(0, 0, 0);
                aspect-ratio: 4/3;
                object-fit: cover;
            }
        }

        &:hover {
            & .post-image-overlay {
                opacity: 1;
            }

            & .image-container img {
                -ms-transform: scale(1.15, 1.15);
                transform: scale(1.15, 1.15);
            }
        }
    }

    & .post-body {
        padding: 10px 20px;
        text-align: left;

        & .stylish-box-wrapper {
            display: flex;
            align-items: center;
            justify-content: space-between;

            & .stylish-box {
                padding-left: 4px;

                & .project-category a {
                    text-transform: uppercase;
                    font-size: 12px;
                    line-height: 24px;
                    letter-spacing: .5px;
                    font-weight: 600;
                    color: #9a9a9a;

                    &::after {
                        display: inline-block;
                        vertical-align: middle;
                        content: "";
                        width: 24px;
                        height: 2px;
                        margin: 0 0 0 16px;
                        text-align: center;
                        position: relative;
                        -ms-transform: translateY(-2px);
                        transform: translateY(-2px);
                        background-color: var(--enfold-main-color-primary);
                    }
                }

                & .post-title {
                    margin: 0;
                    font-size: 16px;
                    line-height: 26px;

                    & a {
                        font-size: 16px;
                        line-height: 26px;
                        text-transform: uppercase;
                    }
                }
            }
        }
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    body#top .portfoliomasonry-em2 {
        & .post-body {
            padding-left: 0px;
            padding-right: 0px;

            & .stylish-box-wrapper {
                display: block;

                & .stylish-box {
                    display: block;
                }
            }
        }
    }
}

@media (max-width: 767px) {
    body#top .portfoliomasonry-em2 {
        & .portfoliomasonry-heading {
            display: block;
        }

        & ul.portfoliomasonry-filters {
            margin-top: 30px;
        }

        & .portfoliomasonry-item-em2 .entry-content-wrapper {
            & .portfoliomasonry-entry {
                width: 100%;
            }
        }

        & .post-body {
            padding-left: 0px;
            padding-right: 0px;

            & .stylish-box-wrapper {
                display: block;

                & .stylish-box {
                    display: block;
                }
            }
        }
    }
}