/* Visceral Poems sheet and framed room preview. */
body.fio-site-page:has(.fio-shop-poem) { background: #E6E6E6; }
.fio-poems-heading { margin: 12px 0 clamp(28px, 4vw, 56px); }
.fio-poems-heading h1 { margin: 0 0 12px; font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -.045em; }
.fio-poems-heading p { max-width: 53ch; margin: 0; font-size: 16px; line-height: 1.4; }
.fio-poems-collection .fio-shop-info { font-size: 14px; }
.fio-shop-poem .fio-shop-stage { aspect-ratio: 1810 / 2560; filter: none; }
.fio-shop-poem .fio-poem-flat { inset: 0; width: 100%; height: 100%; transform: none; }
.fio-shop-poem .fio-poem-flat img,
.fio-shop-poem .fio-shop-room-face img { display: block; width: 100%; height: 100%; object-fit: contain; }
.fio-shop-poem .fio-shop-gallery:has([value="unframed"]:checked) .fio-shop-stage { background: transparent; }
/* White profile and passepartout for the print room previews. */
[data-white-frame] .fio-shop-room {
  --room-art-ratio: calc((var(--room-paper-ratio) + .2) / 1.2);
  --room-art-scale: 1.28;
}

.fio-shop-room-face.fio-shop-white-frame {
  box-sizing: border-box;
  padding: 2.6%;
  clip-path: none;
  background: linear-gradient(var(--room-light-angle), #FAF8F2, #fafafa 55%, #ededed);
  box-shadow: inset 1px 1px 1px #FAF8F2, inset -1px -1px 1px #cfcfcf;
}

.fio-shop-white-mat {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 8.9%;
  background: linear-gradient(var(--room-light-angle), #fcfcfb, #f7f7f6);
  box-shadow: inset 1px 1px 2px #00000024, inset -1px -1px 1px #FAF8F2;
}

.fio-shop-white-paper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #FAF8F2;
  box-shadow: 0 -1px 1px #00000021, 1px 0 1px #0000000d;
}

.fio-shop-white-paper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fio-shop-poem .fio-shop-room-object::before { inset: .5%; }
.fio-shop-poem .fio-shop-room-object::after { inset: .2%; }
.fio-shop-poem .fio-shop-facts { font-size: max(12px, calc(14px * var(--fio-label-scale))); }
.fio-shop-poem .fio-shop-views { grid-template-columns: repeat(2, 44px); }
.fio-shop-catalogue .fio-shop-poem .fio-shop-controls { position: relative; inset: auto; transform: none; display: flex; justify-content: flex-end; margin-top: 4px; }
.fio-shop-catalogue .fio-shop-poem .fio-shop-details { align-items: baseline; }
.fio-shop-catalogue .fio-shop-poem .fio-shop-price { font-size: 18px; }
.fio-shop-catalogue .fio-shop-poem .fio-shop-details h2 { font-size: calc(clamp(21px, 2vw, 28px) * var(--fio-label-scale)); }
.fio-shop-detail.fio-shop-print-detail,
.fio-shop-detail.fio-shop-print-detail:has([value="unframed"]:checked) { background: #E6E6E6; }
.fio-shop-print-detail .fio-shop-view-icon { display: none; }
.fio-shop-print-detail .fio-shop-poem .fio-shop-stage { aspect-ratio: auto; }
.fio-shop-print-detail .fio-shop-poem .fio-shop-room { --room-object-max-height: 64cqh; }
.fio-shop-print-detail .fio-shop-poem .fio-poem-flat,
.fio-shop-print-detail .fio-shop-poem .fio-shop-gallery:has([value="unframed"]:checked) .fio-poem-flat {
  inset: 50% auto auto 50%; width: min(86cqw, 70cqh * 1810 / 2560); height: auto; aspect-ratio: 1810 / 2560; transform: translate(-50%, -50%);
}
.fio-shop-print-detail .fio-shop-poem .fio-shop-views { grid-template-columns: repeat(2, 44px); }
.fio-shop-print-detail .fio-shop-poem .fio-shop-facts { font-size: max(12px, calc(14px * var(--fio-label-scale))); }
.fio-shop-print-detail .fio-shop-poem .fio-shop-controls { color: #000000; }
.fio-shop-print-detail .fio-shop-back { font-size: 14px; }
@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-print-detail { --poem-width: min(36vw, calc((100dvh - 160px) * 1810 / 2560)); --controls-top: calc(48% + var(--poem-width) * .7071823 + 12px); }
  .fio-shop-print-detail .fio-shop-poem .fio-poem-flat,
  .fio-shop-print-detail .fio-shop-poem .fio-shop-gallery:has([value="unframed"]:checked) .fio-poem-flat { top: 48%; width: var(--poem-width); }
}

