/* Alignment fixes on top of the original WordPress styles */

/* Hero photo carousel: was a fixed 450px box that pushed the page wider than phone screens */
.crousal {
  width: min(450px, 100%) !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
}
.crousal .images {
  width: 100% !important;
}

/* Gallery category tabs: centre the text of wrapped labels, and reserve the active tab's border
   so the row no longer shifts when a tab is selected */
.tab {
  text-align: center;
  border: 2px solid transparent;
}
.tab.active {
  border-color: currentColor;
}

/* Blog post grid: its row has a -15px margin but the container has no padding, which made the
   page 5px wider than the screen (sideways scroll on every blog/category page) */
.rt-tpg-container {
  overflow-x: clip;
}

/* "About us" pill: width was 25% of the column, so on phones the label wrapped into a square */
@media (max-width: 767px) {
  .elementor-50643 .elementor-element.elementor-element-8d5cb28 {
    width: auto !important;
    max-width: none !important;
    --container-widget-width: auto;
  }
  .elementor-50643 .elementor-element.elementor-element-8d5cb28 .elementor-heading-title {
    white-space: nowrap;
    padding: 0 28px;
  }
}
