/* Vibeforge secondary content rail. Scoped to explicit template classes only. */
@media (min-width: 992px) {
  html body .main-wrapper .vf-content-with-right-rail {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 360px !important;
    gap: 24px !important;
    align-items: start !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  html body .main-wrapper .vf-content-with-right-rail > .vf-content-main,
  html body .main-wrapper .vf-content-with-right-rail > .vf-content-right-rail {
    box-sizing: border-box !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  html body .main-wrapper .vf-content-with-right-rail > .vf-content-right-rail {
    width: 360px !important;
  }

  html body .main-wrapper .vf-content-right-rail .ads-image,
  html body .main-wrapper .vf-content-right-rail .ads-image img {
    max-width: 100% !important;
  }
}

@media (max-width: 991.98px) {
  html body .main-wrapper .vf-right-rail,
  html body .main-wrapper .vf-side-rail {
    display: none !important;
  }

  html body .main-wrapper .vf-content-with-right-rail {
    display: block !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  html body .main-wrapper .vf-content-with-right-rail > .vf-content-main {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
}

html.app-standalone body .main-wrapper .vf-right-rail,
html.app-standalone body .main-wrapper .vf-side-rail {
  display: none !important;
}

html.app-standalone body .main-wrapper .vf-content-with-right-rail {
  display: block !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

html.app-standalone body .main-wrapper .vf-content-with-right-rail > .vf-content-main {
  width: 100% !important;
  max-width: 100% !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}
