.project-single {
  padding-bottom: 80px;
}
.lightbox-open { overflow: hidden; }
.zigurat-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px 70px;
  background: rgba(0, 0, 0, .92);
}
.zigurat-lightbox.is-open { display: flex; }
.zigurat-lightbox img {
  max-width: min(1200px, 90vw);
  max-height: 88vh;
  object-fit: contain;
}
.zigurat-lightbox button {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 48px;
  cursor: pointer;
}
.zigurat-lightbox__close { top: 12px; left: 24px; }
.zigurat-lightbox__next { right: 20px; top: 45%; }
.zigurat-lightbox__prev { left: 20px; top: 45%; }
/* Hero */
.project-hero {
  position: relative;
  height: 600px;
  overflow: hidden;
}
.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}
.project-hero-overlay h1 {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  text-align: center;
}
/* اطلاعات پروژه */
.project-info-card {
  margin-top: 50px;
  padding: 35px;
  background: #fff;
  border-radius: 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.info-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-item strong {
  color: #777;
  font-size: 14px;
}
.info-item {
  font-size: 18px;
}
/* متن پروژه */
.project-content {
  margin-top: 50px;
  line-height: 2;
  font-size: 17px;
}
/* Project gallery: alphabetical row order starts from the left. */
.project-gallery {
  margin-top: 70px;
}
.project-gallery h2 {
  margin-bottom: 30px;
}
.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 2px;
  row-gap: 20px;
  direction: ltr;
}
.masonry-item {
  min-width: 0;
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  transition: 0.3s;
}
.masonry-item:hover img {
  transform: scale(1.03);
}
/* Navigation */
.project-navigation {
  margin-top: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-navigation a {
  text-decoration: none;
  color: #222;
  font-weight: bold;
}
/* Responsive */
@media (max-width: 992px) {
  .project-info-card {
    grid-template-columns: repeat(2, 1fr);
  }
  .masonry-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-hero {
    height: 450px;
  }
  .project-hero-overlay h1 {
    font-size: 36px;
  }
}
@media (max-width: 600px) {
  .project-info-card {
    grid-template-columns: 1fr;
  }
  .masonry-gallery {
    grid-template-columns: 1fr;
  }
  .project-hero {
    height: 350px;
  }
  .project-hero-overlay h1 {
    font-size: 28px;
  }
  .project-navigation {
    flex-direction: column;
    gap: 20px;
  }
}
/* پروژه های مشابه */
.related-projects {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid #eee;
}
.related-projects h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}
.related-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.related-card {
  text-decoration: none;
  color: #222;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}
.related-card:hover {
  transform: translateY(-8px);
}
.related-image {
  height: 250px;
  overflow: hidden;
}
.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-card h3 {
  padding: 20px;
  margin: 0;
  font-size: 20px;
}
@media (max-width: 900px) {
  .related-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .related-projects-grid {
    grid-template-columns: 1fr;
  }
}
