.gallery {
	--s: 130px; /* control the size */
	--g: 10px;  /* control the gap */
	display: grid;
	margin: calc(var(--s) + var(--g));
    margin-left: 40%;
}

.g1 {
	margin-left: 22% !important;
}

.gallery > div {
	grid-area: 1/1;
	width: var(--s);
	aspect-ratio: 0.866;
	object-fit: cover;
	clip-path: polygon(0% 25%,0% 75%,50% 100%,100% 75%,100% 25%,50% 0);
	transform: translate(var(--_x,0),var(--_y,0)) scale(var(--_t,1));
	cursor: pointer;
	/* filter: grayscale(80%); */
	transition: .2s linear;
	display: flex;
	justify-content: center;
	align-items: center;
	
}

.gallery > div > a {
	text-align: center;
	color: black; /* Change text color if needed */
	text-decoration: none;
	font-size: 18px;
	font-weight: 700;
}
.gallery > div >div> a {
	text-align: center;
	color: white; /* Change text color if needed */
	text-decoration: none;
	font-size: 18px;
	font-weight: 700;
}

.gallery > div:nth-child(1) {--_x: calc(-100% - var(--g))}
.gallery > div:nth-child(7) {--_x: calc( 100% + var(--g))}
.gallery > div:nth-child(3),
.gallery > div:nth-child(5) {--_y: calc(-75% - .87*var(--g))}
.gallery > div:nth-child(4),
.gallery > div:nth-child(6) {--_y: calc( 75% + .87*var(--g))}
.gallery > div:nth-child(3),
.gallery > div:nth-child(4) {--_x: calc(-50% - .5*var(--g))}
.gallery > div:nth-child(5), 
.gallery > div:nth-child(6) {--_x: calc( 50% + .5*var(--g))}
