* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: sans-serif; /* Added default font */
}

.canvas {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* Base piece styling */
.piece {
  position: absolute;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.piece:hover {
  transform: scale(1.02);
}

.piece img {
  display: block;
  width: 100%;
  height: auto;
  /* box-shadow: 0 4px 20px rgba(0,0,0,0.1); */
}

/* 
  POSITION YOUR PIECES HERE
*/

.piece-1 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the single piece */
  width: 300px; /* Increased size for single focus */
}
/* Override hover transform to include the translate */
.piece-1:hover {
  transform: translate(-50%, -50%) scale(1.02);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  max-height: 90vh;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh; /* Reduced to make room for text */
  object-fit: contain;
  margin-bottom: 20px;
}

.lightbox-caption {
  color: #333;
  margin-top: 10px;
}

.lightbox-caption h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  font-weight: normal;
}

.lightbox-caption p {
  font-size: 1rem;
  margin-bottom: 5px;
  color: #666;
}

.lightbox-caption small {
  font-size: 0.8rem;
  color: #999;
  display: block;
  margin-top: 10px;
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  font-weight: 200;
  color: #000;
  cursor: pointer;
  font-family: Arial, sans-serif;
  z-index: 1001;
}

.close:hover {
  opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .piece-1 { width: 80%; }
}
