#sidebar #avatar {
  width: min(100%, 12rem);
  height: auto;
  aspect-ratio: 223 / 100;
  border-radius: 0 !important;
  box-shadow: none;
}

#sidebar #avatar img {
  display: block;
  width: 100%;
  height: auto;
}

#sidebar #avatar:hover img {
  transform: none;
}

#sidebar #avatar:empty {
  display: none;
}

#sidebar #avatar:has(img) + .site-title {
  display: none !important;
}

#sidebar #avatar:has(img) ~ .site-subtitle {
  margin-top: 0.5rem;
}

.preview-img > picture {
  display: block;
  width: 100%;
  height: 100%;
}

.preview-img > picture > img {
  width: 100%;
}
