/* Reset ve temel stiller */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  overflow-x: hidden;
  color: #000;
}

/* Gallery container */
.gallery-container {
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Resim stilleri */
.gallery-image {
  width: 100%;
  max-width: 1080px;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  /* Resimler arasındaki boşluğu tamamen kaldır */
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
}

/* Video stilleri */
.gallery-video {
  width: 100%;
  max-width: 1080px;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  cursor: pointer;
  background-color: #f5f5f5;
}

/* Video hover efekti */
.gallery-video:hover {
  opacity: 0.9;
}

/* Video kontrolleri */
.gallery-video::-webkit-media-controls {
  display: none !important;
}

.gallery-video::-webkit-media-controls-enclosure {
  display: none !important;
}

/* Video click ile play/pause için */
.gallery-video.playing {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Mobil cihazlar için özel ayarlar */
@media screen and (max-width: 768px) {
  .gallery-container {
    max-width: 100vw;
  }

  .gallery-image {
    width: 100vw;
    max-width: none;
  }
}

/* Çok küçük ekranlar için */
@media screen and (max-width: 480px) {
  .gallery-image {
    width: 100vw;
  }
}

/* Büyük ekranlar için - resimleri ortalayıp yanlardan boşluk bırak */
@media screen and (min-width: 1081px) {
  .gallery-container {
    max-width: 1080px;
  }

  .gallery-image {
    width: 1080px;
  }
}

/* Lazy loading için placeholder */
.gallery-image[data-src] {
  background-color: #f5f5f5;
  min-height: 200px;
}

/* Loading animasyonu */
.gallery-image.loading {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.gallery-image.loaded {
  opacity: 1;
}

/* Gallery info */
.gallery-info {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px 15px;
  border-radius: 5px;
  backdrop-filter: blur(10px);
  z-index: 1000;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.image-counter {
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

/* No images message */
.no-images {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.no-images h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #333;
}

.no-images p {
  font-size: 1.1em;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* GIF dosyaları için özel stil */
.gallery-gif {
  /* GIF animasyonlarının düzgün çalışması için */
  image-rendering: auto;
  image-rendering: crisp-edges;
  image-rendering: -webkit-optimize-contrast;
}
