/* Pxl Grid */
.pxl-grid {
    .grid-filter-wrap {
        margin-bottom: 70px;
        .filter-item {
            font-family: $heading_font_family;
            font-size: 17px;
            font-weight: 500;
            line-height: 36px;
            color: $heading_color;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            cursor: pointer;
            padding: 0 20px;
            position: relative;
            &:after {
                content: "";
                display: block;
                height: 1px;
                background-color: $primary_color;
                position: absolute;
                bottom: 0;
                left: 20px;
                right: 20px;
                transform: scaleX(0);
                transform-origin: left;
                @include transition(all 0.3s linear);
            }
            &.active,
            &:hover {
                &:after {
                    transform: scaleX(1);
                }
            }
        }
        &.start {
            .filter-item:first-child {
                padding-left: 0 !important;
                &:after {
                    left: 0 !important;
                }
            }
        }
        &.end {
            .filter-item:last-child {
                padding-right: 0 !important;
                &:after {
                    right: 0 !important;
                }
            }
        }
        &.style-2 {
            margin-bottom: 59px;
            gap: 20px;
            @media (max-width: $sm_max) {
                margin-bottom: 40px;
            }
            .filter-item {
                font-family: $body_font_family;
                font-size: 13px;
                font-weight: 500;
                line-height: 40px;
                color: $heading_color;
                letter-spacing: 0.1em;
                padding: 0 28px;
                border: 1px solid $primary_color;
                @include transition();
                &:after {
                    content: "";
                    display: block;
                    height: 1px;
                    background-color: $primary_color;
                    position: absolute;
                    bottom: -9px;
                    left: 0;
                    right: 0;
                    transform: scaleX(0);
                    transform-origin: center;
                    @include transition(all 0.3s linear);
                }
                &.active,
                &:hover {
                    background-color: $primary_color;
                    color: #fff;
                    &:after {
                        transform: scaleX(1);
                    }
                }
            }
            &.start {
                .filter-item:first-child {
                    padding-left: 0 !important;
                    &:after {
                        left: 0 !important;
                    }
                }
            }
            &.end {
                .filter-item:last-child {
                    padding-right: 0 !important;
                    &:after {
                        right: 0 !important;
                    }
                }
            }
        }
        &.style-3 {
            margin-bottom: 78px;
            gap: 20px 50px;
            @media (max-width: $sm_max) {
                margin-bottom: 40px;
            }
            .filter-item {
                font-family: $heading_font_family;
                font-size: 20px;
                font-weight: 500;
                line-height: 45px;
                color: $heading_color;
                letter-spacing: 0.1em;
                padding: 0;
                @include transition();
                &:after {
                    content: "";
                    display: block;
                    height: 4px;
                    background-color: $secondary_color;
                    position: absolute;
                    bottom: -3px;
                    left: 0;
                    right: 0;
                    transform: scaleX(0);
                    transform-origin: center;
                    @include transition(all 0.3s ease-in-out);
                    @include border-radius(2px);
                }
                &.active,
                &:hover {
                    color: $primary_color;
                    &:after {
                        transform: scaleX(1);
                    }
                }
            }
            &.start {
                .filter-item:first-child {
                    padding-left: 0 !important;
                    &:after {
                        left: 0 !important;
                    }
                }
            }
            &.end {
                .filter-item:last-child {
                    padding-right: 0 !important;
                    &:after {
                        right: 0 !important;
                    }
                }
            }
        }
        &.style-4 {
            display: flex;
            gap: 62px;
            @media (max-width: $sm_max) {
                gap: 10px 45px;
            }
            .filter-item {
                display: inline-flex;
                flex-direction: column;
                align-items: center;
                font-family: $body_font_family;
                font-weight: 600;
                line-height: 45px;
                letter-spacing: 0.1em;
                padding: 0;
                @include transition();
                &:before {
                    content: '\e9e5';
                    font-family: $pxli_font;
                    font-size: 17px;
                    line-height: 1;
                    opacity: 0;
                }
                &:after {
                    content: none;
                }
                &.active {
                    color: $primary_color;
                    &:before {
                        opacity: 1;
                    }
                }
            }
        }
    }
    .grid-sizer {
        visibility: hidden;
        position: absolute;
        margin: 0 !important;
        padding: 0 !important;
    }
    .grid-item-inner {
        position: relative;
    }
    .item-featured .post-image > a {
        display: block;
    }
}
.grid-item {
    .pxl-media-popup {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
    }
}
/* Pxl Post Grid */
.pxl-post-grid {
    &.layout-post-1 {
        .grid-item {
            margin-bottom: 20px;
        }
        .item-featured {
            position: relative;
            margin-top: 25px;
            margin-bottom: 15px;
            .post-date {
                display: flex;
                justify-content: center;
                background-color: $secondary_color;
                display: inline-block;
                padding: 22px 18px 18px;
                position: absolute;
                top: 0;
                left: 0;
                text-align: center;
                z-index: 2;
                .post-day {
                    font-family: $heading_font_family;
                    color: $primary_color;
                    font-size: 35px;
                    line-height: 1;
                    letter-spacing: 0.01em;
                }
                .post-month-year {
                    margin-top: 1px;
                    font-size: 13px;
                    letter-spacing: 0.1em;
                    color: #fff;
                    text-transform: uppercase;
                }
            }
            .post-image {
                position: relative;
                overflow: hidden;
                &:after {
                    content: "";
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    z-index: 1;
                    background-image: url(.././images/blog-grid-overlay.png);
                    background-size: cover;
                    background-repeat: no-repeat;
                }
            }
            .item-title {
                position: absolute;
                z-index: 3;
                padding: 0 49px 0 30px;
                left: 0;
                bottom: 32px;
                margin-bottom: 0;
                color: $white;
                font-size: 20px;
                line-height: 1.5;
                letter-spacing: 0.05em;
                text-transform: uppercase;
                @include text-truncate-multi-line(20px, 1.5, 2);
                @media (max-width: $xl_max) {
                    padding: 0 15px;
                    bottom: 24px;
                }
            }
        }
        .pxl-archive-post {
            i {
                color: $secondary_color;
            }
            &.format-quote {
                .quote-inner {
                    .quote-text {
                        font-size: 20px;
                        line-height: 30px;
                        @media (min-width: $xl_min) {
                            max-width: 94%;
                        }
                    }
                }
            }
            &.format-link {
                .link-inner {
                    .link-text {
                        font-size: 20px;
                        line-height: 30px;
                    }
                }
            }
        }
        .item-content {
            .post-metas {
                background-color: transparent;
                color: $heading_color;
                text-transform: uppercase;
                line-height: 1.5;
                padding: 0;
                .meta-inner {
                    @media (min-width: $sm_min) {
                        flex-wrap: nowrap;
                    }
                    a {
                        color: $heading_color;
                        background-image: linear-gradient(transparent calc(100% - 1px), $secondary_color 1px);
                        background-size: 0% 100%;
                        background-repeat: no-repeat;
                        transition: background-size 400ms;
                        &:hover {
                            background-size: 100% 100%;
                        }
                    }
                    > span {
                        padding: 0 6px 0 0;
                        &:before {
                            content: "\2022";
                        }
                        &:after {
                            content: none;
                        }
                    }
                    .post-author {
                        flex-wrap: nowrap;
                    }
                    .post-category {
                        display: flex;
                        align-items: flex-start;
                        &:before {
                            margin-right: 3px;
                        }
                    }
                }
            }
        }
        .pxl-divider {
            margin-top: 14px;
            width: 100%;
            height: 1px;
            &:before {
                content: none;
            }
        }
        .item-excerpt {
            margin-top: 18px;
            margin-bottom: 15px;
        }
        .pxl-media-popup .media-play-button {
            color: $heading_color;
            width: 68px;
            height: 68px;
            &:before {
                background-color: white;
            }
            &:has(.zmdi-volume-up) {
                i {
                    font-size: 26px;
                }
            }
            &:hover {
                &:before {
                    transform: scale(1.1);
                }
            }
            .pxli-play-2 {
                color: inherit !important;
                -webkit-text-stroke: unset;
            }
        }
        .post-metas {
            margin-bottom: 0;
            .post-comments a:after {
                content: none;
            }
            @media (max-width: $xs_max) {
                .meta-inner > span {
                    width: 100%;
                    margin: 0;
                    padding-right: 0;
                }
                .post-category {
                    i {
                        display: none;
                    }
                    &:after {
                        content: none;
                    }
                }
            }
        }
        .btn-more {
            &:hover {
                color: $heading_color;
            }
        }
        .posts-pagination {
            padding-top: 30px;
        }
    }
    &.layout-post-2 {
        .item-featured {
            position: relative;
            .post-image {
                overflow: hidden;
                @include border-radius(20px);
                transition: all 400ms ease-out;
            }
            .post-metas {
                position: absolute;
                left: 13px;
                right: 13px;
                bottom: 11px;
                margin-bottom: 0;
                padding: 10px;
                background-color: $primary_color;
                color: #fff;
                @include border-radius(21.5px);
                i {
                    font-size: 13px;
                    margin-right: 6px;
                    color: #fff;
                }
                .meta-inner {
                    padding-left: 6px;
                    padding-right: 6px;
                    justify-content: center;
                    gap: 7px 22px;
                    a {
                        color: #fff;
                    }
                    .post-tags {
                        a + a {
                            margin-left: 5px;
                        }
                    }
                }
            }
        }
        .item-title {
            @include text-truncate-multi-line(22px, 1.363636363636364, 2);
            font-weight: 600;
            text-align: center;
            letter-spacing: 0.02em;
            margin-top: 23px;
            margin-bottom: 0;
        }
        .item-excerpt {
            overflow: hidden;
            @include text-truncate-multi-line(15px, 1.666666666666667, 3);
            text-align: center;
            max-height: 0px;
            transition: all 400ms ease-out;
        }
        .item-readmore {
            margin-top: 33px;
        }
        .posts-pagination {
            padding-top: 55px;
        }
        .grid-item {
            margin-bottom: 20px;
            &:hover {
                .post-image {
                    max-height: 100%;
                }
                .item-excerpt {
                    margin-top: 14px;
                }
            }
        }
    }
    &.layout-post-3 {
        .item-featured {
            position: relative;
            .post-image {
                overflow: hidden;
                @include border-radius(10px);
                transition: all 400ms ease-out;
            }
        }
        .post-metas {
            background-color: transparent;
            color: #666666;
            padding: 26px 0 0 0;
            margin-bottom: 0;
            .meta-inner {
                > span {
                    margin: 0px 12px 0px 0;
                    padding: 0 22px 0 0;
                    &:after {
                        content: '';
                        width: 13px;
                        height: 1px;
                        background-color: $primary_color;
                        display: inline-block;
                        right: 0;
                        top: 50%;
                        transform: translateY(-50%);
                    }
                    &:last-child:after {
                        content: none;
                    }
                }
                a {
                    color: inherit;
                }
            }
        }
        .item-title {
            @include text-truncate-multi-line(22px, 1.363636363636364, 2);
            font-weight: 600;
            letter-spacing: 0.02em;
            margin-top: 23px;
            margin-bottom: 0;
        }
        .item-excerpt {
            overflow: hidden;
            @include text-truncate-multi-line(15px, 1.666666666666667, 3);
            max-height: 0px;
            transition: all 400ms ease-out;
        }
        .item-readmore {
            margin-top: 25px;
            padding-top: 18px;
            border-top: 1px solid $divider_color;
        }
        .posts-pagination {
            padding-top: 45px;
        }
        .grid-item {
            margin-bottom: 20px;
            &:hover {
                .post-image {
                    max-height: 100%;
                }
                .item-excerpt {
                    margin-top: 14px;
                }
            }
        }
    }
    &.layout-post-4{
        .post-metas{
            background-color: transparent;
            padding: 0;
            margin-bottom: 7px;
            margin-top: 10px;
        }
        .meta-inner{
            justify-content: center;
            .post-author{
                padding: 0 22px 0 0;
                color: #687f94;
                font-size: 15px;
                line-height: 35px;
                letter-spacing: 0;
                a{
                    color: #687f94;
                }
                &::after{
                    content: "\e9eb";
                    font-family: 'pxli';
                }
            }
            .post-category{
                font-size: 15px;
                line-height: 35px;
                letter-spacing: 0;
                color: #687f94;
                a{
                    color: #687f94;
                }
            }
            @media (max-width: $xs_max) {
                justify-content: start;
            }
        }
        .item-content{
            text-align: center;
            @media (max-width: $xs_max) {
                text-align: left;
            }
        }
        .item-title{
            font-size: 23px;
            line-height: 30px;
            letter-spacing: 0;
            font-weight: 800;
            margin-bottom: 17px;
        }
        .item-excerpt{
            letter-spacing: 0;
            max-width: 294px;
            margin-left: auto;
            margin-right: auto;
            @media (max-width: $xs_max) {
                margin-left: 0;
                margin-right: 0;
            }
        }
        .item-readmore{
            margin-top: 20px;
            a{
                font-size: 13px;
                font-weight: bold;
                font-family: $body_font_family;
                letter-spacing: 0;
                i{
                    font-weight: 700;
                    font-size: 16px;
                    position: relative;
                    top: -1px;
                }
                span{
                    transition: all 300ms linear 0ms;
                    &::after{
                        content: "";
                        height: 1px;
                        position: absolute;
                        bottom: 5px;
                        left: 0;
                        right: 43px;
                        width: 0%;
                        transition: all 200ms linear;
                        transition-delay: 100ms;
                        background-color: $primary_color;
                    }
                }
                &::after{
                    display: none;
                }
                &:hover{
                    span{
                        margin-right: 5px;
                        &::after{
                            width: 100%;
                        }
                    }
                    margin-right: 0;
                }
            }

        }
        .post-image{
            overflow: hidden;
            border-radius: 20px;
        }
        .item-featured{
            position: relative;
        }
        .post-date {
            position: absolute;
            top: 19px;
            left: 19px;
            background-color: #f5a81c;
            padding: 13px 17px 14px;
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            box-shadow: 0 5px 0px 0px rgb(211, 143, 19);
            .month-year{
                display: flex;
                gap: 5px;
                color: #fff;
                font-family: $body_font_family;
                font-size: 13px;
                letter-spacing: 0.01em;
            }
            .box-day{
                font-size: 35px;
                font-family: $heading_font_family;
                font-weight: 800;
                color: #fff;
                letter-spacing: 0;
                margin-bottom: 12px;
            }
        }
        .posts-pagination{
            .page-numbers{
                border-radius: 50%;
                background-color: $secondary_color;
                color: #fff;
                border: none;
                &.current{
                    background-color: $primary_color;
                }
            }
        }

    }
}

/* Pxl Post List */
.pxl-post-list {
    &.layout-post-list-1 {
        .pxl-archive-post {
            margin-bottom: 0;
            padding-bottom: 0;
            border-color: transparent;
            &.format-link,
            &.format-quote {
                margin-top: 20px;
                margin-bottom: 20px;
            }
        }
        .grid-item {
            .grid-item-inner {
                padding-bottom: 45px;
            }
            &:last-child {
                .grid-item-inner {
                    padding-bottom: 0;
                    margin-bottom: 0;
                    border-color: transparent;
                }
                .format-link,
                .format-quote {
                    margin-bottom: 0 !important;
                }
            }
        }
        .post-metas {
            margin-top: 6px;
            padding: 26px 0 30px 28px;
            @media (max-width: $sm_max) {
                margin-top: 30px;
            }
        }
        .meta-inner {
            .post-tags,
            .post-author,
            .post-comments {
                a {
                    position: relative;
                    &:before {
                        content: "";
                        position: absolute;
                        background-color: $primary_color;
                        bottom: 0;
                        left: 0;
                        width: 100%;
                        max-width: 0;
                        height: 1px;
                        @include transition(all 300ms linear);
                    }
                    &:hover {
                        color: $primary_color;
                        &::before {
                            max-width: 100%;
                        }
                    }
                }
            }
            .post-tags {
                a {
                    &:not(:last-child) {
                        margin-right: 3px;
                        &:after {
                            content: ",";
                        }
                    }
                }
            }
            > span {
                position: relative;
                display: block;
                font-family: $body_font_family;
                font-size: 15px;
                font-weight: 400;
                color: #fff;
                letter-spacing: 0.01em;
                @media (max-width: $sm_max) {
                    font-size: 14px;
                }
                a {
                    font-size: inherit;
                    color: inherit;
                }
                .label {
                    position: relative;
                    padding-left: 15px;
                    &:before {
                        content: "";
                        position: absolute;
                        width: 4px;
                        height: 4px;
                        background-color: $primary_color;
                        border-radius: 50%;
                        left: 0;
                        top: 50%;
                        transform: translateY(-50%);
                    }
                }
                &:before, &:after {
                    content: none;
                }
                &:not(:last-child) {
                    margin-bottom: 24px;
                    @media (max-width: $sm_max) {
                        margin-bottom: 18px;
                    }
                }
            }
            .post-share {
                display: flex;
                .post-shares .label {
                    display: none;
                }
                .social-share {
                    margin-left: 11px;
                    .pxl-icon {
                        width: 36px;
                        height: 36px;
                        border: 1px solid $primary_color;
                        color: white;
                        font-size: 12px;
                        &:after {
                            background-color: $primary_color;
                        }
                        &:hover {
                            color: $heading_color;
                        }
                    }
                }
            }
        }
        .item-featured .post-image {
            position: relative;
            margin-bottom: 30px;
            overflow: hidden;
            .post-date {
                background-color: $secondary_color;
                display: inline-block;
                padding: 22px 18px 18px;
                position: absolute;
                bottom: 20px;
                right: 26px;
                text-align: center;
                @media (max-width: $xl_max) {
                    display: none;
                }
                .post-day {
                    font-family: $heading_font_family;
                    color: $primary_color;
                    font-size: 35px;
                    line-height: 1;
                    letter-spacing: 0.01em;
                }
                .post-month-year {
                    margin-top: 1px;
                    font-size: 13px;
                    letter-spacing: 0.1em;
                    color: #fff;
                    text-transform: uppercase;
                }
            }
        }
        .item-title {
            font-size: 25px;
            line-height: 32px;
            text-transform: uppercase;
            a {
                @include multiline-hover-underline();                
            }
            @media (max-width: $sm_max) {
                font-size: 22px;
            }
        }
        .item-excerpt {
            margin-top: 17px;
            margin-bottom: 43px;
        }
        .format-wrap {
            padding: 73px 44px 76px 70px;
            @media (max-width: $xs_max) {
                padding: 60px 30px 60px 20px;
            }
            .quote-inner,
            .link-inner {
                .quote-text,
                .link-text {
                    margin: 0;
                    text-align: left;
                    @media (min-width: $xl_min) {
                        max-width: 95%;
                    }
                }
                .pxl-divider {
                    margin: 22px 0 7px;
                }
                .quote-cite,
                .link-cite {
                    text-align: left;
                }
            }
        }
        .format-quote {
            .format-wrap {
                &:after {
                    background-image: url('../images/quote-overlay.png');
                }
            }
            .quote-inner {
                .quote-text {
                    font-size: 17px;
                    line-height: 33px;
                }
            }
        }
        .format-link {
            .format-wrap {
                &:after {
                    background-image: url('../images/link-overlay.png');
                }
            }
            .link-inner {
                flex-direction: row;
                .link-text {
                    font-size: 25px;
                    line-height: 1.6;
                    @media (max-width: $sm_max) {
                        font-size: 22px;
                    }
                }
                .link-cite {
                    margin-top: 29px;
                }
            }
        }
    }
    &.layout-post-list-2 {
        .grid-item {
            &:not(:last-child) {
                .grid-item-inner {
                    position: relative;
                    margin-bottom: 54px;
                    padding-bottom: 55px;
                    @media (max-width: $sm_max) {
                        padding-bottom: 55px;
                        margin-bottom: 55px;
                    }
                    &::before {
                        content: "";
                        position: absolute;
                        background-color: rgba($divider_color, 0.6);
                        height: 1px;
                        left: 15px;
                        right: 15px;
                        bottom: 0;
                    }
                }
            }
        }
        .item-featured {
            position: relative;
            .media-play-button {
                width: 58px;
                height: 58px;
                .pxli-play-2 {
                    font-size: 16px;
                }
                .pxli-volume {
                    font-size: 20px;
                }
                &:hover {
                    &:before {
                        transform: scale(1.1);
                    }
                }
            }
        }
        .item-content {
            .post-category {
                display: block;
                margin-bottom: 6px;
                font-size: 13px;
                line-height: 30px;
                color: $heading_color;
                text-transform: uppercase;
                a {
                    @include multiline-hover-underline();
                }
                @media (max-width: $sm_max) {
                    margin-top: 20px;
                }
            }
            .item-title {
                font-family: $heading_font_family;
                font-size: 20px;
                line-height: 1.5;
                letter-spacing: 0.05em;
                @include text-truncate-multi-line(20px, 1.5, 2);
                a {
                    @include multiline-hover-underline();
                }
            }
            .item-excerpt {
                margin-top: 4px;
            }
            .post-metas {
                margin: 26px 0 0 0;
                padding: 0;
                background-color: transparent;
                color: $heading_color;
                a {
                    @include multiline-hover-underline();
                }
                .meta-inner {
                    > div {
                        &:not(:first-child) {
                            &:before {
                                content: "\2022";
                                color: $primary_color;
                                padding-right: 10px;
                            }
                        }
                        &:not(:last-child) {
                            margin-right: 12px;
                        }
                    }
                }
            }
        }
    }
    &.layout-post-list-3 {
        .pxl-archive-post {
            margin-bottom: 0;
            padding-bottom: 0;
            border-color: transparent;
        }
        .grid-item {
            .grid-item-inner {
                padding-bottom: 75px;
            }
            &:last-child {
                .grid-item-inner {
                    padding-bottom: 0;
                    margin-bottom: 0;
                    border-color: transparent;
                }
                .format-link,
                .format-quote {
                    margin-bottom: 0 !important;
                }
            }
        }
        .post-metas {
            background-color: $additional01_color;
            margin-top: 6px;
            padding: 26px 0 30px 28px;
            border: 1px solid $divider_color;
            @media (max-width: $sm_max) {
                margin-top: 30px;
            }
        }
        .meta-inner {
            .post-tags,
            .post-author,
            .post-comments {
                a {
                    position: relative;
                    &:before {
                        content: "";
                        position: absolute;
                        background-color: $primary_color;
                        bottom: 0;
                        left: 0;
                        width: 100%;
                        max-width: 0;
                        height: 1px;
                        @include transition(all 300ms linear);
                    }
                    &:hover {
                        color: $primary_color;
                        &::before {
                            max-width: 100%;
                        }
                    }
                }
            }
            .post-tags {
                a {
                    &:not(:last-child) {
                        margin-right: 3px;
                        &:after {
                            content: ",";
                        }
                    }
                }
            }
            > span {
                position: relative;
                display: block;
                font-family: $body_font_family;
                font-size: 15px;
                font-weight: 400;
                color: #fff;
                letter-spacing: 0.01em;
                @media (max-width: $sm_max) {
                    font-size: 14px;
                }
                a {
                    font-size: inherit;
                    color: inherit;
                }
                .label {
                    position: relative;
                    padding-left: 15px;
                    &:before {
                        content: "";
                        position: absolute;
                        width: 4px;
                        height: 4px;
                        background-color: $primary_color;
                        border-radius: 50%;
                        left: 0;
                        top: 50%;
                        transform: translateY(-50%);
                    }
                }
                &:before, &:after {
                    content: none;
                }
                &:not(:last-child) {
                    margin-bottom: 24px;
                    @media (max-width: $sm_max) {
                        margin-bottom: 18px;
                    }
                }
            }
            .post-share {
                display: flex;
                flex-direction: column;
                align-items: start;
                gap: 18px;
                .post-shares .label {
                    display: none;
                }
                .social-share {
                    .pxl-icon {
                        width: 36px;
                        height: 36px;
                        border: 1px solid $primary_color;
                        color: white;
                        font-size: 12px;
                        &:after {
                            background-color: $primary_color;
                        }
                        &:hover {
                            color: $heading_color;
                        }
                    }
                }
            }
        }
        .item-featured .post-image {
            position: relative;
            margin-bottom: 25px;
            overflow: hidden;
            .post-date {
                background-color: $secondary_color;
                display: inline-block;
                padding: 22px 18px 18px;
                position: absolute;
                bottom: 20px;
                right: 26px;
                text-align: center;
                @media (max-width: $xl_max) {
                    display: none;
                }
                .post-day {
                    font-family: $heading_font_family;
                    font-weight: 600;
                    color: $primary_color;
                    font-size: 45px;
                    line-height: 40px;
                    letter-spacing: 0.05em;
                }
                .post-month-year {
                    border-top: 1px solid rgba(255, 255, 255, 0.15);
                    min-width: 65px;
                    margin-top: 13px;
                    padding-top: 10px;
                    font-size: 13px;
                    letter-spacing: 0.05em;
                    color: #fff;
                    text-transform: uppercase;
                }
            }
        }
        .item-title {
            max-width: 670px;
            margin-bottom: 19px;
            font-size: 30px;
            line-height: 40px;
            letter-spacing: 0.02em;
        }
        .pxl-divider {
            background-color: rgba(200, 200, 200, 0.25);
        }
        .item-excerpt {
            margin-top: 23px;
            margin-bottom: 34px;
        }
        .format-quote,
        .format-link {
            position: relative;
            padding-bottom: 16px;
            &:after {
                content: '';
                position: absolute;
                left: 0;
                right: 0;
                bottom: 0px;
                border-bottom: 1px solid $divider_color;
            }
            .format-wrap {
                position: relative;
                padding: 47px 44px 41px 70px;
                border-color: $divider_color;
                text-align: center;
                position: relative;
                overflow: hidden;
                border: 1px solid $divider_color;
                background-color: $secondary_color;
                &:after {
                    content: '';
                    display: block;
                    width: 100%;
                    height: 100%;
                    position: absolute;
                    top: 0;
                    left: 0;
                    background-size: cover;
                    background-position: top right;
                    background-repeat: no-repeat;
                }
                @media (max-width: $xs_max) {
                    padding: 60px 30px 60px 20px;
                }
                .quote-inner,
                .link-inner {
                    .quote-text,
                    .link-text {
                        margin: 0;
                        text-align: left;
                        @media (min-width: $xl_min) {
                            max-width: 95%;
                        }
                    }
                    .pxl-divider {
                        margin: 22px 0 7px;
                        width: 114px;
                        &:before {
                            width: 100%;
                        }
                    }
                    .quote-cite,
                    .link-cite {
                        text-align: left;
                    }
                }
            }
        }
        .format-quote {
            .quote-icon {
                font-family: 'Cirka';
                font-size: 150px !important;
                max-height: 100px !important;
            }
            .quote-inner {
                .quote-text {
                    font-size: 25px;
                    font-style: italic;
                    font-weight: 600;
                    line-height: 35px;
                    letter-spacing: 0.05em;
                    text-transform: none;
                }
                .quote-cite {
                    font-size: 15px;
                    line-height: 26px;
                    letter-spacing: 0.1em;
                    text-transform: uppercase;
                }
            }
        }
        .format-link {
            .link-text {
                max-width: none;
                margin: 0 auto;
                font-size: 25px;
                font-weight: 600;
                letter-spacing: 0.05em;
                font-style: italic;
                text-transform: none;
                line-height: 1.6;
                @media (min-width: $xl_min) {
                    max-width: 85%;
                }
                @media (max-width: $sm_max) {
                    font-size: 22px;
                }
            }
            .link-cite {
                margin-top: 29px;
                font-size: 15px;
                line-height: 26px;
                text-transform: uppercase;
            }
            .link-icon {
                margin: 6px 0 3px;
                display: inline-flex;
                border-radius: 11px;
                align-items: center;
                justify-content: center;
                background-color: $secondary_color;
                color: $primary_color;
                position: relative;
                font-size: 50px;
                line-height: 1;
                a {
                    color: $primary_color;
                }
            }
        }
    }
    &.layout-post-list-4 {
        .grid-item:not(:last-child) {
            margin-bottom: 75px;
        }
        .grid-item-inner {
            .post-image {
                position: relative;
            }
            .post-metas {
                color: #fff;
                padding: 20px 0 12px;
                margin-bottom: 0;
                a {
                    color: #fff;
                    &:hover {
                        color: $primary_color;
                    }
                }
                &.hover-underline a, 
                &a.hover-underline {
                    &:after {
                        border-color: $primary_color;
                    }
                }
                .meta-inner {
                    > span,
                    .author-date-wrapper {
                        padding: 0 0 0 11px;
                        margin: 5px 10px 5px 0;
                        &:before {
                            content: '';
                            display: inline-block;
                            position: absolute;
                            width: 4px;
                            height: 4px;
                            background-color: $primary_color;
                            border-radius: 5px;
                            left: 0;
                            top: 50%;
                            @include transform(translateY(-50%));
                        }
                        &:after {
                            content: none;
                        }
                    }
                    .author-date-wrapper {
                        position: relative;
                    }
                    .post-author {
                        margin-right: 0;
                    }
                }
            }
            .item-title {
                font-size: 30px;
            }
            .pxl-divider {
                background-color: rgba(200, 200, 200, 0.25);
            }
            .item-excerpt {
                margin-top: 18px;
            }
            .item-readmore {
                margin-top: 34px;
                margin-bottom: 7px;
            }
            .format-quote,
            .format-link {
                position: relative;
                padding-bottom: 13px;
                &:after {
                    content: '';
                    position: absolute;
                    left: 0;
                    right: 0;
                    bottom: 0px;
                    border-bottom: 1px solid $divider_color;
                }
                .format-wrap {
                    border-color: $divider_color;
                    text-align: center;
                    padding: 32px 15px 42px;
                    position: relative;
                    overflow: hidden;
                    border: 1px solid $divider_color;
                    background-color: $secondary_color;
                    &:after {
                        content: '';
                        display: block;
                        width: 100%;
                        height: 100%;
                        position: absolute;
                        top: 0;
                        left: 0;
                        background-size: cover;
                        background-position: top right;
                        background-repeat: no-repeat;
                    }
                }
            }
            .format-quote {
                .quote-inner {
                    position: relative;
                    z-index: 1;
                    .quote-icon {
                        font-weight: 700;
                        color: var(--primary-color);
                        line-height: 1;
                        margin-top: -3px;
                        margin-bottom: 11px;
                        font-family: 'Cirka';
                        font-size: 96px;
                        max-height: 60px;
                    }
                    .quote-text {
                        margin: 0 auto 24px;;
                        font-family: $heading_font_family;
                        font-size: 23px;
                        font-weight: 600;
                        font-style: italic;
                        line-height: 30px;
                        letter-spacing: 0.05em;
                        @media (min-width: $xl_min) {
                            max-width: 85%;
                        }
                    }
                    .quote-cite {
                        color: $primary_color;
                        margin-top: 20px;
                        font-size: 15px;
                        line-height: 26px;
                        text-transform: uppercase;
                        letter-spacing: 0.1em;
                    }
                    .pxl-divider {
                        margin: 0 auto;
                        width: 75px;
                        &:before {
                            width: 100%;
                        }                        
                    }                
                }
            }
            .format-link {
                .link-inner {
                    position: relative;
                    z-index: 1;
                    .link-icon {
                        margin: 6px 0 3px;
                        display: inline-flex;
                        border-radius: 11px;
                        align-items: center;
                        justify-content: center;
                        background-color: $secondary_color;
                        color: $primary_color;
                        position: relative;
                        font-size: 50px;
                        line-height: 1;
                        a {
                            color: $primary_color;
                        }
                    }
                    .link-text {
                        max-width: none;
                        margin: 0 auto;
                        font-family: $heading_font_family;
                        font-size: 25px;
                        font-weight: 600;
                        line-height: 40px;
                        letter-spacing: 0.05em;
                        font-style: italic;
                        @media (min-width: $xl_min) {
                            max-width: 85%;
                        }
                    }
                    .link-cite {
                        margin-top: 22px;
                        text-transform: uppercase;
                        font-size: 15px;
                        letter-spacing: 0.1em;
                        line-height: 26px;
                        color: $primary_color;
                    }
                    .pxl-divider {
                        margin: 22px auto 0;
                        width: 75px;
                        &:before {
                            width: 100%;
                        }
                    }
                }
            }
        }
    }
}

/* Pxl Portfolio Grid */
.pxl-portfolio-grid {
    &.layout-pxl-portfolio-1,
    &.layout-pxl-portfolio-3,
    &.layout-pxl-portfolio-5, 
    &.layout-pxl-portfolio-6 {
        .grid-item-inner {
            .item-featured {
                position: relative;
            }
            .content-inner > * {
                opacity: 0;
                transform: translateY(10px);
                transition: all 200ms ease-out;
                &:nth-child(1) {
                    transition-delay: 250ms;
                }
                &:nth-child(2) {
                    transition-delay: 320ms;
                }
                &:nth-child(3) {
                    transition-delay: 390ms;
                }
                &:nth-child(4) {
                    transition-delay: 460ms;
                }
                &:nth-child(5) {
                    transition-delay: 510ms;
                }
            }
            .item-title {
                font-size: 17px;
                line-height: 1.3;
                letter-spacing: 0.08em;
                color: $primary_color;
                margin-bottom: 0;
                a {
                    color: inherit;
                    @include multiline-hover-underline($primary_color);
                }
            }
            .item-tags {
                font-size: 15px;
                line-height: 28px;
                letter-spacing: 0.02em;
                color: #dedede;
                a {
                    color: inherit;
                    &:hover {
                        color: $primary_color;
                    }
                }
                @media (max-width: $xs_max) {
                    font-size: 13px;
                }
            }
            .pxl-divider {
                margin: 16px auto 19px;
                width: 1px;
                height: 31px;
                &:before {
                    width: 1px;
                }
            }
            .item-excerpt {
                padding: 0 10px;
                @include text-truncate-multi-line(15px, 1.666666666666667, 3);
                color: #dedede;
                letter-spacing: 0.02em;
                + .item-readmore {
                    margin-top: 48px;
                }
                @media (max-width: $xs_max) {
                    max-height: 75px;
                    overflow: hidden;
                    margin-bottom: 30px;
                }
            }
            .item-content {
                position: absolute;
                left: 30px;
                right: 30px;
                top: 30px;
                bottom: 30px;
                z-index: 1;
                @include d-inline-flex();
                flex-direction: column;
                justify-content: center;
                background-color: $secondary_color;
                text-align: center;
                padding: 20px 30px 22px;
                overflow: hidden;
                clip-path: inset(0 0 100% 0);
                transform-origin: top;
                @include transition(350ms cubic-bezier(.48,.57,.33,.89));
                @media (max-width: $xs_max) {
                    left: 20px;
                    right: 20px;
                    top: 20px;
                    bottom: 20px;
                }
            }
            &:hover {
                .item-content {
                    clip-path: inset(0 0 0 0);
                }
                .content-inner > * {
                    opacity: 1;
                    transform: translateY(0px);
                }
            }
        }
    }
    &.layout-pxl-portfolio-2,
    &.layout-pxl-portfolio-4 {
        .grid-item-inner {
            .content-inner > * {
                opacity: 0;
                transform: translateY(10px);
                transition: all 200ms ease-out;
                &:nth-child(1) {
                    transition-delay: 250ms;
                }
                &:nth-child(2) {
                    transition-delay: 320ms;
                }
                &:nth-child(3) {
                    transition-delay: 390ms;
                }
                &:nth-child(4) {
                    transition-delay: 460ms;
                }
                &:nth-child(5) {
                    transition-delay: 510ms;
                }
            }
            .item-featured {
                position: relative;
            }
            .item-title {
                font-size: 17px;
                line-height: 1.3;
                letter-spacing: 0.08em;
                text-transform: uppercase;
                color: $primary_color;
                margin-bottom: 0;
                a {
                    color: inherit;
                    @include multiline-hover-underline($primary_color);
                }
            }
            .item-tags {
                font-size: 15px;
                line-height: 28px;
                letter-spacing: 0.02em;
                color: #dedede;
                a {
                    color: inherit;
                    &:hover {
                        color: $primary_color;
                    }
                }
                @media (max-width: $xs_max) {
                    font-size: 13px;
                }
            }
            .pxl-divider {
                margin: 16px auto 19px;
                width: 1px;
                height: 31px;
                &:before {
                    width: 1px;
                }
            }
            .item-excerpt {
                padding: 0 10px;
                font-size: 15px;
                line-height: 25px;
                color: #dedede;
                letter-spacing: 0.02em;
                + .item-readmore {
                    margin-top: 48px;
                }
            }
            .item-content {
                position: absolute;
                left: 50%;
                bottom: 35px;
                @include transform(translate(-50%));
                width: 87%;
                z-index: 1;
                @include d-inline-flex();
                flex-direction: column;
                justify-content: center;
                background-color: $secondary_color;
                text-align: center;
                transform-origin: bottom;
                padding: 32px 30px 26px;
                overflow: hidden;
                @include transition(350ms cubic-bezier(.48,.57,.33,.89));
                clip-path: inset(100% 0 0 0);
                @media (max-width: $xs_max) {
                    padding: 30px 15px 28px;
                    width: 85%;
                }
            }
            &:hover {
                .item-content {
                    @include transform(translate(-50%));
                    clip-path: inset(0 0 0 0);
                }
                .content-inner > * {
                    opacity: 1;
                    transform: translateY(0px);
                }
            }
        }
    }
    &.layout-pxl-portfolio-3 {
        .grid-item-inner {
            .item-content {
                background-color: #182125;
                &:after {
                    content: '';
                    position: absolute;
                    left: 30px;
                    right: 30px;
                    top: 30px;
                    bottom: 30px;
                    border: 1px solid #4e4a3d;
                }
            }
            .content-inner {
                position: relative;
                z-index: 2;
            }
            .item-title {
                font-size: 20px;
                line-height: 26px;
                letter-spacing: 0.05em;
                text-transform: uppercase;
                color: $primary_color;
                margin-bottom: 0;
                a {
                    color: inherit;
                    @include multiline-hover-underline($primary_color);
                }
            }
            .item-tags {
                color: #fff;
            }
            .pxl-divider {
                width: 7px;
                height: 7px;
                @include transform(translateY(10px) rotate(45deg));
                &:before {
                    width: 100%;
                    height: 100%;
                }
            }
            .item-excerpt {
                letter-spacing: 0;
                color: #e0e3e5;
                max-width: 253px;
                margin: 0 auto;
            }
            &:hover {
                .pxl-divider {
                    @include transform(translateY(0) rotate(45deg));
                }
            }
        }
    }
    &.layout-pxl-portfolio-4 {
        .grid-item-inner {
            .item-content {
                bottom: 55px;
                padding: 54px 75px 56px;
                background-color: #182125;
                &:after {
                    content: '';
                    position: absolute;
                    left: 30px;
                    right: 30px;
                    top: 30px;
                    bottom: 30px;
                    border: 1px solid #4e4a3d;
                }
            }
            .content-inner {
                position: relative;
                z-index: 2;
            }
            .item-title {
                font-size: 23px;
                font-weight: 600;
                line-height: 30px;
                letter-spacing: 0.05em;
                color: $primary_color;
                margin-bottom: 0;
                a {
                    color: inherit;
                    background: none;
                    position: relative;
                    display: inline-block;
                    &:before,
                    &:after {
                        content: '';
                        position: absolute;
                        width: 7px;
                        height: 7px;
                        background-color: $primary_color;
                        top: 50%;
                    }
                    &:before {
                        left: -19px;
                        @include transform(translate(-100%, -50%) rotate(45deg));
                    }
                    &:after {
                        right: -19px;
                        @include transform(translate(100%, -50%) rotate(45deg));
                    }
                }
            }
            .item-tags {
                color: #fff;
                line-height: 30px;
            }
            .pxl-divider {
                width: 7px;
                height: 7px;
                @include transform(rotate(45deg));
                &:before {
                    width: 100%;
                    height: 100%;
                }
            }
            .item-excerpt {
                letter-spacing: 0;
                color: #e0e3e5;
                max-width: 253px;
                margin: 0 auto;
            }
        }
    }
    &.layout-pxl-portfolio-5 {
        .pxl-grid-inner {
            .grid-item {
                border: 1px solid;
                border-color: $divider_color;
                margin-left: -1px;
                margin-bottom: -1px;
            }
        }
        .grid-item-inner {
            .post-image {
                border: 1px solid $divider_color;
            }
            .item-content {
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                padding: 20px 40px 22px;
                background-color: $heading_color;
                background-image: url(../images/dirt_explosion_overlay.png);
                background-size: cover;
            }
            .item-title {
                font-family: $heading_font_family;
                font-size: 25px;
                line-height: 32px;
                color: $secondary_color;
                letter-spacing: 0.03em;
                text-transform: none;
                a {
                    color: inherit;
                    background-image: unset;
                }
            }
            .item-tags {
                margin-top: 11px;
                color: #fff;
                line-height: 26px;
                letter-spacing: 0;
                text-transform: uppercase;
                a:hover {
                    color: $secondary_color;
                }
            }
            .pxl-divider {
                display: none;
                margin: 0;
            }
            .item-excerpt {
                margin-top: 20px;
                + .item-readmore {
                    margin-top: 43px;
                }
            }
            .item-readmore {
                .bt-more-plus {
                    position: relative;
                    border-color: #fff;
                    background-color: $primary_color;
                    i {
                        font-size: 15px;
                        color: #fff;
                    }
                    &:before {
                        content: '';
                        position: absolute;
                        z-index: -1;
                        top: 3px;
                        left: 3px;
                        right: -3px;
                        bottom: -3px;
                        background-color: #fff;
                        @include transition();
                    }
                    &:hover {
                        background-color: #fff;
                        i {
                            animation: none;
                            color: $primary_color;
                        }
                        &:before {
                            top: 0;
                            left: 0;
                            right: 0;
                            bottom: 0;
                        }
                    }
                }
            }
        }
    }
    &.layout-pxl-portfolio-6 {
        .grid-item-inner {
            .item-featured {
                @include border-radius(20px);
                overflow: hidden;
                img {
                    min-height: 450px;
                    object-fit: cover;
                }
            }
            .item-content {
                @include border-radius(20px);
                overflow: hidden;
                background-color: $primary_color;
                &:after {
                    content: '';
                    position: absolute;
                    left: 30px;
                    right: 30px;
                    top: 30px;
                    bottom: 30px;
                    @include border-radius(20px);
                }
            }
            .content-inner {
                position: relative;
                z-index: 2;
            }
            .item-title {
                @include text-truncate-multi-line(25px, calc(30 / 25), 3);
                font-weight: 600;
                letter-spacing: 0.02em;
                text-transform: capitalize;
                color: #fff;
                margin-bottom: 0;
                a {
                    color: #fff;
                    @include transition();
                    &:hover {
                        color: $secondary_color;
                    }
                }
            }
            .pxl-divider {
                margin: 24px auto 22px;
                width: 46px;
                height: 4px;
                @include border-radius(2px);
                overflow: hidden;
                &:before {
                    width: 100%;
                    height: 100%;
                    background-color: $secondary_color;
                }
            }
            .item-excerpt {
                letter-spacing: 0;
                color: #fff;
                margin: 0 auto;
            }
            .item-readmore {
                margin-top: 43px;
                .bt-more-plus {
                    @include border-radius(8px);
                    background-color: $secondary_color;
                    i {
                        font-size: 22px;
                        color: #fff;
                    }
                }
            }
        }
        .btn-grid-loadmore .pxl-btn-icon {
            display: flex;
            right: 15px;
            margin-top: -7px;
        }
    }
    &.layout-pxl-portfolio-7 {
        .grid-item-inner {
            overflow: hidden;
            @include border-radius(10px);
            .background-overlay {
                @include d-flex();
                flex-direction: column;
                justify-content: center;
                overflow: hidden;
                background-color: rgba(18, 15, 12, 0.6);
                top: 0;
                right: 0;
                left: 0;
                bottom: 0;
                position: absolute;
                transform-origin: bottom;
                @include transform(scaleY(0));
                @include transition(350ms cubic-bezier(.48,.57,.33,.89));
            }
            .content-inner {
                position: absolute;
                width: 100%;
                top: 50%;
                left: 50%;
                z-index: 2;
                opacity: 0;
                @include transform(translate(-50%, calc(-50% - 10px)));
                @include transition(all 300ms ease 100ms);
                text-align: center;
                &:has(.item-title) {
                    &:before {
                        content: "\e9e6";
                        font-size: 20px;
                        font-family: $pxli_font;
                        color: #fff;
                    }
                }
            }
            .item-title {
                font-size: 24px;
                font-weight: 500;
                line-height: calc(50 / 24);
                letter-spacing: 0.08em;
                text-transform: uppercase;
                color: $primary_color;
                margin-bottom: 0;
                white-space: nowrap;
                &:before, &:after {
                    content: '-';
                }
                a {
                    color: inherit;
                }
            }
            .pxl-divider {
                display: none;
            }
            .item-tags {
                color: #fff;
            }
            .item-excerpt {
                letter-spacing: 0;
                color: #fff;
                margin: 0 auto;
            }
            .item-readmore {
                margin-top: 43px;
                .bt-more-plus {
                    @include border-radius(8px);
                    background-color: $secondary_color;
                    i {
                        font-size: 22px;
                        color: #fff;
                    }
                }
            }
            &:hover {
                .background-overlay {
                    transform: scaleY(1);
                }
                .content-inner {
                    opacity: 1;
                    transition-delay: 400ms;
                    @include transform(translate(-50%, -50%));
                }
            }
        }
        .btn-grid-loadmore .pxl-btn-icon {
            display: flex;
            right: 15px;
            margin-top: -7px;
        }
    }
    &.layout-pxl-portfolio-8{
        .post-image{
            border-radius: 20px;
            overflow: hidden;
            img{
                border-radius: 20px;
                transition: transform 0.3s ease;
            }
        }
        .grid-item-inner {
            .content-inner > * {
                opacity: 0;
                transform: translateY(10px);
                transition: all 200ms ease-out;
                &:nth-child(1) {
                    transition-delay: 250ms;
                    transform: scale(0.9);
                }
                &:nth-child(2) {
                    transition-delay: 320ms;
                }
                &:nth-child(3) {
                    transition-delay: 390ms;
                }
                &:nth-child(4) {
                    transition-delay: 460ms;
                }
                &:nth-child(5) {
                    transition-delay: 510ms;
                }
            }
            .item-featured {
                position: relative;
            }
            .item-title {
                font-size: 23px;
                line-height: 28px;
                letter-spacing: 0;
                text-transform: capitalize;
                color: #fff;
                margin-bottom: 5px;
                a {
                    color: inherit;
                    background-image: linear-gradient(transparent calc(100% - 1px), #fff 1px);
                    background-repeat: no-repeat;
                    background-size: 0% 100%;
                    transition: background-size 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
                    &:hover{
                        color: inherit;
                        background-size: 100% 100%;
                    }
                }
            }
            .item-category {
                font-size: 15px;
                line-height: 26px;
                letter-spacing: 0;
                color: #bfd3e5;
                a {
                    color: inherit;
                    &:hover {
                        color: $primary_color;
                    }
                }
                @media (max-width: $xs_max) {
                    font-size: 13px;
                }
            }
            .item-content {
                position: absolute;
                left: 50%;
                bottom: 35px;
                @include transform(translate(-50%) scaleY(0));
                width: 87%;
                z-index: 1;
                @include d-inline-flex();
                flex-direction: column;
                justify-content: center;
                background-color: $secondary_color;
                text-align: center;
                transform-origin: bottom;
                padding: 30px 30px 30px;
                overflow: hidden;
                @include transition(300ms cubic-bezier(.48,.57,.33,.89));
                border-radius: 20px;
                @media (max-width: $xs_max) {
                    padding: 30px 15px 28px;
                    width: 85%;
                }
            }
            &:hover {
                .item-content {
                    @include transform(translate(-50%) scaleY(1));
                }
                .content-inner > * {
                    opacity: 1;
                    transform: translateY(0px);
                }
                .post-image{
                    img{
                        transform: scale(1.1);
                    }
                }
            }
        }
        .grid-filter-wrap.style-4{
            @media (max-width: $md_max) {
                column-gap: 60px;
                row-gap: 25px;
            }
            @media (max-width: $sm_max) {
                margin-bottom: 60px;
            }
            .filter-item {
                font-family: $heading_font_family;
                font-size: 20px;
                line-height: 28px;
                letter-spacing: 0;
                font-weight: 800;
                text-transform: capitalize;
                justify-content: end;
                &.active{
                    gap: 9px;
                    &::before{
                        content: '\e9eb';
                        font-size: 20px;
                        transform: rotate(25deg);
                    }
                } 
            }
        }
        .pxl-load-more{
            margin-top: 75px;
        }
        .btn-grid-loadmore{
            .btn-icon {
                font-size: 16px;
                top: -1px;            
            }
        }  
    }
}

@keyframes socialIn {
    0% {
        transform: translateY(-25px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}
/* Pxl Team Grid */
.pxl-team-grid.layout-1 {
    .pxl-grid-inner {
        margin-bottom: -75px;
        > .grid-item {
            margin-bottom: 75px;
        }
    }
    .item-inner {
        position: relative;
        .item-image {
            position: relative;
            margin-bottom: 36px;
            .image-wrap {
                border-radius: 10px;
                overflow: hidden;
            }
        }
    }
    .item-content {
        text-align: center;
        padding: 0 20px;
        .item-title {
            font-size: 22px;
            font-weight: 500;
            letter-spacing: 0.03em;
            margin-bottom: 6px;
            a {
                color: inherit;
                &:hover {
                    color: $secondary_color;
                }
            }
        }
        .item-position {
            font-size: 15px;
            color: #666666;
            letter-spacing: 0;
            text-transform: capitalize;
        }
        .item-description {
            margin-top: 10px;
        }
        .item-social {
            margin-top: 22px;
            display: inline-flex;
            justify-content: center;
            background: $primary_color;
            border-radius: 17px;
            padding: 0 13px;
            a {
                width: 35px;
                height: 35px;
                font-size: 13px;
                color: #fff;
                text-align: center;
                position: relative;
                @include d-flex();
                align-items: center;
                justify-content: center;
                transition: all 400ms linear;
                i {
                    color: #fff;
                    transition: all 300ms linear 0s;
                }
                &:hover {
                    i {
                        color: $heading_color;
                    }
                }
            }
        }
    }
}

.pxl-team-grid.layout-2{
    .item-inner{
        padding: 50px 58px 47px 58px;
        background-color: #d8f4d3;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: hidden;
        position: relative;
        @media (max-width: $xs_max) {
            padding: 50px 35px 47px 35px;
        }
        &:hover{
            justify-content: flex-end;
            .item-content{
                -webkit-transform: translate3d(0, 0, 0);
                transform: translate3d(0, 0, 0);
                opacity: 1;
                left: auto;
                right: auto;
                position: relative;
                transition: all 0.35s linear; 
            }
            .item-image{
                -webkit-transform: translate3d(0, -100%, 0);
                transform: translate3d(0, -100%, 0);
                opacity: 0;
            }
            .box-title-pos{
                -webkit-transform: translate3d(0, -24px, 0);
                transform: translate3d(0, -24px, 0);
            }
            .item-social{
                a{
                    opacity: 1;
                    &:nth-child(1) {
                        transform: translateX(0);
                    }
                    &:nth-child(2) {
                        transform: translateX(0);
                    }
                    &:nth-child(3) {
                        transform: scale(1)
                    }
                    &:nth-child(4) {
                        transform: translateX(0);
                    }
                    &:nth-child(5) {
                        transform: translateX(0);
                    }
                }
            }
        }
    }
    .item-image{
        position: relative;
        margin-bottom: 34px;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        transition: all .4s linear;
        .image-wrap{
            border-radius: 50%;
            overflow: hidden;
        }
    }
    .box-title-pos{
        transition: transform 0.3s linear; 
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        text-align: center;
    }
    .item-title{
        font-size: 23px;
        line-height: 28px;
        letter-spacing: 0;
        margin-bottom: 4px;
        transition: transform 0.3s linear;
        a{
            position: relative;
            &::before{
                content: '';
                position: absolute;
                width: 100%;
                height: 1px;
                background-color: $secondary_color;
                bottom: 0;
                left: 0;
                transform-origin: right;
                transform: scaleX(0);
                transition: transform .3s ease-in-out;
            }
            &:hover{
                color: inherit;
                &::before{
                    transform-origin: left;
                    transform: scaleX(1);
                }
            }
        }
    }

    .item-position{
        font-size: 15px;
        line-height: 28px;
        letter-spacing: 0;
        font-weight: 700;
        color: $secondary_color;
    }
    .item-content{
       text-align: center;
       opacity: 0;
       transition: all 0.3s linear; 
       -webkit-transform: translate3d(0, 100%, 0);
       transform: translate3d(0, 100%, 0);
        position: absolute;
        left: 58px;
        right: 58px;
        .item-description{
            letter-spacing: 0;
            max-width: 251px;
        }
        @media (max-width: $xs_max) {
            left: 35px;
            right: 35px;
        }
    }
    .item-social {
        display: flex;
        justify-content: center;
        margin-top: 27px;
        a {
            width: 42px;
            height: 42px;
            font-size: 15px;
            color: #fff;
            text-align: center;
            position: relative;
            @include d-flex();
            align-items: center;
            justify-content: center;
            opacity: 0;
            i {
                color: $secondary_color;
                transition: all 250ms linear 0s;
                z-index: 1;
            }
            &::after{
                content: "";
                position: absolute;
                top: 50%;
                left: 50%;
                @include transform(translate(-50%, -50%));
                width: 0;
                height: 0;
                background-color: $primary_color;
                border-radius: 50%;
                transition: all 250ms linear;
            }
            &:hover {
                i {
                    color: #fff;
                }
                &::after{
                    width: 100%;
                    height: 100%;
                }
            }
            &:nth-child(1) { transition-delay: 0.6s; transform: translateX(10px);}
            &:nth-child(2) { transition-delay: 0.5s;  transform: translateX(10px);}
            &:nth-child(3) { transition-delay: 0.35s; transform: scale(0.6)}
            &:nth-child(4) { transition-delay: 0.5s; transform: translateX(-10px);}
            &:nth-child(5) { transition-delay: 0.6s; transform: translateX(-10px);} 
        }
    }
    .pxl-grid-inner {
        margin-bottom: -27px;
        > .grid-item {
            margin-bottom: 27px;
        }
    }
}

/* Pxl Image Gallery */
.pxl-image-gallery {
    .pxl-grid-inner {
        .grid-item {
            .item-inner {
                overflow: hidden;
                position: relative;
                img {
                    width: 100%;
                }
                &:before {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    background-color: rgba(0, 0, 0, 0.5);
                    z-index: 1;
                    opacity: 0;
                    visibility: hidden;
                    @include transition();
                }
                .up-icon {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    @include d-inline-flex();
                    @include transition(all 300ms linear 70ms);
                    z-index: 2;
                    opacity: 0;
                    visibility: hidden;
                    a {
                        @include d-flex();
                        align-items: center;
                        justify-content: center;
                        width: 60px;
                        height: 60px;
                        @include border-radius(50%);
                        color: $primary_color;
                        i {
                            font-size: 35px;
                            @include transition(all 0.2s linear);
                        }
                    }
                    .x-line,
                    .y-line {
                        @include d-inline-flex();
                        position: relative;
                        &:before, &:after{
                            content: "";
                            display: inline-block;
                            background-color: $primary_color;
                            transition: all 300ms ease-in-out 0s;
                        }
                    }
                    .x-line {
                        &:before{
                            width: 13px;
                            height: 1px;
                        }
                        &:after{
                            width: 13px;
                            height: 1px;
                        }
                    }
                    .y-line{
                        flex-direction: column;
                        position: relative;
                        left: -13px;
                        &:before{
                            width: 1px;
                            height: 13px;
                        }
                        &:after{
                            width: 1px;
                            height: 13px;
                        }
                    }
                    &:hover{
                        .x-line{
                            &:before{
                                transform: translateX(-3px);
                            }
                            &:after{
                                transform: translateX(3px);
                            }
                        }
                        .y-line{
                            &:before{
                                transform: translateY(-3px);
                            }
                            &:after{
                                transform: translateY(3px);
                            }
                        }
                    }
                }
                &:hover {
                    &:before {
                        opacity: 1;
                        visibility: visible;
                    }
                    .up-icon {
                        visibility: visible;
                        opacity: 1;
                    }
                }
            }
        }
    }
    &.layout-2,
    &.layout-3 {
        .up-icon {
            a i {
                font-size: 25px !important;
            }
        }
    }
    &.layout-3 {
        .up-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 83px;
            height: 83px;
            background-color: $secondary_color;
            border-radius: 50%;
        }
    }
    &.layout-4 {
        .grid-item {
            .item-inner {
                &:before {
                    content: none;
                }
                .icon-wrapper {
                    position: absolute;
                    top: 30px;
                    right: 30px;
                    bottom: 30px;
                    left: 30px;
                    background-color: $secondary_color;
                    transform-origin: top;
                    @include transform(scaleY(0));
                    @include transition(.35s cubic-bezier(.48,.57,.33,.89));
                    &:before {
                        content: '';
                        position: absolute;
                        top: 30px;
                        right: 30px;
                        bottom: 30px;
                        left: 30px;
                        border: 1px solid $divider_color;
                        z-index: 1;
                    }
                    .up-icon {
                        a {
                            visibility: hidden;
                            opacity: 0;
                            @include transform(translateY(10px)); 
                            @include transition(all 200ms ease-out 300ms);
                        }
                    }
                }
                &:hover {
                    .icon-wrapper {
                        @include transform(scaleY(1));
                    }
                    .up-icon {
                        a {
                            visibility: visible;
                            opacity: 1;
                            @include transform(translateY(0px));
                        }
                    }
                }
            }
        }
    }
    &.layout-5 {
        .pxl-grid-inner {
            background-color: #fff;
            .grid-item {
                .item-inner {
                    @include border-radius(20px);
                    overflow: hidden;
                    &:before {
                        background-color: $secondary_color;
                        z-index: 1;
                        opacity: 1;
                        visibility: visible;
                        @include transform(scaleY(0));
                        @include transition(all 300ms cubic-bezier(0, 0, 0.2, 1) 0s);
                        transform-origin: top;
                    }
                    &:after {
                        content: '';
                        position: absolute;
                        top: 0;
                        left: 0;
                        right: 0;
                        bottom: 0;
                        background-image: url(../images/dot-bg-overlay.png);
                        background-repeat: repeat;
                        animation: pxl-bg-scroll-x 10s linear infinite;
                        z-index: 2;
                        opacity: 0;
                        visibility: hidden;
                        @include transition();
                    }
                    .up-icon {
                        display: inline-flex;
                        align-items: center;
                        justify-content: center;
                        width: 71px;
                        height: 71px;
                        background-color: $primary_color;
                        border-radius: 50%;
                        z-index: 3;
                        a i {
                            font-size: 22px !important;
                            color: #fff;
                        }
                    }
                    &:hover {
                        &:before {
                            @include transform(scaleY(1));
                        }
                        &:after {
                            opacity: 1;
                            visibility: visible;
                        }
                    }
                }
            }
        }
        .image-caption {
            margin-top: 19px;
            margin-bottom: 9px;
            color: $heading_color;
        }
        .up-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 60px;
            height: 60px;
            background-color: $secondary_color;
            border-radius: 50%;
            a i {
                font-size: 21px !important;
                color: $heading_color;
            }
        }
    }
    &.layout-6 {
        &:has(.image-caption) {
            .item-inner {
                border: 1px solid $divider_color;
            }
        }
        .pxl-grid-inner {
            border: solid $divider_color;
            border-width: 1px 0 0 1px;
            .grid-item {
                border: solid $divider_color;
                border-width: 0 1px 1px 0;
                .item-inner {
                    &:before {
                        background-color: $primary_color;
                        z-index: 1;
                        opacity: 1;
                        visibility: visible;
                        @include transform(scaleY(0));
                        @include transition(all 300ms cubic-bezier(0, 0, 0.2, 1) 0s);
                        transform-origin: top;
                    }
                    &:after {
                        content: '';
                        position: absolute;
                        top: 0;
                        left: 0;
                        right: 0;
                        bottom: 0;
                        background-image: url(../images/dot-bg-overlay.png);
                        background-repeat: repeat;
                        animation: pxl-bg-scroll-x 10s linear infinite;
                        z-index: 2;
                        opacity: 0;
                        visibility: hidden;
                        @include transition();
                    }
                    .up-icon {
                        display: inline-flex;
                        align-items: center;
                        justify-content: center;
                        width: 60px;
                        height: 60px;
                        background-color: $secondary_color;
                        border-radius: 50%;
                        z-index: 3;
                        a i {
                            font-size: 21px !important;
                            color: $heading_color;
                        }
                    }
                    &:hover {
                        &:before {
                            @include transform(scaleY(1));
                        }
                        &:after {
                            opacity: 1;
                            visibility: visible;
                        }
                    }
                }
            }
        }
        .image-caption {
            margin-top: 19px;
            margin-bottom: 9px;
            color: $heading_color;
        }
    }
    &.layout-7 {
        .grid-item .item-inner {
            &:before {
                background-color: rgba(18, 15, 12, 0.35);
                -webkit-backdrop-filter: blur(5px);
                backdrop-filter: blur(5px);
            }
            .up-icon {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 83px;
                height: 83px;
                background-color: $primary_color;
                border-radius: 50%;
                a i {
                    color: #fff;
                    font-size: 23px;
                }
                .x-line, .y-line {
                    @include d-inline-flex();
                    position: relative;
                    &:before,
                    &:after {
                        background-color: #fff;
                    }
                }
            }
        }
    }
    &.layout-8 {
        .pxl-grid-inner {
            background-color: #fff;
            border-bottom: 1px solid $divider_color;
            border-right: 1px solid $divider_color;
            .grid-item {
                padding: 15px;
                border-left: 1px solid $divider_color;
                border-top: 1px solid $divider_color;
                .item-inner {
                    overflow: hidden;
                    &:before {
                        background-color: rgba(22, 26, 27, 0.6);
                        z-index: 1;
                        opacity: 1;
                        visibility: visible;
                        @include transform(scale(0));
                        @include transition(all 300ms cubic-bezier(0, 0, 0.2, 1) 0s);
                        transform-origin: center;
                    }
                    &:hover {
                        &:before {
                            @include transform(scale(1));
                        }
                    }
                }
            }
        }
        .image-caption {
            margin-top: 19px;
            margin-bottom: 9px;
            color: $heading_color;
        }
        .up-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 60px;
            height: 60px;
            background-color: $secondary_color;
            border-radius: 50%;
            a i {
                font-size: 21px !important;
                color: $heading_color;
            }
        }
    }
}

.pxl-fancy-box-grid{
    &.layout-1{
        .item-inner{
            padding-bottom: 33px;
            text-align: center;
            background-color: #d8f4d3;
            border-radius: 20px;
            height: 290px;
            display: flex;
            flex-direction: column;
            justify-content: end;
            .item-title{
                font-size: 23px;
                line-height: 28px;
                letter-spacing: 0;
                margin-bottom: 4px;
                margin-top: 13px;
                a{
                    position: relative;
                    &::after{
                        content: "";
                        position: absolute;
                        bottom: 0;
                        width: 0;
                        background-color: $heading_color;
                        left: 0;
                        height: 2px;
                        transition: all 300ms ease-in-out 0s;
                    }
                    &:hover{
                        color: inherit;
                        &::after{
                            width: 100%;
                        }
                    }
                }
            }
            .item-categories{
                letter-spacing: 0;
                color: $secondary_color;
                font-weight: 500;
            }
            .image-wrap{
                img{
                   transition: all 400ms ease-in-out 0s;
                }
            }
            &:hover{
                .image-wrap{
                    img{
                        transform: translateY(-10px);
                    }
                }
            }
        }
        .pxl-grid-inner {
            margin-bottom: -102px;
            @media (max-width: $xs_max) {
                margin-bottom: -80px;
            }
        }
        .grid-item {
            margin-bottom: 102px;
            @media (max-width: $xs_max) {
                margin-bottom: 80px;
            }
            &:nth-child(even){
                margin-top: 34px;
                @media (max-width: $lg_max) {
                    margin-top: 0;
                }
            }
        }
    }
}

@keyframes pxl-bg-scroll-x {
    0% {
        background-position: 0 0;
    }
    25% {
        background-position: -100% 0;
    }
    50% {
        background-position: 0 0;
    }
    75% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
}