

.gallery_wrapper {
	--img-size: calc(100px - 0.5rem / 2);
	display: grid;
	gap: 0.5rem;
	grid-template-columns: repeat(6, var(--img-size));
	grid-template-rows: repeat(4, var(--img-size));
}

.my img {
	max-width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	grid-column: span 2;
	border-radius: 0.5rem;
	clip-path: path(
		"M 80 20 C 100 0 100 0 120 20 C 140 40 160 60 180 80 C 200 100 200 100 180 120 C 160 140 140 160 120 180 C 100 200 100 200 80 180 C 60 160 40 140 20 120 C 0 100 0 100 20 80 Z"
	);
	transition: filter 500ms, clip-path 500ms;
}

.my img:nth-of-type(4),
.my img:nth-of-type(9) {
	grid-column: 2 / span 2;
}

.my img:hover {
	z-index: 100;
	clip-path: path(
		"M 0 0 C 100 0 100 0 200 0 C 200 50 200 50 200 80 C 200 100 200 100 200 120 C 200 150 200 150 200 200 C 100 200 100 200 0 200 C 0 150 0 150 0 120 C 0 100 0 100 0 80 Z"
	);
}

.my img:not(:hover) {
	animation: zIndexFix 500ms;
}

.gallery_wrapper:hover > img {
	filter: brightness(0.5) saturate(0.5);
}

.gallery_wrapper > img:hover {
	filter: brightness(1) saturate(1.5);
}

@keyframes zIndexFix {
	0%,
	100% {
		z-index: 10;
	}
}


/*For Bootstrap*/

.for-gallery .container:before, .for-gallery .container:after {
    display: table;
    content: " ";
}

.for-gallery .row:before, .for-gallery .row:after {
    display: table;
    content: " ";
}

@media (min-width: 1400px) {
    .for-gallery .container, .for-gallery .container-sm, .for-gallery .container-md, .for-gallery .container-lg, .for-gallery .container-xl, .for-gallery .container-xxl {
        max-width: 1320px;
    }
}

@media (min-width: 576px) {
    .for-gallery .col-sm-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

.for-gallery .row>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) / 2);
    padding-left: calc(var(--bs-gutter-x) / 2);
    margin-top: var(--bs-gutter-y);
}

.for-gallery .row {
    --bs-gutter-x:default;
    --bs-gutter-y:default;
    display: block;
    flex-wrap:nowrap;
    margin-top: calc(var(--bs-gutter-y) * -1);
    margin-right: calc(var(--bs-gutter-x) / -2);
    margin-left: calc(var(--bs-gutter-x) / -2);
}

.for-gallery .fa {
    display: inline-block;
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.for-gallery a:-webkit-any-link {
    color: -webkit-link;
    cursor: pointer;
    text-decoration: underline;
	
}

.for-gallery a {
    color: #b69e40;
    outline: 0;
    text-decoration: none;
    background: transparent;
}

.for-gallery{ background: #e9f5ff;
    display: block;
    padding-top: 130px;
}

.for-gallery .templatemo_loadmore{margin-bottom: 4% !important;}

.gallery-page .bg-light.gallery-Construction{	
    background-image: url(../img/gallery-Construction.jpg);
}
.gallery-page .bg-light.gallery-Interior{	
    background-image: url(../img/gallery-Interior.jpg);
}
.gallery-page .bg-light.gallery-Architecture{	
    background-image: url(../img/gallery-Architecture.jpg);	
}

.gallery-page .bg-light.gallery-Construction:hover{	
    background-image: url(../img/gallery-Construction-hover.jpg);
}
.gallery-page .bg-light.gallery-Interior:hover{	
    background-image: url(../img/gallery-Interior-hover.jpg);
}
.gallery-page .bg-light.gallery-Architecture:hover{	
    background-image: url(../img/gallery-Architecture-hover.jpg);	
}

.gallery-page .bg-light{
    height: 350px !important;
    /* background-position: 20px 30px; */
    background-position: -1em -6px;
	box-shadow: 0 3px 5px #000;
	transition: all .3s linear;
}

.gallery-page .bg-light:hover{	
    height: 350px !important;
    /* background-position: 20px 30px; */
    background-position: -1em -6px;
	box-shadow: 0 3px 5px #000;
/*	transform: scale(1.000);*/
	transition: all .3s linear;
}

.gallery-page fact-item {
	position: relative;}

.gallery-page h3{
    display: block;
    position: absolute;
    bottom: 0;
    width: 92%;
    background: aliceblue;
    padding: 5px 0px;
    text-align: center;
	transition: all .2s linear;
}

.gallery-page .bg-light:hover h3{	
 width: 100%;
	transition: all .2s linear;
}


