/* The configurable band uses the image bounds, independent of the guest text. */
#home.home-custom-countdown {
  container-type:inline-size;
  width: min(100%, var(--home-desktop-width));
  height: auto; min-height: 0; max-height: none;
  aspect-ratio: var(--home-image-ratio);
  margin: 0 auto;
  background-size: 100% 100%!important; background-repeat:no-repeat; background-position:center;
}
#home.home-custom-countdown > .global-visual-picture { display:none; }
#home.home-custom-countdown > .card-overlay { position:absolute; inset:0; padding:0; height:100%; }
#home.home-custom-countdown .card-content { position:static; min-height:0; padding:0; }
#home.home-custom-countdown .card-content::before,
#home.home-custom-countdown .card-content::after { display:none; }
#home #countdown-wrapper.custom-countdown-wrapper {
 position:absolute; left:var(--cd-x); top:var(--cd-y); width:var(--cd-width);
 height:var(--cd-height); margin:0; display:block; z-index:5;
}
#home #countdown.custom-countdown {
 display:flex; gap:0!important; width:100%; max-width:none; height:100%;
 color:var(--cd-color); font-family:var(--cd-font);
 border:var(--cd-border-size) solid var(--cd-border); border-radius:var(--cd-radius);
 background:transparent; overflow:hidden; align-items:center; text-align:center;
 position:relative; isolation:isolate;
}
#home #countdown.custom-countdown::before { content:""; position:absolute; inset:0; z-index:-1; background:var(--cd-bg); opacity:var(--cd-opacity); }
#home #countdown.custom-countdown > div {
 flex:1; min-width:0; height:65%; padding:0!important; border:0!important;
 border-radius:0!important; background:transparent!important; backdrop-filter:none!important;
 display:flex; flex-direction:column; justify-content:center;
}
#home #countdown.custom-countdown.has-separators > div+div { border-left:1px solid var(--cd-border)!important; }
#home #countdown.custom-countdown span { color:var(--cd-color)!important; font-family:inherit; font-size:var(--cd-number)!important; font-weight:400!important; line-height:1; font-variant-numeric:lining-nums tabular-nums; }
#home #countdown.custom-countdown small { color:var(--cd-color)!important; font-family:inherit; font-size:var(--cd-label)!important; line-height:1.2; margin-top:.6cqw!important; text-transform:uppercase; letter-spacing:0!important; white-space:nowrap; }
@media(max-width:767px) { #home.home-custom-countdown { width:100%; } }

/* Opt-in per event: use the same centered cover bounds for the image and band. */
@media(max-width:767px) {
  #home.home-custom-countdown.home-mobile-fill {
    height:100svh!important; height:100dvh!important; min-height:0; aspect-ratio:auto;
    overflow:hidden; background-size:cover!important;
  }
  #home.home-mobile-fill > .card-overlay {
    inset:auto; left:50%; top:50%; transform:translate(-50%,-50%);
    width:max(100%, calc(100svh * var(--home-image-ratio)))!important;
    width:max(100%, calc(100dvh * var(--home-image-ratio)))!important; max-width:none!important;
    height:auto; aspect-ratio:var(--home-image-ratio); container-type:inline-size;
  }
}
