/* The photograph keeps its own proportions. The surrounding paper carries the colour of the set. */
#full {
  --paper-stock: #f2eee6;
  --mount: #835d41;
  --edge: linear-gradient(115deg, #9a744c, #514230 46%, #ae9069);
  --cinema: #161619;
}
#full[data-room="darkroom"] {
  --paper-stock: #f4ede5;
  --mount: #7f312a;
  --cinema: #250e0e;
  --edge: repeating-linear-gradient(90deg, #422521 0 8px, #c1a48e 8px 13px, #422521 13px 24px);
}
#full[data-room="kitchen"], #full[data-room="finish"] {
  --mount: #a94c27;
  --edge: repeating-conic-gradient(#aa4933 0 25%, #f6e4b9 0 50%) 0 0 / 12px 12px;
}
#full[data-room="train"], #full[data-room="roof"] {
  --paper-stock: #ecefeb;
  --mount: #33586b;
  --edge: repeating-linear-gradient(90deg, #284b5e 0 38px, #668999 38px 40px, #e7be77 40px 43px, #284b5e 43px 49px);
}
#full[data-room="cabin"] {
  --mount: #883e44;
  --edge: conic-gradient(from 20deg, #ac4960, #f1bd56 45deg, #de6b52 45deg 85deg, #83aaa3 85deg 135deg, #b54d5f 135deg 180deg, #f3cc65 180deg 240deg, #ea8974 240deg 293deg, #647e9d 293deg 330deg, #ac4960 330deg);
}
#full[data-room="library"], #full[data-room="reading"], #full[data-room="balcony"] {
  --mount: #45634c;
  --edge: repeating-linear-gradient(45deg,#647662 0 2px,#405641 2px 5px);
}
#full[data-room="stage"], #full[data-room="meditation"] {
  --mount: #7d3851;
  --edge: repeating-linear-gradient(90deg,#6c3341 0 3px,#b47771 4px,#733743 8px);
}
#full #fv { object-fit: contain; background: var(--cinema); }
#full .print-layout {
  box-sizing: border-box; position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain;
  display: grid; align-content: safe center; justify-content: center; align-items: center;
  grid-template-columns: minmax(0, 35rem) minmax(14rem, 26rem);
  gap: clamp(2rem, 7vw, 8rem); padding: 5rem clamp(1.25rem, 6vw, 7rem) 3rem;
  background: var(--paper-stock); color: #292621;
}
.room-print { margin: 0; min-width: 0; justify-self: center; text-align: center; }
.photo-mount {
  display: inline-grid; vertical-align: top; max-width: 100%; padding: clamp(9px, 1.2vw, 18px);
  border: 6px solid transparent;
  background: linear-gradient(#fffaf0, #fffaf0) padding-box, var(--edge) border-box;
  box-shadow: 0 1px 2px #2e252526, 0 7px 20px #342b251b;
}
.photo-mount:focus-visible { outline: 3px solid var(--mount); outline-offset: 4px; }
.photo-mount[href] { cursor: zoom-in; }
.photo-mount img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: min(65svh, 43rem);
  object-fit: contain; justify-self: center;
}
.room-print figcaption { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .65rem; }
#photo-title { color: #5c5347; font: italic 1rem/1.35 Georgia,serif; }
#fd { display: inline-flex; align-items: center; color: #544c42; font: 600 .72rem/1 Inter,sans-serif; }
#fd button { width: 36px; height: 36px; border: 0; background: transparent; color: inherit; font-size: 1.45rem; }
#full .bar { position: static; display: block; z-index: auto; padding: 0; background: transparent; color: inherit; pointer-events: auto; }
#full .bar h2 { text-wrap: balance; font: 480 clamp(2.65rem, 4.9vw, 5rem)/.99 'Abril Fatface',Georgia,serif; letter-spacing: -.045em; }
#full .bar #room-title { margin: 0 0 .9rem; color: var(--mount); font: 700 .76rem/1.25 Inter,sans-serif; letter-spacing: .11em; text-transform: uppercase; }
#full .bar #fbridge { margin: 1.1rem 0 0; max-width: 38ch; font: 450 clamp(1rem,1.4vw,1.2rem)/1.48 Inter,sans-serif; opacity: 1; }
#full .bar #fc { margin: .7rem 0 0; color: #675f54; font-size: .82rem; line-height: 1.5; opacity: 1; }
#full .bar .go {
  display: inline-block; margin: 1.45rem 0 0; padding: .7rem 0 .37rem; border-bottom: 2px solid var(--mount);
  color: #242019; background: none; letter-spacing: 0; font: 700 .94rem/1.3 Inter,sans-serif; white-space: normal;
}
#full .bar .go::after { content: " ↗"; padding-left: .25em; color: var(--mount); }
#full.projecting #freplay { display: none; }
#full.revealed .film-controls button, #full.revealed .film-controls select { background: #fffaf1; box-shadow: 0 0 0 1px #6c675333; }
.clean #proof .bar, .clean .room-print figcaption { visibility: hidden; }
@media (max-width: 660px) and (orientation:portrait) {
  #full .print-layout { grid-template-columns: minmax(0,32rem); gap: 1.4rem; padding: 4.7rem max(1.15rem, 6vw) 2rem; align-content: safe center; }
  .photo-mount img { max-height: 42svh; }
  #full .bar #room-title { margin-bottom: .45rem; }
  #full .bar #fbridge { margin-top: .7rem; }
  #full .bar .go { margin-top: .65rem; }
}
@media (max-height: 500px) and (orientation:landscape) {
  #full .print-layout { gap: 1.5rem; padding: 3.6rem 4vw 1rem; }
  .photo-mount { padding: 6px; border-width: 4px; }
  .photo-mount img { max-height: 53svh; }
  #full .bar h2 { font-size: clamp(1.65rem,4.8vw,2.75rem); }
  #full .bar #fbridge { margin-top: .45rem; font-size: .94rem; }
  #full .bar #room-title, #full .bar #fc { margin: .3rem 0; }
  #full .bar .go { margin-top: .25rem; }
}
.room-gesture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity 110ms linear; }
.room-gesture.visible { opacity: 1; }
@view-transition { navigation: auto; }
#full[data-room="gallery"].revealed #fphoto[src="frames/03.jpg"] { view-transition-name: museum-print; }
#full[data-room="roof"].revealed #fphoto[src="frames/40.jpg"] { view-transition-name: roof-print; }
::view-transition-group(museum-print), ::view-transition-group(roof-print), ::view-transition-group(root) { animation-duration: 180ms; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 0s !important; }
}
a.cell, a.roof { color: inherit; text-decoration: none; }
#full.direct.projecting #proof, #full.direct #namecard, body:has(#full.direct.on) #hello { display: none; }

#full[data-room="reading"] { --mount:#693d58; --paper-stock:#f4eadb; --edge:linear-gradient(128deg,#793f55,#d38e58 55%,#f2cf90); }
#full .bar { user-select:text; }
#full .bar .go.with-preview { display:inline-flex; align-items:center; gap:.7rem; padding:.45rem 0; }
#full .bar .with-preview img { width:clamp(4rem,9vw,7.5rem); height:auto; border:1px solid #71464a66; }
#full .bar .go.with-preview::after { padding:0; }
#full.direct .film-controls { max-width:calc(100% - 24px); }
#full.direct .film-controls button { min-height:44px; }
#full .print-layout:has(.room-print[hidden]) { grid-template-columns:minmax(0,28rem); }
#full .bar h2:focus { outline:none; }
#full.direct .room-print figcaption:has(#fd[hidden]) { display:none; }
@media (max-width:660px) and (orientation:portrait) {
  #full.direct .photo-mount img { max-height:min(36svh,22rem); }
  #full .bar .with-preview img { width:5rem; }
}
