/* Local visual review. Scope product rules to the homepage and overview. */
.mingshun-site .site-footer .footer-column > h3.wp-block-heading {
  color: #f7fbfa;
}

.mingshun-site.ms-page-oem .oem-workflow h2.wp-block-heading,
.mingshun-site.ms-info-page .cta-panel > h2.wp-block-heading {
  color: #f7fbfa;
}

.mingshun-site.ms-page-oem figure.development-photo--detail {
  overflow: hidden;
}

.mingshun-site.home-v3 .home-range__grid figure:has(img[src*="baby-activity-gym-supplied-01"]),
.mingshun-site.bib-page .bib-categories :is(.bib-category-visual, .bib-category-photo-frame, .playmat-category-frame),
.mingshun-site.bib-page :is(.comforter-feature__image, .playmat-feature__image, .activity-gym-feature__image, .blanket-feature__image, .towel-feature__image) {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  min-width: 0;
  min-height: 0;
  background: #f6f3ee;
  overflow: hidden;
}

.mingshun-site.bib-page .bib-categories :is(.bib-category-visual, .bib-category-photo-frame, .playmat-category-frame) > figure.wp-block-image,
.mingshun-site.bib-page :is(.comforter-feature__image, .playmat-feature__image, .activity-gym-feature__image, .blanket-feature__image, .towel-feature__image) > figure.wp-block-image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  margin: 0;
  background: transparent;
  transform: none;
}

.mingshun-site.home-v3 .home-range__grid figure:has(img[src*="baby-activity-gym-supplied-01"]) > a,
.mingshun-site.bib-page .bib-categories :is(.bib-category-visual, .bib-category-photo-frame, .playmat-category-frame) figure > a {
  display: block;
  width: 100%;
  height: 100%;
}

.mingshun-site.home-v3 .home-range__grid figure img[src*="baby-activity-gym-supplied-01"],
.mingshun-site.bib-page .bib-categories :is(.bib-category-visual, .bib-category-photo-frame, .playmat-category-frame) figure img,
.mingshun-site.bib-page :is(.comforter-feature__image, .playmat-feature__image, .activity-gym-feature__image, .blanket-feature__image, .towel-feature__image) figure img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
  mix-blend-mode: normal;
  transform: none;
}

/* These source photos retain their existing presentation orientation. The
   rotated height is 60% of frame width, below the 3:2 frame height. */
.mingshun-site.bib-page .bib-categories .playmat-category-frame figure.playmat-turn-right img,
.mingshun-site.bib-page .playmat-feature__image figure.playmat-turn-right img,
.mingshun-site.bib-page .towel-feature__image figure.towel-rotate-rabbit img {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 60%;
  height: auto;
  /* Reserve the source ratio even when WordPress uses lazy responsive sizing. */
  aspect-ratio: 3 / 4;
  contain-intrinsic-size: none;
  transform: translate(-50%, -50%) rotate(90deg);
}

.mingshun-site.bib-page .towel-feature__image figure.towel-rotate-rabbit img {
  aspect-ratio: 1280 / 1707;
}

.mingshun-site.bib-page .blanket-feature__image figure.blanket-turn-double-front img {
  transform: rotate(180deg);
}

.mingshun-site.home-v3 .home-range__grid figure img[src*="baby-activity-gym-supplied-01"],
.mingshun-site.bib-page :is(.bib-category-visual, .playmat-category-frame, .comforter-feature__image, .playmat-feature__image, .activity-gym-feature__image, .blanket-feature__image, .towel-feature__image) img {
  mask-image: var(--qa-photo-mask, none);
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
}
