/* LYV Step 154 — immersive activity-photo treatment; visual presentation only.
 * Depends on lyv-entry.css and lyv-entry-activities.css and loads after both.
 * Deliberately does not alter authentication forms, providers, router, or backend.
 */
#welcome .lyv-activity-hero {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:#dce7dd;
}
#welcome .lyv-hero-frames {
  position:absolute;
  inset:0;
  overflow:hidden;
  background:#dce7dd;
}
#welcome .lyv-hero-frames::after {
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:21%;
  background:linear-gradient(to bottom,transparent,rgba(7,28,23,.48));
  pointer-events:none;
}
#welcome .lyv-hero-frames > img {
  position:absolute;
  display:block;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transform:none;
  transition:opacity .45s ease;
}
#welcome .lyv-hero-frames > img[data-lyv-hero-image="0"] {object-position:50% 48%;}
#welcome .lyv-hero-frames > img[data-lyv-hero-image="1"] {object-position:50% 46%;}
#welcome .lyv-hero-frames > img[data-lyv-hero-image="2"] {object-position:52% 48%;}
/* The original bulky caption becomes a transparent, unobtrusive control layer.
 * Labels remain in the document; accessible image alt and slide button labels remain.
 */
#welcome .lyv-hero-caption {
  position:absolute;
  z-index:3;
  left:50%;
  right:auto;
  bottom:clamp(12px,2.6vh,26px);
  transform:translateX(-50%);
  width:auto;
  max-width:none;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:nowrap;
  gap:8px;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
  pointer-events:none;
}
#welcome .lyv-hero-caption .lyv-hero-category,
#welcome .lyv-hero-caption strong,
#welcome .lyv-hero-caption small {
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}
#welcome .lyv-hero-dots {
  display:flex;
  gap:1px;
  align-items:center;
  margin:0;
  pointer-events:auto;
}
#welcome .lyv-hero-dots button {width:38px;height:42px;min-height:42px;}
#welcome .lyv-hero-dots button::before {
  width:9px;
  height:9px;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:0 1px 4px rgba(0,0,0,.3);
}
#welcome .lyv-hero-dots button[aria-pressed="true"]::before {
  background:#fff;
  transform:scale(1.15);
}
#welcome .lyv-hero-pause {
  min-width:58px;
  min-height:34px;
  font-size:11px;
  margin:0 0 0 2px;
  padding:4px 10px;
  background:rgba(12,34,28,.55);
  color:#fff;
  border:1px solid rgba(255,255,255,.85);
  border-radius:999px;
  backdrop-filter:blur(4px);
  box-shadow:0 1px 5px rgba(0,0,0,.18);
  pointer-events:auto;
}
#welcome .lyv-hero-pause:hover {background:rgba(12,34,28,.85);}
#welcome .lyv-hero-pause:focus-visible,
#welcome .lyv-hero-dots button:focus-visible {
  outline:3px solid #F4B369;
  outline-offset:2px;
}
/* Desktop: photo fills the right half; the left retains the original entry flow. */
@media (min-width:900px) {
  #welcome.active {grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);}
  #welcome .lyv-welcome-copy {
    min-height:100dvh;
    gap:clamp(16px,3vh,36px);
  }
  #welcome .lyv-welcome-photo {
    margin:12px 12px 12px 0;
    min-height:calc(100dvh - 24px);
    height:calc(100dvh - 24px);
    border-radius:22px;
  }
}
/* Tablet: retain the split until there is space for a readable single column. */
@media (min-width:600px) and (max-width:899px) {
  #welcome.active {grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
  #welcome .lyv-welcome-copy {padding:clamp(20px,3.5vw,40px);gap:20px;min-height:100dvh;}
  #welcome h1 {font-size:clamp(40px,5vw,55px);}
  #welcome .lyv-welcome-photo {
    margin:12px 12px 12px 0;
    height:calc(100dvh - 24px);
    min-height:calc(100dvh - 24px);
    border-radius:18px;
  }
}
/* Phones: text and buttons stay readable above a tall, uninterrupted photo. */
@media (max-width:599px) {
  #welcome.active {
    display:flex;
    flex-direction:column;
    min-height:100%;
    height:auto;
  }
  #welcome .lyv-welcome-copy {
    min-height:0;
    flex:0 0 auto;
    justify-content:flex-start;
    gap:clamp(8px,1.55vh,17px);
    padding:clamp(16px,2.5vh,25px) 24px 10px;
  }
  #welcome .lyv-entry-brand {font-size:clamp(23px,6.4vw,28px);}
  #welcome .lyv-entry-eyebrow {margin:0 0 8px;font-size:10px;}
  #welcome h1 {font-size:clamp(34px,10.4vw,46px);line-height:1.045;margin:0 0 10px;}
  #welcome .lyv-entry-intro {font-size:clamp(12px,3.75vw,15px);line-height:1.43;margin:0 0 15px;}
  #welcome .lyv-entry-actions {gap:8px;}
  #welcome .lyv-entry-actions .btn {min-height:45px;padding:10px 15px;font-size:14px;}
  #welcome .lyv-entry-note {display:none;}
  #welcome .lyv-entry-footer {
    display:block;
    font-size:clamp(11px,2.95vw,13px);
    font-style:italic;
    color:#244D40;
    font-weight:600;
    max-width:100%;
    margin:0;
  }
  #welcome .lyv-welcome-photo {
    flex:1 0 auto;
    display:block;
    width:100%;
    margin:0;
    height:clamp(275px,43dvh,510px);
    min-height:275px;
    border-radius:0;
    background:#dce7dd;
  }
  #welcome .lyv-hero-frames > img[data-lyv-hero-image="0"] {object-position:50% 48%;}
  #welcome .lyv-hero-frames > img[data-lyv-hero-image="1"] {object-position:50% 43%;}
  #welcome .lyv-hero-frames > img[data-lyv-hero-image="2"] {object-position:51% 47%;}
  #welcome .lyv-hero-caption {bottom:calc(11px + env(safe-area-inset-bottom, 0px));}
}
@media(max-width:359px){
  #welcome .lyv-welcome-copy {padding-inline:18px;gap:7px;}
  #welcome h1 {font-size:36px;}
  #welcome .lyv-entry-intro {font-size:12px;margin-bottom:11px;}
  #welcome .lyv-welcome-photo {height:clamp(235px,40dvh,410px);min-height:235px;}
  #welcome .lyv-entry-actions .btn {min-height:44px;}
}
/* Short screens are allowed to scroll; never sacrifice reachable account buttons. */
@media(max-width:599px) and (max-height:660px){
  #welcome .lyv-welcome-photo {height:270px;min-height:270px;}
  #welcome .lyv-welcome-copy {padding-top:12px;}
}
@media(prefers-reduced-motion:reduce){
  #welcome .lyv-hero-frames > img,
  #welcome .lyv-hero-dots button::before {transition:none !important;}
}
