/*
 * Gallery visual polish and parity fixes for creations + odyssey.
 */

.gallery-meta {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--text-light);
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: var(--sp-2xl);
  padding: var(--sp-xl) 0;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 247, 245, 0.84));
  opacity: 0;
  animation: scaleUpReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  cursor: pointer;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: brightness(1) contrast(1.05);
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 18px 46px rgba(212, 175, 55, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.gallery-item:hover img {
  transform: scale(1.1) rotateZ(1deg);
  filter: brightness(1.08) contrast(1.12) saturate(1.08);
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item.pulse {
  animation: pulse 0.35s ease-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.985); }
  100% { transform: scale(1); }
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  margin-top: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  color: var(--gold-primary);
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(192, 192, 192, 0.06));
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--sp-lg);
  }

  .gallery-meta {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }
}
