/* Our Space — cloud scroll reveal, then Inside LMYC gallery */

#lmyc-space-parallax {
  position: relative;
  z-index: 1;
  background: #fffef4;
}

#lmyc-space-parallax .lmyc-space-parallax-intro {
  padding: clamp(2.5rem, 4vw, 3.5rem) 0 clamp(1.5rem, 2.5vw, 2rem);
  background: #fffef4;
}

#lmyc-space-parallax .lmyc-space-parallax-stage {
  background: #fffef4;
}

#lmyc-space-parallax .lmyc-space-parallax-pin {
  position: relative;
  width: 100%;
  min-height: 220vh;
  height: auto;
  margin: 0;
  padding: 0 0 clamp(3rem, 5vw, 6rem);
}

#lmyc-space-parallax .lmyc-space-parallax-pin > .parallax-section {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  will-change: transform;
  z-index: 2;
}

#lmyc-space-parallax .parallax-content {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #fffef4;
}

#lmyc-space-parallax .parallax-zoom-img {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("../images/sections/savepage-cssvariables.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  pointer-events: none;
}

#lmyc-space-parallax .image-containers {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 0;
}

#lmyc-space-parallax .lmyc-parallax-img-frame,
#lmyc-space-parallax .lmyc-parallax-img-frame img {
  pointer-events: none;
}

#lmyc-space-parallax .lmyc-parallax-img-frame {
  position: relative;
  width: 72%;
  height: 72%;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  border-radius: 1.5rem;
  transform-origin: center center;
  will-change: transform, border-radius;
  transform: scale(1) translateZ(0);
  box-shadow: 0 1.5rem 4rem rgba(63, 50, 59, 0.14);
}

#lmyc-space-parallax .lmyc-parallax-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

#lmyc-space-parallax .zoom-mobile-img {
  display: none;
}

#lmyc-space-parallax .lmyc-space-parallax-reveal {
  position: relative;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(2.5rem);
  pointer-events: none;
  will-change: opacity, transform;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

#lmyc-space-parallax.is-revealed .lmyc-space-parallax-reveal,
#lmyc-space-parallax.animation-complete .lmyc-space-parallax-reveal {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

#lmyc-space-parallax .lmyc-space-parallax-reveal .lmyc-space-collage {
  margin-top: 0;
}

@media screen and (max-width: 767px) {
  #lmyc-space-parallax .lmyc-space-parallax-pin {
    min-height: 200vh;
  }

  #lmyc-space-parallax .zoom-desktop-img {
    display: none;
  }

  #lmyc-space-parallax .zoom-mobile-img {
    display: block;
  }

  #lmyc-space-parallax .lmyc-parallax-img-frame {
    width: 78%;
    height: 68%;
    border-radius: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #lmyc-space-parallax .lmyc-space-parallax-pin {
    min-height: auto;
  }

  #lmyc-space-parallax .lmyc-space-parallax-pin > .parallax-section {
    position: relative;
    height: auto;
    min-height: 70vh;
  }

  #lmyc-space-parallax .parallax-zoom-img {
    display: none;
  }

  #lmyc-space-parallax .lmyc-parallax-img-frame {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
  }

  #lmyc-space-parallax .lmyc-space-parallax-reveal {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
}
