/* Large-view overlay for reading the printed specs. Additive viewer: it shows the
   accepted leaf images themselves, never a recomposition of the book. */

.zoomrow {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.zoombtn {
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 15px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.zoombtn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.zoombtn[disabled] {
  opacity: 0.35;
  cursor: default;
}

.zoomview {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(10, 9, 8, 0.94);
  overflow: auto;
}

.zoomview-in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  max-width: 100%;
  max-height: 100%;
}

.zoomview figure {
  margin: 0;
  line-height: 0;
}

.zoomview img {
  display: block;
  height: min(84vh, 100%);
  width: auto;
  max-width: 100%;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
}

.zoomview-close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.zoomview-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.zoomview-note {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

@media (max-width: 760px) {
  .zoomview {
    padding: 12px;
    align-items: flex-start;
  }

  .zoomview-in {
    flex-direction: column;
    gap: 6px;
  }

  .zoomview img {
    height: auto;
    width: 100%;
  }
}
