.fotograf-galeri {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 300px;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;

  img { -webkit-user-drag: none; pointer-events: none; }
  input, textarea { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
}

.fg-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--py-kenarlik);
}

.fg-sayi {
  font-size: 13px;
  color: #8c8c8c;
  font-weight: 500;
}

.fg-toolbar-aksiyonlar {
  display: flex;
  gap: 8px;
}

/* Ekleme Formu */
.fg-ekleme-formu {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--py-arkaplan-yukselti);
  border-radius: 10px;
  border: 1px dashed var(--py-kenarlik);
}

.fg-onizleme-wrap {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: #e5e7eb;
}

.fg-onizleme-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fg-form-alanlar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fg-form-grup {
  display: flex;
  flex-direction: column;
  gap: 4px;

  label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
  }
}

.fg-form-butonlar {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* Yükleniyor */
.fg-yukleniyor {
  text-align: center;
  padding: 20px;
  color: #6b7280;
  font-size: 14px;

  span { margin-right: 6px; }
}

/* Boş */
.fg-bos {
  padding: 32px 0;
}

/* Grid */
.fg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.fg-kart {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--py-arkaplan-hover);
  border: 1px solid var(--py-kenarlik);
  transition: transform 0.2s, box-shadow 0.2s;

  &:active {
    opacity: 0.85;

    .fg-kart-overlay { opacity: 1; }
    .fg-kart-sil { opacity: 1; }
  }
}

.fg-kart-resim {
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  overflow: hidden;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
  }

  &:active img { transform: scale(1.05); }
}

.fg-kart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  color: #fff;
  font-size: 24px;
}

.fg-kart-bilgi {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fg-kart-aciklama {
  font-size: 12px;
  color: #374151;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.fg-kart-tarih {
  font-size: 11px;
  color: #9ca3af;
}

.fg-kart-sil {
  position: absolute;
  top: 4px;
  right: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  background: rgba(255,255,255,0.9);
  border-radius: 6px;
}

/* Lightbox */
.fg-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fg-lb-fade-in 0.2s ease;
}

@keyframes fg-lb-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fg-lb-icerik {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 90vw;
  max-height: 90vh;
}

.fg-lb-kapat {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;

  &:active { background: rgba(255,255,255,0.3); }
}

.fg-lb-nav {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;

  &:active:not(:disabled) { background: rgba(255,255,255,0.3); }
  &:disabled { opacity: 0.3; cursor: not-allowed; }
}

.fg-lb-resim-wrap {
  position: relative;
  max-width: 70vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fg-lb-resim {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

.fg-lb-altyazi {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.fg-lb-tarih {
  font-size: 12px;
  color: #d1d5db;
}

.fg-lb-sayac {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}
