/*
 * Hide gallery items after the first 12 while the gallery is collapsed.
 *
 * The hidden items are removed from the layout.
 */
.bm-gallery-show-more:not(.bm-gallery-expanded) .e-gallery-item:nth-child(n+13) {
  display: none !important;
}

/*
 * Hide the Show More button after the gallery is expanded.
 */
.bm-gallery-show-more-button.bm-hidden {
  display: none !important;
}