/* ─── GALLERY ─── */
.gallery {
  background: #0a0a0a;
  padding: 80px 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 48px;
  width: 100%;
  height: 220px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 220px;
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease, filter 0.3s ease;
  filter: brightness(0.82) saturate(0.85);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.4) 0%, transparent 60%);
  pointer-events: none;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 32px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: sans-serif;
  transition: color 0.2s;
}

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

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: sans-serif;
  transition: color 0.2s;
  padding: 20px;
  line-height: 1;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--amber);
}
