
/* Yebo Group V31 — six scoped layout corrections. Existing content and interactions are unchanged. */

/* 1. Product quote numbers: preserve the existing 28px badge and card layout. */
body.yb-product #yebo-main :is(.yb-kind-quote-inputs,.yn-component-product-8) .quote-input > .n {
  display:grid;
  place-items:center;
  aspect-ratio:1 / 1;
  box-sizing:border-box;
  flex-shrink:0;
  padding:0;
}
body.yb-product #yebo-main :is(.yb-kind-quote-inputs,.yn-component-product-8) .quote-input > .n .elementor-heading-title,body.yb-product #yebo-main :is(.yb-kind-quote-inputs,.yn-component-product-8) .quote-input > .n > .yn-text {
  display:block;
  position:static;
  width:auto;
  margin:0;
  padding:0;
  line-height:1;
  align-self:center;
  justify-self:center;
}
body.yb-product #yebo-main :is(.yb-kind-quote-inputs,.yn-component-product-8) .quote-inputs > .quote-input {
  min-width:0;
  max-width:100%;
}

/* 2. Only the 25 existing circular navigation controls. No transform, transition or hover overrides. */
body.yb-home #yebo-main .yn-component-journeys .starting-card .yn-button.go,
body.yb-home #yebo-main .yn-component-product-rail .product-controls .yn-button.circle-control,
body.yb-market-index #yebo-main .yn-component-market-index-2 .market-card .yn-text.go,
body.yb-work #yebo-main .yn-component-work-3 .v13-project-image > .yn-text.v13-project-open {
  --yb-circle-size:42px;
  --yb-arrow-size:18px;
}
body.yb-home #yebo-main .yn-component-journeys .starting-card .yn-button.go,
body.yb-home #yebo-main .yn-component-product-rail .product-controls .yn-button.circle-control {
  width:var(--yb-circle-size);
  min-width:var(--yb-circle-size);
  height:var(--yb-circle-size);
  min-height:var(--yb-circle-size);
  padding:0;
  flex-shrink:0;
  background:transparent;
  border:0;
  border-radius:50%;
  box-shadow:none;
}
body.yb-home #yebo-main .yn-component-journeys .starting-card .yn-button.go .elementor-button,
body.yb-home #yebo-main .yn-component-product-rail .product-controls .yn-button.circle-control .elementor-button,
body.yb-market-index #yebo-main .yn-component-market-index-2 .market-card .yn-text.go,
body.yb-work #yebo-main .yn-component-work-3 .v13-project-image > .yn-text.v13-project-open {
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  width:var(--yb-circle-size);
  height:var(--yb-circle-size);
  min-width:var(--yb-circle-size);
  min-height:var(--yb-circle-size);
  max-width:var(--yb-circle-size);
  max-height:var(--yb-circle-size);
  aspect-ratio:1 / 1;
  padding:0;
  border:0;
  border-radius:50%;
  background:#FFD200;
  color:#080D24;
  line-height:1;
  font-size:var(--yb-arrow-size);
  box-shadow:none;
}
body.yb-home #yebo-main .yn-component-journeys .starting-card .yn-button.go .elementor-button :is(.elementor-button-content-wrapper,.elementor-button-text,.elementor-button-icon,.elementor-widget-container,p),
body.yb-home #yebo-main .yn-component-product-rail .product-controls .yn-button.circle-control .elementor-button :is(.elementor-button-content-wrapper,.elementor-button-text,.elementor-button-icon,.elementor-widget-container,p),
body.yb-market-index #yebo-main .yn-component-market-index-2 .market-card .yn-text.go :is(.elementor-button-content-wrapper,.elementor-button-text,.elementor-button-icon,.elementor-widget-container,p),
body.yb-work #yebo-main .yn-component-work-3 .v13-project-image > .yn-text.v13-project-open :is(.elementor-button-content-wrapper,.elementor-button-text,.elementor-button-icon,.elementor-widget-container,p) {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  margin:0;
  padding:0;
  line-height:1;
  color:inherit;
}
body.yb-home #yebo-main .yn-component-journeys .starting-card .yn-button.go .elementor-button :is(i,svg),
body.yb-home #yebo-main .yn-component-product-rail .product-controls .yn-button.circle-control .elementor-button :is(i,svg),
body.yb-market-index #yebo-main .yn-component-market-index-2 .market-card .yn-text.go :is(i,svg),
body.yb-work #yebo-main .yn-component-work-3 .v13-project-image > .yn-text.v13-project-open :is(i,svg) {
  color:inherit;
  fill:currentColor;
  stroke:currentColor;
  margin:0;
  width:17px;
  height:17px;
}

/* 3. Service help: remove the collapsed absolute image wrapper; retain its source and proportions. */
body.yb-service #yebo-main .yn-component-service-3.v13-service-help .two-up {
  min-width:0;
  align-items:center;
}
body.yb-service #yebo-main .yn-component-service-3.v13-service-help :is(.service-photo,.service-copy) {
  min-width:0;
  max-width:100%;
  height:auto;
  min-height:0;
}
body.yb-service #yebo-main .yn-component-service-3.v13-service-help .service-photo > .yn-image,body.yb-service #yebo-main .yn-component-service-3.v13-service-help .service-photo .elementor-widget-container {
  position:relative;
  inset:auto;
  width:100%;
  max-width:100%;
  height:auto;
  min-height:0;
  margin:0;
}
body.yb-service #yebo-main .yn-component-service-3.v13-service-help .service-photo img {
  position:static;
  inset:auto;
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  object-fit:contain;
}
body.yb-service #yebo-main .yn-component-service-3.v13-service-help .service-copy {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:0;
}
body.yb-service #yebo-main .yn-component-service-3.v13-service-help .service-copy > :is(.yn-heading,.yn-text,.check-list) {
  min-width:0;
  max-width:100%;
  height:auto;
  overflow:visible;
}
body.yb-service #yebo-main .yn-component-service-3.v13-service-help .service-copy > .kicker {
  margin-bottom:14px;
}
body.yb-service #yebo-main .yn-component-service-3.v13-service-help .service-copy > .yn-heading {
  margin-bottom:16px;
}

/* The imported paragraph had white text on the existing light section. Inherit its existing navy text color so the description is visible. */
body.yb-service #yebo-main .yn-component-service-3.v13-service-help .service-copy > .yn-text:not(.kicker) {
  color:inherit;
}
body.yb-service #yebo-main .yn-component-service-3.v13-service-help .service-copy > .check-list {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-auto-rows:auto;
  margin-top:24px;
}
body.yb-service #yebo-main .yn-component-service-3.v13-service-help .check-list > .check {
  display:flex;
  align-items:flex-start;
  gap:12px;
  min-width:0;
  max-width:100%;
  height:auto;
}
body.yb-service #yebo-main .yn-component-service-3.v13-service-help .check-list > .check::before {
  flex-shrink:0;
  line-height:inherit;
}
body.yb-service #yebo-main .yn-component-service-3.v13-service-help .check-list > .check p {
  margin:0;
  min-width:0;
}

/* 4. Featured work on the existing Our Work page. The old > div image rule also sized all text widgets. */
body.yb-work #yebo-main .yn-component-work-2 .v13-featured-work {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:start;
}
body.yb-work #yebo-main .yn-component-work-2 .v13-work-feature {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:0;
  min-width:0;
  height:auto;
}
body.yb-work #yebo-main .yn-component-work-2 .v13-work-feature > .elementor-widget {
  height:auto;
  min-height:0;
  max-height:none;
  width:100%;
  min-width:0;
  margin:0;
  overflow:visible;
  grid-area:auto;
  background:transparent;
  border:0;
  border-radius:0;
}
body.yb-work #yebo-main .yn-component-work-2 .v13-work-feature > .e-con:first-child {
  height:255px;
  min-height:0;
  width:100%;
  margin:0 0 18px;
  overflow:hidden;
  flex-shrink:0;
}
body.yb-work #yebo-main .yn-component-work-2 .v13-work-feature > .e-con:first-child .yn-image,body.yb-work #yebo-main .yn-component-work-2 .v13-work-feature > .e-con:first-child .elementor-widget-container {
  height:100%;
  width:100%;
  min-width:0;
}
body.yb-work #yebo-main .yn-component-work-2 .v13-work-feature > .e-con:first-child img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
body.yb-work #yebo-main .yn-component-work-2 .v13-work-feature > .yn-heading {
  margin-top:8px;
  margin-bottom:12px;
}
body.yb-work #yebo-main .yn-component-work-2 .v13-work-feature > .yn-heading .elementor-heading-title {
  position:relative;
  padding-right:1.5em;
}
body.yb-work #yebo-main .yn-component-work-2 .v13-work-feature > .yn-heading .elementor-heading-title > span {
  position:absolute;
  right:0;
  top:0;
  margin:0;
}
body.yb-work #yebo-main .yn-component-work-2 .v13-work-feature > .yn-text p {
  margin:0;
}

/* 5. Filter library: preserve image composition, filters, content and hidden project detail panels. */
body.yb-work #yebo-main .yn-component-work-3 .v13-work-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:start;
  gap:24px;
}
body.yb-work #yebo-main .yn-component-work-3 .v13-project-card,body.yb-work #yebo-main .yn-component-work-3 .v13-project-card > .yb-project-open {
  min-width:0;
  width:100%;
  height:auto;
}
body.yb-work #yebo-main .yn-component-work-3 .v13-project-image {
  width:100%;
  height:320px;
  min-height:0;
  max-height:none;
  flex-shrink:0;
  overflow:hidden;
}
body.yb-work #yebo-main .yn-component-work-3 .v13-project-image > .yn-image,body.yb-work #yebo-main .yn-component-work-3 .v13-project-image > .yn-image .elementor-widget-container {
  width:100%;
  height:100%;
  min-width:0;
}
body.yb-work #yebo-main .yn-component-work-3 .v13-project-image img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
body.yb-work #yebo-main .yn-component-work-3 .v13-project-text {
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
  height:auto;
  padding:18px 0 6px;
}
body.yb-work #yebo-main .yn-component-work-3 .v13-project-text > :is(.yn-text,.yn-heading) {
  min-width:0;
  max-width:100%;
  width:100%;
  height:auto;
  margin:0;
  overflow:visible;
}
body.yb-work #yebo-main .yn-component-work-3 .v13-project-text p {
  margin:0;
}
body.yb-work #yebo-main .yn-component-work-3 .v13-work-toolbar,body.yb-work #yebo-main .yn-component-work-3 .v13-work-filters {
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  min-width:0;
  max-width:100%;
  height:auto;
}
body.yb-work #yebo-main .yn-component-work-3 .v13-work-filters > .yn-button {
  flex:0 1 auto;
  min-width:0;
  max-width:100%;
}
body.yb-work #yebo-main .yn-component-work-3 .v13-work-filters .elementor-button {
  max-width:100%;
  white-space:normal;
}
body.yb-work #yebo-main .yn-component-work-3 .v13-section-head > :is(.yn-heading,.yn-text) {
  min-width:0;
  max-width:100%;
  height:auto;
}

/* 6. Only the three named Our Story sections; restore existing grid relationships and natural image ratios. */
body.yb-story #yebo-main .yn-component-story-2 .story-hero-grid {
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  gap:18px;
  align-items:start;
}
body.yb-story #yebo-main .yn-component-story-3 .story-stat-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
  align-items:start;
}
body.yb-story #yebo-main .yn-component-story-4 .capability-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  align-items:start;
}
body.yb-story #yebo-main .yn-component-story-2 .story-photo-panel,
body.yb-story #yebo-main .yn-component-story-3 .story-stat,
body.yb-story #yebo-main .yn-component-story-4 .capability-card {
  min-width:0;
  max-width:100%;
  height:auto;
  display:flex;
  flex-direction:column;
  gap:0;
}
body.yb-story #yebo-main .yn-component-story-2 .story-panel-photo,
body.yb-story #yebo-main .yn-component-story-3 .story-stat-photo,
body.yb-story #yebo-main .yn-component-story-4 .story-cap-photo {
  position:relative;
  inset:auto;
  width:100%;
  max-width:100%;
  height:auto;
  min-height:0;
  flex-shrink:0;
  margin:0 0 24px;
}
body.yb-story #yebo-main .yn-component-story-2 .story-panel-photo .elementor-widget-container,
body.yb-story #yebo-main .yn-component-story-3 .story-stat-photo .elementor-widget-container,
body.yb-story #yebo-main .yn-component-story-4 .story-cap-photo .elementor-widget-container {
  width:100%;
  height:auto;
}
body.yb-story #yebo-main .yn-component-story-2 .story-panel-photo img,
body.yb-story #yebo-main .yn-component-story-3 .story-stat-photo img,
body.yb-story #yebo-main .yn-component-story-4 .story-cap-photo img {
  display:block;
  position:static;
  inset:auto;
  width:100%;
  max-width:100%;
  height:auto;
  object-fit:contain;
}
body.yb-story #yebo-main .yn-component-story-2 .story-photo-panel > :is(.yn-text,.yn-heading,.kicker),
body.yb-story #yebo-main .yn-component-story-3 .story-stat > :is(.yn-text,.yn-heading,.kicker),
body.yb-story #yebo-main .yn-component-story-4 .capability-card > :is(.yn-text,.yn-heading,.kicker) {
  min-width:0;
  max-width:100%;
  height:auto;
  overflow:visible;
}
body.yb-story #yebo-main .yn-component-story-2 .story-photo-panel > :is(.yn-text,.yn-heading,.kicker) {
  width:calc(100% - 64px);
  margin-left:32px;
  margin-right:32px;
}
body.yb-story #yebo-main .yn-component-story-2 .story-photo-panel > .yn-heading {
  margin-bottom:18px;
}
body.yb-story #yebo-main .yn-component-story-2 .story-photo-panel > .yn-text:last-child {
  margin-bottom:34px;
}
body.yb-story #yebo-main .yn-component-story-3 .story-stat > .yn-text + .yn-text {
  margin-top:8px;
}
body.yb-story #yebo-main .yn-component-story-4 .capability-card > .yn-heading {
  margin:8px 0 12px;
}

/* Use the existing Elementor tablet/mobile breakpoints; no site-wide breakpoint changes. */
@media (max-width:1024px) {
body.yb-home #yebo-main .yn-component-journeys .starting-card .yn-button.go,
body.yb-home #yebo-main .yn-component-product-rail .product-controls .yn-button.circle-control,
body.yb-market-index #yebo-main .yn-component-market-index-2 .market-card .yn-text.go,
body.yb-work #yebo-main .yn-component-work-3 .v13-project-image > .yn-text.v13-project-open {
  --yb-circle-size:40px;
}
body.yb-home #yebo-main .yn-component-journeys .starting-card .yn-button.go .elementor-button svg,
body.yb-home #yebo-main .yn-component-product-rail .product-controls .yn-button.circle-control .elementor-button svg,
body.yb-market-index #yebo-main .yn-component-market-index-2 .market-card .yn-text.go svg,
body.yb-work #yebo-main .yn-component-work-3 .v13-project-image > .yn-text.v13-project-open svg {
  width:16px;
  height:16px;
}
body.yb-service #yebo-main .yn-component-service-3.v13-service-help .two-up {
  grid-template-columns:minmax(0,1fr);
}
body.yb-service #yebo-main .yn-component-service-3.v13-service-help .service-copy {
  padding:28px;
}
body.yb-work #yebo-main .yn-component-work-3 .v13-project-image {
  height:300px;
}
body.yb-work #yebo-main .yn-component-work-2 .v13-featured-work,body.yb-work #yebo-main .yn-component-work-3 .v13-work-grid {
  grid-template-columns:repeat(2,minmax(0,1fr));
}
body.yb-story #yebo-main .yn-component-story-2 .story-hero-grid {
  grid-template-columns:minmax(0,1fr);
}
body.yb-story #yebo-main .yn-component-story-3 .story-stat-grid,body.yb-story #yebo-main .yn-component-story-4 .capability-grid {
  grid-template-columns:repeat(2,minmax(0,1fr));
}
}
@media (max-width:767px) {
body.yb-home #yebo-main .yn-component-journeys .starting-card .yn-button.go,
body.yb-home #yebo-main .yn-component-product-rail .product-controls .yn-button.circle-control,
body.yb-market-index #yebo-main .yn-component-market-index-2 .market-card .yn-text.go,
body.yb-work #yebo-main .yn-component-work-3 .v13-project-image > .yn-text.v13-project-open {
  --yb-circle-size:38px;
  --yb-arrow-size:16px;
}
body.yb-home #yebo-main .yn-component-journeys .starting-card .yn-button.go .elementor-button svg,
body.yb-home #yebo-main .yn-component-product-rail .product-controls .yn-button.circle-control .elementor-button svg,
body.yb-market-index #yebo-main .yn-component-market-index-2 .market-card .yn-text.go svg,
body.yb-work #yebo-main .yn-component-work-3 .v13-project-image > .yn-text.v13-project-open svg {
  width:15px;
  height:15px;
}
body.yb-work #yebo-main .yn-component-work-2 .v13-featured-work,body.yb-work #yebo-main .yn-component-work-3 .v13-work-grid,body.yb-story #yebo-main .yn-component-story-3 .story-stat-grid,body.yb-story #yebo-main .yn-component-story-4 .capability-grid {
  grid-template-columns:minmax(0,1fr);
}
body.yb-work #yebo-main .yn-component-work-3 .v13-project-image {
  height:300px;
}
}
