.logo {
  position: relative;
  display: inline-block;
  text-decoration: none;
  width: 42px;        /* match the image width */
  height: 42px;       /* match the image height */
  margin: 0 auto;     /* centers horizontally */
}

.logo img {
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.2s ease-in-out;
}

.logo .logo-static {
  opacity: 1;
}

.logo .logo-hover {
  pointer-events: none;
}

.logo:hover .logo-static {
  opacity: 0;
}

.logo:hover .logo-hover {
  opacity: 1;
}

.logo-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
  position: relative;
  z-index: 10;
}
