.gallery-outer .overlay {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    background-color: rgb(0 0 0 / 75%);
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: .5s ease;
    z-index: 7;
}


.gallery-outer .text {
    color: #fff;
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    line-height: 1.5;
    padding: 0 10px;
}
.page-id-1758 .gallery-outer .foogallery .fg-image-wrap{
	width: 360px;	
}

.gallery-outer .foogallery .fg-image-wrap {
    position: relative;
    display: block;
    height: 100%;
    width: 400px;
    height: 300px;
}

.gallery-outer .foogallery .fg-image-wrap:hover .overlay {
    height: 100%;
}
.gallery-outer .foogallery .fg-item {
    flex: 0 calc(33.33% - 20px);
	margin: 2px;
}

.gallery-outer .foogallery .fg-image-wrap img {
    width: 100% !important;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gallery-outer-parent .gallery-outer .foogallery .fg-image-wrap {
    width: 100% !important;
}

.gallery-outer-parent .gallery-outer h2{
    font-weight: 900 !important;
}

section.gallery-outer {
    height: 100%;
}

section.gallery-outer .foogallery {
    display: flex;
    flex-wrap: wrap;
}

.gallery-outer .foogallery .fg-item figure.fg-item-inner {
    margin: 0;
    width: 100%;
    height: 100%;
}


@media screen and (max-width: 767px) {
	.gallery-outer  .foogallery .fg-item {
        flex: 0 calc(50% - 20px);
    }
}

@media screen and (max-width: 575px) {
	.gallery-outer .foogallery .fg-item{
		flex: 0 calc(100% - 20px);
  }
}