
body {
  font-family: sans-serif;
  margin: 2rem;
  background: #f9f9f9;
  text-align: center;
}
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.card {
  width: 180px;
  cursor: pointer;
  transition: transform 0.3s ease;
  perspective: 1000px;
  position: relative;
  z-index: 1;
}
.card img {
  width: 100%;
  display: block;
}
.card.zoomed {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(2);
  z-index: 999;
  animation: rotate 5s linear infinite;
  max-width: 90vw;
  max-height: 90vh;
}
@keyframes rotate {
  from { transform: translate(-50%, -50%) scale(2) rotateY(0deg); }
  to { transform: translate(-50%, -50%) scale(2) rotateY(360deg); }
}
#filters {
  margin-bottom: 1rem;
}
#filters button {
  margin: 0 0.3rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
#filters button:hover {
  background: #555;
}
