/* Anglesea — river / heath Christmas.
   Unique objects: banksia and rust-gold heath swag; rust-gold heath wreath;
   wooden canoe with a gold bow (both ends visible); heath footer.
   Not the main-site, Sunshine, Co-Host, Apollo or Lorne set. */
html.is-holiday{
  --hol-gold:#E3B35A;
  --hol-gold-hi:#F6E0A8;
  --hol-rust:#C9782F;
  --hol-plum:#2A1631;
  overflow-x:clip;
  /* Site uses scrollbar-gutter:stable, which reserves a 15px white strip
     on the right of the 1440/390 screenshots (and in overlay-scrollbar browsers).
     Decorations do not overflow on desktop; this is a gutter, not overflow. */
  scrollbar-gutter:auto;
}
.holiday-lights,
.holiday-line,
.holiday-wash,
.holiday-deco,
.holiday-foot-edge,
.holiday-signoff{display:none}
html.is-holiday .holiday-lights,
html.is-holiday .holiday-line,
html.is-holiday .holiday-wash,
html.is-holiday .holiday-deco,
html.is-holiday .holiday-foot-edge,
html.is-holiday .holiday-signoff{display:block}

html.is-holiday .top{
  overflow:hidden;
  border-bottom-color:var(--hol-gold);
}

/* Swag hangs from the top-right of the hero, clear of the headline and CTAs.
   z-index stays under .hero .wrap so text always wins if they ever overlap. */
.holiday-lights{
  position:absolute;
  left:auto;
  right:max(4px, calc((100vw - 1200px)/2 - 8px));
  top:8px;
  width:min(42vw, 480px);
  z-index:2;
  pointer-events:none;
  overflow:visible;
  aspect-ratio:900/366;
  background:url(/assets/holiday/header-swag.webp) no-repeat center / contain;
  filter:drop-shadow(0 8px 16px rgba(42,22,49,.35));
}

html.is-holiday .holiday-wash{display:none}
html.is-holiday .hero{
  position:relative;
  overflow:visible;
  background-color:#2A1631;
}
html.is-holiday .hero-photo{
  position:absolute;
  left:0;right:0;top:0;bottom:0;
  height:auto;
  background-image:url(/assets/img/hero-1440.webp);
  background-size:cover;
  background-position:50% 60%;
  background-repeat:no-repeat;
  z-index:0;
  pointer-events:none;
}
html.is-holiday .hero>img{
  position:absolute!important;
  width:1px!important;height:1px!important;
  left:-9999px!important;top:auto!important;
  inset:auto;
  opacity:0;z-index:-9;pointer-events:none;
}
html.is-holiday .hero .wrap{position:relative;z-index:3;padding-bottom:36px}

/* Wreath hangs off the lower-right corner, slight edge overlap only. */
.holiday-heath-wreath{
  position:absolute;
  right:4px;
  bottom:22px;
  width:min(16vw, 168px);
  aspect-ratio:480/487;
  background:url(/assets/holiday/heath-wreath.webp) no-repeat center / contain;
  z-index:2;
  pointer-events:none;
  filter:drop-shadow(0 10px 16px rgba(42,22,49,.35));
}

/* Complete canoe, both ends visible, along the lower edge, right of the copy. */
.holiday-canoe{
  position:absolute;
  right:max(140px, calc((100vw - 1200px)/2 + 200px));
  left:auto;
  bottom:22px;
  width:min(28vw, 300px);
  aspect-ratio:700/324;
  background:url(/assets/holiday/canoe.webp) no-repeat center / contain;
  z-index:2;
  pointer-events:none;
  filter:drop-shadow(0 10px 16px rgba(42,22,49,.35));
}

/* Caption sat between the canoe and wreath; hide it on the holiday layer. */
html.is-holiday .hero .cap{display:none}

html.is-holiday .foot{
  position:relative;
  overflow:visible;
  padding-top:140px;
}
.holiday-foot-edge{
  position:absolute;
  left:0;right:0;
  top:0;
  height:170px;
  transform:translateY(-40%);
  pointer-events:none;
  z-index:3;
  overflow:visible;
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.35));
}
html.is-holiday .holiday-foot-garland{display:block!important;width:100%;height:100%;object-fit:contain;object-position:center}

html.is-holiday .foot .holiday-greet{
  margin:0 0 6px;
  font:700 1.05rem/1.4 inherit;
  color:var(--hol-gold-hi);
  letter-spacing:.01em;
}
.holiday-signoff{
  margin:0 0 18px;
  padding:0 0 14px;
  border-bottom:1px solid color-mix(in srgb, var(--hol-gold) 45%, transparent);
}
html.is-holiday .foot .holiday-hours{
  margin:0;
  font:400 .9rem/1.5 inherit;
  color:inherit;
  opacity:.92;
}
html.is-holiday .foot .holiday-ph{
  display:inline-block;
  margin-right:.35em;
  padding:.05em .45em;
  border:1px solid var(--hol-gold);
  border-radius:999px;
  font:700 .72rem/1.4 inherit;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--hol-gold-hi);
  vertical-align:.12em;
}

@media (max-width:980px){
  /* Swag above the tag, not over the headline. Shelf below badges for edge objects. */
  html.is-holiday .hero{padding-top:148px}
  html.is-holiday .hero-photo{background-image:url(/assets/img/hero-760.webp);bottom:auto;height:100vh}
  html.is-holiday .hero .wrap{padding-top:12px;padding-bottom:168px}
  .holiday-lights{
    left:50%;
    right:auto;
    transform:translateX(-50%);
    width:min(86vw, 340px);
    top:8px;
  }
  .holiday-heath-wreath{
    right:4px;
    bottom:10px;
    width:min(30vw, 112px);
  }
  .holiday-canoe{
    right:auto;
    left:8px;
    bottom:8px;
    width:min(50vw, 186px);
  }
  html.is-holiday .hero .cap{display:none}
  html.is-holiday .foot{padding-top:120px;padding-bottom:136px}
  .holiday-foot-edge{height:130px;transform:translateY(-36%)}
}
@media (max-width:600px){
  html.is-holiday .hero{padding-top:140px}
  .holiday-lights{width:min(90vw, 320px);top:6px}
  .holiday-heath-wreath{width:min(28vw, 100px);right:4px;bottom:8px}
  .holiday-canoe{width:min(50vw, 180px);left:8px;bottom:6px}
}
@media print{
  .holiday-lights,.holiday-deco,.holiday-foot-edge{display:none!important}
}
@media (prefers-reduced-motion:reduce){
  .holiday-lights,
  .holiday-heath-wreath,
  .holiday-canoe,
  .holiday-foot-edge{filter:none}
}
