/*!
 * QH HTML Graphic: page-level styles. Everything is under .qhw-gfx; the drawing itself lives in a shadow root (qh-gfx-inner.css).
 * Light version only. Only loaded on pages that use the "QH HTML Graphic" widget.
 */
@font-face {
  font-family: 'QHW Gfx Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/qhw-gfx-dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.qhw-gfx {
  display: block;
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  isolation: isolate;
}

/* Square without aspect-ratio: the ::before spacer is 100% of the frame's own width, which also works inside Elementor's wrapping flex containers. */
.qhw-gfx::before {
  content: "";
  display: block;
  padding-top: 100%;
}

/* Square, centred, capped at 600px (the hero at 640px) so it never touches the page edge. Change per widget under Style > Size. */
.qhw-gfx[data-qhw-gfx="hero"] {
  max-width: 640px;
}

/* Inside Elementor's wrapping flex containers the widget wrapper must take the full width, or it collapses to 0 height on mobile. */
.elementor-widget-qhw-html-graphic {
  width: 100%;
  flex-shrink: 0;
}
