/* Glass gallery (addon/gallery/290, fork of addon/gallery/180), INV-29 Midnight Serenade · Luxe (A3046; plan row 10, the W0.3 page's gallery): "Gallery"
   over "A few of our moments"; four of the couple's photos behind glass in thin mounts (4:5), 2 x 2 on a phone and a tablet with the second and fourth
   dropped 28 px, four in a row on a laptop with the second and third dropped. The four are the first four the fork's own hides leave: with six or more
   photos the two the story and the closing used step out, with eight or more two more do, so nothing repeats. Fewer photos still look whole. */
.ga290 { padding-block: 0 92px; color: var(--k-ms-ivory); }
.ga290__in { padding-top: 64px; }
.ga290__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 760px; margin: 0 auto; }
.ga290-photo { min-width: 0; }
.ga290-print { aspect-ratio: 4 / 5; }
.ga290-print img { object-position: 50% 35%; }
/* the fork's hides, then the first four that are left */
.ga290__grid > li:nth-child(n + 5) { display: none; }
.ga290__grid:has(> li:nth-child(6)) > li:is(:nth-child(5), :nth-child(6)) { display: block; }
.ga290__grid:has(> li:nth-child(6)) > li:is(:nth-child(2), :nth-child(3)) { display: none; }
.ga290__grid:has(> li:nth-child(8)) > li:is(:nth-child(1), :nth-child(4)) { display: none; }
.ga290__grid:has(> li:nth-child(8)) > li:is(:nth-child(7), :nth-child(8)) { display: block; }
/* the drop: the 2nd and 4th of the four that show */
.ga290__grid > li:is(:nth-child(2), :nth-child(4)),
.ga290__grid:has(> li:nth-child(6)) > li:is(:nth-child(4), :nth-child(6)),
.ga290__grid:has(> li:nth-child(8)) > li:is(:nth-child(6), :nth-child(8)) { translate: 0 28px; }
.ga290__grid:has(> li:nth-child(6)) > li:is(:nth-child(2), :nth-child(5)),
.ga290__grid:has(> li:nth-child(8)) > li:is(:nth-child(4), :nth-child(5), :nth-child(7)) { translate: none; }
/* one photo: centred; three: the third centred under the pair */
.ga290__grid:not(:has(> li:nth-child(2))) { grid-template-columns: minmax(0, 300px); justify-content: center; }
.ga290__grid:has(> li:nth-child(3)):not(:has(> li:nth-child(4))) > li:nth-child(3) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); }
@media (min-width: 760px) { .ga290__grid { gap: 14px; } }
@media (min-width: 1100px) and (min-aspect-ratio: 1 / 1) {
  .ga290__grid { display: flex; justify-content: center; gap: 16px; max-width: none; }
  .ga290-photo { flex: 0 1 calc(25% - 12px); }
  .ga290__grid > li:nth-child(n) { translate: none; }
  .ga290__grid > li:is(:nth-child(2), :nth-child(3)),
  .ga290__grid:has(> li:nth-child(6)) > li:is(:nth-child(4), :nth-child(5)),
  .ga290__grid:has(> li:nth-child(8)) > li:is(:nth-child(6), :nth-child(7)) { translate: 0 28px; }
  .ga290__grid:has(> li:nth-child(6)) > li:is(:nth-child(2), :nth-child(3), :nth-child(6)),
  .ga290__grid:has(> li:nth-child(8)) > li:is(:nth-child(2), :nth-child(3), :nth-child(4), :nth-child(5), :nth-child(8)) { translate: none; }
}
