
/* ===== GALLERY ===== */
.gallery-loading { text-align: center; padding: 60px 20px; }
.gallery-error {
  text-align: center; padding: 32px;
  background: #FFF4F2; border: 1px solid rgba(255,71,87,0.2);
  border-radius: var(--radius); color: #c0392b;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,25,35,0.5) 0%, transparent 50%);
  opacity: 0; transition: opacity var(--transition);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 16px;
}
.gallery-item:hover .overlay { opacity: 1; }
.overlay-icon { font-size: 1.8rem; color: var(--white); }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(10,15,20,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }

.lb-img-wrap {
  position: relative; max-width: 90vw; max-height: 88vh;
  display: flex; flex-direction: column; align-items: center;
}
.lb-img-wrap img {
  max-width: 90vw; max-height: 80vh;
  object-fit: contain; border-radius: var(--radius-sm);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  user-select: none;
}
.lb-counter {
  margin-top: 14px;
  font-size: 0.88rem; color: rgba(255,255,255,0.5);
  font-family: var(--font); font-weight: 500;
}

.lb-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,0.1); border: none;
  color: var(--white); font-size: 1.3rem;
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font);
}
.lb-close:hover { background: var(--primary); }

.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none;
  color: var(--white); font-size: 1.5rem;
  width: 52px; height: 52px; border-radius: 50%;
  cursor: pointer; transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font); z-index: 2;
}
.lb-arrow:hover { background: var(--primary); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}
