/* The gallery presents individual works; these measurements belong to this page. */
.works { display: grid; gap: 46px; }
.work { min-width: 0; }
.work-visual { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 3px 14px #273b4805; }
.work-visual img { width: 100%; height: auto; display: block; }
.work-visual:focus-visible { outline-offset: 6px; }
.visual-arrow { position: absolute; display: flex; align-items: center; justify-content: center; color: #334955; background: #ffffffef; border: 1px solid #dce4e8; box-shadow: 0 3px 16px #12334912; transition: background .18s, box-shadow .18s, transform .18s; }
.visual-arrow { width: 37px; height: 37px; border-radius: 50%; bottom: 16px; right: 16px; font-size: 20px; }
.work-visual:hover .visual-arrow { background: #fff; box-shadow: 0 5px 20px #1233491c; transform: translateY(-2px); }
.work-caption { padding: 23px 0 0; }
.work-name { display: flex; align-items: baseline; gap: 14px; }
.work-number { font: 400 11px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); letter-spacing: .04em; }
.work h2 { font-size: 20px; line-height: 1.6; letter-spacing: -.025em; font-weight: 550; margin: 0; }
.work h2 a:hover { color: var(--blue); }
.work-origin { color: var(--muted); font-size: 11px; line-height: 1.7; margin: 6px 0 0; }
.work-description { font-size: 14px; line-height: 1.9; color: var(--muted); margin: 14px 0 0 31px; }
.work-detail-link { display: flex; align-items: center; gap: 12px; width: fit-content; margin-top: 11px; color: var(--co-select-ink); font-size: 12px; }
.work-detail-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.work-pair { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; }
.work-pair .work-visual { aspect-ratio: 1.61; display: grid; place-items: center; }
.work-pair .work-visual img { height: 100%; object-fit: contain; }
.work-pair-objects { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.work-pair-objects .work-visual { aspect-ratio: 1.36; }
.work-pair-objects .work-visual img { height: 100%; object-fit: contain; }
.work-trio { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 27px; }
.work-trio .work-visual { aspect-ratio: 1.24; display: grid; place-items: center; }
.work-trio .work-visual img { height: 100%; object-fit: contain; }
.work-trio h2 { font-size: 17px; letter-spacing: -.035em; }
.work-trio .work-caption { padding-top: 20px; }
.work-trio .work-name { gap: 10px; }
.work-trio .work-description { margin-left: 27px; font-size: 13px; }
.work-trio .work-origin { font-size: 10px; }
.collection-reading { display: flex; justify-content: space-between; align-items: center; gap: 35px; margin-top: 52px; padding: 27px 0; border-block: 1px solid var(--line); }
.collection-reading p { font-size: 14px; line-height: 1.95; margin: 0; color: var(--muted); }
.collection-reading a { display: inline-flex; gap: 18px; align-items: center; font-size: 12px; color: var(--muted); white-space: nowrap; }
.collection-reading a:hover { color: var(--blue); }
.collection-reading a span { font-size: 18px; }
.other-studies { border-bottom: 1px solid var(--line); }
.other-studies summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 26px 0; cursor: pointer; font-size: 14px; }
.other-studies summary::-webkit-details-marker { display: none; }
.other-studies summary small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 23px; }
.details-sign { font-size: 21px; color: var(--muted); transition: transform .18s; }
.other-studies[open] .details-sign { transform: rotate(45deg); }
.other-study-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; padding: 4px 0 32px; }
.other-study-grid>a { min-width: 0; }
.other-study-grid img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 5px; }
.other-study-grid h2 { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 16px; line-height: 1.7; font-weight: 500; margin: 16px 0 7px; }
.other-study-grid h2 span { color: var(--blue); }
.other-study-grid p { font-size: 12px; line-height: 1.85; color: var(--muted); margin: 0; }
.other-study-grid a:hover h2 { color: var(--blue); }
.collection-resources { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 35px; padding-top: 42px; }
.resource-label { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.collection-resources h2 { font-size: 17px; font-weight: 500; letter-spacing: -.025em; line-height: 1.6; margin: 13px 0 9px; }
.collection-resources h2 span { font-size: 17px; color: var(--blue); margin-left: 10px; }
.collection-resources p { font-size: 12px; color: var(--muted); line-height: 1.85; margin: 0; }
.collection-resources a:hover h2 { color: var(--blue); }
.collection-page .page-footer { margin-top: 43px; }

/* Shell demonstration styles are local to shell.html. */
.shell-intro h1{font-size:38px;line-height:1.55;font-weight:500;letter-spacing:.055em;margin:0 0 20px}.shell-intro>p:not(.eyebrow){color:var(--muted);font-size:15px;line-height:1.95;margin:0;max-width:40em}.shell-intro{margin-bottom:44px}.shell-workbench{position:relative;min-height:280px;border:1px solid var(--line);border-radius:14px;padding:37px 40px;background:radial-gradient(ellipse at 100% 20%,#65cfe512,transparent 60%),var(--paper)}.shell-workbench .eyebrow{font-size:11px;color:var(--blue)}.shell-workbench h2{font-size:27px;font-weight:500;letter-spacing:.045em;line-height:1.6;margin:0 0 17px}.shell-workbench>p:not(.eyebrow){font-size:15px;line-height:1.95;color:var(--muted);max-width:32em;margin:0}.shell-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:30px}.shell-controls button{background:var(--paper);border:1px solid var(--line);padding:11px 17px;border-radius:7px;font-size:13px}.shell-controls button[aria-pressed=true]{border-color:var(--blue);color:var(--blue)}.shell-controls button:hover{background:var(--wash)}.width-readout{font:12px ui-monospace,monospace;color:var(--muted);margin-left:auto}.shell-notes{display:grid;grid-template-columns:1fr 1fr;gap:35px;margin-top:42px}.shell-notes article{border-top:1px solid var(--line);padding-top:21px}.shell-notes h2{font-size:17px;font-weight:550;line-height:1.7;margin:0 0 11px}.shell-notes p{font-size:14px;color:var(--muted);line-height:1.95;margin:0}.shell-notes .quiet-link{margin-top:18px;font-size:13px}html.show-boundaries .site-header{box-shadow:inset 0 0 0 2px #67bddb}html.show-boundaries .sidebar{box-shadow:inset 0 0 0 2px #67bddb}html.show-boundaries .shell-workbench{border-style:dashed;border-color:var(--blue);background:var(--wash)}.shell-note{margin-top:30px;font-size:12px;line-height:1.9;color:var(--muted)}

@media (max-width: 1100px) {
  .work-pair { gap: 25px; }
  .work-trio { gap: 23px; }
  .work h2 { font-size: 18px; }
  .work-trio h2 { font-size: 17px; }
  .work-description { font-size: 13px; }
  .collection-resources { gap: 24px; }
  .collection-resources h2 { font-size: 15px; }
  .other-studies summary small { font-size: 11px; }
  .width-readout { width: 100%; margin: 5px 0 0; }
}
@media (max-width: 760px) {
  .works { gap: 34px; }
  .work-pair, .work-pair-objects { gap: 27px; }
  .work-pair-objects { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .work-caption { padding-top: 18px; }
  .work h2 { font-size: 17px; }
  .work-description { margin: 12px 0 0; font-size: 12px; }
  .work-origin { font-size: 10px; }
  .work-name { gap: 9px; }
  .work-trio { grid-template-columns: 1fr; gap: 28px; }
  .work-trio .work { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: center; gap: 23px; }
  .work-trio .work-visual { aspect-ratio: 1.26; }
  .work-trio .work-caption { padding: 0; }
  .work-trio .work-description { margin-left: 0; font-size: 12px; }
  .collection-reading { margin-top: 35px; display: block; padding: 22px 0; }
  .collection-reading p { font-size: 12px; }
  .collection-reading a { margin-top: 12px; font-size: 11px; }
  .other-studies summary small { display: block; margin: 8px 0 0; font-size: 11px; line-height: 1.7; }
  .other-study-grid { gap: 20px; }
  .other-study-grid h2 { font-size: 14px; }
  .other-study-grid p { font-size: 11px; }
  .collection-resources { grid-template-columns: 1fr; gap: 24px; padding-top: 29px; }
  .collection-resources a { display: grid; grid-template-columns: 90px 1fr; gap: 3px 15px; }
  .resource-label { grid-column: 1; grid-row: 1 / 3; padding-top: 5px; font-size: 9px; }
  .collection-resources h2 { grid-column: 2; margin: 0; font-size: 16px; }
  .collection-resources p { grid-column: 2; font-size: 11px; }
  .shell-notes { grid-template-columns: 1fr; }
  .shell-workbench { padding: 30px; }
  .shell-workbench h2 { font-size: 25px; }
  .shell-intro h1 { font-size: 33px; }
}
@media (max-width: 520px) {
  .work-pair, .work-pair-objects { grid-template-columns: 1fr; gap: 32px; }
  .work-pair .work-visual { aspect-ratio: 1.5; }
  .work-pair-objects .work-visual { aspect-ratio: 1.25; }
  .work h2 { font-size: 19px; }
  .work-number { font-size: 10px; }
  .work-description { font-size: 13px; }
  .work-origin { font-size: 11px; }
  .work-trio { gap: 25px; }
  .work-trio .work { grid-template-columns: minmax(0,1fr); gap: 16px; align-items: start; }
  .work-trio .work-name { display: flex; gap: 12px; }
  .work-trio .work-number { display: inline-block; margin-bottom: 0; }
  .work-trio h2 { font-size: 17px; }
  .work-trio .work-origin { font-size: 11px; line-height: 1.6; }
  .work-trio .work-description { font-size: 13px; line-height: 1.8; margin-top: 12px; }
  .work-trio .work-visual { aspect-ratio: 1.26; margin-top: 0; }
  .visual-arrow { width: 30px; height: 30px; bottom: 9px; right: 9px; font-size: 17px; }
  .other-study-grid { grid-template-columns: 1fr; gap: 21px; }
  .other-study-grid>a { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); align-items: center; gap: 19px; }
  .other-study-grid h2 { margin-top: 0; font-size: 15px; }
  .other-study-grid p { font-size: 12px; }
  .other-studies summary { font-size: 13px; gap: 20px; }
  .other-studies summary small { font-size: 10px; }
  .collection-reading p br { display: none; }
  .shell-workbench { padding: 26px 23px; }
  .shell-intro h1 { font-size: 31px; }
  .shell-controls button { padding: 11px 13px; }
  .shell-note { font-size: 12px; }
  .shell-notes { gap: 27px; }
}

/* Keep the comparison previews useful when the sidebar leaves a narrow
   content area, even on a desktop viewport. */
@container html-library (max-width: 760px) {
  .work-trio { grid-template-columns: 1fr; gap: 28px; }
  .work-trio .work { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: center; gap: 23px; }
  .work-trio .work-visual { aspect-ratio: 1.26; }
  .work-trio .work-caption { padding: 0; }
  .work-trio .work-description { margin-left: 0; font-size: 12px; }
}
@container html-library (max-width: 520px) {
  .work-trio .work-description { font-size: 13px; }
  .work-trio .work { grid-template-columns: minmax(0,1fr); gap: 16px; align-items: start; }
  .work-trio .work-name { display: flex; gap: 12px; }
  .work-trio .work-number { display: inline-block; margin-bottom: 0; }
  .work-trio .work-visual { aspect-ratio: 1.26; margin-top: 0; }
}

/* Optional guidance for maintaining this library. */
.shell-updates { border-block: 1px solid var(--line); margin-top: 28px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.shell-updates summary { cursor: pointer; padding: 19px 0; color: var(--ink); }
.shell-updates > div { padding: 0 0 22px; max-width: 60em; }
.shell-updates p { margin: 0 0 14px; }
.shell-updates .quiet-link { font-size: 13px; }
.shell-command { color: var(--ink); font-family: ui-monospace, monospace; }
html.show-boundaries [data-library-header] { outline: 1px dashed var(--blue); outline-offset: 10px; }
