* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Mono', monospace;
}

.polaroid {
  position: absolute;
  background: white;
  padding: 12px;
  padding-bottom: 48px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  cursor: move;
  user-select: none;
  transform: rotate(var(--rotation, 0deg));
  transition: box-shadow 0.2s, z-index 0s, transform 0.2s;
}

.polaroid:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.polaroid.dragging {
  z-index: 1000 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.polaroid-zoomed {
  transform: scale(1.6) rotate(var(--rotation, 0deg));
}

.polaroid img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.polaroid-caption {
  text-align: center;
  margin-top: 8px;
  font-size: 12px;
  color: #333;
  font-weight: 700;
}

@media (max-width: 768px) {
  .polaroid img {
    width: 150px;
    height: 150px;
  }
}

#image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9998;
  cursor: zoom-out;
}

#image-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}