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

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

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

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

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

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

.glcr-portfolio-tooltip .glcr-portfolio-wrap {
    position: relative;
    transition: all 0.3s ease-in-out;
}

.glcr-portfolio-tooltip .glcr-portfolio-content {
    display: none;
}

.glcr-portfolio-tooltip .glcr-portfolio-content a, .glcr-portfolio-tooptip-box a {
    text-decoration: none;
}

.glcr-portfolio-tooltip .glcr-portfolio-subtitle span {
    display: inline-block;
    margin: 0 8px;
}

.glcr-portfolio-tooltip {
    position: relative;
}

.glcr-portfolio-tooltip .glcr-portfolio-content {
    display: block;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 999999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    text-align: center;
    padding: 20px 30px;
}

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

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

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

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

.glcr-portfolio-tooltip.glcr-p-grid article.glcr-load-anim--fade.glcr-grid--load .glcr-post-grid-image {
    opacity: 0;
    transition: opacity .6s ease-out;
}

.glcr-portfolio-tooltip.glcr-p-grid article.glcr-load-anim--fade.glcr-grid--load.glcr-grid--loaded .glcr-post-grid-image {
    opacity: 1;
}

.glcr-portfolio-tooltip.glcr-p-grid article.glcr-load-anim--reveal .glcr-post-grid-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    dispay: block;
    will-change: transform;
    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);
}

.glcr-portfolio-tooltip.glcr-p-grid article.glcr-load-anim--reveal.glcr-grid--load .glcr-post-grid-image {
    overflow: hidden;
    vertical-align: middle;
    width: 100%;
    position: relative;
    display: inline-block;
    clip-path: inset(0 100% 0 0);
    -webkit-clip-path: inset(0 100% 0 0);
    transform: translateX(0);
    -ms-transform: translateX(0);
    -webkit-transform: translateX(0);
    transition: all .8s cubic-bezier(.4, 0, .2, 1);
    -o-transition: all .8s cubic-bezier(.4, 0, .2, 1);
    -webkit-transition: all .8s cubic-bezier(.4, 0, .2, 1);
}

.glcr-portfolio-tooltip.glcr-p-grid article.glcr-load-anim--reveal.glcr-grid--load.glcr-grid--loaded .glcr-post-grid-image {
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
    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);
}

.glcr-portfolio-tooltip .glcr-portfolio-image {
    overflow: hidden;
}

.glcr-portfolio-tooltip .glcr-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);
}

.glcr-portfolio-tooltip:not(.glcr-p-masonry-on) .glcr-portfolio-image img {
    width: 100%;
}

.glcr-portfolio-image-shrink-yes .glcr-portfolio-tooltip.glcr-p-grid article .glcr-portfolio-image {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
    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);
    height: 100%;
    display: block;
    width: 100%;
}

.glcr-portfolio-image-shrink-yes .glcr-portfolio-tooltip.glcr-p-grid article:hover .glcr-portfolio-image {
    -webkit-clip-path: inset(12px 12px 12px 12px);
    clip-path: inset(12px 12px 12px 12px);
}

.glcr-portfolio-tooltip .glcr-portfolio-image a.glcr-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;
}

.glcr-portfolio-tooltip .glcr-portfolio-image {
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.glcr-portfolio-tooltip.glcr-parallax-scroll-on a.glcr-post-grid-image {
    transform: scale(1.22);
}

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

.glcr-portfolio-image-zoom-yes .glcr-portfolio-wrap:hover .glcr-portfolio-image img {
    transform: scale(1.1);
}

.glcr-portfolio-image-shrink-yes .glcr-portfolio-standard.glcr-p-grid article .glcr-portfolio-image {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
    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);
    height: 100%;
    display: block;
    width: 100%;
}

.glcr-portfolio-image-shrink-yes .glcr-portfolio-standard.glcr-p-grid article:hover .glcr-portfolio-image {
    -webkit-clip-path: inset(12px 12px 12px 12px);
    clip-path: inset(12px 12px 12px 12px);
}

/* Tooltip Box */
.glcr-portfolio-tooptip-box {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 999999;
    pointer-events: none;
    pointer-events: none;
}

.glcr-portfolio-tooptip-box .glcr-portfolio-tooltip-box-wrap {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.glcr-portfolio-tooptip-box .glcr-portfolio-tooltip-box-title h4.glcr-portfolio-title {
    margin: 0;
    font-size: 24px;
    margin: 0;
    line-height: normal;
}

.glcr-portfolio-tooptip-box .glcr-portfolio-tooltip-box-title a {
    color: var(--swm-color-light-2);
}

.glcr-portfolio-tooptip-box .glcr-portfolio-tooltip-box-title, .glcr-portfolio-tooptip-box .glcr-portfolio-tooltip-box-subtitle {
    padding: 10px 20px;
    white-space: nowrap;
    z-index: 2;
    position: relative;
    opacity: 0;
    transform: translateX(20px);
    will-change: transform;
    display: block;
    -webkit-clip-path: inset(0 100% 0 0);
    clip-path: inset(0 100% 0 0);
    transition: -webkit-clip-path 0.4s ease;
    transition: clip-path 0.4s ease;
    transition: -webkit-clip-path 0.4s ease;
    float: left;
    clear: both;
}

.glcr-portfolio-tooptip-box .glcr-portfolio-tooltip-box-subtitle {
    font-size: calc(var(--body-font-size) - 2px);
    font-weight: var(--swm-headings-font-weight);
    font-family: var(--swm-headings-font-family);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--swm-color-dark-1);
    line-height: normal;
    padding: 8px 20px;
}

.glcr-portfolio-tooptip-box .glcr-portfolio-tooltip-box-subtitle:after {
    transition-delay: 0.4s;
}

.glcr-portfolio-tooptip-box .glcr-portfolio-tooltip-box-title:after, .glcr-portfolio-tooptip-box .glcr-portfolio-tooltip-box-subtitle:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    transition: width .39s ease;
    pointer-events: none;
    z-index: -1;
    background: var(--swm-color-dark-1);
}

.glcr-portfolio-tooptip-box .glcr-portfolio-tooltip-box-subtitle:after {
    background: var(--swm-color-light-2);
}

/* tooltip active */
.glcr-portfolio-tooptip-box.glcr-is-active .glcr-portfolio-tooltip-box-title, .glcr-portfolio-tooptip-box.glcr-is-active .glcr-portfolio-tooltip-box-subtitle {
    opacity: 1;
    transform: translateX(0);
    transition: transform .4s ease .2s, opacity .2s ease-out .2s;
}

.glcr-portfolio-tooptip-box.glcr-is-active .glcr-portfolio-tooltip-box-subtitle {
    transition: transform .4s ease .15s, opacity .2s ease-out .15s;
}

.glcr-portfolio-tooptip-box.glcr-is-active .glcr-portfolio-tooltip-box-title, .glcr-portfolio-tooptip-box.glcr-is-active .glcr-portfolio-tooltip-box-subtitle {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
    transition: -webkit-clip-path 0.4s ease;
    transition: clip-path 0.4s ease;
    transition: -webkit-clip-path 0.4s ease;
}

.glcr-portfolio-tooptip-box.glcr-is-active .glcr-portfolio-tooltip-box-subtitle {
    transition-delay: 0.4s;
    transition: -webkit-clip-path 0.6s ease;
    transition: clip-path 0.6s ease;
    transition: -webkit-clip-path 0.6s ease;
}

.glcr-portfolio-tooptip-box.glcr-is-active .glcr-portfolio-tooltip-box-title:after, .glcr-portfolio-tooptip-box.glcr-is-active .glcr-portfolio-tooltip-box-subtitle:after {
    width: 100%;
}

/* when right area space is less */
.glcr-portfolio-tooptip-box.glcr-right {
    text-align: right;
}

.glcr-portfolio-tooptip-box.glcr-right .glcr-portfolio-tooltip-box-wrap {
    text-align: right;
    transform: translateX(-100%);
    right: 30px;
}

.glcr-portfolio-tooptip-box.glcr-right .glcr-portfolio-tooltip-box-title, .glcr-portfolio-tooptip-box.glcr-right .glcr-portfolio-tooltip-box-subtitle {
    float: right;
}