@media (max-width: 1023.98px) {
  /* The app hides native body siblings. Keep the existing consent controls
     visible so its focus guard cannot scroll toward a CSS-hidden panel. */
  html.yxa-on body.yxa2.yxa2-full > aside#yxfa-cookie-panel.yxfa-consent:not([hidden]) {
    display: block !important;
    z-index: 200000 !important;
  }
  /* Reserve the verified four-tile slot before its API response. Fixed media
     boxes keep subsequently loaded thumbnails from resizing the grid. */
  body.term-party-balloon-kits #yxa-root .yxa-rels { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
  body.yxsf-related-four #yxa-root .yxa-rels[hidden] { display: grid !important; min-height: calc(75vw + 191px); }
  body.term-party-balloon-kits #yxa-root .yxa-rels .yxa-sec-head { min-height: 24px; margin-bottom: 0; }
  body.term-party-balloon-kits #yxa-root .yxa-rels .yxa-sec-head h2 { margin: 0; line-height: 24px; }
  body.term-party-balloon-kits #yxa-root .yxa-rel { min-width: 0; }
  body.term-party-balloon-kits #yxa-root .yxa-rel-img { position: relative; display: block; flex: none; width: 100%; height: 0; padding-top: 75%; aspect-ratio: auto; overflow: hidden; }
  body.term-party-balloon-kits #yxa-root .yxa-rel-img img { position: absolute; inset: 0; width: 100%; height: 100%; box-sizing: border-box; }
  body.term-party-balloon-kits #yxa-root .yxa-rel-name { min-height: 79px; box-sizing: border-box; }
}
