* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url('/gallery/img/bg.webp') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    padding-top: 30px;
    overflow-x: hidden;
}

/* Ana Kapsayıcı */
.container {
  display: flex;
  width: 90%;
  max-width: 1200px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  gap: 15px;
  padding: 15px;
  margin-top: 0; /* Gereksiz margini kaldırdım */
}


    /* Sol Dikey Navigasyon */
    .sidebar {
      width: 280px;
      background-color: #333; /* Mor renk */
      color: white;
      display: flex;
      flex-direction: column;
      padding: 15px;
      border-radius: 10px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      position: relative;
      transition: left 0.3s ease;
    }

    .sidebar h2 {
      margin: 0 0 20px;
      font-size: 22px;
      text-align: center;
    }

    .sidebar a {
      text-decoration: none;
      color: white;
      padding: 12px 20px;
      margin: 5px 0;
      border-radius: 8px;
      display: flex;
      align-items: center;
      font-size: 16px;
      transition: background-color 0.3s;
    }

    .sidebar a:hover {
      background-color: #8e44ad;
    }

    .sidebar a i {
      margin-right: 15px;
      font-size: 20px;
    }

    /* İçerik Kısmı */
    .content {
      flex: 1;
      padding: 30px;
      background-color: #ffffff;
      border-radius: 10px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .content h1 {
      color: #333;
      font-size: 28px;
      margin-bottom: 20px;
    }

    .content .info {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      margin: 20px 0;
    }

    .content .info div {
      background-color: #f3f3f3;
      border: 1px solid #ddd;
      border-radius: 10px;
      padding: 15px;
      text-align: center;
      flex: 1;
      min-width: 150px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .content .info div h3 {
      margin: 10px 0;
      color: #333;
      font-size: 18px;
    }

    .content p {
      color: #444;
      line-height: 1.6;
      font-size: 16px;
    }

/* Hamburger Menü */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: fixed; /* Sabit konumda olacak */
  top: 15px;
  left: 15px;
  z-index: 10001;
}

.hamburger div {
  background-color: white;
  height: 4px;
  width: 30px;
  margin: 5px 0;
  border-radius: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger simgesi açıldığında çarpıya dönüşme */
.hamburger.open div:nth-child(1) {
  transform: rotate(45deg); /* Üst çizgiyi 45 derece döndür */
  position: relative;
  top: 8px; /* Üst çizgiyi biraz aşağı kaydır */
}

.hamburger.open div:nth-child(2) {
  opacity: 0; /* Ortadaki çizgiyi kaybet */
}

.hamburger.open div:nth-child(3) {
  transform: rotate(-45deg); /* Alt çizgiyi -45 derece döndür */
  position: relative;
  bottom: 8px; /* Alt çizgiyi biraz yukarı kaydır */
}


    /* Opak Overlay */
    .overlay {
      position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8); /* Karartılmış arka plan */
        display: flex;
        justify-content: center;
        align-items: center;
        display: none;
      z-index: 5; /* Menü arkasında olsun */
    }

    /* Mobil için görünüm */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    gap: 20px;
  }

  .sidebar {
    left: -320px;
    position: fixed;
    top: 0;
    height: 100vh; /* Sayfa yüksekliğine tam uyum sağlar */
    width: 320px;
    z-index: 1000;
    overflow-y: auto; /* Menüde dikey kaydırma yapılabilir */
  }

  .sidebar.open {
    left: 0; /* Menü açıldığında sola kayar */
  }

  .content {
    margin-left: 0; /* Mobilde içerik alanı tam genişlikte olacak */
    overflow: hidden; /* Sayfa içinde scroll yapılmasını engeller */
  }

  .hamburger {
    display: flex;
  }

  .overlay.open {
    display: block; /* Overlay açıldığında görünür */
  }
}


    #preloader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #1c1b1b;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 99999;
    }
    #preloader img {
        width: auto;
        height: 80px;
        animation: fadeInOut 2s infinite;
    }
    .preloader-text {
        color: white;
        margin-top: 10px;
        font-size: 1.2em;
        animation: fadeInOut 2s infinite;
    }
    @keyframes fadeInOut {
        0%, 100% {
            opacity: 0;
        }
        50% {
            opacity: 1;
        }
    }
/* İçeriğin düzenini ayarlama */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative; /* Resmin doğru konumlanabilmesi için */
}

/* Metin ve resmin hizalanmasını ayarlama */
.content-text {
  display: flex;
  align-items: flex-start; /* Resmin metnin köşesinde üstte hizalanması */
  justify-content: space-between; /* Resmi sağa, yazıyı sola hizalar */
}

/* Resmin boyutunu artırma ve düzenleme */
.villa-image {
  width: 300px; /* Resmin boyutunu büyütme */
  height: auto; /* Orantılı olarak yüksekliği korur */
  border-radius: 10px;  /* Resmin köşelerini yuvarlatma */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);  /* Resmin etrafında hafif gölge */
  margin-left: 20px;  /* Yazıyla resim arasındaki boşluk */
}
/* Tablet ve mobil için responsive düzenlemeler */
@media (max-width: 768px) {
  .content-text {
    flex-direction: column;  /* Resmi üstte, yazıyı altta hizalayacak */
    align-items: center;
  }

  .villa-image {
    width: 80%;  /* Resmin genişliğini %80 yaparak ekran boyutuna uyumlu hale getir */
    margin-left: 0;  /* Resmin sol tarafındaki boşluğu kaldır */
    margin-top: 20px;  /* Resim ile metin arasına boşluk ekle */
  }
}

@media (max-width: 480px) {
  .villa-image {
    width: 100%;  /* Mobil cihazlarda resmin genişliğini tam yap */
    height: auto;  /* Yüksekliği orantılı tut */
    margin-top: 20px;  /* Resim ile yazı arasındaki boşluğu artır */
  }

  h1 {
    font-size: 24px;  /* Başlık boyutunu mobilde küçült */
  }

  .info div {
    margin-bottom: 10px;  /* Bilgilerin arasına boşluk ekle */
  }
}
/* Özellikler Bölümü */
.features {
  margin-top: 40px;
  padding: 20px;
  background-color: #f4f4f4;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.features h2 {
  font-size: 24px;
  color: #333;
  text-align: left;
  margin-bottom: 20px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Duyarlı grid yapısı */
  gap: 20px;
}

.feature-item {
  background-color: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.feature-item h3 {
  font-size: 18px;
  color: #555;
  margin-bottom: 10px;
}

.feature-item p {
  font-size: 16px;
  color: #777;
  margin: 0;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
  .feature-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Ekran boyutuna göre daha fazla sütun */
  }
}

@media (max-width: 480px) {
  .feature-list {
    grid-template-columns: 1fr; /* Mobil cihazlar için tek sütun */
  }
}
header {
  width: 100%; /* Tam genişlik */
  max-width: 1200px; /* Maksimum genişlik */
  margin: 0 auto; /* Ortalamak için */
  padding: 10px 20px;
  display: flex;
  justify-content: space-between; /* Logo ve buton arasına boşluk ekler */
  align-items: center; /* Dikeyde ortalama */
}

/* Logo */
.logo {
  flex-grow: 1; /* Logoyu ortalamak için */
  display: flex;
  justify-content: center; /* Logoyu yatayda ortala */
}

.logo img {
  width: 255px; /* Logo genişliğini buradan ayarlayabilirsiniz */
  height: auto;
}

/* Logout Button Styling */
.logout-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logout-button button {
  background-color: white; /* Arka plan rengi */
  color: black;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%; /* Yuvarlak şekil */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px; /* Font Awesome ikon boyutu */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Hafif gölge efekti */
}

.logout-button button:hover {
  transform: scale(1.1); /* Hoverda büyüme efekti */
  opacity: 0.7;
}

.logout-button button i {
  margin: 0; /* Font Awesome ikonun merkezde hizalanması */
}

* Responsive Design for Mobile */
@media (max-width: 768px) {
  header {
    justify-content: space-between; /* Buton her zaman sağda kalsın */
    align-items: center; /* Logoyu ortada tutmak için */
  }

  .logo {
    flex-grow: 0; /* Logo büyümesin, ancak ortalanmaya devam etsin */
  }

  .logout-button {
    margin-top: 10px; /* Butonun üstüne boşluk ekle */
  }
}

@media (max-width: 480px) {
  .logo img {
    width: 150px; /* Mobilde logo boyutunu küçült */
    margin-left: 54px;
  }

  .logout-button button {
    width: 40px;
    height: 40px;
    font-size: 18px; /* Buton boyutunu küçült */
  }
}
.slider-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden; /* Sadece bir slide'ın görünmesini sağlar */
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%; /* Slider’ın genişliği tüm container genişliğine eşit olmalı */
}

.slider img {
  width: 100%; /* Görselin genişliği container’ın genişliği kadar olmalı */
  height: 500px; /* Sabit yükseklik */
  object-fit: contain; /* Görsellerin kesilmeden kutuyu doldurması için 'contain' kullanabilirsiniz */
  border-radius: 10px;
}


.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 2em;
  padding: 10px;
  border: none;
  cursor: pointer;
  transform: translateY(-50%); /* Butonları tam ortalamak için */
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .slider-container {
    max-width: 100%;
  }

  .slider img {
    height: 300px; /* Mobilde daha küçük bir yükseklik belirleyelim */
  }
}



    /* Modal (Zoomed Image Overlay) */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  transition: 0.5s;
}

.modal-content {
  text-align: center;
  margin: auto;
}

.modal-content img {
  max-width: 90%;
  max-height: 80vh;
  display: block;
  margin: auto;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Navigation Buttons in Modal */
.slider-btn {
  position: absolute;
  top: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 30px;
  transform: translateY(-50%);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Style for the Thumbnails (optional for alignment) */
.slider img {
  cursor: pointer;
}
/* Thumbnail Gallery */
.thumbnail-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.thumbnail {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.thumbnail:hover {
  transform: scale(1.1); /* Hover efekti ile küçük resmin büyümesini sağlar */
}

/* Responsive */
@media (max-width: 768px) {
  .slider-container {
    max-width: 100%;
  }

  .slider img {
    height: 300px;
  }

  .thumbnail-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .thumbnail {
    width: 60px;
    height: 45px;
  }
}
.pdf-thumbnail {
         background: url('/gallery/projects/karsiyaka/pdf/pdf.png') no-repeat center center / cover; 
         height: 353px; 
         width: 250px;
         position: relative;
    border-radius: 8px; /* Köşeleri yuvarla */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Gölge efekti */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Geçiş efekti */ 
    cursor: pointer;
}
.pdf-gallery {
  display: flex; /* Flexbox düzenini etkinleştir */
  gap: 20px; /* Kutular arasına 20px boşluk koy */
  justify-content: center; /* Kutuları yatayda ortala */
  flex-wrap: wrap; /* Çok fazla kutu varsa bir sonraki satıra geçmesini sağla */
  padding: 10px; /* Galeriye iç boşluk ekle */
}

  .pdf-thumbnail:hover {
    transform: scale(1.05); /* Hafif büyütme efekti */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Gölgeyi artır */
  }

  .pdf-thumbnail::after {
    content: "PDF Görüntüle"; /* Üzerine metin ekle */
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .pdf-thumbnail:hover::after {
    opacity: 1; /* Hover sırasında metni görünür yap */
  }

  .overlay-content {
        position: relative;
        text-align: center;
        max-width: 90%;
        max-height: 90%;
    }

    /* Close button */
    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: black;
        color: white;
        border: none;
        padding: 10px;
        cursor: pointer;
        font-size: 16px;
    }

    .video-thumbnails {
    display: grid;                 /* Use grid layout */
    grid-template-columns: repeat(3, 1fr); /* Create 3 equal columns */
    gap: 10px;                     /* Add space between the grid items */
    cursor: pointer;
}

    .video-thumbnail img {
    width: 100%;   /* Makes the images responsive to the container */
    max-width: 300px; /* Optional: You can adjust the size of the thumbnails */
    border-radius: 8px; /* Optional: Add rounded corners for thumbnails */
}

    .video-thumbnail img:hover {
        transform: scale(1.1);
    }

    .date-container {
    text-align: left;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}
@media (max-width: 768px) {
    .video-thumbnails {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for smaller screens */
    }
}

/* For even smaller screens (e.g. mobile phones) */
@media (max-width: 480px) {
    .video-thumbnails {
        grid-template-columns: 1fr; /* Single column for very small screens */
    }
}
@media (max-width: 768px) {
  #map {
    overflow: visible;  /* Harita taşan kısımları görünür yapar */
  }
}