.gallery {
	padding: 1em;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	grid-template-rows: repeat(auto-fit, minmax(200px, 1fr));
	grid-auto-flow: dense;
	grid-gap: 0.8em;
}

.image {
	height: 100%;
	width: 100%;
	background-color: #333;
	border-radius: 2.5em;
	display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.image > a > img {
	border-radius: 1.7em;
	height: 100%;
	width: 100%;
	object-fit: cover;
}

.lazyload {
	-moz-transition: all 0.15s ease-out;
	-o-transition: all 0.15s ease-out;
	-webkit-transition: all 0.15s ease-out;
}

.lazyload:hover {
	-webkit-transform: scale(1.05);
	-moz-transform: scale(1.05);
	-o-transform: scale(1.05);
 }

.grayscale {
	filter: grayscale(100%);
	-moz-transition: all 0.15s ease-out;
	-o-transition: all 0.15s ease-out;
	-webkit-transition: all 0.15s ease-out;
}

.grayscale:hover {
	-webkit-transform: scale(1.05);
	-moz-transform: scale(1.05);
	-o-transform: scale(1.05);
}

.image:nth-child(2n+1) {
	grid-column: span 2;
	grid-row: span 2;
}

.image:nth-child(3n+1) {
	grid-column: span 2;

}

.puzzle {
	z-index: 100;
	position: absolute;
	margin-top: 1em;
    width: 100px;
    height: 100px;
    text-align: center;
    pointer-events: none;
}

.puzzle > p {
	margin-top: auto;
	font-size: 1.5em;
	font-weight: 600;
}

.avatar-puzzle {
	z-index: 100;
	position: absolute;
	bottom: 1em;
	left: 1em;
	width: 4.5em;
	height: 4.5em;
}

.avatar-puzzle > img {
	object-fit: cover;
	width: 100%;
	height: 100%;
	border: 0.15em solid #444;
	border-radius: 50%;
	background-color: #fff;
}

.star {
	cursor: pointer;
	display: block;
	position: absolute;
	z-index: 101;
	bottom: 1em;
	right:  1em;
	height: 35px;
}

.star img {
	object-fit: cover;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.delete-puzzle img {
	cursor: pointer;
	display: block;
	position: absolute;
	z-index: 101;
	bottom: 1em;
	right: 1em;
	top: 1em;
	height: 35px;
}

@media (max-width: 680px) {
.gallery {
  display: flex;
  flex-direction: column;
}




body {
	margin: 0,5em;

}