/* --- Atlas add: constrain product carousel images (Twoway) --- */
.product-item-image {
  height: auto;
  min-height: 0;
  overflow: hidden;
  display: block;
}
.product-item-image img.card-img-top {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}
.products-carousel .owl-item {
  display: flex;
  justify-content: center;
}
.products-carousel .item .card.product-card {
  height: auto;
  min-height: 0;
}
@media (max-width: 768px) {
  .product-item-image img.card-img-top { max-height: 200px; }
}

/* --- Atlas fix 2026-11-20: AOS never fires inside owl carousels ---
   Owl clones/clones-wrap items AFTER AOS.init(), so those slides never get
   .aos-animate and stay at opacity:0 forever. Effect: the Services carousel,
   the Projects carousel and their clones were invisible to every visitor
   (~1,350px of blank page on the homepage). Reveal anything inside a carousel. */
.owl-carousel [data-aos],
.owl-carousel .owl-item > .item[data-aos],
.owl-carousel .owl-item .card {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* --- Atlas fix 2026-11-20: working outline button ---
   The theme paints .btn-outline-dark (and friends) white-on-transparent,
   so the label is invisible on a white background. This variant uses the
   theme's own primary colour variables and actually renders. */
.btn-outline-theme {
  background: transparent;
  color: var(--theme-primary-color) !important;
  border: 1px solid var(--theme-primary-color);
  transition: 0.2s ease-in;
}
.btn-outline-theme:hover,
.btn-outline-theme:focus {
  background: var(--theme-primary-color);
  color: #ffffff !important;
  border-color: var(--theme-primary-color);
}
