/* LYV entry photo balancing — scoped visual hotfix.
   Loaded after lyv-immersive.css. No routing/authentication changes.
   The current images are landscape concepts; this avoids excessive portrait cropping.
*/
@media (max-width: 599px) {
  #welcome.active {
    min-height: 100dvh;
    height: auto;
  }

  /* Critical fix: remove inherited flex-grow that stretched an image far beyond its CSS height. */
  #welcome .lyv-welcome-photo {
    display: block;
    flex: 0 0 auto !important;
    align-self: stretch;
    box-sizing: border-box;
    width: 100%;
    height: min(39dvh, 86vw) !important;
    min-height: min(245px, 73vw) !important;
    max-height: 350px;
    overflow: hidden;
    border-radius: 0;
  }
  #welcome .lyv-activity-hero,
  #welcome .lyv-hero-frames { overflow: hidden; }

  #welcome .lyv-hero-frames > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none !important;
  }
  #welcome .lyv-hero-frames > img[data-lyv-hero-image="0"] { object-position: 51% 49%; }
  #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: 53% 49%; }
  #welcome .lyv-hero-caption {
    bottom: 8px;
    gap: 2px;
  }
  #welcome .lyv-hero-pause {
    min-width: 48px;
    padding: 4px 7px;
    font-size: 10px;
  }
}

@media (max-width: 599px) and (max-height: 650px) {
  #welcome .lyv-welcome-photo {
    height: min(37dvh, 80vw) !important;
    min-height: 205px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #welcome .lyv-hero-frames > img { transition: none !important; }
}
