.to-top {
  position: fixed;
  right: 24px;
  bottom: 40px;
  z-index: 100;
  width: 60px;
  height: 60px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top img {
  display: block;
  width: 60px;
  height: 60px;
}

@media (max-width: 768px) {
  .to-top {
    right: 0;
  }
  .to-top img {
    width: 40px;
    height: 40px;
  }
}
