/* OHHOUSE · Concept 04 v11 (2026-10-28): the treetop section without its photograph (the drawing takes the room),
   a phone layout that reads like a drawing with a key, and the photographs as an optional gallery. */

/* ---------- Up at treetop level ---------- */
.sd-key { display: none; }
.sec-draw { padding-inline: var(--m); }
@media (max-width: 720px) {
  .section .scrub { height: auto; }
  .section .stick { position: static; height: auto; padding-bottom: 0; }
  .sec-head { row-gap: 6px; }
  .sec-read b { font-size: 24px; }
  .sec-draw { padding: 26px 6px 6px 22px; }
  .sd-box { width: 100% !important; }
  .lb.sc { font-size: 10px; }
  .lb.dim2 { display: none; }
  .lb.cap, .lb.cap.hide-s { display: block; font-size: 0; width: 18px; height: 18px; padding: 0; border-radius: 50%; background: var(--ink); color: var(--paper);
    transform: translate(-50%, -50%); display: grid; place-items: center; }
  .lb.cap::before { content: attr(data-k); font-size: 10.5px; font-weight: 700; line-height: 1; }
  .sd-key { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; list-style: none; margin: 18px var(--m) 0; padding: 14px 0 0; border-top: 1px solid var(--rule); font-size: 13.5px; line-height: 1.3; }
  .sd-key li { display: flex; gap: 8px; align-items: center; }
  .sd-key li span { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
  .sec-steps { padding-top: 28px; row-gap: 0; }
  .sec-steps li, .sec-steps li.on { display: grid; color: var(--ink); border-top-color: var(--rule); padding: 14px 0 16px; }
  .sec-steps li .n { color: var(--olive); }
  .sec-steps li b, .sec-steps li.on b { font-size: 21px; color: var(--ink); }
  .sec-steps li.on .n { color: var(--olive); }
  .sec-steps li > span:last-child { font-size: 15px; line-height: 1.45; color: var(--mute); }
}

/* ---------- A little more of OHHOUSE: three photographs on the page, the rest on request ---------- */
.gl { position: relative; padding-top: 48px; align-items: start; row-gap: 28px; }
.gl-lead { grid-column: 1 / 8; margin: 0; }
.gl-lead .frame { position: relative; aspect-ratio: 1280 / 958; }
.gl-hit { position: absolute; inset: 0; z-index: 2; cursor: zoom-in; background: none; border: 0; padding: 0; }
.gl-side { grid-column: 9 / 13; display: flex; flex-direction: column; gap: 28px; padding-top: 4px; }
.gl-side .sp2-q { grid-column: auto; grid-row: auto; margin: 0; padding: 0; }
.gl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.gl-th { display: block; padding: 0; border: 0; background: #e6e3da; cursor: zoom-in; overflow: hidden; }
.gl-th img { display: block; width: 100%; height: auto; transition: transform .9s var(--out), opacity .3s var(--out); }
.gl-th:hover img { transform: scale(1.03); }
.gl-all { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 14px 0; border: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); background: none; font: inherit; font-size: 17px; letter-spacing: -.01em; color: var(--ink); cursor: pointer; text-align: left; }
.gl-all b { font-weight: 400; color: var(--olive); }
.gl-all-a { width: 34px; height: 12px; flex: none; position: relative; }
.gl-all-a::before { content: ""; position: absolute; left: 0; right: 2px; top: 50%; height: 1.5px; background: var(--ink); transition: transform .5s var(--out); transform-origin: left; }
.gl-all-a::after { content: ""; position: absolute; right: 1px; top: 50%; width: 9px; height: 9px; border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); transform: translateY(-50%) rotate(45deg); }
.gl-all:hover .gl-all-a::before { transform: scaleX(1.15); }
@media (max-width: 1100px) { .gl-lead { grid-column: 1 / 9; } .gl-side { grid-column: 9 / 13; } }
@media (max-width: 720px) {
  .gl { padding-top: 28px; row-gap: 22px; }
  .gl-lead { grid-column: 1 / -1; }
  .gl-side { grid-column: 1 / -1; gap: 20px; }
  .gl-side .sp2-q { order: -1; }
}

/* the viewer */
html.lbx-on { overflow: hidden; }
.lbx { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink);
  display: none; grid-template-rows: auto minmax(0, 1fr) auto; }
.lbx[open] { display: grid; animation: lbx-in .45s var(--out); }
.lbx::backdrop { background: rgba(20,20,19,.5); }
@keyframes lbx-in { from { opacity: 0; } to { opacity: 1; } }
.lbx-top { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--m); border-bottom: 1px solid var(--rule); }
.lbx-n { margin: 0; color: var(--mute); }
.lbx-n b { color: var(--olive); font-weight: 700; }
.lbx-x { font: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: none; border: 0; padding: 10px 0 10px 32px; cursor: pointer; color: var(--ink); position: relative; min-height: 44px; }
.lbx-x::before, .lbx-x::after { content: ""; position: absolute; left: 6px; top: 50%; width: 16px; height: 1.5px; background: var(--ink); transform: rotate(45deg); }
.lbx-x::after { transform: rotate(-45deg); }
.lbx-fig { margin: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 20px var(--m) 0; }
.lbx-stage { min-height: 0; display: flex; align-items: center; justify-content: center; touch-action: pan-y; cursor: pointer; user-select: none; -webkit-user-select: none; }
.lbx-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; opacity: 0; -webkit-user-drag: none; }
.lbx-stage img.in { opacity: 1; transform: none; transition: opacity .45s var(--out), transform .6s var(--out); }
.lbx-stage img.from-r { transform: translateX(24px); }
.lbx-stage img.from-l { transform: translateX(-24px); }
.lbx-stage img.in.from-r, .lbx-stage img.in.from-l { transform: none; }
.lbx-fig figcaption { padding: 12px 0 0; min-height: 40px; font-size: 14px; }
.lbx-nav { display: flex; justify-content: flex-end; gap: 10px; padding: 8px var(--m) calc(16px + env(safe-area-inset-bottom, 0px)); }
.lbx-prev, .lbx-next { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ink); background: none; cursor: pointer; position: relative; }
.lbx-prev::before, .lbx-next::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); }
.lbx-next::before { transform: translate(-65%, -50%) rotate(45deg); }
.lbx-prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.lbx-prev:hover, .lbx-next:hover { background: var(--ink); }
.lbx-prev:hover::before, .lbx-next:hover::before { border-color: var(--paper); }
@media (max-width: 720px) {
  .lbx-fig { padding: 12px 0 0; }
  .lbx-fig figcaption { padding: 10px var(--m) 0; }
  .lbx-nav { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .lbx[open] { animation: none; } .lbx-stage img.in { transition: none; } }

/* ---------- EN / ES: small, set like the other captions ---------- */
.lang { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lang b { font-weight: 700; }
.lang span { opacity: .45; font-weight: 400; }
.lang a { text-decoration: none; opacity: .55; min-height: 36px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; transition: opacity .3s var(--out), border-color .3s var(--out); }
.lang a:hover { opacity: 1; border-bottom-color: var(--blue); }
.menu-lang { font-size: 12.5px; letter-spacing: .06em; text-transform: none; margin-top: 6px; }
.rf-lang { color: inherit; }
@media (max-width: 720px) { .bar-lang { display: none; } }
