/* ═══════════════════════════════════════════
   GALERİ — Dikey sütunlar (masonry)
   ═══════════════════════════════════════════ */

.gallery-section {
  background: var(--bg-primary);
}

.gallery-grid {
  column-count: 4;
  column-gap: 0.7rem;
}

.gallery-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 0.7rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.gallery-item-inner {
  position: relative;
  width: 100%;
  line-height: 0;
  background: #1a1a1a;
}

.gallery-item-inner img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s var(--ease-out), opacity 0.35s ease;
  opacity: 0;
}

.gallery-item-inner img.is-loaded {
  opacity: 1;
}

.gallery-item:hover .gallery-item-inner img {
  transform: scale(1.03);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(to top, rgba(3, 3, 3, 0.88) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-caption {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.gallery-zoom {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, 0.88);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
}

.gallery-item:hover .gallery-zoom {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color var(--transition);
}

.gallery-item:hover::after {
  border-color: var(--border-gold);
}

@media (max-width: 1199.98px) {
  .gallery-grid {
    column-count: 3;
  }
}

@media (max-width: 767.98px) {
  .gallery-grid {
    column-count: 2;
    column-gap: 0.55rem;
  }

  .gallery-item {
    margin-bottom: 0.55rem;
  }
}

@media (max-width: 399.98px) {
  .gallery-grid {
    column-count: 1;
  }
}

.gallery-load-more {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 1.25rem auto 0;
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gallery-load-more-count {
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
