/* HOME mood: four full-screen image chapters. Scoped to this section only. */
.mood {
  width: 100%;
  height: auto;
  overflow: visible;
  background: #fff;
  isolation: isolate;
}

.mood > .container {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.mood .mood_card {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  aspect-ratio: auto;
  overflow: hidden;
  background: var(--y-palette-sky, #dae4f4);
  isolation: isolate;
}

.mood .mood_card > img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* The supplied product photographs have white negative space on the left. */
.mood .mood_img_03::before,
.mood .mood_img_04::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.mood .mood_img_03::before,
.mood .mood_img_04::before { display: none; }

.mood .mood_card::after,
.mood .mood_card:hover::after,
.mood .mood_card:focus-within::after {
  display: none;
}

.mood .mood_hover,
.mood .mood_card:hover .mood_hover,
.mood .mood_card:focus-within .mood_hover {
  z-index: 3;
  align-items: flex-start;
  justify-content: center;
  /* Only the side inset changes; preserve the caption's existing vertical inset. */
  padding: clamp(40px, 3.75vw, 72px) var(--y-layout-page-gutter);
  color: var(--y-color-text-accent);
  text-align: left;
  opacity: 1;
  transform: none;
}

#yuriu-site .mood .mood_hover_title {
  width: min(600px, 42%);
  max-width: 100%;
  margin: 0;
  text-shadow: none;
  text-wrap: balance;
}

/* Motion enhancement. Without JS or with reduced motion, panels simply stack. */
.mood.is-interactive {
  height: calc(var(--mood-panels, 4) * 100vh);
  height: calc(var(--mood-panels, 4) * 100svh);
}

.mood.is-interactive > .container {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.mood.is-interactive .mood_card {
  position: absolute;
  inset: 0;
  height: 100%;
  transform: translate3d(0, 100%, 0);
  border-radius: 0;
  will-change: transform;
}

.mood.is-interactive .mood_card:first-child { transform: none; }
.mood.is-interactive .mood_card > img { will-change: transform; }
.mood.is-interactive .mood_hover { will-change: opacity, transform; }

/* Retain the caption's former vertical inset below the shared tablet breakpoint. */
@media (max-width: 1024px) {
  .mood .mood_hover,
  .mood .mood_card:hover .mood_hover,
  .mood .mood_card:focus-within .mood_hover { padding: clamp(24px, calc(15.325px + 2.40964vw), 40px) var(--y-layout-page-gutter); }
}

/* Phones/tablets: the source photos are landscape, so a full-height portrait panel
   crops ~75% away and upscales the rest. Show each photo as a 4:3 frame in a
   normal stack instead of the pinned full-screen sequence. */
@media (max-width: 768px) {
  .mood.is-interactive { height: auto; }
  .mood.is-interactive > .container {
    position: static;
    height: auto;
    overflow: visible;
  }
  .mood .mood_card,
  .mood.is-interactive .mood_card {
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 4 / 3;
    transform: none !important;
    border-radius: 0 !important;
    will-change: auto;
  }
  .mood.is-interactive .mood_card > img,
  .mood.is-interactive .mood_hover { will-change: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .mood .mood_card,
  .mood .mood_hover,
  .mood .mood_card::after { transition: none; }
}
