.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: flex-start;
}

.gallery-tile {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a2e;
  border: 1px solid #2a2a3d;
  cursor: zoom-in;
  transition: border-color 0.15s, transform 0.15s;

  &:hover {
    border-color: #6c63ff;
    transform: translateY(-2px);

    .gallery-remove { opacity: 1; }
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

.gallery-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(17, 17, 30, 0.85);
  color: #fca5a5;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s;

  &:hover { background: #7f1d1d; color: white; }
}

.gallery-empty {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #4b5563;
  font-size: 0.85rem;
  font-style: italic;
}

// Lightbox plein ecran
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
  animation: fade-in 0.15s ease-out;
}

.lightbox-image {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(30, 30, 60, 0.8);
  color: white;
  cursor: pointer;
  transition: background 0.15s;

  &:hover { background: #6c63ff; }
}

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