.gallery-item-container {
    line-height: 0;
    display: table
}

.gallery-item {
    overflow: hidden !important;
    display: table-cell;
}

.gallery-item img {
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    -webkit-transition: all 0.3s ease-out;
    display: block;
    width: 100%;
}

.gallery-item img:hover {
    -webkit-transform: scale(1.3);
    -moz-transform: scale(1.3);
    -o-transform: scale(1.3);

}


.photogallery {
    min-height: calc(100vh - 372px);
}

.photogallery__container {
    padding-bottom: 20px;
}

.photogallery__container.active .photogallery__list {
    display: block;
}

.photogallery__container.active .photogallery__btn {
    padding-bottom: 26px;
}

.photogallery__container.active .photogallery__btn:after {
    -webkit-transform: rotate(-180deg);
    transform: rotate(-180deg);
}

.photogallery__list {
    display: none;
}

.photogallery__btn {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 500;
    color: #5a4b41;
    cursor: pointer;
    display: inline-block;
    text-transform: uppercase;
}

.photogallery__btn:after {
    content: '';
    display: inline-block;
    margin-left: 40px;
    width: 24px;
    height: 12px;
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
    content: '';
    background-repeat: no-repeat;
    background-position: center;
    -webkit-transition: .2s;
    transition: .2s;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='12' height='6' viewBox='0 0 12 6'%3E%3Cdefs%3E%3Cpath id='a' d='M1204 28.031l4.991 3.969 5.009-4'/%3E%3C/defs%3E%3Cuse fill-opacity='0' stroke='%23e1f01e' stroke-linecap='round' stroke-linejoin='round' stroke-miterlimit='50' stroke-width='2' xlink:href='%23a' transform='translate(-1203 -27)'/%3E%3C/svg%3E");
}

.photogallery__item {
    height: calc(100% - 20px);
    margin-bottom: 20px;
}

.photogallery__image {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    min-height: 227px;
}

.photogallery__image_big {
    max-height: 474px;
}

.photogallery__image_medium {
    max-height: 295px;
}

.photogallery__image_medium_phg {
    max-height: 205px;
    min-height: 185px;
}

.photogallery__image_small {
    max-height: 227px;
}

.photogallery__image:before {
    position: absolute;
    left: 0;
    top: 0;
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .3);
    opacity: 0;
    z-index: 1;
    -webkit-transition: .3s;
    transition: .3s;
}

.photogallery__image:after {
    content: '';
    width: 48px;
    height: 48px;
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%) scale(1);
    transform: translateY(-50%) scale(1);
    left: 0;
    right: 0;
    margin: 0 auto;
    background-repeat: no-repeat;
    background-image: url("../images/icons/fullscreen.svg");
    background-position: center center;
    -webkit-transition: .3s;
    transition: .3s;
    opacity: 0;
    z-index: 2;
}

.photogallery__image:hover:after {
    -webkit-transform: translateY(-50%) scale(1);
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

.photogallery__image:hover:before {
    opacity: 1;
}

.photogallery__image:hover img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.photogallery__pic {
    max-height: 100%;
    width: auto;
    -webkit-transition: .8s;
    transition: .8s;
}

/*gallery_template_2*/
.lightgallery-item .card__info .card-img {
    height: auto;
    min-height: 250px;
    max-height: 250px;
}

@media all and (max-width: 1199px){
    .lightgallery-item .card__info {
        height: 0;
        padding-top: 135%;
    }

    .lightgallery-item .card__info .card-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        min-height: unset;
        max-height: unset;
    }
}