/* Architectural model study. The controls work independently of the full BIM workbench. */
figure.portfolio-model.model-study {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: center;
  width: 100%;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  background: #17262f;
  border: 1px solid #394952;
  border-radius: 18px;
  box-shadow: 0 20px 46px -30px rgb(13 32 43 / .72);
}
.model-study .orbit-stage {
  position: relative;
  width: 100%;
  background: #192933;
  user-select: none;
  color: #f8f7ef;
  overflow: hidden;
}
.model-study .orbit-stage img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  pointer-events: none;
}
.model-study[data-interactive] .orbit-stage {
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}
.model-study[data-interactive] .orbit-stage:active {cursor: grabbing;}
.model-study .orbit-heading {
  position: absolute;
  inset: clamp(6px, 1.5vw, 18px) clamp(9px, 1.7vw, 22px) auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}
.model-study .orbit-heading>div {display:grid;gap:2px;}
.model-study #hero-ramp-guide {
  pointer-events:auto;display:inline-flex;align-items:center;gap:.35em;min-height:44px;
  border:0;color:#fae5c5;text-decoration:underline;text-underline-offset:4px;
  font:500 clamp(12px,1vw,15px)/1.2 Outfit,sans-serif;white-space:nowrap;
}
.model-study #hero-ramp-guide:hover {color:white;}
.model-study .orbit-heading strong {
  font: 500 clamp(18px, 1.55vw, 24px)/1.16 Outfit, sans-serif;
  letter-spacing: -.025em;
  color: #fcf9f1;
}
.model-study .orbit-heading small {
  color: #c4d3d4;
  font: 500 12px/1.4 ui-monospace, monospace;
  letter-spacing: .03em;
}
figure.model-study figcaption.orbit-bar {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 10px clamp(12px, 1.8vw, 22px);
  background: #172730;
  border-top: 1px solid #3b4c53;
  font-family: Outfit, sans-serif;
}
.model-study .orbit-controls {display: inline-flex; align-items: center; gap: 6px;}
.model-study .orbit-controls[hidden] {display:none;}
.model-study .orbit-controls button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #657980;
  border-radius: 50%;
  background: #20343d;
  color: #f6f3e9;
  cursor: pointer;
}
.model-study .orbit-controls button svg {width: 20px; height: 20px;}
.model-study .orbit-controls button:hover {background: #314d57; border-color: #aabac0;}
.model-study .orbit-controls output {
  min-width: 4ch;
  text-align: center;
  font: 13px/1.3 ui-monospace, monospace;
  color: #cddadc;
}
figure.model-study figcaption.orbit-bar a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .55em;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 0;
  font: 500 15px/1.25 Outfit, sans-serif;
  text-decoration: none;
  color: #fff9e9;
  background: #354952;
}
figure.model-study figcaption.orbit-bar a:hover {background: #435e6a;}
.model-study .orbit-bar a svg {width: 18px; height: 18px; margin: 0; flex: none;}
.model-study :is(button,a):focus-visible {outline: 3px solid #ffcf82; outline-offset: 2px;}
.model-study .orbit-error {position:absolute;bottom:6px;left:8px;padding:4px 8px;border-radius:4px;background:#14252e;color:#f7eee0;font:500 13px/1.3 Outfit,sans-serif;pointer-events:none;z-index:3;}
.model-study [hidden] {display:none !important;}
.model-study .orbit-stage canvas {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;}
.model-study .orbit-stage:focus-visible {outline:3px solid #ffcf82;outline-offset:-3px;}
.model-study {scroll-margin-top:6rem;}
.model-study .hero-person-label {position:absolute;z-index:1;pointer-events:none;color:#fff1ca;background:#243134e8;border-radius:3px;font:600 11px/1.25 Outfit,sans-serif;padding:2px 4px;translate:-50% -110%;}
.model-study .hero-lab {color:#f0f4eb;background:#1a2c33;border-top:1px solid #3b4c53;font:500 .94rem/1.5 Outfit,sans-serif;text-align:left;}
.model-study .hero-lab summary {display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:.4rem clamp(12px,2vw,22px);cursor:pointer;list-style:none;font-size:.95rem;}
.model-study .hero-lab summary::-webkit-details-marker{display:none;}
.model-study .hero-lab summary span {font:600 1.1rem/1 Outfit,sans-serif;color:#ffca83;}
.model-study .hero-lab[open] summary span {rotate:45deg;}
.model-study .hero-lab-body{display:grid;gap:.65rem;padding:0 clamp(12px,2vw,22px) 1rem;}
.model-study .hero-lab-row,.model-study #hero-saved{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;}
.model-study .hero-lab button,.model-study .hero-lab select{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:44px;max-width:100%;min-width:0;padding:.38rem .62rem;cursor:pointer;border:1px solid #667d80;border-radius:.45rem;color:#f2f7ed;background:#233941;font:500 .92rem/1.25 Outfit,sans-serif;text-transform:none;letter-spacing:normal;}
.model-study .hero-lab button[aria-pressed="true"],.model-study .hero-lab button[aria-expanded="true"]{background:#f4ce89;color:#172925;border-color:#f4ce89;}
.model-study .hero-lab button:hover,.model-study .hero-lab select:hover{border-color:#e7cf9b;}
.model-study .hero-lab button:focus-visible,.model-study .hero-lab summary:focus-visible,.model-study .hero-lab select:focus-visible{outline:3px solid #f3bd69;outline-offset:-3px;}
.model-study .hero-lab p,.model-study .hero-lab output{margin:0;color:#d2dfd9;font:500 .87rem/1.45 Outfit,sans-serif;}
.model-study .hero-lab output:empty{display:none;}
.model-study .hero-level-label{display:grid;gap:.19rem;font-size:.8rem;line-height:1.3;color:#c6d6cc;}
.model-study [data-w40-share="hero"]{justify-self:start;}
.model-study #hero-restore img{display:block;width:64px;height:auto;aspect-ratio:3/2;object-fit:contain;border-radius:3px;}
.model-study #hero-map {display:grid;grid-template-columns:minmax(66px,.6fr) minmax(0,1.4fr);gap:.55rem;align-items:center;border:1px solid #4c6267;padding:.65rem;border-radius:.65rem;}
.model-study .hero-map-plate svg{display:block;width:100%;max-width:155px;height:auto;margin:auto;}
.model-study .hero-side-controls{display:flex;gap:.25rem;flex-wrap:wrap;margin-top:.3rem;}
.model-study .hero-lab select{display:block;white-space:normal;}
.model-study[data-line-study] .orbit-heading strong {color:#172d2f;}
.model-study[data-line-study] .orbit-heading small {color:#3d5758;}
.model-study[data-line-study] #hero-ramp-guide {color:#513816;}
.model-study[data-line-study] .orbit-heading>div,.model-study[data-line-study] #hero-ramp-guide {background:#ebebe3ef;border-radius:.22rem;padding-inline:.25rem;}
.model-study #hero-reveal {
  position:absolute;left:75.602%;top:47.807%;z-index:1;cursor:pointer;
  min-height:44px;padding:0 18px 0 0;display:flex;align-items:center;
  translate:-100% -50%;transform:none;transition:none;box-shadow:none;
  color:#ffce80;background:transparent;border:0;
}
.model-study .orbit-marker i {
  position:absolute;right:0;top:50%;width:9px;height:9px;transform:translate(50%,-50%);
  border:2px solid #ffcf82;background:#26343d;border-radius:50%;box-shadow:0 0 0 2px #1b2933;
}
.model-study .orbit-marker::before {
  content:"";position:absolute;right:0;top:50%;width:18px;border-top:1px dashed #ffcf82;
}
.model-study #hero-reveal[data-right] {translate:0 -50%;padding:0 0 0 18px;}
.model-study .orbit-marker[data-right] i {left:0;right:auto;transform:translate(-50%,-50%);}
.model-study .orbit-marker[data-right]::before {left:0;right:auto;}
.model-study .orbit-tag {
  display:grid;text-align:left;gap:1px;padding:4px 7px;border-radius:5px;border:1px solid #a88e69;
  background:#192a32f5;color:#ffe0a7;white-space:nowrap;font-family:Outfit,sans-serif;
}
.model-study .orbit-tag small {font:500 11px/1.15 Outfit,sans-serif;color:#e6dacc;}
.model-study .orbit-tag strong {font:600 13px/1.18 Outfit,sans-serif;}
.model-study .orbit-marker:is(:hover,:focus-visible) .orbit-tag{border-color:#ffd28d;background:#2a3a41;}
.model-study[data-revealed] .orbit-marker i,.model-study .orbit-marker[data-state="visible"] i {background:#ffd087;}
.model-study[data-revealed] .orbit-marker::before,.model-study .orbit-marker[data-state="visible"]::before {border-top-style:solid;}
.model-study .orbit-slice {
  position:absolute;bottom:7px;left:clamp(6px,3%,20px);right:clamp(6px,3%,20px);
  display:flex;align-items:center;gap:.65rem;padding:0 .65rem;border:1px solid #51646b;
  border-radius:6px;background:#15262ff2;color:#f6efe2;z-index:2;
  font:500 14px/1.2 Outfit,sans-serif;cursor:auto;
}
.model-study .orbit-slice input {flex:1;min-width:0;width:100%;height:44px;accent-color:#efc789;cursor:ew-resize;}
.model-study .orbit-slice output {font:12px ui-monospace,monospace;color:#ffd394;white-space:nowrap;min-width:4ch;}
.model-study #hero-cut {display:inline-flex;width:auto;gap:.35rem;padding:0 .8rem;border-radius:8px;font:500 15px/1 Outfit,sans-serif;}
.model-study #hero-cut[aria-pressed="true"] {border-color:#efc789;background:#efc789;color:#202a30;}
.model-study #hero-cut svg {width:17px;height:17px;}
@media(max-width:720px){
  figure.model-study figcaption.orbit-bar{flex-wrap:nowrap;gap:4px;padding:8px;}
  .model-study .orbit-controls{gap:4px;}
  .model-study .orbit-controls output{position:absolute;width:1px;height:1px;min-width:0;overflow:hidden;clip-path:inset(50%);}
  .model-study #hero-cut{padding:0 .5rem;}
  figure.model-study figcaption.orbit-bar a{padding:0 .5rem;white-space:nowrap;}
}
@media(max-width:430px) {
  .model-study #hero-cut svg {display:none;}
  .model-study .orbit-bar a svg {display:none;}
}
@media(max-width:384px) {.model-study .orbit-studio-prefix {display:none;}}
@media(max-width: 360px) {
  figure.model-study figcaption.orbit-bar {padding: 8px 3px; gap: 2px;}
  .model-study .orbit-controls {gap: 2px;}
  figure.model-study figcaption.orbit-bar a {padding-inline: 5px;}
  .model-study .orbit-bar a svg,.model-study #hero-cut svg,.model-study .orbit-studio-prefix {display:none;}
  .model-study #hero-cut {font-size:14px;}
  .model-study .orbit-bar a {white-space:nowrap;}
}
@media(min-width:721px) and (max-width:1024px) and (max-height:480px){
  figure.portfolio-model.model-study{width:min(100%,105vh);min-width:270px;margin-inline:auto;}
  figure.model-study figcaption.orbit-bar{padding:7px;gap:4px;flex-wrap:nowrap;}
  .model-study .orbit-controls{gap:3px;}
  .model-study .orbit-controls output{position:absolute;width:1px;height:1px;min-width:0;overflow:hidden;clip-path:inset(50%);}
  .model-study #hero-cut{padding:0 .5rem;}
  figure.model-study figcaption.orbit-bar a {padding:0 .5rem;white-space:nowrap;}
  .model-study .orbit-bar a svg {display:none;}
}
