/* --- Block Portfolio
-------------------------------------------------------- */
.wp-block-portfolio,
.wp-block-portfolio-with-category {
    .wp-block-query {
        .wp-block-post-template {
            .wp-block-post:not(.has-post-thumbnail) {
                .wp-featured-image {
                    width: 100%;
                    padding-bottom: 56.25% !important;
                    position: relative;
                    &:before {
                        content: "No Featured Image";
                        font-size: 16px;
                        color: var(--wp--preset--color--meta);
                        text-align: center;
                        position: absolute;
                        left: 50%;
                        top: 50%;
                        transform: translate(-50%, -50%);
                    }
                }
            }
            .wp-post-group {
                .wp-post-content {
                    transition: 0.5s;
                    transform: translateX(0);
                    .wp-block-post-date {
                        .icon {
                            display: none;
                        }
                    }
                }
                &:hover {
                    .wp-post-content {
                        transform: translateX(30px);
                    }
                }
            }
        }
    }
}


/* Portfolio With Category Cover */

.wp-block-portfolio-cover,
.wp-block-portfolio-with-category-cover {
    .wp-block-query {
        .wp-block-post-template {
            .wp-block-post:not(.has-post-thumbnail) {
                .wp-block-cover {
                    &:before {
                        content: "No Featured Image";
                        font-size: 16px;
                        color: var(--wp--preset--color--meta);
                    }
                }
            }
            .wp-post-group {
                .wp-block-cover {
                    min-height: 446.667px;
                    .wp-block-cover__inner-container {
                        position: absolute;
                        bottom: 0;
                        padding: 21px;
                        box-sizing: border-box;
                        transition: 0.5s;
                        .wp-block-post-title {
                            a {
                                color: var(--wp--preset--color--color-light);

                                &:hover {
                                    color: var(--wp--preset--color--primary);
                                }
                            }
                        }
                    }
                    .wp-block-cover__image-background {
                        -webkit-filter: grayscale(100%);
                        filter: grayscale(100%);
                        -webkit-transition: filter .5s cubic-bezier(.455, .03, .515, .955);
                        transition: filter .5s cubic-bezier(.455, .03, .515, .955);
                    }
                    .wp-block-cover__background {
                        transition: 0.5s;
                    }
                    &:hover {
                        .wp-block-cover__background {
                            opacity: 0;
                        }
                        .wp-block-cover__image-background {
                            -webkit-filter: none;
                            filter: none;
                        }
                    }
                }
                transition: transform .5s cubic-bezier(.215, .61, .355, 1), -webkit-transform .5s cubic-bezier(.215, .61, .355, 1);
                &:hover {
                    -webkit-transform: scale(.97) rotateX(-3deg);
                    transform: scale(.97) rotateX(-3deg);
                }
            }
        }
    }
}

/* Gray Featured image with hover */
.wp-post-group {
        .wp-block-cover__image-background,
        .wp-block-post-featured-image img {
            -webkit-filter: grayscale(100%);
            filter: grayscale(100%);
            -webkit-transition: filter .5s cubic-bezier(.455, .03, .515, .955);
            transition: filter .5s cubic-bezier(.455, .03, .515, .955);
        }

        .wp-block-cover__background,
        .wp-block-post-featured-image img {
            transition: 0.5s;
        }

        &:hover {
            .wp-block-cover__background {
                opacity: 0;
            }

            .wp-block-cover__image-background,
            .wp-block-post-featured-image img {
                -webkit-filter: none;
                filter: none;
            }
        }

    transition: transform .5s cubic-bezier(.215, .61, .355, 1),
    -webkit-transform .5s cubic-bezier(.215, .61, .355, 1);

    &:hover {
        -webkit-transform: scale(.97) rotateX(-3deg);
        transform: scale(.97) rotateX(-3deg);
    }

    .wp-block-post-featured-image a {
        &:before {
            content: none;
        }
    }
}


/* Category Pro Tabs */
.wp-block-portfolio-with-category,
.wp-block-portfolio-with-category-cover {
    .wp-block-fse-pro-tabs {
        max-width: var(--wp--style--global--wide-size);

        .nav-tabs {
            display: flex;
            justify-content: center;
            margin-bottom: var(--wp--preset--spacing--30);
            border: 0;

            >li {
                >a {
                    border-radius: 0;
                    color: var(--wp--preset--color--meta);
                    display: inline-block;
                    border: 0;
                    text-transform: uppercase;
                    font-weight: 600;
                    line-height: 1.62;
                    outline: 0;
                    padding: 7px 14px;
                    font-size: 13px;

                    &:hover {
                        color: var(--wp--preset--color--foreground);
                    }
                }
            }

            >li.active {
                >a {
                    background-color: transparent;
                    border: none;
                    color: var(--wp--preset--color--foreground);
                }
            }
        }
    }
}

@media screen and (min-width: 1200px) {
    .wp-block-portfolio-cover,
    .wp-block-portfolio-with-category-cover {
        .wp-block-query {
            .wp-block-post-template {
                .wp-post-group {
                    .wp-block-cover {
                        .wp-block-cover__inner-container {
                            opacity: 0;
                            visibility: hidden;
                            transform: translateX(0);
                            padding: 21px 0;
                        }

                        &:hover {
                            .wp-block-cover__inner-container {
                                transform: translateX(30px);
                                opacity: 1;
                                visibility: visible;
                            }
                        }
                    }

                }
            }
        }
    }
}


