/* ===== Botão de lupa sobre a imagem da questão ===== */
.zoom-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.img-zoom-trigger {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  z-index: 2;
}
.img-zoom-trigger:hover { background: rgba(0, 0, 0, 0.75); transform: scale(1.06); }
.img-zoom-trigger:active { transform: scale(0.94); }

/* Trava o scroll da página quando o zoom está aberto */
body.img-zoom-lock { overflow: hidden; }

/* ===== Overlay em tela cheia ===== */
.img-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.94);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.img-zoom-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.img-zoom-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
}

.img-zoom-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.img-zoom-btn:hover { background: rgba(255, 255, 255, 0.22); }

.img-zoom-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  position: relative;
}

.img-zoom-image {
  max-width: 90vw;
  max-height: 80vh;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

.img-zoom-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}
.img-zoom-hint.is-visible { opacity: 1; }

@media (max-width: 640px) {
  .img-zoom-image { max-width: 95vw; max-height: 74vh; }
  .img-zoom-trigger { width: 32px; height: 32px; font-size: 14px; }
  .img-zoom-hint { font-size: 11px; white-space: normal; text-align: center; padding: 0 16px; }
}
