/*
 * Elementor compatibility.
 *
 * Elementor's frontend stylesheet carries a blanket image reset:
 *
 *     .elementor img { border:none; border-radius:0; box-shadow:none;
 *                      height:auto; max-width:100% }
 *
 * That selector is one class plus one element — specificity (0,1,1) — and
 * Elementor's stylesheet is enqueued after the theme's, so it beats every
 * single-class rule the design applies to an <img> and wins ties as well. The
 * moment a page is built with Elementor, which is the whole point of this
 * theme, the round category photos flattened into squares and lost their drop
 * shadow.
 *
 * Each rule below restates what the design already asks for, prefixed with the
 * element's own parent so it outranks the reset. Nothing new is styled here —
 * if a value changes in the design sheets, change it here too.
 *
 * Loaded only when Elementor is active.
 */

/* css/vintage.css — .cat-photo */
.cat-ring .cat-photo {
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 20px 32px -18px rgba(60, 38, 18, .55);
}

/* css/vintage.css — .pd-main img (product gallery, if built in Theme Builder) */
.pd-main > img {
  height: 73%;
  border-radius: 50%;
}

/* css/style.css — .mc-row img and .toast img */
.mc-row > img {
  height: 54px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.toast > img {
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

/* css/pages.css — .comment-author img (a Theme Builder single template) */
.comment-author > img {
  border-radius: 50%;
}

/* ---------- container width ----------
   Elementor wraps every widget in a boxed container: 10px of inline padding on
   the outside and an inner column capped at the site's content width (1140).
   The theme's section widgets already bring the design's own `.wrap` —
   max-width 1200 with a 64px gutter — so the two constraints stacked: every
   Elementor-built page rendered 60px narrower than the static design, and the
   sections meant to run edge to edge stopped short of both edges.

   Containers whose child is a Noir widget step out of the way and let .wrap do
   the centring, exactly as the static build does. Containers holding anything
   else keep Elementor's own behaviour. */
.e-con:has(> .e-con-inner > [data-widget_type^="noir-"]) {
  padding-inline: 0;
  max-width: none;
}
.e-con:has(> .e-con-inner > [data-widget_type^="noir-"]) > .e-con-inner {
  max-width: none;
  padding-inline: 0;
}
