.detay-page {
  font-family: Arial, sans-serif;
  background-color: white;
  line-height: 1.5;
  width: 100vw;
  margin: 0;
  padding: 0;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
  border-bottom: 1px solid #ddd;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Soldaki metin kÄ±smÄ± */
.hero-text {
  flex: 1 1 400px;
  min-width: 400px;
}

.hero-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: black;
  font-weight: bold;
}

.galeri-text{
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  font-family: cursive;
  text-align: center;
}

.header-background-detay {
  position: relative;
  top: 0;
  left: 0;
  width: 100vw;
  height: 150px;
  background: url('/images/logo/deta.jpg') no-repeat center center/cover;
  z-index: -1;
  margin: 0;
  padding: 0;
}

/* Proje detaylarÄ± */
.project-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.detail-item {
  margin-bottom: 1rem;
}

.detail-item h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: black;
}

.detail-item p {
  font-size: 1rem;
  color: #333;
}

/* SaÄŸdaki resim kÄ±smÄ± */
.hero-image {
  flex: 1 1 500px;
  max-width: 600px;
}

.hero-image img {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* AÃ§Ä±klama bÃ¶lÃ¼mÃ¼ */
.description {
  padding: 2rem;
}

.description p {
  font-size: 1rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
  text-align: justify;
  color: #444;
}

/* Responsive dÃ¼zenlemeler */
@media (max-width: 992px) {
    .detay-page {
        padding: 0;
        width: 100vw;
    }

    .header-background-detay {
        width: 100vw;
        margin: 0;
        padding: 0;
    }

    .hero {
        padding: 1.5rem;
        margin: 20px auto;
        width: 90%;
    }

    .hero-text {
        flex: 1 1 100%;
        min-width: 100%;
        padding: 0 15px;
    }

    .hero-text h2 {
        font-size: 1.8rem;
        text-align: left;
        margin: 0;
    }

    .project-details {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 1rem;
    }

    .hero-image {
        flex: 1 1 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 15px;
    }

    .hero-image img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 1rem;
        margin: 15px auto;
        width: 95%;
    }

    .hero-text {
        padding: 0 10px;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .detail-item {
        margin-bottom: 0.8rem;
    }

    .detail-item h3 {
        font-size: 1rem;
    }

    .detail-item p {
        font-size: 0.9rem;
    }

    .hero-image {
        padding: 0 10px;
    }

    .description {
        padding: 1rem;
    }
}

/* Ana galeri kapsayÄ±cÄ±sÄ± */
.gallery-container {
  display: flex; 
  gap: 20px;       /* Soldaki yazÄ± alanÄ± ile saÄŸdaki fotoÄŸraflar arasÄ± boÅŸluk */
  margin: 20px;
}

/* Galeri yan sÃ¼tunu (BaÅŸlÄ±k veya butonlar) */
.gallery-sidebar {
  width: 150px;
}

/* FotoÄŸraf alanÄ± (grid ile sÃ¼tun dÃ¼zeni) */
.gallery-display {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* MasaÃ¼stÃ¼nde 3 sÃ¼tun */
  gap: 20px;                             /* Resimler arasÄ± boÅŸluk */
}

/* Mobilde 2 sÃ¼tuna dÃ¼ÅŸmesi iÃ§in medya sorgusu */
@media (max-width: 768px) {
  .gallery-display {
      grid-template-columns: repeat(2, 1fr);
  }
}

/* Resimlerin genel stili */
.gallery-display img {
  width: 100%;      /* Izgara hÃ¼cresini tam doldursun */
  height: 200px;
  cursor: pointer;  /* TÄ±klanabilir olduÄŸunu gÃ¶ster */
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.gallery-display img:hover {
  transform: scale(1.05); /* Hover efekti */
}

/* Lightbox (bÃ¼yÃ¼k gÃ¶sterim) stili */
.lightbox-modal {
  display: none;           /* BaÅŸlangÄ±Ã§ta kapalÄ± */
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-modal-content {
  max-width: 90%;
  max-height: 80%;
  display: block;
  margin: auto;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 10px;
  border-radius: 4px;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  transform: none;
  font-size: 3rem;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}