/* Product screenshots: how they are framed, and click-to-enlarge.

   The frame is CSS rather than baked into the file. A hairline drawn into an
   870px image is no longer a hairline once the browser renders that image at
   1600px — it upscales with everything else and turns into a thick, ragged
   line. A CSS border is one device pixel at any size and on any display. */

.screenshot-frame {
  border: 1px solid #dcdfeb;
  border-radius: 1.5rem;
}

/* Click-to-enlarge: the small type in these — score tables, competency bars,
   per-criterion comments — is legible at full size and not at card size. */

.zoomable {
  cursor: zoom-in;
}

.zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(14, 16, 22, 0.82);
  opacity: 0;
  transition: opacity 0.18s ease;
  cursor: zoom-out;
}

.zoom-overlay.is-open {
  opacity: 1;
}

.zoom-overlay img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.zoom-overlay-close {
  position: absolute;
  top: clamp(10px, 2vw, 22px);
  right: clamp(10px, 2vw, 22px);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.zoom-overlay-close:hover {
  background: rgba(255, 255, 255, 0.26);
}

.zoom-overlay-hint {
  position: absolute;
  bottom: clamp(10px, 2vw, 22px);
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .zoom-overlay {
    transition: none;
  }
}
