.profile-image-viewer-open {
  overflow: hidden !important;
}

.profile-viewable-image {
  cursor: zoom-in;
}

main img[alt="Feature"].object-cover,
main .h-44 > img.object-cover,
main img[style*="object-fit:cover"],
main img[style*="object-fit: cover"] {
  background: #f3f4f6 !important;
  object-fit: contain !important;
  transform: none !important;
}

.profile-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 14, 0.92);
  padding: 72px 24px 28px;
}

.profile-image-viewer.is-open {
  display: flex;
}

.profile-image-viewer__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 116px);
  object-fit: contain;
  transform: scale(var(--profile-image-zoom, 1));
  transform-origin: center center;
  transition: transform 160ms ease;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.profile-image-viewer__bar {
  position: fixed;
  top: 16px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.78);
  backdrop-filter: blur(12px);
}

.profile-image-viewer__button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: 700 18px/1 Arial, sans-serif;
  cursor: pointer;
}

.profile-image-viewer__button:hover,
.profile-image-viewer__button:focus-visible {
  background: #ffe500;
  color: #111;
  outline: none;
}

.profile-image-viewer__hint {
  position: fixed;
  right: 18px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.66);
  font: 600 12px/1.5 Arial, sans-serif;
}

@media (max-width: 640px) {
  .profile-image-viewer {
    padding: 70px 12px 22px;
  }

  .profile-image-viewer__bar {
    top: 10px;
  }

  .profile-image-viewer__button {
    width: 36px;
    height: 36px;
  }

  .profile-image-viewer__hint {
    display: none;
  }
}
