/* Todd Quality clone overrides */

/* css3-animate-it: .animated stays at opacity:0 + transform without JS */
.animated {
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}

/* Maps API key is domain-locked to source */
[id*="map"], iframe[src*="maps.google"] { display: none !important; }

/* SmartMenus injects a fresh .sub-arrow on init but the crawled HTML already
   has one baked in, producing two chevrons. Hide the duplicate.
   Also hide the empty Astra arrow span for safety. */
.ast-header-navigation-arrow {
  display: none !important;
}
.elementor-nav-menu .sub-arrow + .sub-arrow {
  display: none !important;
}

/* "Our Standards" section: global font-weight var is 300 which suppresses <b>.
   Force bold on titles inside this text-editor widget. */
.elementor-element-a9ae6fa b {
  font-weight: 700 !important;
}

/* WPR sticky section: WPR frontend.min.js managed position:fixed dynamically
   (removing on init, restoring on scroll) but is stripped by the SOP cleanup.
   The crawled HTML has position:fixed baked in as an inline style; !important
   overrides inline styles so both header rows stack naturally in document flow. */
.wpr-sticky-section-yes {
  position: relative !important;
  top: auto !important;
}

/* Map embed: fill the full left column height, clip to card's border-radius */
.elementor-element-cbac13f,
.elementor-element-cbac13f .elementor-widget-container,
.elementor-element-cbac13f .elementor-custom-embed {
  height: 100%;
}
.elementor-element-560755ff {
  overflow: hidden;
}

/* Todd Quality galleries: desktop keeps Elementor grid/masonry. Tablet uses
   three image columns; mobile stays one readable image per row. */
.tq-gallery-mobile-img {
  display: none;
}

@media (max-width: 1024px) {
  .elementor-widget-gallery .elementor-gallery__container.e-gallery-container {
    display: grid !important;
    gap: var(--vgap, 10px) var(--hgap, 10px) !important;
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
    --rows: auto !important;
    --container-aspect-ratio: auto !important;
  }

  .elementor-widget-gallery .e-gallery-item.elementor-gallery-item {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .elementor-widget-gallery .e-gallery-image.elementor-gallery-item__image {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    background-image: none !important;
  }

  .elementor-widget-gallery .e-gallery-image .tq-gallery-mobile-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: cover !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-widget-gallery .elementor-gallery__container.e-gallery-container {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    --columns: 3 !important;
  }
}

@media (max-width: 767px) {
  .elementor-widget-gallery .elementor-gallery__container.e-gallery-container {
    grid-template-columns: 1fr !important;
    --columns: 1 !important;
  }

  .elementor-widget-gallery .e-gallery-image .tq-gallery-mobile-img {
    object-fit: contain !important;
  }
}
