.c {
  position: relative;
  width: 90vmin;
  height: calc(90vmin * 9 / 16);
  margin: auto;
  overflow: hidden;
  box-shadow: 0 1.25em 1em -.5em #0005;
}

.i {
  width: 100%;
  height: 100%;
  background-color: #000;
}

.img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 0% 50%;
  transition: transform 1s;
}

/* HOVER SELECTOR. */
.c:hover .img {
  transform: translateX(-3%);
  transition-duration: 5s;
}

:root {
  --s1-w: 40vmin;
  --s2-w: 60vmin;
  --s3-w: 10vmin;
}

@keyframes move-x {
  50% {
    transform: translateX(var(--x1));
  }
  100% {
    transform: translateX(var(--x2));
  }
}

.s1,
.s2,
.s3 {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
}

/* HOVER ANIMATION. */
.c:hover .s1,
.c:hover .s2,
.c:hover .s3 {
  animation: move-x .5s ease-out forwards;
}

.s1 {
  left: 100%;
  z-index: 1;
  width: var(--s1-w);
  background-color: #fff;
  mix-blend-mode: difference;

  --x1: -110vmin;
  --x2: -50vmin;
}

.s2 {
  z-index: 2;
  width: calc(var(--s2-w) * 2);
  left: calc(100% + var(--s1-w));
  background-color: #000;

  --x1: -110vmin;
  --x2: -90vmin;
}

.s3 {
  z-index: 2;
  width: 10vmin;
  right: 100%;
  background-color: #000;

  --x1: 0;
  --x2: 95%;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  min-height: 100vh;
  margin: 0;
  background: #333;
  color: #cca;
}

h1 {
  text-align: center;
}

p {
    text-align: center;
    font-size: 20px;
}

.info {
  align-self: flex-end;
  margin: 3rem 1rem 1rem;
  text-align: right;
  font-size: .85em;
  font-style: italic;
  font-family: serif;
  opacity: .75;
}

/* NESTED LINKS. */
.info a {
  color: inherit;
}
