.gallery {
  --s: 130px; /* control the size */
  --g: 12px;  /* control the gap */
  --f: 1;   /* control the scale factor */
  
  display: grid;
  gap: var(--g);
  width: calc(4*var(--s) + 2*var(--g));
  aspect-ratio: 1.5;
  grid-template-columns: repeat(3,auto);
}

.gallery > img {
  width: 0;
  height: 0;
  min-height: 100%;
  min-width: 100%;
  object-fit: cover;
  cursor: pointer;
  filter: grayscale(100%);
  transition: .35s linear;
}

.gallery img:hover{
  filter: grayscale(0);
  width:  calc(var(--s)*var(--f));
  height: calc(var(--s)*var(--f));
}
.element {
  position: fixed;
  inset: 0;
  width: fit-content;
  height: fit-content;
  margin: auto;padding-top: 10%;
}
.element2 {
  position: fixed;
 width: fit-content;
  height: fit-content;
margin: auto;padding-left: 5%;text-align: center
}
body {
  margin: 0;
  min-height: 10vh;
  display: grid;
  place-content: center;
 background-color:#7599E3 ;}