/* ProdBord · enlarge a screenshot (see zoom.js). Shared by every page. */

.zoom-trigger {
  display: block; position: relative; width: 100%; height: 100%;
  padding: 0; margin: 0; border: 0; background: none; color: inherit;
  font: inherit; text-align: inherit; cursor: zoom-in;
  border-radius: inherit;
}
.zoom-trigger:focus-visible { outline: 3px solid #176b4d; outline-offset: 3px; }
.zoom-trigger__hint {
  position: absolute; right: 10px; top: 10px;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.65rem; border-radius: 999px;
  background: rgba(23, 33, 27, 0.86); color: #fff;
  font-family: "Inter", system-ui, sans-serif; font-size: 0.78rem; font-weight: 500; line-height: 1.3;
  opacity: 0; transform: translateY(-3px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}
.zoom-trigger:hover .zoom-trigger__hint,
.zoom-trigger:focus-visible .zoom-trigger__hint { opacity: 1; transform: none; }
/* Touch screens have no hover, so the hint stays visible, quietly. */
@media (hover: none) {
  .zoom-trigger__hint { opacity: 0.92; transform: none; }
}

.zoom {
  width: min(1600px, calc(100vw - 24px));
  max-width: none; max-height: calc(100vh - 24px);
  padding: 0; border: 0; border-radius: 14px;
  background: #fbfaf7; color: #17211b;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.zoom[open] { display: flex; flex-direction: column; }
.zoom::backdrop { background: rgba(14, 18, 15, 0.82); }
.zoom__bar {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 0.8rem 1rem 0.8rem 1.2rem; border-bottom: 1px solid #d6d2c8;
}
.zoom__caption {
  margin: 0; font-family: "Inter", system-ui, sans-serif;
  font-size: 0.92rem; line-height: 1.45; color: #4c5c52; max-width: 70ch;
}
.zoom__close {
  flex: none; min-height: 40px; padding: 0.45rem 1rem;
  border: 1px solid #d6d2c8; border-radius: 999px; background: #fff; color: #17211b;
  font: 500 0.92rem "Inter", system-ui, sans-serif; cursor: pointer;
}
.zoom__close:hover { background: #e8e5dd; }
.zoom__close:focus-visible { outline: 3px solid #176b4d; outline-offset: 2px; }
.zoom__body {
  overflow: auto; padding: 16px; background: #e8e5dd;
  -webkit-overflow-scrolling: touch;
}
.zoom__img {
  display: block; height: auto; max-width: none; margin: 0 auto;
  border-radius: 8px; background: #fff;
  box-shadow: 0 10px 30px rgba(23, 33, 27, 0.18);
}

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