.block {
  overflow: hidden;
  position: absolute;
  background-color: #cccccc;
  background-size: cover;
  background-position: center center;
  margin: 0;
  width: 100%;
  border-radius: 4px;
  /* box-shadow: 0px 1px 2px; */
}

/* 1/4 block */
.block-s {
  z-index: 1;
  transition: width 0.2s ease-in-out, height 0.2s ease-in-out, z-index 0.2s ease-in-out;
  height: 240px;
  width: 172px;
} .block-s:hover {
    height: 100%;
    width: 100%;
    z-index: 2;
    margin: 0;
  }
/* 1/2 block */
.block-m {
  height: 240px;
  width: 100%;
}
/* 1 block */
.block-l {
  height: 100%;
  width: 100%;
}

/* Positioning blocks */
.block-top-left {
  transform-origin: top left;
  top: 0;
  left: 0;
}
.block-top {
  top: 0;
}
.block-top-right {
  transform-origin: top right;
  top: 0;
  right: 0;
}
.block-bottom-left {
  transform-origin: bottom left;
  bottom: 0;
  left: 0;
}
.block-bottom {
  bottom: 0;
}
.block-bottom-right {
  transform-origin: bottom right;
  bottom: 0;
  right: 0
}

.block-image {
  height: 100%;
}

.frame {
  transition: opacity 0.2s;
  position: absolute;
  width: 100%;
  height: 100%;
} .frame:hover {
  opacity: 0;
}

.info {
  position: absolute;
  background: #ffffff;
  bottom: 0;
  padding: 4px 8px;
  font-size: 10px;
  border-radius: 0 4px 0 0;
}