.ancr-p-grid {
    position: relative;
    display: inline-block;
    width: 100%;
    vertical-align: top;
}

.ancr-p-grid.ancr-p-masonry-on .ancr-grid-inner {
    visibility: hidden;
}

.ancr-p-grid.ancr-p-masonry-on .ancr-grid-inner.ancr--masonry-init {
    visibility: visible;
}

.ancr-p-grid.ancr-p-masonry-on .ancr-grid-masonry-sizer {
    width: 100%;
    padding: 0;
    margin: 0;
}

.ancr-p-grid.ancr-p-masonry-on .ancr-grid-masonry-gutter {
    width: 0;
    padding: 0;
    margin: 0;
}

/* ---------------------------------------------------------------------------------------------------------------------- */
.grid-item {
    display: flex;
    align-items: center;
}

.ancr-portfolio-boxed-content .ancr-portfolio-wrap {
    position: relative;
    transition: all 0.3s ease-in-out;
}

.ancr-portfolio-boxed-content .ancr-portfolio-content {
    position: absolute;
    z-index: 1;
    transition: all .5s cubic-bezier(.785, .135, .15, .860) 0ms;
    display: flex;
    justify-content: space-between;
    align-items: center;
    left: 0;
    padding: 30px;
    overflow: hidden;
    bottom: -100%;
}

.ancr-portfolio-boxed-content .ancr-portfolio-title-subtitle {
    transform: translateY(-40px);
    transition: all .7s cubic-bezier(.165, .84, .44, 1) .2s;
}

.ancr-portfolio-boxed-content .ancr-portfolio-wrap:hover .ancr-portfolio-content {
    bottom: 0;
}

.ancr-portfolio-boxed-content .ancr-portfolio-wrap:hover .ancr-portfolio-title-subtitle {
    transform: translateY(0);
}

.ancr-portfolio-t-align-left .ancr-portfolio-boxed-content .ancr-portfolio-content {
    justify-content: flex-start;
}

.ancr-portfolio-t-align-center .ancr-portfolio-boxed-content .ancr-portfolio-content {
    justify-content: center;
}

.ancr-portfolio-t-align-right .ancr-portfolio-boxed-content .ancr-portfolio-content {
    justify-content: flex-end;
}

.ancr-portfolio-boxed-content .ancr-portfolio-image a.ancr-post-grid-image {
    width: 100%;
    transform: scale(1);
    transition: transform 1.4s cubic-bezier(.25, .1, .14, .91);
    transform-origin: center;
    position: relative;
    display: block;
}

.ancr-portfolio-boxed-content .ancr-portfolio-image {
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.ancr-portfolio-boxed-content.ancr-parallax-scroll-on a.ancr-post-grid-image {
    transform: scale(1.22);
}

.ancr-portfolio-boxed-content .ancr-portfolio-subtitle span {
    display: inline-block;
    margin: 0 8px;
}

/*Hover Image Animation*/
.ancr-portfolio-image-move-left-yes .ancr-portfolio-wrap .ancr-portfolio-image img {
    margin-left: 0;
    transform: scale(1.1);
    transition: all .5s cubic-bezier(.785, .135, .15, .860) 0ms;
}

.ancr-portfolio-image-move-left-yes .ancr-portfolio-wrap:hover .ancr-portfolio-image img {
    margin-left: -15px;
}

/*Icon*/
.ancr-portfolio-boxed-content a.ancr-portfolio-link-icon {
    position: relative;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease-in-out;
    font-size: 14px;
    line-height: 33px;
    z-index: 1;
    transform: translateY(-40px);
    transition: all .7s cubic-bezier(.165, .84, .44, 1) .2s;
    width: 33px;
}

.ancr-portfolio-boxed-content .ancr-portfolio-wrap:hover .ancr-portfolio-link-icon {
    transform: translateY(0);
    transition: .9s cubic-bezier(.165, .84, .44, 1) .2s;
}

.ancr-portfolio-boxed-content a.ancr-portfolio-link-icon i {
    transition: all 0.3s ease-in-out;
    position: relative;
    z-index: 2;
    transform: rotate(-45deg);
}

.ancr-portfolio-boxed-content .ancr-portfolio-wrap .ancr-portfolio-link-icon:hover i {
    transform: rotate(0deg);
}

.ancr-portfolio-boxed-content a.ancr-portfolio-link-icon:before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    border-radius: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    height: 33px;
    width: 33px;
    z-index: 1;
}

.ancr-items--packery .ancr-portfolio-wrap {
    width: 100%;
    height: 100%;
}

.ancr-items--packery .ancr-packery-bg-img {
    height: 100%;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.ancr-items--packery .ancr-packery-bg-img img {
    width: 100%;
    height: 100%;
    visibility: hidden;
    display: block;
    opacity: 0;
}

.ancr-items--packery a.ancr-post-grid-image {
    width: 100%;
    height: 100%;
    display: block;
}

.ancr-portfolio-boxed-content .ancr-portfolio-image img {
    transform: scale(1);
    transition: all .8s cubic-bezier(.25, .46, .45, .94);
    -o-transition: all .8s cubic-bezier(.25, .46, .45, .94);
    -webkit-transition: all .8s cubic-bezier(.25, .46, .45, .94);
}

.ancr-portfolio-boxed-content .ancr-portfolio-content .ancr-portfolio-title {
    font-size: 22px;
    line-height: 30px;
}

.ancr-portfolio-boxed-content .ancr-portfolio-content .ancr-portfolio-subtitle {
    font-size: 15px;
}

/* Style */
.ancr-portfolio-boxed-content .ancr-portfolio-content .ancr-portfolio-title,
.ancr-portfolio-boxed-content .ancr-portfolio-content .ancr-portfolio-title a {
    color: var(--swm-color-headings);
}

.ancr-portfolio-boxed-content .ancr-portfolio-content .ancr-portfolio-title a:hover {
    color: var(--swm-color-headings);
}

.ancr-portfolio-boxed-content .ancr-portfolio-content .ancr-portfolio-subtitle {
    color: var(--swm-color-headings);
}

.ancr-portfolio-boxed-content a.ancr-portfolio-link-icon {
    color: var(--swm-color-light-1);
}

.ancr-portfolio-boxed-content a.ancr-portfolio-link-icon:before {
    background: var(--swm-color-dark-1);
}

.ancr-portfolio-boxed-content .ancr-portfolio-content {
    background: var(--swm-color-light-1);
}

.ancr-portfolio-boxed-content .ancr-portfolio-image img {
    width: 100%;
}

.ancr-portfolio-boxed-content.ancr-p-masonry-on .ancr-portfolio-image img {
    width: auto;
}