/* customfitalterations: client-only rules. Each one is a measured delta against live
   (probes/masonry.mjs). The values below are Enfold's own, read from the captured
   masonry_entries.css; nothing here is a new design decision. */

/* /gallery/: "flexible" (automatic column count) masonry. The shared static grid only knows
   fixed column counts (av-masonry-col-N), so the 24 photos stacked one per row at full width.
   Enfold's box model, restated: the wrapper carries the 15px large-gap padding, the strip is
   100.4% of it, and a tile is a percentage of the strip that changes with the viewport. */
#top .av-masonry.av-masonry-col-flexible.av-large-gap { padding: 15px 0 0 15px !important; overflow: hidden; }
#top .av-masonry.av-masonry-col-flexible.av-large-gap .av-masonry-container { padding: 0; width: 100.4%; box-sizing: content-box; grid-template-columns: repeat(4, 24.9%); }
/* The empty first entry is isotope's column sizer: 0px tall and out of the flow on live. */
#top .av-masonry.av-masonry-col-flexible .av-masonry-entry.av-masonry-item-no-image { display: none !important; }
@media only screen and (min-width: 1800px) {
  #top .av-masonry.av-masonry-col-flexible.av-large-gap .av-masonry-container { grid-template-columns: repeat(6, 16.6%); }
}
@media only screen and (min-width: 768px) and (max-width: 1340px) {
  #top .av-masonry.av-masonry-col-flexible.av-large-gap .av-masonry-container { grid-template-columns: repeat(3, 33.3%); }
}
@media only screen and (min-width: 481px) and (max-width: 767px) {
  #top .av-masonry.av-masonry-col-flexible.av-large-gap .av-masonry-container { grid-template-columns: repeat(2, 49.9%); }
}
@media only screen and (max-width: 480px) {
  #top .av-masonry.av-masonry-col-flexible.av-large-gap .av-masonry-container { grid-template-columns: 100%; }
}
