/* The title remains visible HTML even if the decorative photograph fails. */
.yr-photo-hero {
  position:relative; isolation:isolate; display:grid; align-items:end;
  min-height:clamp(360px,38vw,590px); box-sizing:border-box; overflow:hidden;
  margin:0; color:white; background:#393830;
}
.yr-photo-hero > img.yr-photo {
  position:absolute; z-index:-2; inset:0 0 0 auto; width:78%; height:100%; max-width:none;
  object-fit:cover; object-position:var(--yr-focus, 50%) 50%; margin:0;
}
.yr-photo-hero::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(90deg,#34342d 0%,rgba(43,43,37,.98) 19%,rgba(40,40,34,.75) 34%,rgba(34,34,27,.12) 70%),
             linear-gradient(0deg,rgba(22,22,19,.5),transparent 46%);
}
.yr-photo-hero .yr-photo-copy { width:min(90%,1170px); margin:0 auto; padding:clamp(28px,4vw,68px) 0; }
.yr-photo-hero .yr-photo-copy > p { margin:0 0 .8em; color:#fff; font-size:14px; line-height:1.4; font-weight:600; letter-spacing:.14em; }
.yr-photo-hero .yr-photo-copy > h1 { margin:0; max-width:21em; color:#fff; font-family:inherit; font-weight:700; font-size:clamp(25px,2.75vw,44px); line-height:1.48; letter-spacing:.025em; text-wrap:pretty; overflow-wrap:anywhere; }
.yr-spark-lead { margin:clamp(20px,4vw,48px) auto; line-height:1.85; }
.yosofu-cover__slide .yr-home-photo { object-position:var(--yr-focus, 56%) 50%; }
.p-ranking-archive__item__in:has(.yr-banner-photo) .p-ranking-archive__item__overlay::before { content:none !important; background:none !important; }
.p-ranking-archive__item__in .p-ranking-archive__item__thumb > img.yr-banner-photo { opacity:.68; mix-blend-mode:normal; object-position:var(--yr-focus, 56%) 50%; }
.p-ranking-archive__item__in:has(.yr-banner-photo) .p-ranking-archive__item__overlay {
  background:linear-gradient(180deg,rgba(25,25,21,.76),rgba(25,25,21,.38) 30%,transparent 56%,rgba(25,25,21,.76));
}
.p-ranking-archive__item__in:has(.yr-banner-photo) .p-ranking-archive__item__overlay :is(p,h3,span) { color:#fff; }
.yh-feature__img img[src*="ranking-trio-walnut"] { object-position:100% center; }
@media(max-width:780px) {
  .yh-feature__img img[src*="ranking-trio-walnut"] { object-position:66% center; }
  .yr-photo-hero { min-height:clamp(330px,105vw,540px); }
  .yr-photo-hero > img.yr-photo { width:100%; object-position:var(--yr-focus, 56%) 50%; }
  .yr-photo-hero::before { background:linear-gradient(0deg,rgba(19,21,17,.94),rgba(24,25,20,.66) 29%,rgba(30,30,25,.15) 62%,transparent); }
  .yr-photo-hero .yr-photo-copy { padding:28px 0; }
  .yr-photo-hero .yr-photo-copy > h1 { font-size:clamp(22px,5.8vw,34px); }
}
.yh-card__img img.yr-ranking-card-photo { object-fit:cover; object-position:var(--yr-focus, 50%) 50%; }
