/* ============================================================================
   TREN — PRODUCT FRAMING (2026-11-20)
   Real product photography, framed like a print: pure white plate, 12px radius,
   soft shadow, object-fit contain. Works on the light page and on the dark one
   (there the plate reads as a lightbox, which is the intent).
   Loaded last so it beats the template's !important wrapper rules.
   ========================================================================== */

/* the plate */
.tv-media.tv-media,
.ut-float-img-wrap.ut-float-img-wrap,
.tv-card-img.tv-card-img,
.tren-inline-img.tren-inline-img,
.sw-img-box.sw-img-box {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(11, 12, 14, .07) !important;
  border-radius: 12px !important;
  padding: 14px !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .30) !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html[data-theme="light"] .tv-media.tv-media,
html[data-theme="light"] .ut-float-img-wrap.ut-float-img-wrap,
html[data-theme="light"] .tv-card-img.tv-card-img,
html[data-theme="light"] .tren-inline-img.tren-inline-img,
html[data-theme="light"] .sw-img-box.sw-img-box {
  box-shadow: 0 20px 44px rgba(11, 12, 14, .16), 0 0 0 1px rgba(11, 12, 14, .04) !important;
  border-color: rgba(11, 12, 14, .09) !important;
}

/* the photograph: no cutout filters, no tint, no drop shadows */
.tv-media .tv-img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
}

.tv-img,
.ut-cutout-float,
.ut-hero-cutout-img,
.tv-card-img img,
.tren-inline-img img,
.sw-img-box img {
  filter: none !important;
  mix-blend-mode: normal !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  object-fit: contain !important;
  box-shadow: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* hero stage of an article: same treatment, a little more air */
.ut-hero-cutout-img {
  background: #ffffff !important;
  padding: 18px !important;
  border-radius: 14px !important;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .35) !important;
  max-height: 360px !important;
}
html[data-theme="light"] .ut-hero-cutout-img {
  box-shadow: 0 24px 55px rgba(11, 12, 14, .16) !important;
}

/* the legacy showcase block contradicts engine posts: hide it there only */
body.tren-engine-post .ut-cutout-lineup-sec,
body.tren-engine-post .ut-lineup-grid,
body.tren-engine-post .tren-hero-showcase { display: none !important; }

/* breathing room between the plate and the price panel */
.tv-card .tv-media { min-height: 200px !important; }
.tv-quick-action.tv-quick-action { margin-top: 16px !important; }
.tv-card-body-col { padding-top: 18px !important; }

/* the fake ground shadows belong to cutouts, not to a framed photo */
.ut-pedestal-shadow,
.ut-floor-glow { display: none !important; }
.ut-halo-ring { display: none !important; }
.tv-card-img::after,
.tren-inline-img::after,
.ut-float-img-wrap::after { display: none !important; content: none !important; }
