body.fio-site-page:has(.fio-shop-installation) { height: 100svh; overflow: hidden; }
.fio-shop-installation {
  --work-page-inset: max(1.46vw, env(safe-area-inset-left), env(safe-area-inset-right));
  --work-category-row: 20px;
  --installation-category-size: clamp(14px, calc(var(--fio-caption-size) * .95), 32px);
  --installation-index-top: calc(var(--fio-menu-top) + (44px - var(--work-category-row)) / 2);
  --installation-mobile-top: calc(var(--installation-index-top) + 4 * max(var(--work-category-row), var(--installation-category-size) * 1.3) + 24px);
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: #f1f1f1;
  font-family: Helvetica Neue,Helvetica,Arial,sans-serif;
}
.fio-shop-installation *, .fio-shop-installation *::before, .fio-shop-installation *::after { box-sizing: border-box; }
.installation-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  --horizon: 62%;
}
.installation-stage::before, .installation-stage::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  background-image: url("/shop/installation-studio-v8.png");
  pointer-events: none;
}
.installation-stage::before { top: 0; height: var(--horizon); background-size: 500% auto; background-position: left top; }
.installation-stage::after { top: var(--horizon); bottom: 0; background-size: 1000% auto; background-position: left bottom; border-top: 3px solid #f7f7f5; }
.installation-artboard { position: absolute; z-index: 1; isolation: isolate; }
.installation-backdrop { display: block; width: 100%; height: 100%; }
.installation-wall-sculpture {
  position: absolute;
  top: 35.33%;
  left: 73.325%;
  display: block;
  width: 3.71%;
  height: auto;
}
.installation-wall-sculpture img { display: block; width: 100%; height: auto; }
.installation-wall-sculpture:focus-visible { outline: 2px solid #001fff; outline-offset: 4px; }
.installation-wall-sculpture {
  /* The frontal source aligns directly with the gallery wall. */
  filter: saturate(.66) brightness(.97) drop-shadow(-1px 2px 1px #25242742) drop-shadow(-4px 5px 4px #25242731);
}
.installation-original {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  overflow: hidden;
  transform-origin: 0 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.installation-original.is-positioned { display: block; }
.installation-original img { display: block; width: 100%; height: 100%; }
.installation-original[data-artwork="drawing"] { filter: grayscale(1) brightness(1.42); }
.installation-original[data-artwork="vision"] img {
  position: absolute;
  top: -1%;
  left: -1.2%;
  width: 102.4%;
  height: 102%;
}

.installation-original[data-artwork="drawing"] img {
  position: absolute;
  top: -.6%;
  left: -.9%;
  width: 101.8%;
  height: 101.2%;
}
.installation-filter-defs { position: absolute; width: 0; height: 0; pointer-events: none; }
.installation-original[data-artwork="trousers"] {
  overflow: visible;
  mix-blend-mode: normal;
  filter: none;
}
.installation-contact-shadow {
  position: absolute;
  inset: 0;
  filter: url("#installation-denim-contact");
  pointer-events: none;
}
.installation-original[data-artwork="trousers"] > img { position: relative; z-index: 1; }
.installation-original[data-artwork="trousers"] img {
  /* Clean the source alpha before deriving the floor shadow, without cutting the cloth. */
  clip-path: polygon(39% 0%, 100% 0%, 100% 100%, 45% 100%, 45% 90%, 32% 90%, 0% 84%, 0% 64%);
}
.installation-piece {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  transform-origin: 0 0;
  background: transparent;
  color: #001fff;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.installation-piece:focus-visible { outline: var(--outline, 3px) solid #001fff; outline-offset: var(--outline, 3px); }

.installation-index {
  position: absolute;
  z-index: 5;
  top: var(--installation-index-top);
  left: calc(var(--work-page-inset) + clamp(60px, 4.8vw, 112px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: max-content;
  max-width: calc(100% - 2 * var(--work-page-inset) - clamp(60px, 4.8vw, 112px));
  color: #000000;
}
.installation-index a {
  display: block;
  flex: none;
  min-height: var(--work-category-row);
  color: #000000;
  white-space: nowrap;
  text-transform: uppercase;
  text-decoration: none;
}
.installation-link-label {
  text-decoration: none;
}
.installation-index a:hover { text-decoration: underline; text-underline-offset: .18em; }
.installation-index a:focus-visible { outline: 2px solid #000000; outline-offset: 3px; }
@media (max-width: 650px) {
  .fio-shop-installation {
    --work-page-inset: max(12px, env(safe-area-inset-left), env(safe-area-inset-right));
    --work-category-row: 24px;
    --installation-index-top: max(60px, calc(env(safe-area-inset-top) + 56px));
    --installation-mobile-top: calc(96px + env(safe-area-inset-top));
  }
  .installation-index { display: none; }
  .installation-mobile-label {
    justify-content: center;
    text-align: center;
  }
}


/* A phone visits the exhibition vertically, with each object at a readable size. */
.installation-mobile { display: none; }
@media (orientation: portrait), (max-width: 650px) {
  body.fio-site-page:has(.fio-shop-installation) {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .fio-shop-installation { height: auto; min-height: 100svh; overflow: clip; }
  .installation-stage { display: none; }
  .installation-mobile { display: block; }
  .installation-mobile-wall {
    padding-top: var(--installation-mobile-top);
    padding-bottom: max(40px, env(safe-area-inset-bottom));
    background: #e9e9eb url("/shop/installation-studio-v8.png") left top / 2000% auto;
  }
  .installation-mobile-piece {
    display: block;
    width: min(100%, 760px);
    margin-inline: auto;
    padding-bottom: 34px;
    color: #000000;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .installation-mobile-piece:last-child { padding-bottom: 0; }
  .installation-mobile-view {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    mask-image: linear-gradient(to right, transparent, #000000 5%, #000000 95%, transparent), linear-gradient(to bottom, transparent, #000000 5%, #000000 94%, transparent);
    mask-composite: intersect;
  }
  .installation-mobile-view--upright { mask-image: none; }
  .installation-mobile-product {
    position: absolute;
    inset: 4% 13% 5%;
    display: grid;
    place-items: center;
    filter: drop-shadow(2px 5px 4px #00000044);
  }
  .installation-mobile-product img { display: block; width: 100%; height: 100%; object-fit: contain; }
  .installation-mobile-board { visibility: hidden; pointer-events: none; }
  .installation-mobile-view.is-ready .installation-mobile-board { visibility: visible; }
  .installation-mobile-view.is-ready .installation-mobile-fallback { display: none; }
  .installation-mobile-fallback { position: absolute; inset: 7% 15%; display: grid; place-items: center; }
  .installation-mobile-fallback img { display: block; width: 100%; height: 100%; object-fit: contain; }
  .installation-mobile-label {
    display: flex;
    align-items: center;
    min-height: 48px;
    margin: 3px 24px 0;
    text-transform: uppercase;
  }
  .installation-mobile-piece:focus-visible { outline: 2px solid #001fff; outline-offset: -4px; }
}

