/* ALO PARDEH 262 — bright, cinematic home hero only.
   Scope: public #heroSlider and matching hero-only management previews.
   No changes to header/menu, translations, upload handling, stored slide layout,
   settings or product imagery. Loaded AFTER all existing theme/hero CSS. */

/* Large, edge-to-edge cinematic first screen, without the dark global wash. */
#heroSlider.hero.hero-slider {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: min(82vh, 900px) !important;
  min-height: 540px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  isolation: isolate;
  background: #f4f0e9 !important;
}
@supports (height: 82svh) {
  #heroSlider.hero.hero-slider { height: min(82svh, 900px) !important; }
}

#heroSlider .hero-slide {
  overflow: hidden;
  border-radius: inherit;
  transition: opacity var(--slide-transition, 2.2s) cubic-bezier(.22,.6,.22,1),
              visibility var(--slide-transition, 2.2s) linear;
}
#heroSlider .hero-slide > img,
#heroSlider .hero-slide > video.alo175-slide-video {
  position: absolute !important;
  inset: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  /* Respect per-device image framing/scale from the current editor. */
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  border-radius: 0 !important;
}
#heroSlider .hero-slide > img { z-index: 0; }
#heroSlider .hero-slide > video.alo175-slide-video {
  z-index: 0;
  background: transparent;
  pointer-events: none;
}

/* Old full-screen overlay was ~82% opaque; now only a subtle text-side veil. */
#heroSlider .hero-slide > .hero-shade {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: linear-gradient(270deg,
       rgba(17,16,16,.23) 0%,
       rgba(17,16,16,.10) 42%,
       rgba(17,16,16,0) 82%) !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  pointer-events: none !important;
}

/* Keep each customer's saved mobile/desktop x/y positions and typography. */
#heroSlider .hero-slide > .hero-overlay {
  z-index: 2 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#heroSlider .hero-overlay h1,
#heroSlider .hero-overlay .alo168-public-title,
#heroSlider .hero-overlay .alo168-public-subtitle,
#heroSlider .hero-overlay .eyebrow {
  text-shadow: 0 2px 10px rgba(0,0,0,.45), 0 7px 24px rgba(0,0,0,.22);
}

/* Entrance on the *copy group*, not individual editable layers: layer FX stay intact. */
#heroSlider .hero-slide.is-active > .hero-overlay {
  animation: alo262-copy-enter 1.12s cubic-bezier(.22,.63,.25,1) both;
}
@keyframes alo262-copy-enter {
  from { opacity: 0; filter: blur(3px); translate: 0 12px; }
  to   { opacity: 1; filter: blur(0); translate: 0 0; }
}

#heroSlider .hero-controls { z-index: 5 !important; bottom: 23px; }
#heroSlider .hero-dot { transition: width .45s ease, background-color .45s ease; }

/* Tall, cinematic mobile crop.  Focal point still comes from the saved editor. */
@media (max-width: 700px) {
  #heroSlider.hero.hero-slider {
    height: calc(100vh - 94px) !important;
    min-height: 490px !important;
    max-height: 820px !important;
    border-radius: 0 0 19px 19px !important;
  }
  @supports (height: 100svh) {
    #heroSlider.hero.hero-slider { height: calc(100svh - 94px) !important; }
  }
  #heroSlider .hero-slide > .hero-shade {
    background: linear-gradient(180deg,
       rgba(17,16,16,.03) 0%,
       rgba(17,16,16,.035) 35%,
       rgba(17,16,16,.17) 100%) !important;
  }
  #heroSlider .hero-overlay h1 { line-height: 1.35; }
  #heroSlider .hero-controls { bottom: 16px; }
}

/* Admin previews: see the same natural photograph, without the heavy old tint.
   Editing stage geometry and touch/mouse interactions are intentionally unchanged. */
#slides .alo163-preview-shade,
#slides .alo167-preview .alo163-preview-shade {
  background: linear-gradient(270deg,
       rgba(17,16,16,.22), rgba(17,16,16,.07) 52%, transparent 100%) !important;
  pointer-events: none !important;
}
#slides .alo167-preview img,
#slides .alo167-preview video {
  filter: none !important;
}

@media (prefers-reduced-motion: reduce) {
  #heroSlider .hero-slide { transition-duration: .01ms !important; }
  #heroSlider .hero-slide.is-active > .hero-overlay { animation: none !important; }
  #heroSlider .hero-dot { transition: none !important; }
}
