/* =========================================================
   Gallery sayfasına özel stiller
   ========================================================= */

.gallery-grid {
  columns: 3;
  column-gap: 1rem;
}

@media (max-width: 900px) {
  .gallery-grid {
    columns: 2;
  }
}

@media (max-width: 540px) {
  .gallery-grid {
    columns: 1;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-cream);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 49, 87, 0.72) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.1rem;
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__title {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: lb-in 0.22s ease;
}

@keyframes lb-in {
  from { opacity: 0 }
  to   { opacity: 1 }
}

.lightbox__inner {
  position: relative;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 600;
}

.lightbox__close {
  position: absolute;
  top: -2.4rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  opacity: 0.8;
  transition: opacity 0.2s;
  padding: 0;
}

.lightbox__close:hover {
  opacity: 1;
}
