﻿.wmin #ma.masonry-gallery__itemin, .wmax #main {
    background: none !important;
    box-sizing: border-box
}

.masonry-gallery {
    margin-top: 40px
}


.masonry-gallery__item__title {
    padding: 20px 40px;
    text-align: center;
    font-size: 17px;
    line-height: 30px
}

.masonry-gallery__item {
    width: 280px;
    margin-bottom: 27px;
    color: #6b7074;
    overflow: hidden;
    flex-direction: column;
    display: flex;
    background-color: #fff;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, .1);
    border-radius: 3px
}

.masonry-gallery>.left{
    width: 29%;
}

.masonry-gallery>.right{
    width: 70%;
}

.masonry-gallery__item.masonry-gallery__item_horizontal{
    width:100%!important;
    display: block!important;
}

.masonry-gallery__item.masonry-gallery__item_horizontal .image{
    width: 40% !important;
    float: right;
}

.masonry-gallery__item.masonry-gallery__item_horizontal_left .image{
    float:left!important;
}

.masonry-gallery__item.masonry-gallery__item_horizontal  .masonry-gallery__item__title,.masonry-gallery__item.masonry-gallery__item_horizontal .masonry-gallery__item__description,.masonry-gallery__item.masonry-gallery__item_horizontal .masonry-gallery__item__detail{
    float: left;
    width: 60%;
    box-sizing: border-box;
}

.masonry-gallery__item.masonry-gallery__item_horizontal_left  .masonry-gallery__item__title,.masonry-gallery__item.masonry-gallery__item_horizontal_left .masonry-gallery__item__description,.masonry-gallery__item.masonry-gallery__item_horizontal_left .masonry-gallery__item__detail {
    float: right!important;
}


.masonry-gallery__item.masonry-gallery__item_horizontal .masonry-gallery__item__detail{
    padding: 20px 25px 30px!important;
    margin:0!important;
}

.masonry-gallery__item.masonry-gallery__item_horizontal .image a{
    display: block;
    line-height: 0!important;
}

.masonry-gallery__item:hover {
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, .2)
}

.masonry-gallery__item .image:not(.solo) {
    width: 100%
}

.masonry-gallery__item .image {
    overflow: hidden
}

.masonry-gallery__item .image__mask {
    right: 0;
    bottom: 0;
    left: 0;
    height: 0;
    pointer-events: none;
    z-index: 3;
    background: -webkit-gradient(linear, left bottom, left top, from(#2f2727), to(transparent));
    background: linear-gradient(to top, #2f2727, transparent)
}

.masonry-gallery__item__title {
    padding: 20px 40px;
    display: block;
    direction: rtl;
    text-align: center;
    font-size: 17px;
    line-height: 30px
}

.masonry-gallery__item__description {
    padding: 20px 25px 30px;
    text-align: justify;
    font-size: 13px;
    line-height: 25px;
    direction: rtl
}

.masonry-gallery__item__detail {
    margin: 0 20px 20px;
    align-items: center;
    text-align: left
}

.masonry-gallery__item__description:before {
    content: "";
    display: block;
    width: 45px;
    border-top: 2px solid #63d0df;
    top: -2px;
    right: calc(50% - 45px);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    position: relative
}

.masonry-gallery__item .image__mask {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 0;
    pointer-events: none;
    z-index: 3;
    background: -webkit-gradient(linear, left bottom, left top, from(#2f2727), to(transparent));
    background: linear-gradient(to top, #2f2727, transparent)
}

.masonry-gallery__item:hover .image__mask {
    height: 100%
}

.masonry-gallery__item .image {
    position: relative;
    overflow: hidden
}

