
/* css/gallery.css — Galeri ve lightbox stilleri (rev-2, daha geniş kutular & modern görünüm) */
:root {
  --gallery-gap: 20px;
  --gallery-radius: 16px;
  --gallery-shadow: 0 10px 24px rgba(0,0,0,.08);
}

/* Bölüm boşluğu zaten globalde var, yine de garanti */
.gallery_section { padding: 90px 0; }

/* Duyarlı, auto-fit grid: geniş ekranda 4, tablet 3, mobil 1-2 sütun */
.gallery_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 1fr;
  gap: var(--gallery-gap);
  align-items: stretch;
}

/* Daha büyük kutular ve 3:2 oran */
.g_item {
  position: relative;
  overflow: hidden;
  border-radius: var(--gallery-radius);
  box-shadow: var(--gallery-shadow);
  background: #0b0b0b0d;
  aspect-ratio: 3 / 2;
  display: block;
  transition: transform .2s ease, box-shadow .2s ease;
  will-change: transform;
}
.g_item:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }

.g_item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .35s ease;
}
.g_item:hover img { transform: scale(1.045); }

/* Alt yazı bandı: sitenin vurgusu (#ffbe33) ile ince çizgi */
.g_item .g_caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  color: #fff; padding: 12px 14px; font-size: .98rem;
  display: flex; align-items: center; justify-content: space-between;
  letter-spacing: .2px;
  border-bottom-left-radius: var(--gallery-radius);
  border-bottom-right-radius: var(--gallery-radius);
}
.g_caption::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:3px;
  background:#ffbe33;
}
.g_caption .fa { opacity: .9; }

/* Lightbox */
.lb_overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.88);
  display: none; align-items: center; justify-content: center;
  z-index: 1050; padding: 16px;
}
.lb_overlay.active { display: flex; }
.lb_inner { position: relative; max-width: 96vw; max-height: 92vh; }
.lb_img { max-width: 96vw; max-height: 92vh; display: block; border-radius: 12px; }
.lb_close, .lb_prev, .lb_next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.17); border: 1px solid rgba(255,255,255,.25);
  color: #fff; cursor: pointer; user-select: none;
  backdrop-filter: blur(2px);
}
.lb_close { top: -12px; right: -12px; transform: none; }
.lb_prev { left: -56px; }
.lb_next { right: -56px; }
@media (max-width: 575.98px){
  .lb_prev { left: 8px; top: calc(100% + 8px); transform: none; }
  .lb_next { right: 8px; top: calc(100% + 8px); transform: none; }
}
