/* .zoom-container {
  position: relative;
  display: inline-block;
}

.zoom-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 1.4rem;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 0 4px rgba(0,0,0,0.6);
  cursor: pointer;
  user-select: none;
}

.zoom-overlay {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-close {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

.zoom-frame {
  max-width: 90%;
  max-height: 90%;
  overflow: hidden;
}

.zoom-frame img.zoom-target {
  display: block;
  max-width: none;
  user-select: none;
  cursor: move;
} */



.zoom-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.zoom-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  user-select: none;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px;
  border-radius: 4px;
}

.zoom-overlay {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
}

.zoom-close {
  position: fixed;
  top: 16px;
  right: 16px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 10001;
  padding: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  line-height: 1;
}

.zoom-frame {
  max-width: 90vw;
  max-height: 90vh;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
}

.zoom-frame img.zoom-target,
.zoom-frame canvas { /* Support Panzoom's canvas */
  display: block;
  max-width: none;
  user-select: none;
  cursor: move;
  width: auto;
  height: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .zoom-icon {
    font-size: 1.2rem;
    top: 4px;
    right: 4px;
    padding: 6px;
  }

  .zoom-close {
    top: 8px;
    right: 8px;
    font-size: 1.8rem;
    padding: 6px;
  }

  .zoom-frame {
    max-width: 95vw;
    max-height: 95vh;
  }
}