/* LiteCMS v3.13: CMS-editable welcome and category-aware re-entry messages.
   No thumbnail masks, grid layout, links or gesture changes. */
#coryWelcome[hidden]{display:none!important}
#coryWelcome.cory-welcome{
  position:absolute;
  z-index:8;
  left:50%;top:50%;
  transform:translate(-50%,-50%);
  display:block;
  box-sizing:border-box;
  width:max-content;
  max-width:calc(100% - 24px);
  height:auto;
  margin:0;
  padding:6px 8px;
  border:0;border-radius:0;
  box-shadow:none;
  background:transparent;
  color:#fff;
  text-align:center;
  cursor:pointer;
  user-select:none;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  opacity:0;visibility:hidden;
  transition:opacity .4s ease, visibility .4s ease;
}
#coryWelcome.cory-welcome.is-visible{opacity:1;visibility:visible}
#coryWelcome.cory-welcome.is-leaving{opacity:0;visibility:hidden;pointer-events:none}
#coryWelcome .cory-welcome-heading{
  display:flex;
  align-items:center;
  flex-direction:column;
  gap:clamp(6px,1.05vw,13px);
  width:max-content;
  max-width:100%;
  margin:auto;
  color:#fff;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:clamp(58px,6.65vw,116px);
  font-weight:900;
  line-height:1.02;
  letter-spacing:-.064em;
  text-wrap:balance;
}
#coryWelcome .cory-welcome-heading span{
  display:block;
  width:max-content;
  max-width:100%;
  white-space:nowrap;
  overflow-wrap:normal;
  /* No dark outline; gently separate the white lettering from busy artwork. */
  -webkit-text-stroke:0 transparent;
  paint-order:normal;
  text-shadow:
    0 4px 12px rgba(0,0,0,.98),
    0 12px 32px rgba(0,0,0,.78),
    0 0 58px rgba(0,0,0,.54);
}
#coryWelcome .cory-welcome-subline{
  display:block;
  margin:clamp(20px,2.3vw,32px) auto 0;
  font:600 clamp(17px,1.55vw,23px)/1.3 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.015em;
  color:#fff;
  text-shadow:0 4px 12px rgba(0,0,0,.98),0 9px 27px rgba(0,0,0,.73);
}
#coryWelcome:focus-visible{outline:2px solid #fff;outline-offset:8px}
@media (min-width:701px) and (max-width:1100px){
  #coryWelcome .cory-welcome-heading{font-size:clamp(50px,6.2vw,77px)}
}
@media(max-width:700px){
  #coryWelcome.cory-welcome{max-width:calc(100% - 12px);padding:8px 3px}
  #coryWelcome .cory-welcome-heading{
    gap:8px;
    font-size:clamp(37px,10.5vw,58px);
    letter-spacing:-.052em;
    line-height:1.06;
  }
  #coryWelcome .cory-welcome-heading span{max-width:100%;white-space:normal}
  #coryWelcome .cory-welcome-heading span:last-child{
    font-size:.88em;
    max-width:min(370px,94vw);
    text-wrap:balance;
  }
  #coryWelcome .cory-welcome-subline{
    margin-top:18px;
    font-size:clamp(15px,4.3vw,19px);
  }
}
@media(prefers-reduced-motion:reduce){
  #coryWelcome.cory-welcome{transition:none}
}

/* Limit long admin-edited lines to the available screen, without clipping. */
#coryWelcome .cory-welcome-heading span{white-space:normal;overflow-wrap:break-word;text-wrap:balance}
#coryWelcome.cory-welcome{max-width:min(100% - 20px, 1180px)}
#coryWelcome .cory-welcome-heading{width:100%}
@media(max-width:700px){#coryWelcome .cory-welcome-heading{font-size:clamp(34px,10vw,58px)}}

/* LiteCMS v3.14: Introduction is presentation-only.
   Never consume the first tap, drag, pinch or click.
   v3.13 JS already dismisses on document pointerdown (capture phase),
   which now lands directly on the underlying canvas or project tile. */
#coryWelcome.cory-welcome,
#coryWelcome.cory-welcome * {
  pointer-events: none !important;
}
#coryWelcome.cory-welcome {
  cursor: default;
}
