.migy-img-viewer .migy_grid_layout {
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
}

.migy-filter-buttons {
    list-style: none;
}

.migy-filter-buttons li {
    display: inline-block;
}

.migy-img-viewer .migy_gallery_images .migy-gallery-item {
    overflow: hidden;
}

.migy-img-viewer .migy_grid_layout .migy-grid-gallery-item_ {
    float: left;
    height: auto;
    margin: 0;
    list-style: none;
    line-height: 0;
    opacity: 1;
    transition: all 0.3s;
    position: relative;
}

.migy-gallery-item.hide-item {
    transform: scale(0);
}


.fadeout {
	transform: scale(0) !important;
}

.migy-img-viewer .migy_gallery_images .migy-gallery-item img {
    width: 100%;
    height: 100%;
}

/* New */
.migy-img-viewer .migy-masonry-gallery-item,
.migy-img-viewer .migy-grid-gallery-item {
    position: relative;
}

/* ---- */
.migy-img-viewer .migy_zoom_gallery .migy-gallery-item img {
    cursor: crosshair;
}

.migy-img-viewer .migy-item-meta {
    position: absolute;
    z-index: 1;
    padding: 5px 10px;
    display: block;
    background: rgba(0, 0, 0, 0.51);
    width: 100%;
    top: 100%;
    margin-top: -38px;
    bottom: 0;
    transition: 0.7s;
}

.migy-img-viewer .migy-item-meta.migy-item-meta-with-description:hover {
    top: 0;
    margin-top: 0;
}

.migy-img-viewer .migy-item-meta .migy-image-title {
    font-size: 17px;
    font-weight: 500;
    text-transform: capitalize;
    margin: 0;
    text-align: left;
    color: #fff;
    line-height: 28px;
}


.migy-img-viewer .migy-item-meta p.migy-image-description {
    text-align: left;
    color: #dbdbdb;
    font-size: 14px;
    line-height: 22px;
    margin: 6px 0 5px 0;
}

.migy-img-viewer p {
    font-size: 15px;
    font-weight: 400;
    text-transform: capitalize;
    text-align: center;
}

.viewer-list > li {
    width: 38px;
    margin: 0;
    padding: 0;
}

.viewer-toolbar li {
    margin: 0;
    padding: 0;
}

.migy-filter-buttons {
    margin-bottom: 10px;
}

.migy-filter-buttons button.migy-filter-button {
    padding: 10px 20px;
    font-size: 15px;
    line-height: 15px;
    margin-right: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    outline: 0;
    text-decoration: none;
    font-weight: 500;
    text-transform: capitalize;
}


/* Column and spacing */

/* Column gap */
.migy_grid_layout.five-px {
    column-gap: 5px;
    margin-right: -5px;
}

.migy_grid_layout.ten-px {
    column-gap: 10px;
    margin-right: -10px;
}

.migy_grid_layout.fifteen-px {
    column-gap: 15px;
    margin-right: -15px;
}

/* Grid Columns */
/* 2 columns and fix spacing */
.migy_grid_layout.two-column.five-px .migy-gallery-item {
    width: calc(50% - 5px);
    margin-bottom: 5px;
}

.migy_grid_layout.two-column.ten-px .migy-gallery-item {
    width: calc(50% - 10px);
    margin-bottom: 10px;
}

.migy_grid_layout.two-column.fifteen-px .migy-gallery-item {
    width: calc(50% - 15px);
    margin-bottom: 15px;
}

/* 3 columns and fix spacing */
.migy_grid_layout.three-column.five-px .migy-gallery-item {
    width: calc(33.3333% - 5px);
    margin-bottom: 5px;
}

.migy_grid_layout.three-column.ten-px .migy-gallery-item {
    width: calc(33.3333% - 10px);
    margin-bottom: 10px;
}


.migy_grid_layout.three-column.fifteen-px .migy-gallery-item {
    width: calc(33.3333% - 15px);
    margin-bottom: 15px;
}

/* 4 columns and fix spacing */
.migy_grid_layout.four-column.five-px .migy-gallery-item {
    width: calc(25% - 5px);
    margin-bottom: 5px;
}

.migy_grid_layout.four-column.ten-px .migy-gallery-item {
    width: calc(25% - 10px);
    margin-bottom: 10px;
}

.migy_grid_layout.four-column.fifteen-px .migy-gallery-item {
    width: calc(25% - 15px);
    margin-bottom: 15px;
}






.migy_masonry_layout {
    margin: 1rem 0;
    -webkit-column-width: 25%;
    -moz-column-width: 25%;
    column-width: 25%;
}

.migy-filter-gallery-wrapper .migy-gallery-item {
    display: none;
}

.migy-filter-gallery-wrapper .migy-gallery-item img {
    max-width: 100%;
    height: auto;
    display: block;
    width: 100%;
}

/* Masonry Columns CSS */
.migy_masonry_layout.two-column {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
}

.migy_masonry_layout.three-column {
    -webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 3;
}

.migy_masonry_layout.four-column {
    -webkit-column-count: 4;
    -moz-column-count: 4;
    column-count: 4;
}


/* Masonry Column Gap CSS */
.migy_masonry_layout.five-px {
    -webkit-column-gap: 5px;
    -moz-column-gap: 5px;
    column-gap: 5px;
}

.migy_masonry_layout.ten-px {
    -webkit-column-gap: 10px;
    -moz-column-gap: 10px;
    column-gap: 10px;
}

.migy_masonry_layout.fifteen-px {
    -webkit-column-gap: 15px;
    -moz-column-gap: 15px;
    column-gap: 15px;
}

/* Margin bottom */
.migy_masonry_layout.five-px .migy-gallery-item {
    margin: 0 0 5px;
}

.migy_masonry_layout.ten-px .migy-gallery-item {
    margin: 0 0 10px;
}

.migy_masonry_layout.fifteen-px .migy-gallery-item {
    margin: 0 0 15px;
}



@media screen and (max-width: 480px) {

	/* Grid columns responsive */
	.migy_grid_layout.two-column.five-px .migy-gallery-item,
.migy_grid_layout.three-column.five-px .migy-gallery-item,
.migy_grid_layout.four-column.five-px .migy-gallery-item {
    width: calc(50% - 5px);
}

.migy_grid_layout.two-column.ten-px .migy-gallery-item,
.migy_grid_layout.three-column.ten-px .migy-gallery-item,
.migy_grid_layout.four-column.ten-px .migy-gallery-item {
    width: calc(50% - 10px);
}

.migy_grid_layout.two-column.fifteen-px .migy-gallery-item,
.migy_grid_layout.three-column.fifteen-px .migy-gallery-item,
.migy_grid_layout.four-column.fifteen-px .migy-gallery-item {
    width: calc(50% - 15px);
}

.migy_masonry_layout.two-column,
.migy_masonry_layout.three-column,
.migy_masonry_layout.four-column {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
}

	
}

/* new add */
.migy-hover-zoom img {
	transform: scale(1);
	transition: transform 0.4s ease;
}
.migy-hover-zoom:hover img {
	transform: scale(1.1);
}

.migy-hover-grayscale img {
	filter: grayscale(0%);
	transition: filter 0.3s ease;
}
.migy-hover-grayscale:hover img {
	filter: grayscale(100%);
}

.migy-hover-blur img {
	filter: blur(0px);
	transition: filter 0.3s ease;
}
.migy-hover-blur:hover img {
	filter: blur(2px);
}

/* new end  */