.fio-shop {
  width: min(1440px, calc(100% - 2 * clamp(18px, 5vw, 80px)));
  margin-inline: auto;
  padding-block: var(--fio-content-top) clamp(36px, 6vw, 84px);
  font: 400 16px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shop-photo-grade: contrast(1.025) saturate(.94) brightness(1.008);
  --shop-studio-background: #9e7c5c url('/shop/unframed-kraft.webp') center / cover no-repeat;
}

.fio-shop-catalogue {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 7vw, 96px) clamp(22px, 4vw, 56px);
}

.fio-shop-drawing {
  display: grid;
  align-content: start;
  gap: 20px;
}

.fio-shop-gallery { margin: 0; }

.fio-shop-stage {
  position: relative;
  touch-action: pan-y pinch-zoom;
  aspect-ratio: 1122 / 1402;
  overflow: hidden;
  filter: var(--shop-photo-grade);
}

.fio-shop-scene,
.fio-shop-mockup,
.fio-shop-frame {
  position: absolute;
  inset: 0;
}

.fio-shop-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: center / 100% 100% no-repeat url('/shop/drawing-01.webp');
}

.fio-shop-mount {
  position: absolute;
  inset: 32.38% 34.76% 34.52% 35.29%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #ded9cc;
  box-shadow: inset 0 1px 3px #30231050;
  --paper-fit: 138.1%;
}

.fio-shop-paper {
  width: min(100%, calc(var(--paper-ratio) * var(--paper-fit)));
}

.fio-shop-paper img {
  display: block;
  width: 100%;
  height: auto;
  clip-path: var(--paper-mask);
  filter: brightness(var(--paper-exposure, 1));
}

.fio-shop-catalogue [data-framed-photo] .fio-shop-gallery:has([value="framed"]:checked) .fio-shop-mount {
  opacity: 0;
}

.fio-shop-gallery:has([value="unframed"]:checked) .fio-shop-stage {
  background: var(--shop-studio-background);
}

.fio-shop-gallery:has([value="unframed"]:checked) .fio-shop-frame::before { content: none; }

.fio-shop-gallery:has([value="unframed"]:checked) .fio-shop-paper {
  filter: drop-shadow(-3px 5px 4px #3024184d) drop-shadow(0 1px 1px #23180e33);
}

.fio-shop-gallery:has([value="unframed"]:checked) .fio-shop-mount {
  inset: 10%;
  background: none;
  box-shadow: none;
  overflow: visible;
  transform: rotate(-3deg);
  --paper-fit: 124.96%;
}

.fio-shop-catalogue .fio-shop-gallery:has([value="framed"]:checked) .fio-shop-scene {
  transform: scale(1.32);
  transform-origin: 50.36% 48.9%;
}

.fio-shop-gallery:has([value="room"]:checked) .fio-shop-scene { opacity: 0; }

.fio-shop-room {
  position: absolute;
  inset: 0;
  display: none;
  container-type: size;
  overflow: hidden;
  --room-image: var(--room-portrait);
  --room-ratio: var(--room-portrait-ratio);
  /* Fill the viewport on both sides of the artwork's anchor. */
  --room-plate-width: max(100cqh * var(--room-ratio), 50cqw / min(var(--room-frame-center), 1 - var(--room-frame-center)));
  --room-plate-height: calc(var(--room-plate-width) / (var(--room-ratio)));
  --room-object-width: min(var(--room-plate-width) * var(--room-frame-scale) * var(--room-art-scale, 1), var(--room-max-frame-width, 100cqw), var(--room-object-max-height, 95cqh) * var(--room-art-ratio, 539 / 660));
  --room-object-center-y: calc(var(--room-plate-height) * var(--room-frame-y));
  --room-reference-top: clamp(calc(100cqh - var(--room-plate-height)), calc(42cqh - var(--room-object-center-y)), 0px);
  /* Preserve the hanging height in the photo while centering the frame on screen. */
  --room-object-half-height: calc(var(--room-object-width) / (var(--room-art-ratio, 539 / 660)) / 2);
  --room-art-lift: clamp(0px, calc(var(--room-reference-top) + var(--room-object-center-y) - var(--room-object-half-height) - 2.5cqh), 15cqh);
  --room-shadow-x: .019;
  --room-shadow-y: .027;
  --room-shadow-softness: .022;
  --room-shadow-color: #3c2d2459;
  --room-contact-color: #352c2866;
  --room-light-angle: 140deg;
  --room-highlight: #fff5e63d;
  --room-shade: #4f3d3330;
  --room-frame-exposure: .98;
  --room-frame-saturation: .90;
}

.fio-shop-drawing:has([value="room"]:checked) .fio-shop-room { display: block; }

.fio-shop-room-plate {
  position: absolute;
  top: calc(50cqh - var(--room-object-center-y) + var(--room-art-lift));
  left: 50%;
  width: var(--room-plate-width);
  aspect-ratio: var(--room-ratio);
  transform: translateX(calc(-100% * var(--room-frame-center)));
  background: #d5d1ce var(--room-image) center / 100% 100% no-repeat;
}

/* Overlap the wall extension to cover fractional-pixel gaps at the photo edge. */
.fio-shop-room-plate::before {
  content: "";
  position: absolute;
  inset: auto 0 calc(100% - 8px);
  height: calc(50cqh + 8px);
  background: #d5d1ce var(--room-image) center top / 100% 10000% no-repeat;
  mask-image: linear-gradient(to bottom, transparent, #000000 5px);
  transform: scaleY(-1);
  pointer-events: none;
}

.fio-shop-room-object {
  position: absolute;
  top: calc(var(--room-object-center-y) - var(--room-art-lift));
  left: calc(100% * var(--room-frame-center));
  width: var(--room-object-width);
  aspect-ratio: var(--room-art-ratio, 539 / 660);
  transform: translate(-50%, -50%);
}

/* Keep the cast shadow separate from the lit face of the frame. */
.fio-shop-room-object::before,
.fio-shop-room-object::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.fio-shop-room-object::before {
  inset: 1.2% .8% .7% 1%;
  background: var(--room-shadow-color);
  transform: translate(calc(var(--room-object-width) * var(--room-shadow-x)), calc(var(--room-object-width) * var(--room-shadow-y)));
  filter: blur(calc(var(--room-object-width) * var(--room-shadow-softness)));
}

.fio-shop-room-object::after {
  inset: .45% .55% .2% .7%;
  background: var(--room-contact-color);
  transform: translateY(calc(var(--room-object-width) * .006));
  filter: blur(calc(var(--room-object-width) * .006));
  z-index: 0;
}

/* Crop the silver frame and kraft mat from the shared wall photograph. */
.fio-shop-room-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: polygon(.25% .3%, 98.75% .25%, 99.55% 99.5%, .35% 99.65%);
  z-index: 1;
  isolation: isolate;
  filter: brightness(var(--room-frame-exposure)) saturate(var(--room-frame-saturation));
}

.fio-shop-room-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--room-light-angle), var(--room-highlight), transparent 47%, var(--room-shade));
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.fio-shop-room-face .fio-shop-mount {
  background: linear-gradient(var(--room-light-angle), #eee4d2, #d3cabb);
  box-shadow: inset 0 1px 2px #34271960;
}

[data-original-frame] .fio-shop-room-face .fio-shop-mount {
  background: none;
  box-shadow: none;
}

.fio-shop-room-face .fio-shop-mockup {
  inset: -53.939% auto auto -54.917%;
  width: 208.163%;
  height: 212.424%;
}

.fio-shop-room[data-room="candles"] {
  --room-portrait: url('/shop/room-candles.webp');
  --room-wide: url('/shop/room-candles-center.webp');
  --room-portrait-ratio: 1086 / 1449;
  --room-frame-center: .46;
  --room-frame-y: .245;
  --room-frame-scale: .32;
  --room-shadow-x: -.017;
  --room-light-angle: 218deg;
  --room-highlight: #fbfcff56;
  --room-shade: #594c4139;
}

.fio-shop-room[data-room="speaker"] {
  --room-portrait: url('/shop/room-speaker.webp');
  --room-wide: url('/shop/room-speaker-center.webp');
  --room-portrait-ratio: 1152 / 1365;
  --room-frame-center: .453;
  --room-frame-y: .40;
  --room-frame-scale: .413;
  --room-shadow-x: .011;
  --room-shadow-softness: .028;
  --room-shadow-color: #3b342e45;
  --room-highlight: #f7f9ff38;
  --room-frame-exposure: .96;
}

.fio-shop-room[data-room="stairs"] {
  --room-portrait: url('/shop/room-stairs-clean.webp');
  --room-wide: url('/shop/room-stairs-center-clean.webp');
  --room-portrait-ratio: 1086 / 1448;
  --room-frame-center: .55;
  --room-frame-y: .305;
  --room-frame-scale: .226;
  --room-shadow-x: -.008;
  --room-shadow-y: .025;
  --room-shadow-softness: .032;
  --room-shadow-color: #382d2248;
  --room-light-angle: 188deg;
  --room-highlight: #fff0d14d;
  --room-frame-exposure: .95;
}

.fio-shop-room[data-room="shelf"] {
  --room-portrait: url('/shop/room-shelf-no-props.webp?v=2');
  --room-wide: url('/shop/room-shelf-center-no-props.webp?v=2');
  --room-portrait-ratio: 1028 / 1530;
  --room-frame-center: .5;
  --room-frame-y: .42;
  --room-frame-scale: .407;
  --room-shadow-x: .020;
  --room-shadow-y: .020;
  --room-shadow-softness: .026;
  --room-light-angle: 123deg;
  --room-highlight: #f2f6ff38;
  --room-frame-exposure: .96;
}

.fio-shop-open {
  position: absolute;
  inset: 0;
  cursor: zoom-in;
}

.fio-shop-open:focus-visible { outline: 3px solid #001fff; outline-offset: -3px; }

.fio-shop-views {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.fio-shop-views label {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding-inline: 4px;
  border-bottom: 1px solid #00000044;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.fio-shop-views label:hover,
.fio-shop-views input:checked + label { color: #001fff; }
.fio-shop-views input:checked + label { border-bottom-color: currentColor; }
.fio-shop-views input:focus-visible + label { outline: 2px solid #001fff; outline-offset: -3px; }

.fio-shop-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px 12px;
}

.fio-shop-details :is(h1, h2) {
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

.fio-shop-details .fio-shop-price {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.fio-shop-facts,
.fio-shop-actions { grid-column: 1 / -1; }

.fio-shop-facts {
  display: grid;
  gap: 2px;
  font-size: max(12px, calc(clamp(12px, 1.15vw, 16px) * var(--fio-label-scale)));
  line-height: 1.35;
}

.fio-shop-facts p { margin: 0; }

.fio-shop-actions,
.fio-shop-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.fio-shop-info { margin-bottom: 16px; }
.fio-shop-actions { border-top: 1px solid #00000033; padding-top: 7px; }
.fio-shop-action-links { display: grid; gap: 2px; }
.fio-shop-action-links small,
.fio-shop-info small { font-size: 11px; }
.fio-shop-actions a,
.fio-shop-info a { color: inherit; text-underline-offset: .2em; }
.fio-shop-actions a:is(:hover, :focus-visible),
.fio-shop-info a:is(:hover, :focus-visible) { color: #001fff; }

.fio-shop-buy {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

a.fio-shop-buy:is(:hover, :focus-visible) { color: #001fff; }
a.fio-shop-buy:focus-visible { outline: 2px solid #001fff; outline-offset: 3px; }

.fio-shop-catalogue .fio-shop-drawing { position: relative; gap: 12px; }

.fio-shop-catalogue .fio-shop-open { z-index: 1; cursor: pointer; touch-action: pan-y pinch-zoom; }
.fio-shop-catalogue .fio-shop-gallery { position: relative; }
.fio-shop-catalogue .fio-shop-controls {
  position: absolute;
  z-index: 2;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.fio-shop-catalogue .fio-shop-views {
  grid-template-columns: repeat(3, 44px);
  gap: 2px;
  padding: 0;
  background: transparent;
  color: #000000;
}

.fio-shop-catalogue .fio-shop-views label {
  box-sizing: border-box;
  width: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.fio-shop-catalogue .fio-shop-views input:checked + label { background: transparent; }
.fio-shop-view-icon { display: block; width: 22px; height: 22px; }
.fio-shop-catalogue .fio-shop-details { align-items: center; }

.fio-shop-catalogue .fio-shop-details h2 { font-size: calc(clamp(21px, 2.05vw, 29px) * var(--fio-label-scale)); }
.fio-shop-catalogue .fio-shop-price { font-size: clamp(15px, 1.3vw, 18px); }
.fio-shop-catalogue .fio-shop-buy { gap: 0; }

@media (min-width: 920px) {
  .fio-shop-catalogue { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .fio-shop-catalogue { grid-template-columns: minmax(0, 1fr); }
}

body:has(.fio-shop-detail) { overflow: hidden; }

.fio-shop-detail {
  position: fixed;
  inset: 0;
  width: auto;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #d5d1ce url('/shop/framed-wall.webp') center / cover no-repeat;
  --detail-edge: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
}

.fio-shop-detail .fio-shop-room {
  --room-object-max-height: min(64cqh, max(24cqh, calc(100cqh - 320px)));
}

.fio-shop-detail .fio-shop-drawing {
  box-sizing: border-box;
  position: relative;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  padding-top: calc(70px + env(safe-area-inset-top));
}

.fio-shop-detail .fio-shop-gallery {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 44px;
  min-height: 0;
}

.fio-shop-detail .fio-shop-stage {
  aspect-ratio: auto;
  container-type: size;
  filter: none;
}

.fio-shop-detail:has([value="unframed"]:checked) { background: var(--shop-studio-background); }
.fio-shop-detail .fio-shop-frame::before { filter: var(--shop-photo-grade); }
.fio-shop-detail .fio-shop-gallery:has([value="unframed"]:checked, [value="room"]:checked) .fio-shop-stage { background: none; }

.fio-shop-detail .fio-shop-scene {
  inset: 50% auto auto 50%;
  width: calc(min(86cqw, 73cqh) / .4777);
  aspect-ratio: 1122 / 1402;
  transform: translate(-50.36%, -48.9%);
}

.fio-shop-detail .fio-shop-gallery:has([value="unframed"]:checked) .fio-shop-scene {
  width: min(100cqw, 80.03cqh);
  transform: translate(-50%, -50%);
}

.fio-shop-detail .fio-shop-gallery:has([value="framed"]:checked) .fio-shop-frame::before {
  mask-image: linear-gradient(transparent, #000000 8% 92%, transparent);
}

.fio-shop-detail .fio-shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: var(--detail-edge);
}

.fio-shop-detail .fio-shop-gallery:has([value="room"]:checked) .fio-shop-controls {
  filter: drop-shadow(0 0 1px #faf8f2d9) drop-shadow(0 0 1px #faf8f2a8);
}

.fio-shop-detail .fio-shop-views { grid-template-columns: repeat(3, 34px); }

.fio-shop-detail .fio-shop-views label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: inherit;
  font-size: 0;
}

.fio-shop-detail .fio-shop-views :is(label:hover, input:checked + label) { color: inherit; }

.fio-shop-detail .fio-shop-views label::before {
  content: "";
  box-sizing: border-box;
  width: clamp(11px, .98vw, 19px);
  height: clamp(11px, .98vw, 19px);
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .55;
}

.fio-shop-detail .fio-shop-views label:hover::before,
.fio-shop-detail .fio-shop-views input:checked + label::before { opacity: 1; }
.fio-shop-detail .fio-shop-views input:checked + label::before { background: currentColor; }

.fio-shop-arrows { display: flex; align-items: center; }

.fio-shop-arrows a,
.fio-shop-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.fio-shop-arrows a { font-size: clamp(23px, 2vw, 34px); }

.fio-shop-back {
  position: absolute;
  z-index: 1;
  top: calc(34px + env(safe-area-inset-top));
  left: max(54px, calc(env(safe-area-inset-left) + 45px));
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}

.fio-shop-arrows a:is(:hover, :focus-visible),
.fio-shop-back:is(:hover, :focus-visible) { color: #001fff; }

.fio-shop-detail .fio-shop-details {
  position: relative;
  padding: 7px var(--detail-edge) max(12px, env(safe-area-inset-bottom));
}

.fio-shop-detail .fio-shop-details h1 { font-size: calc(clamp(25px, 7vw, 40px) * var(--fio-label-scale)); }
.fio-shop-detail .fio-shop-details .fio-shop-price { margin: 0; font-size: clamp(17px, 4.8vw, 24px); }

@media (min-width: 761px) and (min-aspect-ratio: 1/1), (min-width: 540px) and (max-height: 470px) and (min-aspect-ratio: 4/3) {
  .fio-shop-detail {
    --frame-width: min(35.5vw, 62.8dvh, calc((100dvh - 132px) * .816));
    --controls-top: calc(48% + var(--frame-width) * .613 + 6px);
  }

  .fio-shop-detail .fio-shop-drawing { display: block; padding: 0; }
  .fio-shop-detail .fio-shop-gallery { display: block; position: absolute; inset: 0; }

  .fio-shop-detail .fio-shop-stage {
    position: absolute;
    inset: 0;
  }

  .fio-shop-detail .fio-shop-scene {
    top: 48%;
    width: calc(var(--frame-width) / .4777);
  }

  .fio-shop-detail .fio-shop-gallery:has([value="framed"]:checked) .fio-shop-frame::before {
    mask-image: linear-gradient(90deg, transparent, #000000 22% 78%, transparent);
  }

  .fio-shop-detail .fio-shop-gallery:has([value="unframed"]:checked) .fio-shop-scene {
    width: min(100cqw, calc(var(--frame-width) * 1.18));
  }

  .fio-shop-detail .fio-shop-room {
    --room-image: var(--room-wide);
    --room-ratio: 1672 / 941;
    --room-max-frame-width: 62cqh;
    --room-object-max-height: 64cqh;
  }

  .fio-shop-detail .fio-shop-room[data-room="candles"] {
    --room-frame-center: .5;
    --room-frame-y: .36;
    --room-frame-scale: .232;
    --room-shadow-x: .024;
    --room-light-angle: 130deg;
    --room-highlight: #fff1d846;
  }

  .fio-shop-detail .fio-shop-room[data-room="speaker"] {
    --room-frame-center: .5;
    --room-frame-y: .41;
    --room-frame-scale: .233;
  }

  .fio-shop-detail .fio-shop-room[data-room="stairs"] {
    --room-frame-center: .469;
    --room-frame-y: .34;
    --room-frame-scale: .152;
  }

  .fio-shop-detail .fio-shop-room[data-room="shelf"] {
    --room-frame-center: .5;
    --room-frame-y: .42;
    --room-frame-scale: .221;
    --room-highlight: #ffe8c14b;
    --room-frame-exposure: .99;
  }

  .fio-shop-detail .fio-shop-controls {
    position: absolute;
    top: var(--controls-top);
    left: 50%;
    width: max(190px, var(--frame-width));
    padding: 0;
    transform: translateX(-50%);
  }

  .fio-shop-back {
    top: var(--controls-top);
    left: max(2.8vw, env(safe-area-inset-left));
  }

  .fio-shop-detail .fio-shop-details {
    position: absolute;
    top: 48.5%;
    inset-inline: 70vw max(6.8vw, env(safe-area-inset-right));
    padding: clamp(8px, 1.1vw, 24px);
    transform: translateY(-50%);
  }

  .fio-shop-detail .fio-shop-details h1 {
    font-size: clamp(20px, 2.5vw, 50px);
  }

  .fio-shop-detail .fio-shop-details .fio-shop-price {
    font-size: clamp(17px, 1.6vw, 35px);
  }

  .fio-shop-detail .fio-shop-buy {
    min-height: clamp(38px, 3.2vw, 66px);
    font-size: clamp(13px, 1.18vw, 25px);
  }
}

@media (min-width: 540px) and (max-width: 760px) and (max-height: 470px) and (min-aspect-ratio: 4/3) {
  .fio-shop-detail .fio-shop-details { inset-inline-end: max(4vw, env(safe-area-inset-right)); }
}

.fio-shop-drawing[data-original-frame] .fio-shop-room {
  --room-art-scale: 1.16;
  --room-art-ratio: var(--art-ratio);
}

[data-original-frame] .fio-shop-room-face {
  clip-path: none;
}

[data-original-frame] .fio-shop-room-face .fio-shop-mockup {
  inset: 0;
  width: auto;
  height: auto;
}

[data-original-frame] .fio-shop-frame::before {
  content: none;
}

[data-original-frame] .fio-shop-mount {
  inset: 0;
  background: none;
  box-shadow: none;
}

[data-original-frame] .fio-shop-paper {
  width: min(100%, calc(var(--art-ratio) * 100%));
}

[data-original-frame] .fio-shop-room .fio-shop-paper,
.fio-shop-detail [data-original-frame] .fio-shop-paper {
  width: 100%;
}

.fio-shop-catalogue [data-shared-wall] .fio-shop-gallery:has([value="framed"]:checked) .fio-shop-stage {
  background: #d5d1ce url('/shop/framed-wall.webp') center / cover no-repeat;
}

.fio-shop-catalogue [data-shared-wall] .fio-shop-gallery:has([value="framed"]:checked) .fio-shop-scene {
  filter: drop-shadow(-5px 7px 5px #30271955);
}

.fio-shop-catalogue [data-shared-wall]:not([data-original-frame]) .fio-shop-gallery:has([value="framed"]:checked) .fio-shop-frame::before {
  clip-path: inset(25.39% 25.58% 27.53% 26.38%);
}

.fio-shop-catalogue [data-original-frame] .fio-shop-gallery:has([value="framed"]:checked) .fio-shop-scene {
  transform: none;
}

.fio-shop-catalogue [data-original-frame] .fio-shop-gallery:has([value="framed"]:checked) .fio-shop-mount {
  inset: 0 0 2.2%;
}

.fio-shop-catalogue [data-original-frame] .fio-shop-gallery:has([value="framed"]:checked) .fio-shop-paper {
  width: 63.4%;
}

@media (min-width: 701px) and (max-width: 919px) {
  .fio-shop-catalogue [data-original-frame] { grid-column: 1; }
}

.fio-shop-detail [data-original-frame] .fio-shop-scene {
  width: min(86cqw, 66cqh * var(--art-ratio));
  aspect-ratio: var(--art-ratio);
  transform: translate(-50%, -50%);
}

.fio-shop-catalogue [data-original-frame] .fio-shop-views {
  grid-template-columns: repeat(2, 44px);
}

.fio-shop-detail [data-original-frame] .fio-shop-views {
  grid-template-columns: repeat(2, 34px);
}

.fio-shop-buy:disabled {
  cursor: default;
  opacity: .65;
}

@media (pointer: coarse) {
  .fio-shop-detail .fio-shop-views { grid-template-columns: repeat(3, 44px); }
  .fio-shop-detail [data-original-frame] .fio-shop-views { grid-template-columns: repeat(2, 44px); }
}


.fio-shipping-guide { max-width: 760px; }
.fio-shipping-guide h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -.045em;
}
.fio-shipping-guide table {
  width: 100%;
  margin-block: 24px;
  border-collapse: collapse;
  text-align: left;
  font-size: clamp(12px, 2.5vw, 16px);
}
.fio-shipping-guide :is(th, td) {
  padding: 10px 5px;
  border-bottom: 1px solid #00000044;
  vertical-align: top;
}
.fio-shipping-guide th:first-child { padding-left: 0; }

/* (V)ision: preserve the original photograph's native proportions. */
[data-original-frame] .fio-shop-mount {
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  min-width: 0; min-height: 0;
}
[data-original-frame] .fio-shop-paper {
  width: 100%; height: 100%; min-width: 0; min-height: 0; aspect-ratio: var(--art-ratio);
}
[data-original-frame] .fio-shop-paper img {
  width: 100%; height: 100%; aspect-ratio: var(--art-ratio); object-fit: contain;
}
.fio-shop-catalogue [data-original-frame] .fio-shop-gallery:has([value="framed"]:checked) .fio-shop-paper {
  width: auto; height: 90%; max-width: 90%; aspect-ratio: var(--art-ratio);
}
[data-original-frame] .fio-shop-room {
  --room-shadow-x: .018;
  --room-shadow-y: .022;
  --room-shadow-softness: .022;
  --room-shadow-color: #5a44362e;
  --room-contact-color: #49372b40;
}
[data-original-frame] .fio-shop-room-face {
  filter: brightness(.97) saturate(.90) sepia(.20);
}
[data-original-frame] .fio-shop-room-face::after {
  background: linear-gradient(130deg, #fff3d91a, #c0996c1f);
  mix-blend-mode: multiply;
}

