/* Desktop editorial arrangement; mobile dimensions stay as before except TOKEN2049. */
@media(min-width:961px){
 .gallery-route .gallery-chapter.building-editorial {position:relative}
 .gallery-route .building-editorial>.gallery-cluster,
 .gallery-route .building-editorial>.gallery-cluster>.gallery-grid {display:contents}
 .gallery-route .building-editorial .gallery-item {position:absolute;left:0;top:0;margin:0}
 .gallery-route .building-editorial .photo-frame {margin:0!important;max-width:100%!important}
 .gallery-route .building-editorial .gallery-item[data-source-photo="21"] .photo-frame,
 .gallery-route .building-editorial .gallery-item[data-source-photo="40"] .photo-frame,
 .gallery-route .building-editorial .gallery-item[data-source-photo="22"] .photo-frame,
 .gallery-route .building-editorial .gallery-item[data-source-photo="24"] .photo-frame {width:100%}
 .gallery-route .building-editorial .gallery-item[data-source-photo="25"] .photo-frame,
 .gallery-route .building-editorial .gallery-item[data-source-photo="26"] .photo-frame {width:min(100%,210px)}
 .gallery-route .building-editorial .product-visuals {gap:18px}
 .gallery-route .building-editorial .gallery-item[data-source-photo="28"] {display:flex;gap:32px;align-items:center}
 .gallery-route .building-editorial .gallery-item[data-source-photo="29"] .photo-frame {width:min(100%,280px)}
 .gallery-route .building-editorial .gallery-item[data-source-photo="30"] .photo-frame {width:min(100%,480px)}
 .gallery-route .building-editorial .gallery-item[data-source-photo="token2049"] .photo-frame {width:min(100%,255px)}
 .gallery-route .building-editorial .gallery-item[data-source-photo="31"] {display:flex;align-items:flex-start;gap:24px}
 .gallery-route .building-editorial .gallery-item[data-source-photo="31"] .photo-frame {width:210px;flex:0 0 210px}
 .gallery-route .building-editorial .gallery-item[data-source-photo="31"]>figcaption {padding-top:0;flex:1;min-width:0}
}
@media(max-width:960px){
 .gallery-route .gallery-cluster[data-cluster="sqrt"] .gallery-item[data-source-photo="token2049"] .photo-frame {width:76%;max-width:270px;margin-left:auto;margin-right:auto}
 .gallery-route .gallery-cluster[data-cluster="sqrt"] .gallery-item[data-source-photo="token2049"] .photo-link img {width:100%;height:auto;max-height:none}
}

/* A quiet conference triptych: one story, three independently zoomable moments. */
.gallery-route .conference-visuals {display:grid;grid-template-columns:1fr 1.18fr;gap:16px;align-items:center;max-width:580px}
.gallery-route .conference-stack {display:grid;gap:16px;min-width:0}
.gallery-route .conference-moments .conference-visuals .photo-frame {width:100%!important;max-width:none!important;margin:0!important}
.gallery-route .conference-moments .photo-link img {width:100%;height:auto!important;max-height:none!important;object-fit:contain}
.gallery-route .conference-moments>figcaption {max-width:580px!important}
@media(max-width:960px){
 .gallery-route .conference-visuals {width:90%;max-width:360px;margin:0 auto;gap:12px}
 .gallery-route .conference-stack {gap:12px}
}

@media(min-width:961px){
 /* The reflective office story closes the row beside the smaller conference triptych. */
 .gallery-route .building-editorial .gallery-item[data-source-photo="31"] {display:block}
 .gallery-route .building-editorial .gallery-item[data-source-photo="31"] .photo-frame {width:170px;max-width:48%!important;float:left;margin:0 20px 10px 0!important}
 .gallery-route .building-editorial .gallery-item[data-source-photo="31"]>figcaption {display:block;padding-top:0}
 .gallery-route .building-editorial .gallery-item[data-source-photo="31"]::after {content:"";display:block;clear:both}
}

/* Desktop fine tuning after v629: chronology, relative scale, and reading room. */
@media(min-width:961px){
 .gallery-route .building-editorial .gallery-item[data-source-photo="21"] .photo-frame {width:92%}
 .gallery-route .building-editorial .gallery-item[data-source-photo="24"] .photo-frame {width:92%}
 .gallery-route .building-editorial .gallery-item[data-source-photo="25"] .photo-frame,
 .gallery-route .building-editorial .gallery-item[data-source-photo="26"] .photo-frame {width:100%}
 .gallery-route .building-editorial .gallery-item[data-source-photo="28"] .photo-frame {width:390px;max-width:44%!important;flex:0 0 390px}
 .gallery-route .building-editorial .gallery-item[data-source-photo="31"] .photo-frame {width:200px}
 .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] {gap:38px}
}

@media(max-width:960px){
 .gallery-route .conference-visuals {width:100%;max-width:420px;gap:12px}
}

@media(min-width:961px){
 .gallery-route .building-editorial .gallery-item[data-source-photo="mvl-entrance"] .photo-frame {width:100%}
 .gallery-route .building-editorial .gallery-item[data-source-photo="28"] {display:block}
 .gallery-route .building-editorial .gallery-item[data-source-photo="28"] .photo-frame {width:100%;max-width:100%!important;flex:none}
 .gallery-route .building-editorial .gallery-item[data-source-photo="28"]>figcaption {padding-top:18px}
 .gallery-route .building-editorial .gallery-item[data-source-photo="29"] .photo-frame {width:min(100%,340px)}
 .gallery-route .building-editorial .gallery-item[data-source-photo="31"] .photo-frame {width:260px;max-width:60%!important}
 .gallery-route .conference-visuals {grid-template-columns:1.4fr 1fr;align-items:start}
}

/* v632: modest MVL photographs and distinct fashion / SQRT narrative blocks. */
@media(min-width:961px){
 .gallery-route .building-editorial .gallery-item[data-source-photo="mvl-entrance"] .photo-frame,
 .gallery-route .building-editorial .gallery-item[data-source-photo="21"] .photo-frame,
 .gallery-route .building-editorial .gallery-item[data-source-photo="40"] .photo-frame,
 .gallery-route .building-editorial .gallery-item[data-source-photo="22"] .photo-frame {width:84%}
 .gallery-route .building-editorial .gallery-item[data-source-photo="24"] .photo-frame {width:84%}
 .gallery-route .building-editorial .gallery-item[data-source-photo="28"] {display:flex;align-items:center;gap:32px}
 .gallery-route .building-editorial .gallery-item[data-source-photo="28"] .photo-frame {width:420px;max-width:48%!important;flex:0 0 420px}
 .gallery-route .building-editorial .gallery-item[data-source-photo="28"]>figcaption {padding-top:0;max-width:510px!important}
 .gallery-route .building-editorial .gallery-item[data-source-photo="31"] .photo-frame {width:300px;max-width:70%!important}
 .gallery-route .conference-visuals {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
 .gallery-route .conference-stack {display:contents}
 .gallery-route .conference-visuals>.photo-frame {grid-row:span 2;align-self:center}
 .gallery-route .conference-stack>.photo-frame:last-child {grid-column:1 / -1;width:64%!important;justify-self:center}
 .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] .endorsement-visuals {gap:34px}
}
@media(min-width:961px){
 .gallery-route .building-editorial .gallery-item[data-source-photo="31"] .photo-frame {width:340px;max-width:90%!important;float:none;margin:0 0 16px!important}
 .gallery-route .building-editorial .gallery-item[data-source-photo="31"]>figcaption {max-width:420px!important}
}
/* Gallery chapters borrow Research Overview's restrained sans-serif language. */
@media(min-width:961px){
 body .gallery-route .gallery-chapter>.chapter-header h2 {
  font-family:Arial,sans-serif;
  font-size:23px;
  font-weight:600;
  line-height:1.35;
  letter-spacing:.035em;
  color:#171717;
 }
}
/* Mobile event contact sheet: natural aspect ratios, compact two-column flow. */
@media(max-width:960px){
 .gallery-route .conference-visuals {display:block;columns:2;column-gap:12px;width:100%;max-width:420px}
 .gallery-route .conference-stack {display:contents}
 .gallery-route .conference-moments .conference-visuals .photo-frame {display:block;break-inside:avoid;page-break-inside:avoid;margin:0 0 12px!important;width:100%!important}
 .gallery-route .conference-moments .photo-link {display:block}
 .gallery-route .conference-moments .photo-link img {display:block;width:100%;height:auto!important;max-height:none!important}
}
@media(max-width:960px){
 .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] .endorsement-visuals {margin-left:auto;margin-right:auto;align-items:center}
 .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] .endorsement-visuals>.photo-frame,
 .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] .endorsement-visuals>.supplemental-enlarge {margin-left:auto;margin-right:auto}
}
/* Mobile35 should use its available content column like the following photograph. */
@media(max-width:960px){
 .gallery-route .gallery-cluster[data-cluster="sqrt"] .gallery-item[data-source-photo="31"] .photo-frame {width:100%;max-width:100%;margin-left:0;margin-right:0}
 .gallery-route .gallery-cluster[data-cluster="sqrt"] .gallery-item[data-source-photo="31"] .photo-link img {width:100%;height:auto;max-height:none}
 .gallery-route .gallery-cluster[data-cluster="sqrt"] .gallery-item[data-source-photo="31"]>figcaption {width:100%;max-width:100%!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box}
}
/* v633 phone reading rhythm, isolated from desktop and tablet masonry. */
@media(max-width:600px){
 .gallery-route .gallery-item:is([data-source-photo="04"],[data-source-photo="05"],[data-source-photo="07"],[data-source-photo="08"],[data-source-photo="09"],[data-source-photo="10"]) .photo-frame {width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
 .gallery-route .gallery-item:is([data-source-photo="04"],[data-source-photo="05"],[data-source-photo="07"],[data-source-photo="08"],[data-source-photo="09"],[data-source-photo="10"]) .photo-link img {width:100%;height:auto;max-height:none}
 .gallery-route .gallery-chapter[aria-labelledby="chapter-3"] {border-top:0}
 .gallery-route .gallery-grid {row-gap:40px!important}
 .gallery-route .gallery-grid>.gallery-item {margin-top:0!important;margin-bottom:0!important;top:0!important}
 .gallery-route .gallery-cluster+.gallery-cluster {margin-top:40px}
 .gallery-route .gallery-grid>.gallery-item>figcaption {padding-bottom:0!important}
}
/* v633 final desktop hierarchy and research breathing room. */
@media(min-width:961px){
 body .gallery-route .gallery-chapter>.chapter-header h2 {font-size:18px}
}
@media(min-width:901px){
 body .page[data-route=research]>.research-overview-label {margin-top:20px}
 body[data-site-scene=plain] .page[data-route=research]>.research-overview-label {margin-top:36px}
 body .page[data-route=research]>.research-program {margin-top:36px}
}
@media(min-width:901px){
 body .page[data-route=research]>.research-overview-links {margin-bottom:49px}
}

/* v634: Doctoral Days' left-aligned, compact reading column carried into Building. */
@media(min-width:961px){
 .gallery-route .building-editorial .gallery-item[data-source-photo="mvl-entrance"] .photo-frame,
 .gallery-route .building-editorial .gallery-item[data-source-photo="21"] .photo-frame,
 .gallery-route .building-editorial .gallery-item[data-source-photo="40"] .photo-frame,
 .gallery-route .building-editorial .gallery-item[data-source-photo="22"] .photo-frame {width:100%;margin-left:0!important}
 .gallery-route .building-editorial .gallery-item[data-source-photo="29"] .photo-frame {width:min(100%,360px)}
 .gallery-route .building-editorial .gallery-item[data-source-photo="29"]>figcaption {max-width:360px!important}
 .gallery-route .building-editorial .gallery-item[data-source-photo="31"] .photo-frame {width:100%;max-width:100%!important;float:none}
 .gallery-route .building-editorial .gallery-item[data-source-photo="31"]>figcaption {max-width:100%!important}
}
/* Mobile6 follows the same full-column alignment; retain existing newsletter crop. */
@media(max-width:600px){
 .gallery-route .gallery-grid[data-layout="faculty"] .gallery-item[data-source-photo="06"] .photo-frame {width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
 .gallery-route .gallery-grid[data-layout="faculty"] .gallery-item[data-source-photo="06"]>figcaption {width:100%;max-width:100%!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box}
}
/* Mobile37 reset: one full-width visual stack and one aligned prose column. */
@media(max-width:960px){
 .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] {display:block}
 .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] .endorsement-visuals {display:flex;flex-direction:column;align-items:stretch;gap:24px;width:100%;max-width:100%;flex:none;margin:0}
 .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] .endorsement-visuals>.photo-frame,
 .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] .endorsement-visuals>.supplemental-enlarge {width:100%!important;max-width:100%;flex:none;margin:0;aspect-ratio:auto;box-sizing:border-box}
 .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] .endorsement-visuals>.supplemental-enlarge img {position:static;inset:auto;width:100%;max-width:100%;height:auto;display:block}
 .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] .photo-link img {width:100%;height:auto;max-height:none;object-fit:contain}
 .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"]>figcaption {width:100%;max-width:100%!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box;text-align:left}
}
/* Phone-wide consistency: single photos and captions share one reading-column edge. */
@media(max-width:600px){
 .gallery-route .gallery-grid>.gallery-item>.photo-frame {width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
 .gallery-route .gallery-grid>.gallery-item>figcaption {width:100%;max-width:100%!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box}
 .gallery-route .gallery-grid>.gallery-item>.photo-frame .photo-link img {max-height:none}
 .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] .endorsement-visuals>.photo-frame {padding:0}
}

/* v636: retain endorsement cleanup; restore compact desktop chapter rhythm. */
.gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] .endorsement-visuals>.photo-frame {border:0!important;box-shadow:none!important}
@media(max-width:960px){
 .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] .endorsement-visuals>.photo-frame {margin-left:auto!important;margin-right:auto!important}
 .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] .endorsement-visuals>.photo-frame .photo-link {position:relative;inset:auto;display:flex;justify-content:center}
}
@media(min-width:961px){
 .gallery-route .gallery-item:is([data-source-photo="02"],[data-source-photo="04"]) {left:14px}
 .gallery-route .building-editorial .gallery-item[data-source-photo="30"] .photo-frame {width:90%;margin-left:0!important}
 body .gallery-route .building-editorial .gallery-item[data-source-photo="31"] .photo-frame {width:320px!important;max-width:100%!important}
 .gallery-route .building-editorial .gallery-item[data-source-photo="31"] .photo-link img {width:100%!important;height:auto!important;max-height:none!important;max-width:100%!important}
 .gallery-route .building-editorial .gallery-item[data-source-photo="31"]>figcaption {max-width:360px!important}
 .gallery-route .building-editorial .product-visuals {width:100%;max-width:none}
 .gallery-route .building-editorial .conference-visuals {width:100%;max-width:none}
}

/* v637: preserve image scale; give only the right-hand columns a measured inset. */
@media(min-width:961px){
 body .gallery-route .gallery-chapter>.chapter-header h2 {font-size:16.5px;letter-spacing:.012em}
 .gallery-route .gallery-item:is([data-source-photo="02"],[data-source-photo="04"]) {left:clamp(0px,calc((100vw - 1080px)*.28),70px)!important}
}

/* v638: remove only the rule above editions12, preserving its one-pixel layout space. */
.gallery-route .book-editions-feature {border-top-color:transparent!important}

/* v639: fashion context on the left, tangible product on the right. */
@media(min-width:961px){
 body .gallery-route .building-editorial .gallery-item[data-source-photo="29"] .photo-frame {width:100%!important;max-width:100%!important}
 body .gallery-route .building-editorial .gallery-item[data-source-photo="29"]>figcaption {max-width:100%!important}
 body .gallery-route .building-editorial .gallery-item[data-source-photo="31"] .photo-frame {width:345px!important}
 body .gallery-route .building-editorial .gallery-item[data-source-photo="31"]>figcaption {max-width:380px!important}
 .gallery-route .building-editorial .conference-visuals>.photo-frame {align-self:start}
 .gallery-route .building-editorial .conference-stack>.photo-frame:last-child {width:80%!important}
}

/* v640: natural portrait/landscape pairs without fixed-ratio crops. */
.gallery-route .conference-column {display:contents}
@media(min-width:961px){
 .gallery-route .building-editorial .conference-visuals {display:grid;grid-template-columns:42fr 58fr;gap:12px;align-items:start}
 .gallery-route .building-editorial .conference-column {display:flex;flex-direction:column;gap:12px;min-width:0}
 .gallery-route .building-editorial .conference-column .photo-frame {width:100%!important;max-width:none!important;margin:0!important;align-self:stretch}
}

/* v642: align conference lower outline without stretching image content. */
@media(min-width:961px){
 .gallery-route .building-editorial .conference-visuals {align-items:stretch}
 .gallery-route .building-editorial .conference-column:first-child>.photo-frame:last-child {flex:1;min-height:0}
 .gallery-route .building-editorial .conference-column:first-child>.photo-frame:last-child .photo-link {height:100%;display:block;position:relative}
 .gallery-route .building-editorial .conference-column:first-child>.photo-frame:last-child img {height:100%!important;object-fit:cover}
 body .gallery-route .building-editorial .gallery-item[data-source-photo="31"]>figcaption {max-width:400px!important}
}
/* v642: a small mobile breath before the SQRT story. */
@media(max-width:960px){
 .gallery-route .gallery-cluster[data-cluster="sqrt"] {padding-top:16px}
}
/* v642: mobile endorsement is a complete natural-ratio image, not the old square viewport. */
@media(max-width:960px){
 body .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] .endorsement-visuals {width:100%!important;max-width:100%!important;margin-inline:auto!important;align-items:center!important}
 body .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] .endorsement-visuals>.photo-frame {display:block!important;position:relative!important;inset:auto!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;margin-inline:auto!important}
 body .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] .endorsement-visuals>.photo-frame .photo-link {display:block!important;position:static!important;inset:auto!important;width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important;margin:0!important;padding:0!important;background:transparent!important;overflow:visible!important;transform:none!important}
 body .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] .endorsement-visuals>.photo-frame .photo-link img {display:block!important;position:static!important;inset:auto!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;margin:0 auto!important;object-fit:contain!important;transform:none!important}
 body .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] .photo-cue {display:none!important}
}
/* v644: modestly wider desktop identity-story prose; photo and mobile unchanged. */
@media(min-width:961px){
 body .gallery-route .building-editorial .gallery-item[data-source-photo="31"]>figcaption {width:420px;max-width:420px!important}
}
/* v645: a slightly fuller recognition photo, caption measured to its frame. */
@media(min-width:961px){
 .gallery-route .gallery-grid[data-layout="faculty"] #photo-10 .photo-frame {width:100%;max-width:none}
}
/* v646: slightly larger book with calm top spacing; endorsement size stays unchanged. */
@media(min-width:961px){
 body .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] .endorsement-visuals>.supplemental-enlarge {width:260px;max-width:90%;margin:0 auto}
 body .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] .endorsement-visuals>.photo-frame {margin-left:auto;margin-right:auto}
}

/* v647: one NFT story, two original images, shared caption. */
body .gallery-route .nft-visuals{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start;width:100%}
body .gallery-route .nft-visuals>.photo-frame{width:100%!important;max-width:none!important;margin:0!important}
body .gallery-route .gallery-item[data-source-photo="25"]>figcaption{max-width:100%!important}
@media(min-width:961px){
 body .gallery-route .building-editorial .gallery-item[data-source-photo="29"]>figcaption{width:400px;max-width:400px!important}
 body .gallery-route .building-editorial .gallery-item[data-source-photo="28"]{gap:44px}
 body .gallery-route .gallery-grid[data-layout="ai"] .gallery-item[data-source-photo="34"] .endorsement-visuals>.supplemental-enlarge{width:280px;max-width:90%}
}
body .gallery-route .gallery-item[data-source-photo="30"]>figcaption>p+p{margin-top:16px}
@media(min-width:961px){
 body .gallery-route .gallery-grid.masonry-ready>.gallery-item[data-source-photo="02"],
 body .gallery-route .gallery-grid.masonry-ready>.gallery-item[data-source-photo="04"]{left:-18px}
}

/* v648: desktop Gallery matches the standard page-header band. */
.gallery-route .gallery-outline-clouds{display:none}
@media(min-width:901px){
 body .gallery-route .gallery-sky{background:#1450df!important;overflow:hidden}
 body .gallery-route .gallery-sky .gallery-intro{padding:48px 0 46px!important;width:calc(100% - 156px);position:relative;z-index:1}
 body .gallery-route .gallery-cloud-edge{display:none!important}
 body .gallery-route .gallery-outline-clouds{display:block;position:absolute;right:4%;top:0;height:100%;width:56%;max-width:680px;pointer-events:none}
}
/* v649: compact mobile blue band; retain original mobile wording. */
@media(max-width:900px){
 body .gallery-route #gallery{border-radius:0!important;overflow:hidden}
 body .gallery-route .gallery-sky{background:#1450df!important;border-radius:0!important;overflow:hidden}
 body .gallery-route .gallery-sky .gallery-intro{box-sizing:border-box;min-height:176px;padding:24px 0!important;width:calc(100% - 48px);position:relative;z-index:1;display:flex;flex-direction:column;justify-content:center}
 body .gallery-route .gallery-sky .gallery-intro>.eyebrow{font-size:10px;line-height:1.4;letter-spacing:.12em;margin-bottom:12px}
 body .gallery-route .gallery-sky h1{font-size:24px;line-height:1.17;max-width:460px}
 body .gallery-route .gallery-cloud-edge{display:none!important}
 body .gallery-route .gallery-outline-clouds{display:block;position:absolute;right:-18px;top:0;height:100%;width:65%;opacity:.35;pointer-events:none}
 body .gallery-route .gallery-sky+.gallery-chapter{border-radius:0!important;margin-top:0!important}
}
@media(min-width:961px){body .gallery-route .building-editorial .gallery-item[data-source-photo="28"]{gap:56px}}
@media(max-width:900px){body .gallery-route .gallery-outline-clouds{top:auto;bottom:0;right:0;width:100%;height:auto;opacity:.35}}
@media(min-width:961px){body .gallery-route .building-editorial .gallery-item[data-source-photo="28"]{gap:50px!important}}

/* v653: mobile label and side-only decoration; keep the large introduction. */
.gallery-route .gallery-mobile-side-cloud{display:none}
@media(max-width:900px){
 body .gallery-route .gallery-sky .gallery-intro>.eyebrow{transform:translateY(-4px)}
 body .gallery-route .gallery-outline-clouds{display:none}
 body .gallery-route .gallery-mobile-side-cloud{display:block;position:absolute;width:20px;height:16px;pointer-events:none;opacity:.65}
 body .gallery-route .gallery-mobile-side-cloud.left{left:2px;top:42%}
 body .gallery-route .gallery-mobile-side-cloud.right{right:2px;bottom:24px}
}
/* v653: scenic mobile headers use the existing scene asset beneath a blue veil. */
@media(max-width:900px){
 body:is([data-site-scene=forest],[data-site-scene=treetop],[data-site-scene=nyc]) .gallery-route .gallery-mobile-side-cloud{display:none}
 body:is([data-site-scene=forest],[data-site-scene=treetop],[data-site-scene=nyc]) .gallery-route .gallery-sky{background:linear-gradient(rgba(20,67,172,.78),rgba(20,67,172,.78)),var(--reading-scene) center/cover no-repeat!important}
 body:is([data-site-scene=forest],[data-site-scene=treetop],[data-site-scene=nyc]) .gallery-route .gallery-sky .gallery-intro{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.2)}
}

/* v654: desktop scenic header, retaining all existing cloud outlines. */
@media(min-width:901px){
 body:is([data-site-scene=forest],[data-site-scene=treetop],[data-site-scene=nyc]) .gallery-route .gallery-sky{background:linear-gradient(rgba(20,67,172,.78),rgba(20,67,172,.78)),var(--reading-scene) center/cover no-repeat!important}
 body:is([data-site-scene=forest],[data-site-scene=treetop],[data-site-scene=nyc]) .gallery-route .gallery-sky .gallery-intro{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.2)}
}
/* v656: compact Classic mobile header only; scenic and desktop stay untouched. */
@media(max-width:900px){
 body[data-site-scene=plain] .gallery-route .gallery-sky .gallery-intro{min-height:0!important;height:auto!important;padding:20px 0!important;gap:0}
 body[data-site-scene=plain] .gallery-route .gallery-sky .gallery-intro>.eyebrow{margin:0 0 10px!important;transform:none}
 body[data-site-scene=plain] .gallery-route .gallery-sky .gallery-intro>h1{margin:0!important;line-height:1.17}
 body[data-site-scene=plain] .gallery-route .gallery-sky :is(.gallery-outline-clouds,.gallery-mobile-side-cloud,.gallery-cloud-edge){display:none!important}
}
/* v657: match the observed 160px Classic About/Practice mobile header. */
@media(max-width:900px){
 body[data-site-scene=plain] .gallery-route .gallery-sky .gallery-intro{min-height:160px!important;justify-content:center}
}

/* v659: approved C2 art; desktop decoration only, no layout changes. */
.gallery-route .gallery-cotton-clouds{display:none}
@media(min-width:901px){
 body .gallery-route .gallery-outline-clouds{display:none!important}
 body .gallery-route .gallery-cotton-clouds{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain;object-position:right bottom;pointer-events:none;z-index:0}
}

/* Slightly reduce displayed SQRT photographs 30/31 on desktop only. */
@media(min-width:961px){
 body .gallery-route .building-editorial .gallery-item[data-source-photo="29"] .photo-frame{width:92%!important;max-width:92%!important}
 body .gallery-route .building-editorial .gallery-item[data-source-photo="30"] .photo-frame{width:83%!important;max-width:83%!important}
}
/* Desktop-only: temper portraits 34/38 and give classroom 37 a little more presence. */
@media(min-width:961px){
 body .gallery-route .gallery-grid[data-layout="ai"] #photo-34 .photo-frame{width:320px;max-width:100%}
 body .gallery-route .gallery-grid[data-layout="ai"] #photo-34>figcaption{width:330px;max-width:100%}
 body .gallery-route .gallery-grid[data-layout="ai"] #photo-37 .photo-frame,
 body .gallery-route .gallery-grid[data-layout="ai"] #photo-37>figcaption{width:106%;max-width:106%}
 body .gallery-route .gallery-grid[data-layout="ai"] #photo-38 .photo-frame{width:82%;max-width:82%;margin-left:auto;margin-right:auto}
 body .gallery-route .gallery-grid[data-layout="ai"] #photo-38>figcaption{width:94%;max-width:94%;margin-left:auto;margin-right:auto}
}
/* Desktop refinements: room beside the classroom and a calmer book grouping. */
@media(min-width:961px){
 body .gallery-route .gallery-grid[data-layout="ai"] #photo-38>figcaption{width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;margin-left:24px!important;margin-right:0!important}
 body .gallery-route .gallery-grid[data-layout="ai"] #photo-35{left:-18px!important}
}
/* A side caption when the desktop has enough room; retain stacking below 1100px. */
@media(min-width:1100px){
 body .gallery-route .gallery-grid #photo-04{display:flex;align-items:center;gap:24px;width:570px!important;left:0!important}
 body .gallery-route .gallery-grid #photo-04 .photo-frame{width:300px!important;max-width:300px!important;flex:0 0 300px;margin:0!important}
 body .gallery-route .gallery-grid #photo-04>figcaption{width:246px!important;max-width:246px!important;flex:1;padding-top:0;margin:0!important}
}
/* Quiet desktop photo 4's redundant enlarge badge and stagger the portraits. */
@media(min-width:961px){
 body .gallery-route #photo-04 .zoom-button{display:none!important}
 body .gallery-route .gallery-grid #photo-07{left:44px!important}
}
@media(min-width:1100px){
 body .gallery-route .gallery-grid #photo-04{align-items:flex-end;left:20px!important}
}
@media(min-width:961px){
 body .gallery-route .building-editorial .gallery-item[data-source-photo="29"]{left:24px!important}
 body .gallery-route .building-editorial .gallery-item[data-source-photo="30"]{left:18px!important}
 body .gallery-route .gallery-grid[data-layout="ai"] #photo-35{left:-30px!important}
 body .gallery-route .gallery-grid[data-layout="ai"] #photo-38>figcaption{width:calc(100% - 36px)!important;max-width:calc(100% - 36px)!important;margin-left:36px!important}
}
@media(min-width:1100px){body .gallery-route .gallery-grid #photo-04{left:32px!important}}
/* Align the two doctoral portraits without pushing the side caption to the edge. */
@media(min-width:1100px){body .gallery-route .gallery-grid #photo-02,body .gallery-route .gallery-grid #photo-04{left:24px!important}}
@media(min-width:961px){
 body .gallery-route .gallery-grid[data-layout="ai"] #photo-35 .endorsement-visuals{position:relative;left:-12px}
 body .gallery-route .gallery-grid[data-layout="ai"] #photo-37 .photo-frame{position:relative;left:5px}
}
@media(min-width:961px){body .gallery-route .zoom-button{display:none!important}}
/* v680: more breathing room for the SQRT reflection and Human Code visuals. */
@media(min-width:961px){
 body .gallery-route .building-editorial #photo-33>figcaption{width:450px!important;max-width:450px!important}
 body .gallery-route .gallery-grid[data-layout="ai"] #photo-35 .endorsement-visuals{gap:32px!important}
}
