/* Our Work photo gallery: masonry that reads left to right, then top to bottom (see gallery-rowfirst.js).
   Same columns, gaps, photo shapes, spacing and hover as before; only the placement order changes.
   Without JavaScript the original column layout is untouched. */

/* With JavaScript available, hold the grid back for a moment so it is laid out once, in reading order (never hidden for more than 2s). */
@media (scripting:enabled){
	.fsr-gal-grid.fsr-rf-wait{visibility:hidden;animation:fsr-rf-show 0s linear 2s forwards}
}
@keyframes fsr-rf-show{to{visibility:visible}}

/* Row-first mode: tiles are placed by script (shortest column first, ties left to right). Width, left, top and the grid's height are set inline. */
.fsr-gal-grid.is-rowfirst{position:relative}
.fsr-gal-grid.is-rowfirst .fsr-gal-item{position:absolute;left:0;top:0;margin:0}
