body {
  padding: 10px 0;
  position: absolute;
}

.gallery {
  width: 100%;
  margin: auto;
  border-radius: 0px;
  overflow: hidden;
}

.img-c {
  width: 150px;
  height: 150px;
  float: left;
  position: relative;
  overflow: hidden;
}

.img-w {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: relative;
  cursor: pointer;
  transition: transform ease-in-out 200ms;
}

.img-w img {
  display: none;
}

.img-c {
  transition: width ease 300ms, height ease 250ms, left cubic-bezier(1, 2, 1.4, 0) 320ms, top cubic-bezier(1.4, 2, 1.2, 0) 320ms;
}

.img-c:hover .img-w {
  transform: scale(1.10);
  transition: transform cubic-bezier(1, 1, 0.4, 0) 350ms;
}

.img-c.active {
  width: 30% !important;
  height: 30% !important;
  position: absolute;
  z-index: 4;
}

.img-c.postactive {
  position: relative;
  z-index: 2;
  pointer-events: relative;
}

.img-c.active.positioned {
  left: 30% !important;
  top: 30% !important;
  transition-delay: 50ms;
}
