/* =========================================== */
/* INFINITE CANVAS GALLERY */
/* Zoomable, Pannable Canvas View */
/* =========================================== */

.canvas-gallery-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #0a0a0a;
  cursor: grab;
}

.canvas-gallery-container:active {
  cursor: grabbing;
}

.canvas-gallery {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  transition: transform 0.1s ease-out;
}

.canvas-artwork {
  position: absolute;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.canvas-artwork:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5);
  border-color: rgba(99, 102, 241, 0.5);
  z-index: 10;
}

.canvas-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.canvas-artwork-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 1rem;
  color: white;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.canvas-artwork:hover .canvas-artwork-info {
  opacity: 1;
}

.canvas-artwork-info h4 {
  font-size: 0.875rem;
  margin: 0 0 0.25rem 0;
  font-weight: 700;
}

.canvas-artwork-info p {
  font-size: 0.75rem;
  margin: 0;
  opacity: 0.8;
}

/* Zoom Controls */
.canvas-controls {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.canvas-control-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.canvas-control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Zoom Indicator */
.canvas-zoom-indicator {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: white;
  font-size: 0.875rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.canvas-zoom-indicator.active {
  opacity: 1;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .canvas-controls {
    bottom: 1rem;
    right: 1rem;
  }
  
  .canvas-control-btn {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .canvas-zoom-indicator {
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

