/* Generated by fixers/12_gallery.py - do not hand-edit.
   Elementor's gallery JS never runs in this static copy, so the grid it would have built
   at runtime is declared here instead. Columns, gap and aspect ratio come from the live
   widget's own data-settings (see the inline custom properties on the widget). */
.elementor-widget-gallery[data-mhw-gallery="grid"] .elementor-gallery__container {
  display: grid;
  grid-template-columns: repeat(var(--mhw-gal-cols, 3), minmax(0, 1fr));
  gap: var(--mhw-gal-gap, 10px);
  align-items: start;
}
.elementor-widget-gallery[data-mhw-gallery="grid"] .e-gallery-item {
  display: block;
  /* position stays relative: the .elementor-gallery-item__overlay child is absolutely
     positioned and needs a positioned ancestor. `inset: auto` is what neutralises the
     offset - see the note below. */
  position: relative;
  /* !important: Elementor's own offset rule is more specific than this one, and it is
     what displaces the tiles (computed left was 383px on column 1, 767px on column 2). */
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: auto;
  height: auto;
  overflow: hidden;
  text-decoration: none;
}

/* Elementor lays this gallery out itself, in CSS driven by values its JS computes:
   every tile carries an inline `--column`/`--row` and is displaced with `left`/`top`,
   and the container reserves the gallery's height with a padding-bottom hack. With no
   JS those values are never corrected, so the tiles were shifted 128px per column -
   the third column ended 105px past the right edge of the viewport - under 1025px of
   empty reserved space. Since the grid above now does the layout, both are cleared. */
.elementor-widget-gallery[data-mhw-gallery="grid"] .elementor-gallery__container {
  padding-bottom: 0 !important;
}
img.mhw-gallery-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--mhw-gal-ratio, 3/2);
  object-fit: cover;
  background: #eceff1;               /* placeholder tone while a lazy tile loads */
}
@media (max-width: 1024px) {
  .elementor-widget-gallery[data-mhw-gallery="grid"] .elementor-gallery__container {
    grid-template-columns: repeat(var(--mhw-gal-cols-tablet, 2), minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .elementor-widget-gallery[data-mhw-gallery="grid"] .elementor-gallery__container {
    grid-template-columns: repeat(var(--mhw-gal-cols-mobile, 2), minmax(0, 1fr));
  }
}
