/* Masonry */

/* Masonry Metro */
.ealain-metro-block .ealain-portrait-box {
    margin-bottom: 0;
}
 
.ealain-metro-block .grid-sizer {
    width: 25%;
    display: block;
}

.ealain-masonry-block .ealain-masonry-item {
    position: relative;
    overflow: hidden;
}

.ealain-masonry-block .ealain-portfolio-overlay .ealain-portfolio-name {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-bottom: 10px;
}

.ealain-masonry-block .ealain-masonry-item .ealain-portrait-box img {
    width: 100%;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.ealain-masonry-block .portrait-main-details .ealain_main p {
    margin: 7px 0 10px 0;
}

.ealain-masonry-block .portrait-main-details .ealain_main .ealain-client {
    margin: 7px 0;
}

.ealain-portrait-box {
    position: relative;
    overflow: hidden;
    z-index: 9;
}

.ealain-masonry-item.size-verticle{
    width: 25%;
}

.ealain-masonry-item.size-portrait-one{
    width: 25%;
}

.ealain-masonry-item.size-portrait-two,.ealain-masonry-item.size-landscape{
    width: 50%;
}

.ealain-masonry-item{
    display: block;
}
.ealain-masonry-block .ealain-portfolio-box{
    padding:1em;
    margin: 0;
}



@media(max-width:1366px){
    .ealain-masonry-item.size-portrait-one ,.ealain-masonry-item.size-portrait-two, .ealain-masonry-item.size-landscape ,.ealain-masonry-item.size-verticle{
        width: 50%;
    }
    .ealain-masonry-block .ealain-portfolio-box .portfolio-content-details >img {
        min-height: 300px;
        object-fit: cover;
    }
}
@media(max-width:767px) {
    .ealain-masonry-item.size-portrait-one ,.ealain-masonry-item.size-portrait-two, .ealain-masonry-item.size-landscape ,.ealain-masonry-item.size-verticle{
        width: 100%;
    }
}
