nav {
  display: flex;/*
  flex-direction: column;*/
  /*margin-top: 20vh;*/
  /*padding:3rem;*/
}

nav > a {
  color: rgba(255, 255, 255, 0.25);
  
  font-size: 5rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

nav > a:hover {
  color: white;
}

nav > a > span {
  display: block;
  border-bottom: 1px solid transparent;
  border-top: 1px solid transparent;
  position: relative;
  z-index: 2;
}

nav > a:hover > span {  
  border-top-color: white;
  border-bottom-color: white;
}

nav > a > img {
  position: absolute;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: transform 250ms, opacity 250ms;
  pointer-events: none;
  width: min(40vw, 500px);
}

nav > a:hover > img {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}




