/* ============================================================
   CHEZ OMER v2 — Styles spécifiques à galerie.html
============================================================ */

.masonry-grid {
  columns: 4 250px;
  column-gap: 16px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 48px rgba(44, 24, 16, 0.20);
}

.masonry-item:hover .img-overlay {
  opacity: 1;
}

.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(220, 76, 62, 0.30), rgba(28, 21, 18, 0.50));
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.filter-btn.active {
  background-color: #DC4C3E;
  color: white;
  border-color: #DC4C3E;
}

.masonry-item {
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* ─── Lightbox premium ─── */
#lightbox {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#lightbox-img {
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
  animation: lightboxImgIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes lightboxImgIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
#lightbox-caption {
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.03em;
}
#lightbox-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.35s ease;
}
#lightbox-close:hover {
  background: rgba(220, 76, 62, 0.75);
  transform: rotate(90deg);
}
