.wall.yacht {
  position:relative;
  isolation:isolate;
  padding:0;
  background:#cec3b2 url("/jacht.webp") center / 100% 100% no-repeat;
}

.wall.yacht .frame {
  --cm:calc(100cqw / 448);
  --x:calc(30.8cqw + var(--slot) * (var(--outer) + 1.8cqw));
  --y:27.8cqw;
  left:var(--yacht-x,var(--x));
  top:var(--yacht-y,var(--y));
  transform:translate(var(--zoom-x,0px),var(--zoom-y,0px)) scale(var(--zoom-scale,1))
    var(--yacht-active-projection,var(--yacht-project,matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)));
  border-color:
    color-mix(in srgb,var(--frame) 77%,#e8e4dc)
    color-mix(in srgb,var(--frame) 70%,#e6edf0)
    color-mix(in srgb,var(--frame) 78%,#746d63)
    color-mix(in srgb,var(--frame) 77%,#99978d);
  box-shadow:-.20cqw .15cqw .23cqw #211d1864,-.52cqw .33cqw .74cqw #31261744;
}

.wall.yacht .frame.is-zoomed {
  --yacht-active-projection:matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);
}

.wall.yacht .frame img {
  filter:contrast(.93) saturate(.89) brightness(.82);
}

.yacht-water,.yacht-gleam {
  display:none;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}

.wall.yacht :is(.yacht-water,.yacht-gleam) { display:block }
.yacht-gleam { z-index:1;mix-blend-mode:screen }


/* Match the blue upholstery and enamel, with lighter bevels toward the window. */
.wall.yacht[data-frame-color="#345c86"] .frame {
  border-color:
    color-mix(in srgb,var(--frame) 87%,#dce4ec)
    color-mix(in srgb,var(--frame) 83%,#e0e9ef)
    color-mix(in srgb,var(--frame) 90%,#252a36)
    color-mix(in srgb,var(--frame) 88%,#485b6c);
}
.wall.yacht.has-profile[data-frame-color="#345c86"] .frame {
  --profile-finish:color-mix(in srgb,var(--frame) 94%,#a1aabc);
}
