/* Proof & Principle v497 — Whisky opener standardization
   Master reference: Scotch Whisky opener in v496.
   Scope: Bourbon & American Whiskey, American Rye & Corn Whiskey,
   Canadian Whisky and Japanese Whisky only.
   Irish Whiskey remains the approved explicit higher-resolution/taller-image exception. */

:root{
  --pp-whisky-opener-green:#102820;
  --pp-whisky-opener-orange:#e94b16;
  --pp-whisky-opener-line:#deddd7;
  --pp-whisky-opener-muted:#555b55;
}

/* Same media frame as Scotch. */
body.pp-whisky-guide main > .hero.wrap > .hero-photo,
body.pp-whisky-guide main > .hero.wrap > .iw-hero-photo{
  box-sizing:border-box!important;
  width:min(100%,640px)!important;
  max-width:640px!important;
  margin-left:0!important;
  margin-right:0!important;
  padding:12px!important;
  justify-self:end!important;
  background:#fff!important;
  border:1px solid var(--pp-whisky-opener-line)!important;
  box-shadow:0 20px 55px rgba(18,34,28,.12)!important;
  overflow:hidden!important;
}

body.pp-whisky-guide main > .hero.wrap > .hero-photo img,
body.pp-whisky-guide main > .hero.wrap > .iw-hero-photo img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:4 / 3!important;
  object-fit:cover!important;
  object-position:center!important;
  border:0!important;
}

/* Caption language: factual identification first; explanatory copy may follow. */
body.pp-whisky-guide main > .hero.wrap > .hero-photo figcaption,
body.pp-whisky-guide main > .hero.wrap > .iw-hero-photo figcaption{
  padding:12px 0 0!important;
  border-top:3px solid var(--pp-whisky-opener-orange)!important;
  margin-top:12px!important;
  color:var(--pp-whisky-opener-muted)!important;
  font-family:"Times New Roman",Times,serif!important;
  font-size:15px!important;
  line-height:1.55!important;
  font-weight:400!important;
  letter-spacing:normal!important;
  text-transform:none!important;
}
body.pp-whisky-guide main > .hero.wrap > .hero-photo figcaption b,
body.pp-whisky-guide main > .hero.wrap > .iw-hero-photo figcaption b{
  color:var(--pp-whisky-opener-green)!important;
  font-family:"Times New Roman",Times,serif!important;
  font-size:13px!important;
  line-height:1.3!important;
  font-weight:900!important;
  letter-spacing:.10em!important;
  text-transform:uppercase!important;
}

/* Japanese guide used a narrower 1240px opener wrapper. Bring only its opener
   onto the same 1600px/grid geometry as the Scotch master. */
body.pp-editorial-times main > .hero.wrap{
  box-sizing:border-box!important;
  width:min(1600px,100%)!important;
  max-width:1600px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:clamp(24px,5vw,78px)!important;
  padding-right:clamp(24px,5vw,78px)!important;
  grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr)!important;
  gap:46px!important;
  align-items:center!important;
}

/* Scotch master photo-top, measured across the two-column desktop range.
   These values reproduce the master rather than centring against pages whose
   copy blocks happen to be taller or shorter. */
@media (min-width:1101px){
  body.pp-whisky-guide main > .hero.wrap > .hero-photo,
  body.pp-whisky-guide main > .hero.wrap > .iw-hero-photo{
    align-self:start!important;
    transform:none!important;
  }

  /* Japanese header sits 10px higher than the established guide-header family;
     compensate only in opener placement so the image top still matches Scotch. */
  body.pp-editorial-times{--pp-whisky-japanese-y:10px;}
  body.pp-whisky-guide:not(.pp-editorial-times){--pp-whisky-japanese-y:0px;}
}

@media (min-width:1101px) and (max-width:1139px){
  body.pp-whisky-guide main > .hero.wrap > .hero-photo,
  body.pp-whisky-guide main > .hero.wrap > .iw-hero-photo{
    margin-top:calc(617.6px - 47.95vw + var(--pp-whisky-japanese-y,0px))!important;
  }
}
@media (min-width:1140px) and (max-width:1199px){
  body.pp-whisky-guide main > .hero.wrap > .hero-photo,
  body.pp-whisky-guide main > .hero.wrap > .iw-hero-photo{
    margin-top:calc(321.8px - 22vw + var(--pp-whisky-japanese-y,0px))!important;
  }
}
@media (min-width:1200px) and (max-width:1549px){
  body.pp-whisky-guide main > .hero.wrap > .hero-photo,
  body.pp-whisky-guide main > .hero.wrap > .iw-hero-photo{
    margin-top:calc(129.1px - 5.94vw + var(--pp-whisky-japanese-y,0px))!important;
  }
}
@media (min-width:1550px) and (max-width:1599px){
  body.pp-whisky-guide main > .hero.wrap > .hero-photo,
  body.pp-whisky-guide main > .hero.wrap > .iw-hero-photo{
    margin-top:calc(37px + var(--pp-whisky-japanese-y,0px))!important;
  }
}
@media (min-width:1600px) and (max-width:1639px){
  body.pp-whisky-guide main > .hero.wrap > .hero-photo,
  body.pp-whisky-guide main > .hero.wrap > .iw-hero-photo{
    margin-top:calc(37.5px + var(--pp-whisky-japanese-y,0px))!important;
  }
}
@media (min-width:1640px){
  body.pp-whisky-guide main > .hero.wrap > .hero-photo,
  body.pp-whisky-guide main > .hero.wrap > .iw-hero-photo{
    margin-top:calc(38.875px + var(--pp-whisky-japanese-y,0px))!important;
  }
}

/* Scotch responsive media standard. */
@media (max-width:1100px){
  body.pp-whisky-guide main > .hero.wrap > .hero-photo,
  body.pp-whisky-guide main > .hero.wrap > .iw-hero-photo{
    width:min(100%,720px)!important;
    max-width:720px!important;
    margin-top:0!important;
    justify-self:start!important;
    align-self:center!important;
    transform:none!important;
  }
  body.pp-editorial-times main > .hero.wrap{
    grid-template-columns:1fr!important;
    gap:38px!important;
  }
}

@media (max-width:760px){
  body.pp-editorial-times main > .hero.wrap{gap:24px!important;}
}

@media (max-width:640px){
  body.pp-editorial-times main > .hero.wrap{
    padding-left:18px!important;
    padding-right:18px!important;
  }
}
