/* PORTFOLIO PAGE */

.gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px; /* premium spacing */
    margin-top: 80px;
    margin-bottom: 120px;
    grid-auto-flow: dense;
    align-items: start;
  }
  

.project.featured {
  grid-column: 1 / -1;
 
}

.project {
  position: relative;
  display: block;
  overflow: hidden;
}

.project img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(100%) contrast(0.95);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.project:hover img {
  filter: grayscale(0%);
}

/* Overlay */
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

/* Text */
.project-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2; /* çok önemli */
}

/* Hover state */
.project:hover::after {
  opacity: 1;
}

.project:hover .project-tag {
  opacity: 1;
}
 


  /* Responsive */
  @media (max-width: 900px) {
    .gallery {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 600px) {
    .gallery {
      grid-template-columns: 1fr;
    }
  }
@media (max-width: 1024px) {

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .project.featured {
    grid-column: span 2;
  }

}
@media (max-width: 768px) {

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

  .project.featured {
    grid-column: span 1;
  }

}



/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 40px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  background: white;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 80px 100px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.35s ease;
}
.lightbox.active .lightbox-content {
  transform: translateY(0);
}

/* INFO */
.lightbox-info {
  margin-bottom: 80px;
}

.lightbox-info h2 {
  margin: 0 0 10px 0;
  font-size: 28px;
}

.lightbox-info .category {
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: 20px;
}

/* IMAGES */
.lightbox-images img {
  width: 100%;
  margin-bottom: 80px;
  display: block;
}

/* CLOSE */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 28px;
  cursor: pointer;
}
@media (max-width: 768px) {

  .lightbox {
    padding: 20px;
  }

  .lightbox-content {
    padding: 40px 25px;
    max-height: 95vh;
  }

  .lightbox-info h2 {
    font-size: 22px;
  }

  .lightbox-images img {
    margin-bottom: 40px;
  }

  .close {
    top: 15px;
    right: 20px;
  }
}