/* stjoe-york home page: Meals-for-priests QR card and Facebook widget fitting
   in the middle column (SOL-31079). */

/* The Joomla module chrome (.moduletable) pulls 10px each side of its column with
   negative margins. Cancel that so the card spans the column exactly and cannot
   reach into the sponsor column on the right. */
#g-mainbar .moduletable {
  margin-left: 0;
  margin-right: 0;
}

/* QR note card — spans its column, styled to match the Parish Calendar & Intentions box */
#g-mainbar .qr-meals {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  padding: 12.8px 24px 16px;
  margin: 26px 0 0;
  text-align: center;
}

#g-mainbar .qr-meals p {
  text-align: center;
}

#g-mainbar .qr-meals .qr-meals-img {
  margin: 0 0 12px;
}

/* Keep the client's QR image at its own pixel size so it stays sharp. */
#g-mainbar .qr-meals .qr-meals-img img {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  height: auto;
}

#g-mainbar .qr-meals .qr-meals-link {
  margin: 10px 0 0;
  font-weight: 600;
}

/* The Facebook page plugin is rendered at a fixed pixel width. Cap it at the
   column so it can never spill into the sponsor column on narrow desktops. */
#g-mainbar #contentarray-4787-particle .fb_iframe_widget,
#g-mainbar #contentarray-4787-particle .fb_iframe_widget > span,
#g-mainbar #contentarray-4787-particle iframe {
  max-width: 100% !important;
}

@media (min-width: 992px) {
  #g-mainbar #contentarray-4787-particle,
  #g-mainbar #contentarray-4787-particle .g-content-array,
  #g-mainbar #contentarray-4787-particle .g-array-item,
  #g-mainbar #contentarray-4787-particle .g-array-item-text {
    text-align: center;
  }

  #g-mainbar #contentarray-4787-particle .fb_iframe_widget,
  #g-mainbar #contentarray-4787-particle .fb_iframe_widget > span {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  #g-mainbar #contentarray-4787-particle iframe {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
