
:root {
    --bg: #111111ec;
    --accentold: rgba(0, 0, 0, 0.801);
    --accent: rgb(244, 170, 130);
    --text: #fff;
    --hover: #222;
  }

/* Images */
.gallery-img {
  height:150px;
  width: 150px;
  display: inline-block;
  margin: 1rem;
}

.gallery {
  column-count: 4;        /* nombre de colonnes sur grand écran */
  column-gap: 1rem;       /* espace entre les colonnes */
  max-width: 1200px;
  margin: 0 auto;
}

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

.gallery-item {
  break-inside: avoid;    /* empêche la coupure d’élément */
  margin-bottom: 1rem;
  display: inline-block;  /* nécessaire pour bien se comporter dans les colonnes */
  width: 100%;
  border-radius: 4px;
}

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

.gallery-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  padding: 0;
  width: 100%;
}

.gallery-subgalleries {
  display: contents;
}

.gallery-subcontent {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem;
  margin: 2rem 0;
  background: rgba(244, 170, 130, 0.05);
  border: 2px solid var(--accent);
  border-radius: 8px;
  grid-column: 1 / -1;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.breadcrumb a:hover {
  opacity: 0.8;
}

.breadcrumb a:visited {
  color: var(--accent);
}

/* Responsive simple */
@media (max-width: 900px) { 
  .gallery { 
    column-count: 3; 
  } 
} 

@media (max-width: 600px) { 
  .gallery { 
    column-count: 2; 
  } 
} 

@media (max-width: 400px) { 
  .gallery { 
    column-count: 1; 
  } 
}