/* ========================================
   GALLERY — Before & After Showcase
   ======================================== */

.gallery {
  padding: 88px 48px;
  background: var(--bg-alt);
}

.gallery-header {
  max-width: 600px;
  margin-bottom: 48px;
}

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

.gallery-item {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(7, 26, 46, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(7, 26, 46, 0.12);
}

.gallery-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
}

.gallery-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image-wrap img {
  transform: scale(1.03);
}

.gallery-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(7, 26, 46, 0.7);
  color: var(--sand);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.gallery-caption {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gallery-caption h3 {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.gallery-caption p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.gallery-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(0, 194, 184, 0.1);
  color: #00A89E;
  width: fit-content;
}

@media (max-width: 768px) {
  .gallery {
    padding: 56px 24px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-caption {
    padding: 16px;
  }
}

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