/* === Hint sobre a miniatura no mobile === */
.zoom-thumb-wrapper {
  position: relative;
  cursor: pointer;
}
.zoom-hint {
  display: none;
  position: absolute;
  bottom: 8px;
  right: 8px;
  color: #FFFFFF;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 3px;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 768px) {
  .zoom-thumb-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.65) 100%);
    opacity: 1;
    pointer-events: none;
  }
  .zoom-hint {
    display: block;
  }
  .zoom-hint::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url(../assets/ic-expand.svg);
  }
}

/* === Overlay Lightbox === */
.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zoom-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}
.zoom-overlay-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  overflow: hidden;
  cursor: grab;
  background-color: #FFFFFF;
  padding: 5px;
  border-radius: 5px;
}
.zoom-overlay-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  transition: transform 0.3s ease;
  transform-origin: center center;
  cursor: grab;
}
.zoom-overlay-img:active {
  cursor: grabbing;
}

/* === Controles e indicador === */
.zoom-overlay-controls {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
}
.zoom-overlay-controls button {
  background: rgba(104, 0, 255, 0.4);
  border: none;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.zoom-overlay-controls button:hover {
  background: rgba(104, 0, 255, 0.6);
}
.zoom-overlay-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.zoom-percentage {
  display: none;
  font-size: 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 6px;
  border-radius: 3px;
  align-self: center;
}

/* === Botão Fechar === */
.zoom-close {
  font-size: 20px;
  line-height: 1;
}
