/* NEAT main widget page: reset desktop editor dimensions on small screens.
   Scope excludes subpages and slider tracks / individual slides. */
@media screen and (max-width: 991px) {
  body#main #content.widget-page { min-width: 0; min-height: 0 !important; }
  body#main #content.widget-page > .content {
    padding: 16px; box-sizing: border-box; display: flow-root;
  }
  body#main #content.widget-page .content .xe-widget-wrapper {
    float: none !important; clear: both;
    width: 100% !important; max-width: 100%; min-width: 0;
    height: auto !important; min-height: 0 !important;
    margin: 0 0 20px !important; box-sizing: border-box;
    display: flow-root;
  }
  body#main #content.widget-page .content .xe-widget-wrapper > div {
    max-width: 100%; box-sizing: border-box;
  }
  /* A group wrapper only supplies structure, so avoid a second bottom gap. */
  body#main #content.widget-page .content .xe-widget-wrapper:has(.xe-widget-wrapper) {
    margin-bottom: 0 !important;
  }
  body#main #content.widget-page .content > .xe-widget-wrapper:has(> div:only-child:empty) {
    display: none;
  }
  /* Static room/facility banners fill the same column without distortion. */
  body#main #content.widget-page .content .xe_content.xe-widget-wrapper > div > a {
    display: block;
  }
  body#main #content.widget-page .content .xe_content.xe-widget-wrapper > div > a > img {
    display: block; width: 100%; max-width: 100%; height: auto !important;
  }
  body#main #content.widget-page iframe[src*="youtube.com/embed/"],
  body#main #content.widget-page iframe[src*="youtube-nocookie.com/embed/"] {
    display: block; width: 100% !important; height: auto !important;
    aspect-ratio: 16 / 9; border: 0;
  }
  /* Leave bxSlider's viewport, track widths and transforms to bxSlider. */
  body#main #content.widget-page .neatSlider,
  body#main #content.widget-page .gardenImage {
    width: 100%; max-width: 100%; min-width: 0;
  }
  body#main #content.widget-page .gardenImage .thumb-area {
    width: 100% !important; height: auto !important;
  }
  body#main #content.widget-page .gardenImage .thumb-area img {
    display: block; width: 100%; height: auto !important;
  }
  body#main #content.widget-page .carousel { max-width: 100%; overflow: hidden; }
  body#main #footer .contact_info,
  body#main #footer-bottom .copyright { overflow-wrap: anywhere; }
}
