/* ==================== GALLERY HEADER ==================== */
.gallery-header {
  padding: 70px 0 40px;
  text-align: center;
  background: var(--gradient-services);
}

.gallery-header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 15px;
}

.gallery-header p {
  font-size: 1.1rem;
  color: var(--color-gray);
  max-width: 650px;
  margin: 0 auto;
}

/* ==================== GALLERY GRID ==================== */
.gallery-section {
  padding: 60px 0 100px;
}

.gallery-grid {
  columns: 4 280px;
  column-gap: 20px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42, 37, 33, 0);
  transition: background 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  background: rgba(42, 37, 33, 0.15);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

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

/* ==================== GALLERY CTA ==================== */
.gallery-cta {
  padding: 90px 0;
  background: var(--color-secondary);
  color: var(--color-white);
  text-align: center;
}

.gallery-cta h2 {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-white);
}

.gallery-cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 35px;
}

.gallery-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.gallery-cta .cta-btn.primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.gallery-cta .cta-btn.primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary-hover);
}

.gallery-cta .cta-btn.secondary {
  background: var(--color-white);
  color: var(--color-text-primary);
}

.gallery-cta .cta-btn.secondary:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-3px);
}

.gallery-cta .cta-btn.instagram {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.gallery-cta .cta-btn.instagram:hover {
  background: var(--color-white);
  color: var(--color-text-primary);
  border-color: var(--color-white);
  transform: translateY(-3px);
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 15, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 30px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--color-primary);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--color-white);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: var(--color-primary);
}

.lightbox-prev {
  left: 25px;
}

.lightbox-next {
  right: 25px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .gallery-header {
    padding: 50px 0 30px;
  }

  .gallery-header h1 {
    font-size: 2.1rem;
  }

  .gallery-grid {
    columns: 2 200px;
    column-gap: 14px;
  }

  .gallery-item {
    margin-bottom: 14px;
  }

  .gallery-section {
    padding: 40px 0 70px;
  }

  .gallery-cta {
    padding: 60px 0;
  }

  .gallery-cta h2 {
    font-size: 1.8rem;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    columns: 1 100%;
  }

  .gallery-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .gallery-cta .cta-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}
