/* Organisme : Galerie (fond noir). Grille de 6 colonnes : grande (4) + haute (2), puis rangées de trois (2 + 2 + 2) ; une dernière rangée incomplète s'étire.
   Mobile : grande photo pleine largeur puis deux colonnes (une photo seule en fin de liste prend la largeur). La hauteur de chaque photo fixe celle de sa rangée. Figma 73:1768. */
.l-section.section-realisation-gallery { padding-block: var(--realisation-detail-top); }
.section-realisation-gallery__inner { display: flex; flex-direction: column; gap: var(--space-5); }
.section-realisation-gallery__head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.section-realisation-gallery__count { margin: 0; color: var(--section-text-muted); }
.section-realisation-gallery__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gallery-gap); margin: 0; padding: 0; list-style: none; }
.section-realisation-gallery__item { min-width: 0; height: var(--gallery-small); }
.section-realisation-gallery__item:first-child, .section-realisation-gallery__item:last-child:nth-child(even) { grid-column: 1 / -1; }
.section-realisation-gallery__item:first-child { height: var(--gallery-tall); }
.section-realisation-gallery__open { display: block; width: 100%; height: 100%; padding: 0; background: none; border: 0; border-radius: var(--media-radius); cursor: zoom-in; }
.section-realisation-gallery__open .c-photo { --photo-ratio: auto; height: 100%; }
@media (min-width: 1024px) {
	.section-realisation-gallery__head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
	.section-realisation-gallery__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.section-realisation-gallery__grid > .section-realisation-gallery__item { grid-column: span 2; }
	.section-realisation-gallery__grid > .section-realisation-gallery__item--lead { grid-column: span 4; }
	.section-realisation-gallery__grid > .section-realisation-gallery__item--half { grid-column: span 3; }
	.section-realisation-gallery__grid > .section-realisation-gallery__item--solo, .section-realisation-gallery__grid > .section-realisation-gallery__item--wide { grid-column: 1 / -1; }
	.section-realisation-gallery__grid > .section-realisation-gallery__item--lead, .section-realisation-gallery__grid > .section-realisation-gallery__item--side, .section-realisation-gallery__grid > .section-realisation-gallery__item--solo, .section-realisation-gallery__grid > .section-realisation-gallery__item--half:nth-child(-n+2) { height: var(--gallery-tall); }
}
