.our-space {
  min-height: 100vh;
  padding: 120px 40px 80px;
  background-color: #fff;
  text-align: center;
}
.space-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}
.space-gallery img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
  filter: grayscale(30%);
}
.space-gallery img:hover {
  transform: scale(1.03);
  filter: grayscale(0%);
}
.space-gallery img:nth-child(4) {
  grid-column: 1 / 2;
}
.space-gallery img:nth-child(5) {
  grid-column: 2 / 3;
}
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.active {
  display: flex;
}
.lb-img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  padding: 10px;
  transition: opacity 0.2s;
  opacity: 0.7;
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  opacity: 1;
}
.lb-close {
  top: 20px;
  right: 28px;
  font-size: 2rem;
}
.lb-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}
.lb-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}
@media (max-width: 768px) {
  .our-space {
    padding: 100px 16px 60px;
  }
  .space-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .space-gallery img {
    height: 160px;
  }
  .space-gallery img:nth-child(4),
  .space-gallery img:nth-child(5) {
    grid-column: auto;
  }
  .space-gallery img:nth-child(5) {
    grid-column: 1 / -1;
    height: 200px;
  }
  .lb-prev {
    left: 8px;
    font-size: 2rem;
  }
  .lb-next {
    right: 8px;
    font-size: 2rem;
  }
}
