.gallery {
  background: var(--bg-blush);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--radius-sm);
  background: #222;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-base);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
}

.gallery-placeholder svg {
  width: 40px;
  height: 40px;
  opacity: 0.6;
}

.gallery-placeholder span {
  font-size: var(--fs-sm);
  font-weight: 600;
  opacity: 0.8;
  text-align: center;
}

/* Color variations */
.gallery-item:nth-child(1) .gallery-placeholder { background: #FF6B35; color: white; }
.gallery-item:nth-child(2) .gallery-placeholder { background: #00B4D8; color: white; }
.gallery-item:nth-child(3) .gallery-placeholder { background: #06D6A0; color: white; }
.gallery-item:nth-child(4) .gallery-placeholder { background: #FFD166; color: #1B1B2F; }
.gallery-item:nth-child(5) .gallery-placeholder { background: #A78BFA; color: white; }
.gallery-item:nth-child(6) .gallery-placeholder { background: #F472B6; color: white; }
.gallery-item:nth-child(7) .gallery-placeholder { background: #34D399; color: white; }
.gallery-item:nth-child(8) .gallery-placeholder { background: #FB923C; color: white; }
.gallery-item:nth-child(9) .gallery-placeholder { background: #60A5FA; color: white; }
.gallery-item:nth-child(10) .gallery-placeholder { background: #F87171; color: white; }
.gallery-item:nth-child(11) .gallery-placeholder { background: #818CF8; color: white; }
.gallery-item:nth-child(12) .gallery-placeholder { background: #2DD4BF; color: white; }

/* Hover overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 27, 47, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity var(--transition-base);
  color: var(--white);
}

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

.gallery-overlay svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

.gallery-overlay span {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.gallery-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

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

.lightbox-content {
  background: var(--white);
  border-radius: var(--radius-md);
  max-width: 500px;
  width: 90%;
  padding: 2rem;
  text-align: center;
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.1);
}

.lightbox-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}

.lightbox-content h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.75rem;
}

.lightbox-content p {
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}
