/* Başlık */
.gallery-title {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 500;
  color: black;
  margin-bottom: 25px;
  user-select: none;
}

/* Galeri sarmalayıcı */
.gallery-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Grid düzeni */
.before-after-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 50px;
  justify-items: center;
}

/* Resim kutusu */
.before-after {
  background-color: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  overflow: hidden;
  max-width: 450px;
  width: 100%;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.before-after:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

/* Resim başlığı */
.before-after-title {
  background-color: #fd7e14;
  color: #fff;
  font-weight: bold;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  padding: 16px 12px;
  user-select: none;
}

/* Resim ayarları */
.gallery-img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
  transition: filter 0.3s ease;
  display: block;
}

.gallery-img:hover {
  filter: brightness(0.88);
}

/* Responsive düzen */
@media (max-width: 768px) {
  .before-after-wrapper {
    grid-template-columns: 1fr;
    gap: 50px 0;
  }
  .gallery-wrapper {
    padding: 0 15px;
  }
  .before-after {
    max-width: 100%;
  }
  .gallery-img {
    height: 280px;
  }
}

/* Galeri düzeni */
.lightbox-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 40px auto;
  padding: 0 15px;
  max-width: 1200px;
}

/* Kart yapısı */
.gallery-item {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: auto; /* ÖNEMLİ: İçeriğe göre yükseklik */
}

.gallery-item:hover {
  transform: scale(1.04);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

/* Paylaşım kutusu */
.custom-share-box {
  padding: 10px 15px 30px;
  background-color: #f8f8f8;
  text-align: center;
  margin-top: auto;
  flex-grow: 1;
}

.custom-share-box h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #444;
}

/* Butonlar */
.custom-share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.custom-share-buttons a {
  background-color: #eee;
  color: #333;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  word-break: break-word;
  white-space: normal;
}

.custom-share-buttons a:hover {
  background-color: #fd7e14;
  color: white;
}

/* Mobil görünüm */
@media (max-width: 576px) {
  .custom-share-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .custom-share-buttons a {
    width: 100%;
    text-align: center;
  }

  .gallery-item img {
    height: 220px;
  }
}

/******lightbox css başlangıç ************/

.lightboxOverlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 99999 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: #000 !important;
}

.lightbox {
  z-index: 100000 !important;
}

.lb-loader,
.lb-spinner {
  animation: lb-spin 1s infinite linear !important;
  border: 4px solid rgba(255, 255, 255, 0.3) !important;
  border-top-color: #fff !important;
  border-radius: 50% !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  margin: -20px 0 0 -20px !important;
  width: 40px !important;
  height: 40px !important;
}

@keyframes lb-spin {
  to { transform: rotate(360deg); }
}

.lb-container {
  max-width: 100% !important;
  padding: 0 !important;
}

.lb-image {
  max-width: calc(100vw - 100px) !important;
  max-height: calc(100vh - 100px) !important;
  display: block;
  margin: 0 auto;
}

/* Açıklama kutusu */
.lb-dataContainer {
  max-width: 100% !important;
  padding: 10px 5px 0 !important;
  text-align: center !important;
  color: #fff !important;
  font-size: 14px !important;
  user-select: none !important;
}

/* Mobilde resim yüksekliği sınırı */
@media (max-width: 768px) {
  .lb-image {
    max-height: 75vh !important;
    margin-top: 10vh !important; /* Mobilde daha aşağıda başlasın */
  }
}

@media (max-width: 480px) {
  .lb-image {
    max-height: 70vh !important;
    margin-top: 12vh !important;
  }

  .lb-dataContainer {
    font-size: 13px !important;
    padding: 6px 4px 0 !important;
  }
}

/* Önceki ve sonraki butonlar */
.lb-prev, 
.lb-next {
  opacity: 1 !important;
}

/* Kapatma Butonu */


.lb-close:hover {
  background: rgba(255,255,255,0.4) !important;
}

/* Mobil uyumlu ayarlamalar */
@media (max-width: 768px) {
  .lightbox .lb-image {
    max-width: 95vw !important;
    max-height: 80vh !important;
  }
  .lightbox .lb-dataContainer {
    font-size: 13px !important;
    padding: 6px 10px !important;
    bottom: 6px !important;
  }
}

@media (max-width: 480px) {
  .lightbox .lb-image {
    max-height: 70vh !important;
    margin-top: 10vh !important;
  }
  .lightbox .lb-dataContainer {
    font-size: 12px !important;
    padding: 4px 8px !important;
  }
}

/******lightbox css son ************/





  .banner-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    /* Yüksekliği resme göre ayarlanıyor, 400px örnek */
    height: 400px;  
    overflow: hidden;
    margin-top: 20px;
  }

  .banner-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;  /* yükseklik 100% */
    width: auto;   /* genişlik otomatik */
    transform: translate(-50%, -50%);
    object-fit: cover; /* kırpma ve kapsama */
    z-index: 1;
  }

  .banner-text {
    position: relative;  /* absolute değil, resmin üstünde */
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Dikey ortala */
    align-items: center;     /* Yatay ortala */
    color: white;
    text-align: center;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.3); /* Yarı saydam arka plan */
  }

  .banner-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
    margin-bottom: 10px;
  }

  .banner-text p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
  }

  @media (max-width: 600px) {
    .banner-container {
      height: 250px;
    }
    .banner-text h1 {
      font-size: 1.8rem;
    }
    .banner-text p {
      font-size: 1rem;
    }
  }

  .contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  font-family: sans-serif;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: center;
  margin-top: 30px;  /* Daha fazla aşağıya insin */
  font-family: sans-serif;
}

.form-check input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #007bff;
  cursor: pointer;
}

.form-check label {
  display: flex;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
  padding-top: 4px; /* Daha iyi hizalama */
}


.btn-submit {
  background-color: #007bff;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.btn-submit:hover {
  background-color: #0056b3;
}

.required {
  color: red;
}





  