/* Scoped to the requested brand images and interior page headers. */
#menu .menu-card>.course-brand-visual{
 object-fit:cover;object-position:center;background:#fbefd9;
}
.subpage .page-hero-brand,.subpage .page-hero-service{
 min-height:clamp(280px,23vw,440px);
}
.subpage .page-hero-brand{background:#fbefd9;color:#38291f}
.subpage .page-hero-brand>img{opacity:1;object-position:center}
.subpage .page-hero-brand::after{display:none}
.subpage .page-hero-brand .eyebrow-small{color:#94704c}
.subpage .page-hero-brand h1{color:#38291f}
.subpage .page-hero-brand p{color:#705a46}
.subpage .page-hero-brand .page-hero-content{padding-right:42%}
.subpage .page-hero-service>img{opacity:1;object-position:center}
.subpage .page-hero-service::after{
 background:linear-gradient(90deg,rgba(31,20,13,.66),rgba(31,20,13,.36) 45%,rgba(31,20,13,.04) 76%);
}
@media(max-width:900px){
 .subpage .page-hero-service{min-height:275px}
 .subpage .page-hero-service>img{object-position:78% center}
 .subpage .page-hero-service::after{background:linear-gradient(90deg,rgba(31,20,13,.72),rgba(31,20,13,.42) 65%,rgba(31,20,13,.2))}
 .subpage .page-hero-brand .page-hero-content{padding-right:40%}
}
@media(max-width:700px){
 #menu .menu-card>.course-brand-visual{height:220px;max-height:none;object-fit:cover;object-position:center 53%}
 .subpage .page-hero-brand{min-height:300px;align-items:flex-start}
 .subpage .page-hero-brand>img{inset:auto 0 0;height:170px;object-fit:contain;object-position:right bottom}
 .subpage .page-hero-brand .page-hero-content{padding:26px 0 166px}
 .subpage .page-hero-brand h1{font-size:clamp(26px,7.1vw,30px);letter-spacing:.05em}
 .subpage .page-hero-brand p{font-size:12px}
 .subpage .page-hero-service{min-height:245px}
 .subpage .page-hero-service>img{object-position:80% center}
}

/* Fill the existing image areas without letterboxing. */
.subpage .brand-pair .brand-branch-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.subpage .location-main > .shop-gallery-access > .store-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Course pages: store thumbnails fill their existing frames. */
.subpage .branch-directory-course .branch-thumbnail.store-photo {
  object-fit: cover;
  object-position: center;
}

/* Mobile changes requested for home and course pages only. */
@media (max-width: 900px) {
  #home.hero {
    height: calc(100svh - 24px);
    min-height: 0;
    max-height: 680px;
    padding-top: var(--header-height, 88px);
    padding-bottom: 24px;
  }
  #home .hero-shell {
    display: flex;
    align-items: center;
    min-height: 0;
    height: 100%;
    margin-block: 0;
  }
  #home .hero-copy {
    width: 100%;
    padding: 0;
    transform: translateY(50px);
  }
  #home .hero-corner.lt, #home .hero-corner.rt {
    top: calc(var(--header-height, 88px) + 16px);
  }
  #home .hero-corner.lb, #home .hero-corner.rb {bottom: 16px}
  .subpage .course-navigation {top: calc(var(--header-height, 88px) + 12px)}
}
@media (max-width: 700px) {
  .subpage .page-hero-brand {
    min-height: 245px;
    align-items: center;
    color: #fff;
    background: #302016;
  }
  .subpage .page-hero-brand > img {
    inset: -50px 0 0;
    width: 100%;
    height: calc(100% + 50px);
    object-fit: cover;
    object-position: right center;
    opacity: 1;
  }
  .subpage .page-hero-brand::after {
    display: block;
    background: linear-gradient(90deg,rgba(31,20,13,.72),rgba(31,20,13,.42) 65%,rgba(31,20,13,.2));
  }
  .subpage .page-hero-brand .page-hero-content {padding: 0 0 18px;margin: auto auto 0}
  .subpage .page-hero-brand .eyebrow-small {color: #cbb294}
  .subpage .page-hero-brand h1 {
    font: 500 clamp(28px,7.5vw,32px)/1.5 var(--serif);
    letter-spacing: .08em;
    color: #fff;
  }
  .subpage .page-hero-brand p {font-size: 14px;color: #f5eadb}
}
