/* Proje detay — Lightroom tarzı galeri */
.lr-proje-galeri-wrap {
  margin-top: 3rem;
}

.lr-proje-galeri-wrap .section-single-heading h4 {
  margin-bottom: 0.35rem;
}

.lr-proje-galeri-meta {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.lr-proje-galeri {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 5px;
  background: #111;
  padding: 5px;
  border-radius: 4px;
}

.lr-gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #1c1c1c;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.lr-gallery-item:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.lr-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.35s;
}

.lr-gallery-item:hover img,
.lr-gallery-item:focus-visible img {
  transform: scale(1.05);
}

.lr-gallery-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.lr-gallery-item-overlay i {
  color: #fff;
  font-size: 1.35rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.lr-gallery-item:hover .lr-gallery-item-overlay,
.lr-gallery-item:focus-visible .lr-gallery-item-overlay {
  opacity: 1;
}

/* Lightbox */
.lr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  background: #0d0d0d;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.lr-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lr-lightbox.is-open .lr-lightbox-img {
  animation: lrFadeIn 0.4s ease;
}

@keyframes lrFadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

body.lr-lightbox-open {
  overflow: hidden;
}

.lr-lightbox-top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent);
  color: #e5e5e5;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.lr-lightbox-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  opacity: 0.85;
}

.lr-lightbox-counter {
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.lr-lightbox-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lr-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lr-lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 0;
  padding: 0 3.5rem;
}

.lr-lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lr-lightbox-img {
  max-width: min(100%, 1400px);
  max-height: calc(100vh - 11rem);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lr-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}

.lr-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.lr-lightbox-nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.lr-lightbox-prev {
  left: 1rem;
}

.lr-lightbox-next {
  right: 1rem;
}

.lr-lightbox-filmstrip-wrap {
  flex-shrink: 0;
  padding: 0.75rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4));
}

.lr-lightbox-filmstrip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 8px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.lr-lightbox-filmstrip::-webkit-scrollbar {
  height: 6px;
}

.lr-lightbox-filmstrip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
}

.lr-filmstrip-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  background: #222;
  opacity: 0.55;
  transition: opacity 0.25s, border-color 0.25s, transform 0.2s;
}

.lr-filmstrip-thumb:hover {
  opacity: 0.85;
}

.lr-filmstrip-thumb.is-active {
  opacity: 1;
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.lr-filmstrip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

@media (max-width: 767px) {
  .lr-proje-galeri {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    padding: 3px;
  }

  .lr-lightbox-stage {
    padding: 0 2.75rem;
  }

  .lr-lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lr-lightbox-prev {
    left: 0.35rem;
  }

  .lr-lightbox-next {
    right: 0.35rem;
  }

  .lr-lightbox-img {
    max-height: calc(100vh - 10rem);
  }

  .lr-filmstrip-thumb {
    width: 60px;
    height: 45px;
  }
}
