.elementor-1187 .elementor-element.elementor-element-acb9492{--display:flex;}.elementor-widget-image-gallery .gallery-item .gallery-caption{font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-weight:var( --e-global-typography-accent-font-weight );}.elementor-1187 .elementor-element.elementor-element-9737a80 .gallery-item .gallery-caption{display:none;}.elementor-1187 .elementor-element.elementor-element-9737a80 .gallery-item{padding:0 15px 15px 0;}.elementor-1187 .elementor-element.elementor-element-9737a80 .gallery{margin:0 -15px -15px 0;}.elementor-1187 .elementor-element.elementor-element-9737a80 .gallery-item img{border-radius:10px 10px 10px 10px;}:root{--page-title-display:none;}/* Start custom CSS for image-gallery, class: .elementor-element-9737a80 */<style>
  /* 1. Ocultar los saltos <br> que mete WordPress para que no bloqueen los márgenes */
  .elementor-widget-image-gallery br,
  .gallery-item + br,
  br[style*="clear"] {
    display: none !important;
  }

  /* 2. Forzar que el contenedor fluya como Flexbox con separación exacta de 15px */
  .elementor-widget-image-gallery .gallery,
  .elementor-image-gallery,
  div[id^="gallery-"] {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  /* 3. Anular anchos fijos y floats antiguos de cada elemento */
  .elementor-widget-image-gallery .gallery-item,
  div[id^="gallery-"] .gallery-item {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* Ajuste automático según las columnas comunes:
     - Si tu galería es de 3 columnas (default): */
  .elementor-widget-image-gallery .gallery-columns-3 .gallery-item {
    flex: 1 1 calc(33.333% - 10px) !important;
    max-width: calc(33.333% - 10px) !important;
  }

  /* - Si tu galería es de 4 columnas: */
  .elementor-widget-image-gallery .gallery-columns-4 .gallery-item {
    flex: 1 1 calc(25% - 11.25px) !important;
    max-width: calc(25% - 11.25px) !important;
  }

  /* - Si tu galería es de 2 columnas: */
  .elementor-widget-image-gallery .gallery-columns-2 .gallery-item {
    flex: 1 1 calc(50% - 7.5px) !important;
    max-width: calc(50% - 7.5px) !important;
  }

  /* 4. Asegurar que las imágenes cubran su caja sin deformarse */
  .elementor-widget-image-gallery .gallery-icon,
  .elementor-widget-image-gallery .gallery-icon a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  .elementor-widget-image-gallery .gallery-item img {
    display: block !important;
    width: 100% !important;
    height: 220px !important; /* Mantiene la misma altura en todas las fotos */
    object-fit: cover !important; /* Evita que se estiren o deformen */
    border-radius: 10px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(25, 90, 58, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  }

  .elementor-widget-image-gallery .gallery-item img:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 22px rgba(25, 90, 58, 0.16);
  }

  /* Responsivo para móviles (pasa a 2 columnas con sus 15px de separación) */
  @media (max-width: 600px) {
    .elementor-widget-image-gallery .gallery-item {
      flex: 1 1 calc(50% - 7.5px) !important;
      max-width: calc(50% - 7.5px) !important;
    }
    .elementor-widget-image-gallery .gallery-item img {
      height: 160px !important;
    }
  }
<\/style>/* End custom CSS */