:root {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #252e27;
  background: #f6f4ee;
  color-scheme: light;
  --border: #dddcd2;
  --muted: #586356;
  --green: #304737;
  --paper: #fdfcf8;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.page { max-width: 1610px; margin: auto; padding: 32px clamp(18px, 4vw, 58px) 28px; }
h1 { font: 400 clamp(2rem, 4.5vw, 3.3rem)/1.07 "Georgia", serif; letter-spacing: -.045em; margin: 0; }
h2 { font-size: 1.03rem; margin: 0 0 14px; letter-spacing: -.012em; }
.album { max-width: 1190px; margin-inline: auto; }
.album-heading { padding-block: 8px 27px; border-bottom: 1px solid var(--border); }
.album-investor { margin: 9px 0 0; color: var(--muted); line-height: 1.5; }
.album-investor strong { margin-inline-start: 5px; color: var(--green); font-weight: 650; }
.album-group { padding-block: 20px 28px; border-bottom: 1px solid var(--border); }
.group-heading, .space-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; }
.group-heading { margin-bottom: 13px; }
.group-heading h2, .drawings h2 { font: 400 clamp(1.45rem, 2.7vw, 2rem)/1.16 "Georgia", serif; margin: 0; letter-spacing: -.024em; }
.action {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 7px 13px; border: 1px solid var(--border); border-radius: 8px;
  color: var(--green); text-decoration: none; font-size: .9rem; font-weight: 650;
}
.action-outline { background: var(--paper); }
.action-outline:hover { background: #e8ece2; border-color: #aeb9a9; }
.action-primary { color: #fff; background: var(--green); border-color: var(--green); white-space: nowrap; }
.action-primary:hover { background: #203c2a; }
.album-cards, .drawing-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.album-card, .drawing-card {
  min-width: 0; display: block; overflow: hidden; border: 1px solid var(--border);
  border-radius: 12px; color: var(--green); text-decoration: none; background: var(--paper);
}
.album-card:hover, .drawing-card:hover { border-color: #819582; }
.album-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #eae7df; }
.album-card span, .drawing-card span { display: block; padding: 13px 14px; font-weight: 650; }
.breadcrumbs { display: flex; align-items: baseline; gap: 10px; margin-bottom: 11px; color: var(--muted); font-size: .9rem; }
.breadcrumbs a { color: var(--green); padding-block: 7px; text-underline-offset: 3px; }
.space-heading { margin-bottom: 17px; }
#space:not(.model-view) { max-width: 1190px; margin-inline: auto; }
.photo-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.photo-option {
  flex: 0 1 127px; min-width: 0; border: 1px solid var(--border); border-radius: 9px; overflow: hidden;
  color: var(--green); font-size: .9rem; font-weight: 650; text-decoration: none; background: var(--paper);
}
.photo-option img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #eae7df; }
.photo-option span { display: block; padding: 7px 8px; line-height: 1.25; }
.photo-option:hover { border-color: #819582; }
.photo-option[aria-current="true"] { color: #fff; background: var(--green); border-color: var(--green); }
.drawings { border-top: 1px solid var(--border); padding-top: 19px; margin-top: 25px; scroll-margin-top: 14px; }
.drawing-options { margin-top: 13px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 300px)); }
.drawing-card img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: contain; background: white; }
.download { display: inline-block; color: var(--green); font-size: .9rem; font-weight: 650; margin-top: 12px; }
.download:hover { text-decoration: none; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
.layout > .viewer { align-self: start; }
.viewer { min-width: 0; border: 1px solid var(--border); border-radius: 15px; overflow: hidden; background: var(--paper); }
.views { display: flex; flex-wrap: wrap; gap: 4px; }
.view-link, .zoom button { border: 1px solid transparent; background: transparent; color: var(--green); font-size: .9rem; font-weight: 650; border-radius: 7px; }
.view-link { display: inline-flex; align-items: center; padding: 7px 12px; min-height: 44px; text-decoration: none; }
.view-link:hover, .zoom button:hover { background: #e8ece2; }
.view-link[aria-current="true"] { color: white; background: var(--green); }
.model-options { margin-bottom: 10px; }
:focus-visible { outline: 2px solid #346b56; outline-offset: 3px; }
.viewport { height: min(69svh, 780px); min-height: 500px; position: relative; display: grid; place-items: center; isolation: isolate; background: #eeeae0; overflow: hidden; }
.viewport canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; z-index: -1; touch-action: none; outline-offset: -4px; cursor: grab; }
.viewport:not([data-rendered]) canvas { visibility: hidden; }
.viewport canvas:active { cursor: grabbing; }
.plan-links { position: absolute; inset: 0; pointer-events: none; }
.plan-link {
  position: absolute; transform: translate(-50%, -50%); pointer-events: auto;
  display: inline-flex; align-items: center; min-height: 40px; padding: 5px 9px;
  border: 1px solid #f6f4ee; border-radius: 8px; color: #fff; background: #304737;
  font-size: .81rem; font-weight: 650; white-space: nowrap; text-decoration: none;
  box-shadow: 0 1px 6px #25372836;
}
.plan-link:hover { background: #1b3122; }
#progress { color: var(--muted); margin: 0 16px; text-align: center; background: var(--paper); border: 1px solid var(--border); padding: 10px 16px; border-radius: 8px; }
.zoom { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--border); background: var(--paper); border-radius: 9px; }
.zoom button { font-size: 1.3rem; width: 39px; height: 37px; }
.hint { pointer-events: none; position: absolute; bottom: 15px; left: 15px; margin: 0; max-width: calc(100% - 125px); padding: 7px 10px; border-radius: 7px; background: var(--paper); color: var(--muted); font-size: .78rem; }
.measure-label { position: absolute; pointer-events: none; top: 0; left: 0; color: white; font-weight: 700; padding: 5px 9px; border-radius: 6px; background: #1d6950; white-space: nowrap; }
.details { display: grid; gap: 13px; align-content: start; }
.panel { background: var(--paper); padding: 17px; border: 1px solid var(--border); border-radius: 12px; }
.check { display: flex; align-items: center; gap: 9px; min-height: 31px; cursor: pointer; font-size: .9rem; }
.check + .check { margin-top: 6px; }
.check input { accent-color: var(--green); width: 17px; height: 17px; margin: 0; flex: none; }
.measurement { display: block; font: 400 2.7rem/1.15 "Georgia", serif; color: var(--green); margin: 12px 0 3px; font-variant-numeric: tabular-nums; }
.measurement span { font-size: .52em; }
.caption { color: var(--muted); font-size: .82rem; line-height: 1.55; margin: 0; }
.side-orientation { margin-bottom: .45rem; }
dl { margin: 0 0 12px; font-size: .86rem; }
dl div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); }
dd { margin: 0; color: var(--green); font-weight: 650; white-space: nowrap; }
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr) 235px; }
  .panel { padding: 14px; }
}
@media (max-width: 820px) {
  .page { padding-top: 24px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .viewport { min-height: 370px; height: 64svh; max-height: 690px; }
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 550px) {
  .album-heading { padding-block: 2px 19px; }
  .album-group { padding-block: 14px 19px; }
  .album-cards { gap: 10px; }
  .album-card img { aspect-ratio: 4 / 3; }
  .album-card span { padding: 10px; font-size: .92rem; }
  .space-heading h1 { font-size: clamp(1.65rem, 6.5vw, 2.4rem); }
  .view-link { padding-inline: 8px; }
  .photo-options { gap: 8px; }
  .photo-option { flex-basis: calc((100% - 16px)/3); }
  .plan-link { min-height: 38px; padding-inline: 6px; font-size: .8rem; transform: translate(-50%, calc(-100% - 4px)); }
  .plan-link:nth-child(2) { transform: translate(-50%, 4px); }
  .viewport { height: 55svh; min-height: 330px; }
  .details { grid-template-columns: minmax(0, 1fr); }
}

.photo-frame { display: grid; margin: 0; background: #eae7df; }
.photo-frame img { display: block; width: 100%; height: clamp(260px, 65svh, 760px); object-fit: contain; }
.photo-frame figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border-top: 1px solid var(--border); background: var(--paper);
  color: var(--muted); font-size: .89rem;
}
.photo-frame a { color: var(--green); font-weight: 650; white-space: nowrap; }
@media (max-width: 550px) {
  .photo-frame img { height: auto; max-height: 56svh; }
  .photo-frame figcaption { align-items: flex-start; flex-direction: column; gap: 6px; }
}
