

/* Kart düzeni */
.card-container {
  display: flex;
  flex-wrap: wrap;
  margin-top:100px;

margin-left: auto;
margin-right: auto;
  justify-content: center;
  border-radius: 20px;
  padding: 10px;
  box-sizing: border-box;
 background-color: #0000001a;

}



.card {
        width: 22%;
        height: 350px;
    border-radius: 12px;
    overflow: hidden;
    margin: 10px;
    /* margin-top: 10px; */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0px 12px rgb(170, 170, 170);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  
}

.card:hover {
  box-shadow: 0 4px 12px rgb(255, 255, 255);
  transform: scale(1.03);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 5px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 14px;
  text-align: center;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; 
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.modal-content {
  width: 100%;
  height: 100%;
  
  box-sizing: border-box;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.959); 
}

/* Modal kapatma */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: white;
  cursor: pointer;
  z-index: 1000;
}

/* Galeri */
.gallery-container {
  position: relative;
  width: 100%;
  height: calc(100vh - 100px);
  display: flex;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  align-items: center;
}

/* Görsel ve başlık */
.main-image.horizontal-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
  max-width: calc(100vw - 100px);
}

.main-image img {
  max-width: 90%;
  max-height: 75vh;
 
  border: 4px solid #ffffff;
  border-radius: 6px;
  transition: opacity 0.5s ease, transform 0.5s ease;
  object-fit: contain;
}

.main-image img.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

.main-image img.fade-in {
  opacity: 1;
  transform: scale(1);
}

#main-title {
  color: #eee;
  font-size: 12px;
  max-width: 100%;
  text-align: center;
  animation: fadeInTitle 0.6s ease;
}

/* Ok butonları */
.main-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  background-color: rgba(180, 180, 180, 0.4);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 5232;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease, transform 0.2s ease;
  will-change: transform;
}

.main-arrow:hover {
  background-color: rgba(33, 150, 243, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.main-arrow svg.arrow-svg {
  width: 36px;
  height: 36px;
  display: block;
}

#main-left { left: 10px; }
#main-right { right: 10px; }

/* Thumbnail alanı */
.thumbnails-wrapper {
  position: absolute;
  margin-bottom: 0px;
  bottom: 0;
  width: 100%;
  background-color: rgba(17, 17, 17, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  gap: 10px;
  z-index: 10;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.thumbnails {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding: 0 10px;
  max-width: 80%;
  scroll-behavior: smooth;

  /* Scroll bar gizleme */
  scrollbar-width: none; /* Firefox */
}

.thumbnails::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}


.thumbnail {
  max-width: 80px;
  min-width: 80px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border: 3px solid transparent;
  border-radius: 3px;
  transition: 0.2s ease;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: #2196f3;
}

#left-arrow,
#right-arrow {
  background: none;
  color: #fff;
  border: none;
  font-size: 28px;
  cursor: pointer;
  user-select: none;
  padding: 0 10px;
  transition: 0.2s ease;
}

#left-arrow:hover,
#right-arrow:hover {
  color: #2196f3;
}

/* Başlık animasyonu */
@keyframes fadeInTitle {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Mobil uyum */
@media (max-width: 739px) {
  .main-image.horizontal-layout {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 100vw;
  }


  .main-image img {
    max-width: 90%;
    height: auto;
  }

  #main-title {
    text-align: center;
    font-size: 12px;
  }

  .main-arrow {
    width: 44px;
    height: 44px;
  }

  .main-arrow svg.arrow-svg {
    width: 26px;
    height: 26px;
  }

  #main-left { left: 5px; }
  #main-right { right: 5px; }

  .thumbnails {
    max-width: 100%;
  }
}
@media (max-width: 939px){
  .thumbnails-wrapper {
  display: none;
}
.gallery-container {
   height: 100%;
}

}

@media (min-width: 0px) and (max-width: 499px) {
    .card {
        width: 90%;
        height: 250px;
    }
}


@media (min-width: 500px) and (max-width: 738px) {
    .card {
        width: calc(45% - 16px);
        height: 200px;
    }
}


@media (min-width: 739px) and (max-width: 1118px) {
    .card {
        width: calc(45% - 16px);
        height: 240px;
    }
}
@media (min-width: 1119px) and (max-width: 1568px) {
    .card {
        width: calc(30% - 16px);
        height: 280px;
    }
}



.modal.fade-out {
  animation: fadeOutModal 300ms ease forwards;
}

@keyframes fadeOutModal {
  0% { opacity: 1; }
  100% { opacity: 0; }
}


.custom-wrapper {
      margin-top: 100px;
      width: 90%;
      padding: 40px 20px;
    }

    .custom-card {
      position: relative;
      overflow: hidden;
      border-radius: 16px;
      background-color: #000;
      height: 300px;
      margin-bottom:20px;
      box-shadow:
        0 0 10px #c8fbff,
        0 0 20px #ffffff,
        inset 0 0 15px #ffffff;
      transition: box-shadow 0.3s ease;
    }

    .custom-card:hover {
      box-shadow:
        0 0 20px #ffffff,
        0 0 40px #c2ffff,
        inset 0 0 25px #ffffff;
    }

    .custom-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 16px;
      position: relative;
      z-index: 2;
    }

    .custom-overlay-full {
      position: absolute;
      top: 80%;
      left: 0;
      transform: translateY(-50%);
      width: 100%;
      background: rgba(0, 0, 0, 0.329);
      padding: 16px 0;
      text-align: center;
      color: #fff;
      font-size: 20px;
      font-weight: 500;
      backdrop-filter: blur(2px);
      z-index: 3;
    }

    /* Responsive yükseklik */
    @media (max-width: 1200px) { .custom-card { height: 260px; } }
    @media (max-width: 992px)  { .custom-card { height: 240px; } }
    @media (max-width: 768px)  { .custom-card { height: 220px; } }

    /* Özel sütun yapısı */
    .custom-col {
      flex: 0 0 auto;
      width: 25%;
    }

    @media (max-width: 1500px) {
      .custom-col {
        width: 33.3333%;
      }
    }

    @media (max-width: 1000px) {
      .custom-col {
        width: 50%;
      }
    }

    @media (max-width: 600px) {
      .custom-col {
        width: 100%;
      }
    }